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
    ---><---

    References listed on IDEAS

    as
    1. Seepana Praveenkumar & Aminjon Gulakhmadov & Abhinav Kumar & Murodbek Safaraliev & Xi Chen, 2022. "Comparative Analysis for a Solar Tracking Mechanism of Solar PV in Five Different Climatic Locations in South Indian States: A Techno-Economic Feasibility," Sustainability, MDPI, vol. 14(19), pages 1-22, September.
    2. Rafael Gonçalves & Diogo Magalhães & Rafael Teixeira & Mário Antunes & Diogo Gomes & Rui L. Aguiar, 2025. "Accelerating Energy Forecasting with Data Dimensionality Reduction in a Residential Environment," Energies, MDPI, vol. 18(7), pages 1-18, March.
    3. Notton, Gilles & Nivet, Marie-Laure & Voyant, Cyril & Paoli, Christophe & Darras, Christophe & Motte, Fabrice & Fouilloy, Alexis, 2018. "Intermittent and stochastic character of renewable energy sources: Consequences, cost of intermittence and benefit of forecasting," Renewable and Sustainable Energy Reviews, Elsevier, vol. 87(C), pages 96-105.
    4. Miguel Matos & João Almeida & Pedro Gonçalves & Fabiano Baldo & Fernando José Braz & Paulo C. Bartolomeu, 2024. "A Machine Learning-Based Electricity Consumption Forecast and Management System for Renewable Energy Communities," Energies, MDPI, vol. 17(3), pages 1-25, January.
    5. Steffen Limmer, 2023. "Empirical Study of Stability and Fairness of Schemes for Benefit Distribution in Local Energy Communities," Energies, MDPI, vol. 16(4), pages 1-16, February.
    6. Aliyon, Kasra & Ritvanen, Jouni, 2024. "Deep learning-based electricity price forecasting: Findings on price predictability and European electricity markets," Energy, Elsevier, vol. 308(C).
    7. Belenguer, E. & Segarra-Tamarit, J. & Pérez, E. & Vidal-Albalate, R., 2025. "Short-term electricity price forecasting through demand and renewable generation prediction," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 229(C), pages 350-361.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Nallapaneni Manoj Kumar & Aneesh A. Chand & Maria Malvoni & Kushal A. Prasad & Kabir A. Mamun & F.R. Islam & Shauhrat S. Chopra, 2020. "Distributed Energy Resources and the Application of AI, IoT, and Blockchain in Smart Grids," Energies, MDPI, vol. 13(21), pages 1-42, November.
    2. Ghosh, Sourav & Yadav, Sarita & Devi, Ambika & Thomas, Tiju, 2022. "Techno-economic understanding of Indian energy-storage market: A perspective on green materials-based supercapacitor technologies," Renewable and Sustainable Energy Reviews, Elsevier, vol. 161(C).
    3. Yang, Yanru & Liu, Yu & Zhang, Yihang & Shu, Shaolong & Zheng, Junsheng, 2025. "DEST-GNN: A double-explored spatio-temporal graph neural network for multi-site intra-hour PV power forecasting," Applied Energy, Elsevier, vol. 378(PA).
    4. Shaobo Wen & Yipeng Gong & Xiufeng Mu & Sufang Zhao & Chuanjun Wang, 2025. "Optimal Configuration of Flywheel–Battery Hybrid Energy Storage System for Smoothing Wind–Solar Power Generating Fluctuation," Energies, MDPI, vol. 18(8), pages 1-18, April.
    5. Costa, Marcelo Azevedo & Ruiz-Cárdenas, Ramiro & Mineti, Leandro Brioschi & Prates, Marcos Oliveira, 2021. "Dynamic time scan forecasting for multi-step wind speed prediction," Renewable Energy, Elsevier, vol. 177(C), pages 584-595.
    6. Paletta, Quentin & Arbod, Guillaume & Lasenby, Joan, 2023. "Omnivision forecasting: Combining satellite and sky images for improved deterministic and probabilistic intra-hour solar energy predictions," Applied Energy, Elsevier, vol. 336(C).
    7. Xiukang Wang, 2022. "Managing Land Carrying Capacity: Key to Achieving Sustainable Production Systems for Food Security," Land, MDPI, vol. 11(4), pages 1-21, March.
    8. Pawlak-Kruczek, Halina & Niedźwiecki, Łukasz & Ostrycharczyk, Michał & Czerep, Michał & Plutecki, Zbigniew, 2019. "Potential and methods for increasing the flexibility and efficiency of the lignite fired power unit, using integrated lignite drying," Energy, Elsevier, vol. 181(C), pages 1142-1151.
    9. Ma, Teng & Li, Ming-Jia & Xu, Jin-Liang & Cao, Feng, 2019. "Thermodynamic analysis and performance prediction on dynamic response characteristic of PCHE in 1000 MW S-CO2 coal fired power plant," Energy, Elsevier, vol. 175(C), pages 123-138.
    10. Sun, Shitong & Kazemi-Razi, S. Mahdi & Kaigutha, Lisa G. & Marzband, Mousa & Nafisi, Hamed & Al-Sumaiti, Ameena Saad, 2022. "Day-ahead offering strategy in the market for concentrating solar power considering thermoelectric decoupling by a compressed air energy storage," Applied Energy, Elsevier, vol. 305(C).
    11. Jean-Laurent Duchaud & Cyril Voyant & Alexis Fouilloy & Gilles Notton & Marie-Laure Nivet, 2020. "Trade-Off between Precision and Resolution of a Solar Power Forecasting Algorithm for Micro-Grid Optimal Control," Energies, MDPI, vol. 13(14), pages 1-16, July.
    12. Yu, Bolin & Fang, Debin & Xiao, Kun & Pan, Yuling, 2023. "Drivers of renewable energy penetration and its role in power sector's deep decarbonization towards carbon peak," Renewable and Sustainable Energy Reviews, Elsevier, vol. 178(C).
    13. Gairaa, Kacem & Voyant, Cyril & Notton, Gilles & Benkaciali, Saïd & Guermoui, Mawloud, 2022. "Contribution of ordinal variables to short-term global solar irradiation forecasting for sites with low variabilities," Renewable Energy, Elsevier, vol. 183(C), pages 890-902.
    14. Kim, Taewan & Song, Jeonghwan & You, Donghyun, 2024. "Optimization of a wind farm layout to mitigate the wind power intermittency," Applied Energy, Elsevier, vol. 367(C).
    15. Siavash Asiaban & Nezmin Kayedpour & Arash E. Samani & Dimitar Bozalakov & Jeroen D. M. De Kooning & Guillaume Crevecoeur & Lieven Vandevelde, 2021. "Wind and Solar Intermittency and the Associated Integration Challenges: A Comprehensive Review Including the Status in the Belgian Power System," Energies, MDPI, vol. 14(9), pages 1-41, May.
    16. Zhang, Nan & Zhang, Yumeng & Duan, Liqiang & Hou, Hongjuan & Zhang, Hanfei & Zhou, Yong & Bao, Weiwei, 2023. "Combining integrated solar combined cycle with wind-PV plants to provide stable power: Operation strategy and dynamic performance study," Energy, Elsevier, vol. 284(C).
    17. Simpson, J.G. & Hanrahan, G. & Loth, E. & Koenig, G.M. & Sadoway, D.R., 2021. "Liquid metal battery storage in an offshore wind turbine: Concept and economic analysis," Renewable and Sustainable Energy Reviews, Elsevier, vol. 149(C).
    18. Pérez Albornoz, C. & Escalante Soberanis, M.A. & Ramírez Rivera, V. & Rivero, M., 2022. "Review of atmospheric stability estimations for wind power applications," Renewable and Sustainable Energy Reviews, Elsevier, vol. 163(C).
    19. Nikolaos Kolokas & Dimosthenis Ioannidis & Dimitrios Tzovaras, 2021. "Multi-Step Energy Demand and Generation Forecasting with Confidence Used for Specification-Free Aggregate Demand Optimization," Energies, MDPI, vol. 14(11), pages 1-36, May.
    20. Abada, Ibrahim & Ehrenmann, Andreas & Lambin, Xavier, 2025. "Risk-sharing in energy communities," European Journal of Operational Research, Elsevier, vol. 322(3), pages 870-888.

    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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.