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

Distributed Multi-Agent Energy Management for Microgrids in a Co-Simulation Framework

Author

Listed:
  • Janaína Barbosa Almada

    (Department of Electrical Engineering, Federal University of Ceará, Fortaleza 60455-760, Brazil)

  • Fernando Lessa Tofoli

    (Department of Electrical Engineering, Federal University of São João del-Rei, São João del-Rei 36307-352, Brazil)

  • Raquel Cristina Filiagi Gregory

    (Department of Electrical Engineering, Federal University of Ceará, Fortaleza 60455-760, Brazil)

  • Raimundo Furtado Sampaio

    (Department of Electrical Engineering, Federal University of Ceará, Fortaleza 60455-760, Brazil)

  • Lucas Sampaio Melo

    (Department of Electrical Engineering, Federal University of Ceará, Fortaleza 60455-760, Brazil)

  • Ruth Pastôra Saraiva Leão

    (Department of Electrical Engineering, Federal University of São João del-Rei, São João del-Rei 36307-352, Brazil)

Abstract

The diversity of energy resources in distribution networks requires new strategies for planning and operation. In this context, microgrids are solutions that can integrate renewable energy sources, energy storage systems (ESSs), and demand response (DR), thereby decentralizing operations and utilizing digital technologies to create more proactive energy markets. Given the above, this work proposes a distributed optimal dispatch strategy for microgrids with multiple energy resources, with a focus on scalability. Simulations are performed using agent modeling on the Python Agent Development (PADE) platform, leveraging distributed computing resources and agent communication. A co-simulation environment, coordinated by Mosaik, synchronizes data exchange, while a plug-and-play system allows dynamic agent modification. The main contribution of the present study relies on a system integration approach, combining a multi-agent system (MAS) and Mosaik co-simulation framework with plug-and-play agent support for the very short-term (five-minute) dispatch of energy resources. Optimization algorithms, namely particle swarm optimization (PSO) and multi-agent particle swarm optimization (MAPSO), are framed as an incremental improvement tailored to this distributed architecture. Case studies show that distributed MAPSO performs better, with lower objective function values and a smaller relative standard deviation (15.6%), while distributed PSO had a higher deviation (33.9%). Although distributed MAPSO takes up to three times longer to provide a solution, with an average of 9.0 s, this timeframe is compatible with five-minute dispatch intervals.

Suggested Citation

  • Janaína Barbosa Almada & Fernando Lessa Tofoli & Raquel Cristina Filiagi Gregory & Raimundo Furtado Sampaio & Lucas Sampaio Melo & Ruth Pastôra Saraiva Leão, 2025. "Distributed Multi-Agent Energy Management for Microgrids in a Co-Simulation Framework," Energies, MDPI, vol. 18(17), pages 1-32, August.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:17:p:4620-:d:1738366
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Yang, Ting & Xu, Zheming & Ji, Shijie & Liu, Guoliang & Li, Xinhong & Kong, Haibo, 2025. "Cooperative optimal dispatch of multi-microgrids for low carbon economy based on personalized federated reinforcement learning," Applied Energy, Elsevier, vol. 378(PA).
    2. Qun Cheng & Zhaonan Zhang & Yanwei Wang & Lidong Zhang, 2025. "A Review of Distributed Energy Systems: Technologies, Classification, and Applications," Sustainability, MDPI, vol. 17(4), pages 1-31, February.
    3. Li, Ling-Ling & Ji, Bing-Xiang & Li, Zhong-Tao & Lim, Ming K. & Sethanan, Kanchana & Tseng, Ming-Lang, 2025. "Microgrid energy management system with degradation cost and carbon trading mechanism: A multi-objective artificial hummingbird algorithm," Applied Energy, Elsevier, vol. 378(PA).
    4. Kumar, S. Senthil & Srinivasan, C. & Balavignesh, S., 2025. "Enhancing grid integration of renewable energy sources for micro grid stability using forecasting and optimal dispatch strategies," Energy, Elsevier, vol. 322(C).
    5. Huo, Yuchong & Bouffard, François & Joós, Géza, 2022. "Integrating learning and explicit model predictive control for unit commitment in microgrids," Applied Energy, Elsevier, vol. 306(PA).
    6. Tianle Li & Yifei Li & Fang Wang & Cheng Gong & Jingrui Zhang & Hao Ma, 2025. "Improved Parallel Differential Evolution Algorithm with Small Population for Multi-Period Optimal Dispatch Problem of Microgrids," Energies, MDPI, vol. 18(14), pages 1-26, July.
    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. Liu, Yiwei & Tang, Yinggan & Hua, Changchun, 2025. "Multi-objective nutcracker optimization algorithm based on fast non-dominated sorting and elite strategy for grid-connected hybrid microgrid system scheduling," Renewable Energy, Elsevier, vol. 242(C).
    2. D’Amore, G. & Cabrera-Tobar, A. & Petrone, G. & Pavan, A. Massi & Spagnuolo, G., 2024. "Integrating model predictive control and deep learning for the management of an EV charging station," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 224(PB), pages 33-48.
    3. Biéron, M. & Le Dréau, J. & Haas, B., 2023. "Assessment of the marginal technologies reacting to demand response events: A French case-study," Energy, Elsevier, vol. 275(C).
    4. Lei Zhang & Yuxing Yuan & Su Yan & Hang Cao & Tao Du, 2025. "Advances in Modeling and Optimization of Intelligent Power Systems Integrating Renewable Energy in the Industrial Sector: A Multi-Perspective Review," Energies, MDPI, vol. 18(10), pages 1-50, May.
    5. Hélio Marcos André Antunes & Ramon Ravani Del Piero & Sidelmo Magalhães Silva, 2025. "Application of Repetitive Control to Grid-Forming Converters in Centralized AC Microgrids," Energies, MDPI, vol. 18(13), pages 1-27, June.
    6. Łukasz Kuźmiński & Joanna Dynowska & Rafał Nagaj & Sergiy Kozmenko & Tomasz Norek & Marcin Rabe & Andrzej Gawlik & Katarzyna Widera, 2025. "Determinants of Ecological Decisions of Users of Single-Family Houses in Poland in the Field of Energy Generation," Energies, MDPI, vol. 18(11), pages 1-24, May.
    7. Jing, Hang & Li, Yan & Brandsema, Matthew J. & Chen, Yousu & Yue, Meng, 2024. "HHL algorithm with mapping function and enhanced sampling for model predictive control in microgrids," Applied Energy, Elsevier, vol. 361(C).

    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:17:p:4620-:d:1738366. 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.