IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i13p3477-d1692553.html
   My bibliography  Save this article

Intelligent Management of Renewable Energy Communities: An MLaaS Framework with RL-Based Decision Making

Author

Listed:
  • Rafael Gonçalves

    (Instituto de Telecomunicações, 3810-193 Aveiro, Portugal)

  • Diogo Gomes

    (Instituto de Telecomunicações, 3810-193 Aveiro, Portugal
    Departamento de Eletrónica, Telecomunicações e Informática, University of Aveiro, 3810-193 Aveiro, Portugal)

  • Mário Antunes

    (Instituto de Telecomunicações, 3810-193 Aveiro, Portugal
    Departamento de Eletrónica, Telecomunicações e Informática, University of Aveiro, 3810-193 Aveiro, Portugal)

Abstract

Given the increasing energy demand and the environmental consequences of fossil fuel consumption, the shift toward sustainable energy sources has become a global priority. Renewable Energy Communities (RECs)—comprising citizens, businesses, and legal entities—are emerging to democratise access to renewable energy. These communities allow members to produce their own energy, sharing or selling any surplus, thus promoting sustainability and generating economic value. However, scaling RECs while ensuring profitability is challenging due to renewable energy intermittency, price volatility, and heterogeneous consumption patterns. To address these issues, this paper presents a Machine Learning as a Service (MLaaS) framework, where each REC microgrid has a customised Reinforcement Learning (RL) agent and electricity price forecasts are included to support decision-making. All the conducted experiments, using the open-source simulator Pymgrid, demonstrate that the proposed agents reduced operational costs by up to 96.41% compared to a robust baseline heuristic. Moreover, this study also introduces two cost-saving features: Peer-to-Peer (P2P) energy trading between communities and internal energy pools, allowing microgrids to draw local energy before using the main grid. Combined with the best-performing agents, these features achieved trading cost reductions of up to 45.58%. Finally, in terms of deployment, the system relies on an MLOps-compliant infrastructure that enables parallel training pipelines and an autoscalable inference service. Overall, this work provides significant contributions to energy management, fostering the development of more sustainable, efficient, and cost-effective solutions.

Suggested Citation

  • Rafael Gonçalves & Diogo Gomes & Mário Antunes, 2025. "Intelligent Management of Renewable Energy Communities: An MLaaS Framework with RL-Based Decision Making," Energies, MDPI, vol. 18(13), pages 1-30, July.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:13:p:3477-:d:1692553
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/13/3477/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/13/3477/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jeners:v:18:y:2025:i:13:p:3477-:d:1692553. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.