Next Article in Journal
Techniques of Control for Energy Optimization in Actuators, Motors, and Power Generation Systems
Previous Article in Journal
Total Internal Reflection End-Pumped Solar Laser with the Solar-to-Laser Conversion Efficiency of 6.09%
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

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

1
National School of Applied Sciences, Ibn Tofail University, Kenitra 14000, Morocco
2
Research Platform in Solar and Renewable Energies, Green Energy Park, Benguerir 43150, Morocco
*
Author to whom correspondence should be addressed.
Energies 2025, 18(15), 4035; https://doi.org/10.3390/en18154035
Submission received: 12 June 2025 / Revised: 18 July 2025 / Accepted: 28 July 2025 / Published: 29 July 2025

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.
Keywords: real-time energy management; T-Cell optimization; Hardware-in-the-Loop (HIL); droop control; Multi-Agent System (MAS); OPAL-RT real-time energy management; T-Cell optimization; Hardware-in-the-Loop (HIL); droop control; Multi-Agent System (MAS); OPAL-RT

Share and Cite

MDPI and ACS Style

Boukaibat, A.; Krami, N.; Rochdi, Y.; El Bakkali, Y.; Laamim, M.; Rochd, A. Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT. Energies 2025, 18, 4035. https://doi.org/10.3390/en18154035

AMA Style

Boukaibat A, Krami N, Rochdi Y, El Bakkali Y, Laamim M, Rochd A. Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT. Energies. 2025; 18(15):4035. https://doi.org/10.3390/en18154035

Chicago/Turabian Style

Boukaibat, Achraf, Nissrine Krami, Youssef Rochdi, Yassir El Bakkali, Mohamed Laamim, and Abdelilah Rochd. 2025. "Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT" Energies 18, no. 15: 4035. https://doi.org/10.3390/en18154035

APA Style

Boukaibat, A., Krami, N., Rochdi, Y., El Bakkali, Y., Laamim, M., & Rochd, A. (2025). Real-Time Energy Management in Microgrids: Integrating T-Cell Optimization, Droop Control, and HIL Validation with OPAL-RT. Energies, 18(15), 4035. https://doi.org/10.3390/en18154035

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop