IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i13p3477-d1692553.html

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. 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.
    2. 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.
    3. Aliyon, Kasra & Ritvanen, Jouni, 2024. "Deep learning-based electricity price forecasting: Findings on price predictability and European electricity markets," Energy, Elsevier, vol. 308(C).
    4. 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.
    5. 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.
    6. 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.
    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)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Carolin Monsberger & Stefan Reuter & Franziska Ackerl & Bernhard Mayr & Bernadette Fina & Bernadette Mauthner, 2025. "The Role of Renewable Gas Energy Communities in Austria’s Energy Transformation," Energies, MDPI, vol. 18(18), pages 1-21, September.

    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. Brockmann, Fabian & Guajardo, Mario, 2026. "Electric vehicle charging costs and power losses under the energy price crisis: shifting dynamics in Norway," Energy Economics, Elsevier, vol. 153(C).
    2. Li, Shuyun & Ding, Hongliang & Ouyang, Ziqu & Su, Kun & Wang, Hongshuai & Chen, Qisi & Wu, Lingming, 2025. "Experimental study on activation, combustion behavior and NOx emissions of large-grained coal in a purification-combustion system," Energy, Elsevier, vol. 341(C).
    3. 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.
    4. 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).
    5. Parlikar, Anupam & Truong, Cong Nam & Jossen, Andreas & Hesse, Holger, 2021. "The carbon footprint of island grids with lithium-ion battery systems: An analysis based on levelized emissions of energy supply," Renewable and Sustainable Energy Reviews, Elsevier, vol. 149(C).
    6. Qin, Chao (Chris) & Loth, Eric, 2021. "Isothermal compressed wind energy storage using abandoned oil/gas wells or coal mines," Applied Energy, Elsevier, vol. 292(C).
    7. 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).
    8. 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.
    9. Rolo, Pedro & Vidal, João V. & Kholkin, Andrei L. & Alves, Luis Nero & Soares dos Santos, Marco P., 2025. "Multidimensional vibrationally driven energy generation: State-of-the-art review and modelling generalization," Applied Energy, Elsevier, vol. 396(C).
    10. 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.
    11. Voyant, Cyril & Notton, Gilles & Duchaud, Jean-Laurent & Gutiérrez, Luis Antonio García & Bright, Jamie M. & Yang, Dazhi, 2022. "Benchmarks for solar radiation time series forecasting," Renewable Energy, Elsevier, vol. 191(C), pages 747-762.
    12. Castello, Oleksandr & Resta, Marina, 2025. "Univariate and multivariate forecasting of the electricity futures curve using Dynamic Recurrent Neural Networks," Applied Energy, Elsevier, vol. 394(C).
    13. 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).
    14. Xuejun Zheng & Shaorong Wang & Xin Su & Mengmeng Xiao & Zia Ullah & Xin Hu & Chang Ye, 2021. "Real-Time Dynamic Behavior Evaluation of Active Distribution Networks Leveraging Low-Cost PMUs," Energies, MDPI, vol. 14(16), pages 1-20, August.
    15. Yang, Dazhi & van der Meer, Dennis, 2021. "Post-processing in solar forecasting: Ten overarching thinking tools," Renewable and Sustainable Energy Reviews, Elsevier, vol. 140(C).
    16. 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.
    17. De Blasis, Riccardo & Pacelli, Graziella & Vergine, Salvatore, 2026. "Investment valuation of photovoltaic and energy storage systems for diverse energy communities: A real option approach," Applied Energy, Elsevier, vol. 404(C).
    18. Wang, Xiongzheng & Meng, Xin & Nie, Gongzhe & Li, Binghui & Yang, Haoran & He, Mingzhi, 2024. "Optimization of hydrogen production in multi-Electrolyzer systems: A novel control strategy for enhanced renewable energy utilization and Electrolyzer lifespan," Applied Energy, Elsevier, vol. 376(PB).
    19. Barbera, Elena & Menegon, Silvia & Banzato, Donatella & D'Alpaos, Chiara & Bertucco, Alberto, 2019. "From biogas to biomethane: A process simulation-based techno-economic comparison of different upgrading technologies in the Italian context," Renewable Energy, Elsevier, vol. 135(C), pages 663-673.
    20. 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.

    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 The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (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.