Adaptive Energy Management for Smart Microgrids Using a Bio-Inspired T-Cell Algorithm and Multi-Agent System with Real-Time OPAL-RT Validation
Source abstract
Abstract
This article proposes an Energy Management System (EMS) for smart microgrids with a decentralized multi-agent system (MAS) based on a bio-inspired T-Cell optimization algorithm. The proposed system allows real-time control and dynamic balancing of loads while addressing the challenges of intermittent renewable energy sources like solar and wind. The system operates within the tertiary control layer; the optimal set points are computed by the T-Cell algorithm across energy sources and storage units. The set points are implemented and validated in real-time by the OPAL-RT simulation platform. The system contains a real-time feedback loop, which continuously monitors voltage levels and system performance, allowing the system to readjust in case of anomalies or power imbalances. Contrary to classical methods like Model Predictive Control (MPC) or Particle Swarm Optimization (PSO), the T-Cell algorithm demonstrates greater robustness to uncertainty and better adaptability to dynamic operating conditions. The MAS is implemented over the JADE platform, enabling decentralized coordination, autonomous response to disturbances, and continuous system optimization to ensure stability and reduce reliance on the main grid. The results demonstrate the system’s effectiveness in maintaining the voltages within acceptable limits of regulation (±5%), reducing reliance on the main grid, and optimizing the integration of renewable sources. The real-time closed-loop solution provides a scalable and reliable microgrid energy management solution under real-world constraints.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Smart Grid Energy Management · Microgrid Control and Optimization · Optimal Power Flow Distribution
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Laboratory Systems Engineering, ENSA, Ibn Tofail University, Kenitra 14000, Morocco
Research Platform in Solar and Renewable Energies, Green Energy Park, Benguerir 43150, Morocco
References (41)
Show source-provided references
1. Basantes, J., Paredes, D., Llanos, J., Ortiz, D., and Burgos, C. (2023). Energy Management System (EMS) Based on Model Predictive Control (MPC) for an Isolated DC Microgrid. Energies, 16.10.3390/en16062912 ↗
2. Lim, S., Lee, J., and Lee, S. (2025). Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids. Energies, 18.10.3390/en18071696 ↗
3. Multi-mode monitoring and energy management for photovoltaic-storage systems10.1016/j.renene.2024.120820 ↗
4. Hamadneh, T., Alsayyed, O., Batiha, B., Barhoumi, E.M., Kamarposhti, M.A., Haghighi, H., Thounthong, P., and Colak, I. (2025). Optimal energy management of distributed generation resources in a microgrid under various load and solar irradiance conditions using the artificial bee colony algorithm. Sci. Rep., 15.10.1038/s41598-025-16813-9 ↗
5. Optimal super twisting sliding mode control strategy for performance improvement of islanded microgrids: Validation and real-time study10.1016/j.ijepes.2024.109849 ↗
6. Efficient power management and control of DC microgrid with supercapacitor-battery storage systems10.1016/j.est.2023.109082 ↗
7. El Barkouki, B., Laamim, M., Rochd, A., Chang, J.W., Benazzouz, A., Ouassaid, M., Kang, M., and Jeong, H. (2023). An Economic Dispatch for a Shared Energy Storage System Using MILP Optimization: A Case Study of a Moroccan Microgrid. Energies, 16.10.3390/en16124601 ↗
8. Energy Management System of a Microgrid Using Particle Swarm Optimization (PSO) and Communication System
9. A hybrid constrained Particle Swarm Optimization-Model Predictive Control (CPSO-MPC) algorithm for storage energy management optimization problem in micro-grid10.1016/j.egyr.2022.10.035 ↗
10. Wang, X., Li, R., Luo, X., and Guan, X. (2025). Improved Differential Mutation Aquila Optimizer-Based Optimization Dispatching Strategy for Hybrid Energy Ship Power System. IEEE Trans. Transp. Electrific., 1.10.1109/TTE.2025.3593366 ↗
11. A novel optimal dispatch strategy for hybrid energy ship power system based on the improved NSGA-II algorithm10.1016/j.epsr.2024.110385 ↗
12. Prioritized sum-tree experience replay TD3 DRL-based online energy management of a residential microgrid10.1016/j.apenergy.2024.123471 ↗
13. IoT-based stochastic EMS using multi-agent system for coordination of grid-connected multi-microgrids10.1016/j.ijepes.2023.109191 ↗
14. Moreno-Castro, J., Guevara, V.S.O., Viltre, L.T.L., Landera, Y.G., Zevallos, O.C., and Aybar-Mejía, M. (2023). Microgrid Management Strategies for Economic Dispatch of Electricity Using Model Predictive Control Techniques: A Review. Energies, 16.10.3390/en16165935 ↗
15. Optimizing energy management strategies for microgrids through chaotic local search and particle swarm optimization techniques10.1016/j.heliyon.2024.e36669 ↗
16. Fuzzy logic-based particle swarm optimization for integrated energy management system considering battery storage degradation10.1016/j.rineng.2024.102816 ↗
17. Esparza, A., Blondin, M., and Trovão, J.P.F. (2025). A Review of Optimization Strategies for Energy Management in Microgrids. Energies, 18.10.3390/en18133245 ↗
18. Smart Grid Stochastic Optimization with Ant Colony-based Scenario Generation10.1016/j.ifacol.2024.07.100 ↗
19. Real time experimental implementation of optimum energy management system in standalone Microgrid by using multi-layer ant colony optimization10.1016/j.ijepes.2015.09.010 ↗
20. Wang, C., Cheng, B., He, X., Xi, L., Yang, N., Zhao, Z., Lai, C.S., and Lai, L.L. (2025). Integrated Underfrequency Load Shedding Strategy for Islanded Microgrids Integrating Multiclass Load-Related Factors. IEEE Trans. Smart Grid, 1.10.1109/TSG.2025.3586757 ↗
21. Ait Chaoui, K., El Fadil, H., Choukai, O., and Ait Omar, O. (2025). A Wavelet–Attention–Convolution Hybrid Deep Learning Model for Accurate Short-Term Photovoltaic Power Forecasting. Forecasting, 7.10.3390/forecast7030045 ↗
22. Optimized energy management of a solar battery microgrid: An economic approach towards voltage stability10.1016/j.est.2024.111876 ↗
23. Vivas, F.J., Segura, F., Andújar, J.M., Palacio, A., Saenz, J.L., Isorna, F., and López, E. (2020). Multi-Objective Fuzzy Logic-Based Energy Management System for Microgrids with Battery and Hydrogen Energy Storage System. Electronics, 9.10.3390/electronics9071074 ↗
24. Harmouch, F.Z., Ebrahim, A.F., Esfahani, M.M., Krami, N., Hmina, N., and Mohammed, O.A. (2019). An Optimal Energy Management System for Real-Time Operation of Multiagent-Based Microgrids Using a T-Cell Algorithm. Energies, 12.10.3390/en12153004 ↗
25. Recent developments of energy management strategies in microgrids: An updated and comprehensive review and classification10.1016/j.enconman.2023.117723 ↗
26. Shayeghi, H., Shahryari, E., Moradzadeh, M., and Siano, P. (2019). A Survey on Microgrid Energy Management Considering Flexible Energy Sources. Energies, 12.10.3390/en12112156 ↗
27. A compendium of optimization objectives, constraints, tools and algorithms for energy management in microgrids10.1016/j.rser.2015.12.259 ↗
28. A comprehensive review on energy management strategy of microgrids10.1016/j.egyr.2023.04.360 ↗
29. El Zerk, A., and Ouassaid, M. (2023). Real-Time Fuzzy Logic Based Energy Management System for Microgrid Using Hardware in the Loop. Energies, 16.10.3390/en16052244 ↗
30. Parasitism-predation optimization algorithm-based energy management system for hybrid electric power system10.1016/j.ijhydene.2024.08.141 ↗
31. Optimal energy management system for grid-connected hybrid power plant and battery integrated into multilevel configuration10.1016/j.energy.2024.130765 ↗
32. Naik, K.R., Rajpathak, B., Mitra, A., and Kolhe, M. (2021, January 16–19). Renewable Energy Integrated DC Microgrid for EV Charging Station. Proceedings of the 2021 IEEE Transportation Electrification Conference (ITEC-India), New Delhi, India.10.1109/ITEC-India53713.2021.9932500 ↗
33. Multi-objective genetic algorithm based energy management system considering optimal utilization of grid and degradation of battery storage in microgrid10.1016/j.egyr.2023.05.067 ↗
34. Energy management supported on genetic algorithms for the equalization of battery energy storage systems in microgrid systems10.1016/j.est.2023.108510 ↗
35. Thanh, V.-V., Su, W., and Wang, B. (2022). Optimal DC Microgrid Operation with Model Predictive Control-Based Voltage-Dependent Demand Response and Optimal Battery Dispatch. Energies, 15.10.3390/en15062140 ↗
36. An MAS based energy management system for a stand-alone microgrid at high altitude10.1016/j.apenergy.2015.01.016 ↗
37. Multi-agent-based energy management of multiple grid-connected green buildings10.1016/j.jobe.2023.106866 ↗
38. Application of multi agent systems for advanced energy management in cyber physical hybrid microgrid systems10.1016/j.asej.2023.102482 ↗
39. A multiagent based decentralized energy management system for power exchange minimization in microgrid cluster10.1016/j.scs.2018.04.001 ↗
40. Alghamdi, A.S. (2024). Optimizing Microgrid Performance: Integrating Unscented Transformation and Enhanced Cheetah Optimization for Renewable Energy Management. Electronics, 13.10.3390/electronics13224563 ↗
41. Shafiullah, M., Refat, A.M., Haque, M.E., Chowdhury, D.M.H., Hossain, M.S., Alharbi, A.G., Alam, M.S., Ali, A., and Hossain, S. (2022). Review of Recent Developments in Microgrid Energy Management Strategies. Sustainability, 14.10.3390/su142214794 ↗