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

Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT

Author

Listed:
  • Achraf Boukaibat

    (National School of Applied Sciences, Ibn Tofail University, Kenitra 14000, Morocco)

  • Nissrine Krami

    (National School of Applied Sciences, Ibn Tofail University, Kenitra 14000, Morocco)

  • Youssef Rochdi

    (National School of Applied Sciences, Ibn Tofail University, Kenitra 14000, Morocco)

  • Yassir El Bakkali

    (National School of Applied Sciences, Ibn Tofail University, Kenitra 14000, Morocco)

  • Mohamed Laamim

    (Research Platform in Solar and Renewable Energies, Green Energy Park, Benguerir 43150, Morocco)

  • Abdelilah Rochd

    (Research Platform in Solar and Renewable Energies, Green Energy Park, Benguerir 43150, Morocco)

Abstract

Modern microgrids face critical challenges in maintaining stability and efficiency due to renewable energy intermittency and dynamic load demands. This paper proposes a novel real-time energy management framework that synergizes a bio-inspired T-Cell optimization algorithm with decentralized voltage-based droop control to address these challenges. A JADE-based multi-agent system (MAS) orchestrates coordination between the T-Cell optimizer and edge-level controllers, enabling scalable and fault-tolerant decision-making. The T-Cell algorithm, inspired by adaptive immune system dynamics, optimizes global power distribution through the MAS platform, while droop control ensures local voltage stability via autonomous adjustments by distributed energy resources (DERs). The framework is rigorously validated through Hardware-in-the-Loop (HIL) testing using OPAL-RT, which interfaces MATLAB/Simulink models with Raspberry Pi for real-time communication (MQTT/Modbus protocols). Experimental results demonstrate a 91% reduction in grid dependency, 70% mitigation of voltage fluctuations, and a 93% self-consumption rate, significantly enhancing power quality and resilience. By integrating centralized optimization with decentralized control through MAS coordination, the hybrid approach achieves scalable, self-organizing microgrid operation under variable generation and load conditions. This work advances the practical deployment of adaptive energy management systems, offering a robust solution for sustainable and resilient microgrids.

Suggested Citation

  • Achraf Boukaibat & Nissrine Krami & Youssef Rochdi & Yassir El Bakkali & Mohamed Laamim & Abdelilah Rochd, 2025. "Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT," Energies, MDPI, vol. 18(15), pages 1-19, July.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:15:p:4035-:d:1712610
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Joy Dalmacio Billanes & Bo Nørregaard Jørgensen & Zheng Ma, 2025. "A Framework for Resilient Community Microgrids: Review of Operational Strategies and Performance Metrics," Energies, MDPI, vol. 18(2), pages 1-39, January.
    2. Babak Arbab-Zavar & Emilio J. Palacios-Garcia & Juan C. Vasquez & Josep M. Guerrero, 2021. "Message Queuing Telemetry Transport Communication Infrastructure for Grid-Connected AC Microgrids Management," Energies, MDPI, vol. 14(18), pages 1-31, September.
    3. Yinghao Shan & Liqian Ma & Xiangkai Yu, 2023. "Hierarchical Control and Economic Optimization of Microgrids Considering the Randomness of Power Generation and Load Demand," Energies, MDPI, vol. 16(14), pages 1-23, July.
    4. Mohammed Qasim Taha & Sefer Kurnaz, 2023. "Droop Control Optimization for Improved Power Sharing in AC Islanded Microgrids Based on Centripetal Force Gravity Search Algorithm," Energies, MDPI, vol. 16(24), pages 1-20, December.
    5. Fatima Zahra Harmouch & Ahmed F. Ebrahim & Mohammad Mahmoudian Esfahani & Nissrine Krami & Nabil Hmina & Osama A. Mohammed, 2019. "An Optimal Energy Management System for Real-Time Operation of Multiagent-Based Microgrids Using a T-Cell Algorithm," Energies, MDPI, vol. 12(15), pages 1-23, August.
    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. Edward Smith & Duane Robinson & Ashish Agalgaonkar, 2021. "Cooperative Control of Microgrids: A Review of Theoretical Frameworks, Applications and Recent Developments," Energies, MDPI, vol. 14(23), pages 1-34, December.
    2. Maria Crespo-Aguado & Raul Lozano & Fernando Hernandez-Gobertti & Nuria Molner & David Gomez-Barquero, 2024. "Flexible Hyper-Distributed IoT–Edge–Cloud Platform for Real-Time Digital Twin Applications on 6G-Intended Testbeds for Logistics and Industry," Future Internet, MDPI, vol. 16(11), pages 1-24, November.
    3. Xueyang Wu & Yinghao Shan & Kexin Fan, 2024. "A Modified Particle Swarm Algorithm for the Multi-Objective Optimization of Wind/Photovoltaic/Diesel/Storage Microgrids," Sustainability, MDPI, vol. 16(3), pages 1-22, January.
    4. Gao, Jinling & Maalla, Allam & Li, Xuetao & Zhou, Xiao & Lian, Kong, 2024. "Comprehensive model for efficient microgrid operation: Addressing uncertainties and economic considerations," Energy, Elsevier, vol. 306(C).
    5. Amrutha Raju Battula & Sandeep Vuddanti & Surender Reddy Salkuti, 2021. "Review of Energy Management System Approaches in Microgrids," Energies, MDPI, vol. 14(17), pages 1-32, September.
    6. Vitalii Korovushkin & Sergii Boichenko & Artem Artyukhov & Kamila Ćwik & Diana Wróblewska & Grzegorz Jankowski, 2025. "Modern Optimization Technologies in Hybrid Renewable Energy Systems: A Systematic Review of Research Gaps and Prospects for Decisions," Energies, MDPI, vol. 18(17), pages 1-45, September.
    7. Colambage, D. Punsara & Wijayapala, W.D. Anura S. & Siyambalapitiya, Tilak, 2024. "Analysing the impact of diverse factors on electricity generation cost: Insights from Sri Lanka," Energy, Elsevier, vol. 311(C).
    8. Joseph Nyangon, 2025. "Smart Grid Strategies for Tackling the Duck Curve: A Qualitative Assessment of Digitalization, Battery Energy Storage, and Managed Rebound Effects Benefits," Energies, MDPI, vol. 18(15), pages 1-38, July.
    9. David W. Puma & Y. P. Molina & Brayan A. Atoccsa & J. E. Luyo & Zocimo Ñaupari, 2024. "Distribution Network Reconfiguration Optimization Using a New Algorithm Hyperbolic Tangent Particle Swarm Optimization (HT-PSO)," Energies, MDPI, vol. 17(15), pages 1-13, August.
    10. Falah Noori Saeed Al-dulaimi & Sefer Kurnaz, 2023. "Optimized Distributed Cooperative Control for Islanded Microgrid Based on Dragonfly Algorithm," Energies, MDPI, vol. 16(22), pages 1-24, November.
    11. Boyan Huang & Kai Song & Tao Zhang & Zihui Lian & Hongxu Li & Dezhi Jin & Runjin Wang, 2025. "Solving Power Supply Stability Issues in Remote Agricultural Areas Based on an Improved Sliding-Mode Active Disturbance Rejection Control Method," Agriculture, MDPI, vol. 15(7), pages 1-22, March.
    12. Pabel Alberto Cárdenas & Maximiliano Martínez & Marcelo Gustavo Molina & Pedro Enrique Mercado, 2023. "Development of Control Techniques for AC Microgrids: A Critical Assessment," Sustainability, MDPI, vol. 15(21), pages 1-28, October.

    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:15:p:4035-:d:1712610. 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.