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

    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.

    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.