Real-Time Capable MPC-Based Energy Management of Hybrid Microgrid
Abstract
1. Introduction
1.1. Importance and Motivation
1.2. Research Background
1.3. Research Gap
- Practical implementation: Few studies applied MPC in a real-world microgrid involving several DERs.
- Limited scenario testing: Most prior research tests controllers under ideal or static conditions, with little consideration for real-world disturbances such as grid outages, generator failures, or sudden price fluctuations.
- Lack of economic evaluation: Some research does not provide measurable evidence of the cost-effectiveness of MPC.
1.4. Contributions
- Real-time demonstration of an MPC-based energy management system on a medium-scale hybrid microgrid including 100 kW PV panels, 500 Ah batteries, 440 kW diesel generator, and 75 MVA utility connection.
- Detailed MPC formulation incorporating operating constraints such as classification of critical and non-critical load (400 kW + 41 kW), fuel economy, and battery aging effect.
- Testing under ten realistic stress conditions, including PV power loss, battery faults, diesel generator faults, grid price fluctuations, and multi-step load changes or generation adjustments.
- Demonstration of enhanced performance, in terms of cost saving, power balancing, and robustness, compared to conventional rule-based control methods.
2. Proposed Methods
3. Problem Formulation
- The operational cost of the diesel generator.
- The cost of financial benefits associated with power import/export through trading with the utility.
- Penalty terms for deviations from desired operation, including
- ▪
- Unserved power demand (load shedding);
- ▪
- Deviation from the target battery SoC;
- ▪
- Unused available solar energy.
3.1. PV Generation Model
3.2. Battery Energy Storage System Model
3.3. Grid Power Model
3.4. Diesel Generator Model
3.5. Objective Function
3.6. Implementation Strategy
- Solve the optimal problem for the 24 h prediction horizon ();
- Implement only the first control action corresponding to the immediate 1 h control horizon ();
- Update system states based on real-time measurements and repeat the procedure at the next step.
4. Overview of the System: KBU Demir Çelik Campus Microgrid
4.1. System Architecture and Components
4.2. Operational Challenges
5. Simulation and Results
5.1. Scenario 1 (Baseline)
5.2. Scenario 2 (Load Increased to 150%)
5.3. Scenario 3 (Increased Price of Grid Power, Cost Increased to 150%)
5.4. Scenario 4 (Diesel Generator Fails, Battery and Solar Compensate)
5.5. Scenario 5 (Diesel Generator Failure)
5.6. Scenario 6 (Load Increase from 50% to 150% Beyond Grid Limits from 50% to 150%)
5.7. Scenario 7 (Sudden Increase in Grid Price)
5.8. Scenario 8 (Grid Failure)
5.9. Scenario 9 (Battery Failure)
5.10. Scenario 10 (PV Generation Drop)
6. Conclusions
- ▪
- Up to 43% reduction in operational cost compared to baseline control strategies.
- ▪
- Less than 5% critical load is unsupplied in all scenarios, maintaining high system reliability.
- ▪
- Grid dependency reduced by 40–70% during periods of high electricity prices.
- ▪
- The system-maintained stability and feasibility even under combined stress conditions.
7. Future Work
- Integration of electric vehicle (EV) charging infrastructure into the MPC framework to enable vehicle-to-grid (V2G) interaction, including investigations of real-world EV charging profiles, peak/off-peak usage, and controlled charging/discharging strategies.
- Development of stochastic MPC with renewable forecasting to improve performance under uncertainty, using scenario-based simulations that consider multiple renewable energy sources integration and load variations.
- Enhancement of cyber-physical security to ensure resilience against data tampering and communication-based attacks, including testing against defined attack scenarios such as false data injection, denial-of-service, and delayed measurements.
- Hardware-in-the-loop (HIL) implementation for controller performance testing in near real-time, using physical prototypes and realistic operational conditions to validate system responses.
- Investigating lifecycle costs, long-term battery degradation, and carbon emission reductions to provide a better economic evaluation.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Maghami, M.R.; Pasupuleti, J.; Ekanayake, J. Energy storage and demand response as hybrid mitigation technique for photovoltaic grid connection: Challenges and future trends. J. Energy Storage 2024, 88, 111680. [Google Scholar] [CrossRef]
- Sasidhar, P.R.S.; Gebremedhin, A.; Norheim, I. Multi-energy microgrid design and the role of coupling components—A review. Renew. Sustain. Energy Rev. 2025, 216, 115540. [Google Scholar] [CrossRef]
- Firoozi, A.A.; Firoozi, A.A.; Maghami, M.R. Harnessing photovoltaic innovation: Advancements, challenges, and strategic pathways for sustainable global development. Energy Convers. Manag. X 2025, 27, 101058. [Google Scholar] [CrossRef]
- Maghami, M.R. The Role of Solar Energy in Mitigating the Impact of EV Charging Modes on Distribution Networks. Results Eng. 2025, 27, 106009. [Google Scholar] [CrossRef]
- Yaghoubi, E.; Yaghoubi, E.; Yusupov, Z.; Maghami, M.R. A Real-Time and Online Dynamic Reconfiguration against Cyber-Attacks to Enhance Security and Cost-Efficiency in Smart Power Microgrids Using Deep Learning. Technologies 2024, 12, 197. [Google Scholar] [CrossRef]
- Wazirali, R.; Yaghoubi, E.; Abujazar, M.S.S.; Ahmad, R.; Vakili, A.H. State-of-the-art review on energy and load forecasting in microgrids using artificial neural networks, machine learning, and deep learning techniques. Electr. Power Syst. Res. 2023, 225, 109792. [Google Scholar] [CrossRef]
- Yaghoubi, E.; Yaghoubi, E.; Yusupov, Z.; Rahebi, J. Real-time techno-economical operation of preserving microgrids via optimal NLMPC considering uncertainties. Eng. Sci. Technol. Int. J. 2024, 57, 101823. [Google Scholar] [CrossRef]
- Nguyen, T.-T.; Yoo, H.-J.; Kim, H.-M. Application of model predictive control to BESS for microgrid control. Energies 2015, 8, 8798–8813. [Google Scholar] [CrossRef]
- Babqi, A.J.; Yi, Z.; Etemadi, A.H. Centralized finite control set model predictive control for multiple distributed generator small-scale microgrids. In Proceedings of the 2017 North American Power Symposium (NAPS), Morgantown, WV, USA, 17–19 September 2017; pp. 1–5. [Google Scholar] [CrossRef]
- Garayalde, E.; Aizpuru, I.; Iraola, U.; Sanz, I.; Bernal, C.; Oyarbide, E. Finite control set MPC vs continuous control set MPC performance comparison for synchronous buck converter control in energy storage application. In Proceedings of the 2019 International Conference on Clean Electrical Power (ICCEP), Otranto, Italy, 2–4 July 2019; pp. 490–495. [Google Scholar] [CrossRef]
- Dragičević, T. Model predictive control of power converters for robust and fast operation of AC microgrids. IEEE Trans. Power Electron. 2017, 33, 6304–6317. [Google Scholar] [CrossRef]
- Koushki, M.M.; Ayoubi, E.; Miveh, M.R.; Ghadimi, A.A. A model predictive control for a four-leg inverter in a stand-alone microgrid under unbalanced condition. In Proceedings of the 2021 12th Power Electronics, Drive Systems, and Technologies Conference (PEDSTC), Tabriz, Iran, 2–4 February 2021; pp. 1–5. [Google Scholar] [CrossRef]
- Barrios, L.A.; Valerino, J.B.; del Nozal, A.R.; Escano, J.M.; Martinez-Ramos, J.L.; Gonzalez-Longatt, F. Stochastic unit commitment in microgrids based on model predictive control. In Proceedings of the 2018 International Conference on Smart Energy Systems and Technologies (SEST), Seville, Spain, 10–12 September 2018; pp. 1–5. [Google Scholar] [CrossRef]
- Pandey, M.; Winkler, D.; Sharma, R.; Lie, B. Using MPC to balance intermittent wind and solar power with hydro power in microgrids. Energies 2021, 14, 874. [Google Scholar] [CrossRef]
- Mehmood, F.; Khan, B.; Ali, S.M.; Rossiter, J.A. Distributed MPC for economic dispatch and intermittence control of renewable based autonomous microgrid. Electr. Power Syst. Res. 2021, 195, 107131. [Google Scholar] [CrossRef]
- Karami, Z.; Shafiee, Q.; Khayat, Y.; Yaribeygi, M.; Dragičević, T.; Bevrani, H. Decentralized model predictive control of DC microgrids with constant power load. IEEE J. Emerg. Sel. Top. Power Electron. 2019, 9, 451–460. [Google Scholar] [CrossRef]
- Alarcón, M.A.; Alarcón, R.G.; González, A.H.; Ferramosca, A. Economic model predictive control for energy management of a microgrid connected to the main electrical grid. J. Process Control 2022, 117, 40–51. [Google Scholar] [CrossRef]
- Joshal, K.S.; Gupta, N. Microgrids with model predictive control: A critical review. Energies 2023, 16, 4851. [Google Scholar] [CrossRef]
- Hasani, A.; Heydari, H.; Golsorkhi, M.S. Enhancing microgrid performance with AI-based predictive control: Establishing an intelligent distributed control system. IET Gener. Transm. Distrib. 2024, 18, 2499–2508. [Google Scholar] [CrossRef]
- Jacob, E.; Farzaneh, H. Decentralized model predictive control of hybrid renewable microgrids for maximizing the power extraction and enhancing system operation, using a novel enumeration based-weighting factor determination method. Results Eng. 2025, 26, 105477. [Google Scholar] [CrossRef]
- Thaler, B.; Posch, S.; Wimmer, A.; Pirker, G. Hybrid model predictive control of renewable microgrids and seasonal hydrogen storage. Int. J. Hydrogen Energy 2023, 48, 38125–38142. [Google Scholar] [CrossRef]
- Halivor, J.X. Model predictive control–based robust-control strategy of distribution control for a grid-connected AC microgrid. Front. Smart Grids 2023, 2, 1188074. [Google Scholar] [CrossRef]
- Yusupov, Z.; Almagrahı, N. Techno-economic and environmental analysis of microgrid: A case study of Karabuk University. Sigma J. Eng. Nat. Sci. 2023, 41, 758–769. [Google Scholar] [CrossRef]
- Altınkaya, H. Elektrikli Araç Şarj İstasyonlarının Elektrik Şebekesine Entegrasyonu: OYF, LHÖ ve YSA ile Karabük Üniversitesi Yerleşkesi Durum Çalışması. Fırat Üniversitesi Mühendislik Bilim. Derg. 2025, 37, 15–36. [Google Scholar] [CrossRef]
- Parisio, A.; Rikos, E.; Glielmo, L. Stochastic model predictive control for economic/environmental operation management of microgrids: An experimental case study. J. Process Control 2016, 43, 24–37. [Google Scholar] [CrossRef]
- Naderi, Y.; Hosseini, S.H.; Savaghebi, M.; Dahidah, M.; Guerrero, J.M. Multi-objective model predictive control for microgrid applications. Int. J. Electr. Power Energy Syst. 2023, 154, 109441. [Google Scholar] [CrossRef]
- Kumar, K.; Kwon, S.; Bae, S. Deep reinforcement learning-based control strategy for integration of a hybrid energy storage system in microgrids. J. Energy Storage 2025, 108, 114936. [Google Scholar] [CrossRef]
Criteria | [20] | [21] | [22] | This Study |
---|---|---|---|---|
Type of Study | Simulation in a DC MG (500 VDC) | Data-driven simulation with Digital Twin | Simulation in AC MG—MATLAB | Real implementation in a university microgrid |
Main Focus | Optimization of DC bus power and voltage control using CCS-MPC + new weighting method | Annual energy management with seasonal H2 storage | Power quality improvement (THD reduction) and robustness against unbalanced loads | Real-time economic and operational management |
Energy Sources | PV + Wind + BESS (with DC/DC converters) | PV + BESS + H2 + thermal storage + DSM | (PV/Wind/Hydro) + unbalanced load | PV + BESS + Diesel + main grid |
Control Method | Continuous Control Set MPC (CCS-MPC) + new numerical weighting method | MPC + Digital Twin + heuristic rules | MPC for THD reduction and power quality stability | Real-time economic MPC (24 h prediction horizon, 1 h control) tested in 10 real scenarios |
Optimization Goals | High-accuracy power tracking (99.96%), ripple reduction, improved PV/Wind extraction | Meet annual load with H2 balance, reduce extra capacity | Reduce THD, improve voltage/current under dynamic loads | Cost reduction, lower grid dependency, ensure critical load supply |
Key Results | Improved power extraction: +2.19% PV, +3.46% Wind; more stable than PI control | Annual load met with 6% oversizing | THD improvement up to 90% compared to previous methods | Cost reduced up to 43%, grid dependency reduced up to 70%, <5% critical load unsupplied |
Main Innovation | Introduced new numerical weighting method for CCS-MPC in DC microgrid | Introduced seasonal hydrogen storage in MPC framework | Focus on power quality (THD) in AC microgrid | Real-world implementation under complex operational scenarios |
Scalability/Applicability | Suitable for small/medium DC microgrids | Suitable for large seasonal systems | Suitable for laboratory/simulation power quality analysis | Suitable for real urban/campus microgrids |
Parameter | Value | Rationale |
---|---|---|
Prediction horizon (TP) | 24 h | To capture full daily variability of PV, load, and price |
Control horizon (TC) | 1 h | Ensures real-time adaptability with updated measurements |
Battery SoC limits | 20–90% | Prevent deep discharge and extend battery lifetime |
Diesel generator min load | 20% rated | Avoid low-load inefficiency and wet stacking |
Weights on critical load penalty | Hight (Q = 1000) | Ensure minimum unserved load |
Weights on critical load penalty | Medium (Q = 100) | Allow flexible curtailment if necessary |
Grid import/export limits | 1 MW | Based on feeder and protection constraints |
KBU Building | Power Capacity of PV (kW) |
---|---|
Gym | 50 |
Vocational School of Foreign Languages | 250 |
Vocational School of Information Technologies | 300 |
Theology Faculty | 100 |
Faculty of Economics and Administrative Sciences | 300 |
Engineering Faculty | 100 |
Parameters | Value |
---|---|
PV generation | 100 kW |
BESS | 500 Ah |
Diesel generator | 440 kW |
Inverter | 60 kW |
Critical and non-critical loads | 680 kW |
Utility grid | 75 MVA |
Scenario | Grid Dependency Reduction (%) | Cost Reduction (%) | Unused Critical Load (%) |
---|---|---|---|
Scenario 1 | 0% (Reference) | 0% | 0% |
Scenario 2 | < | ||
Scenario 3 | < | ||
Scenario 4 | < | ||
Scenario 5 | < | ||
Scenario 6 | (At peak load) | < | |
Scenario 7 | < | ||
Scenario 8 | N/A | < | |
Scenario 9 | < | ||
Scenario 10 | < |
Approach | Cost Reduction (%) | Grid Dependency Reduction (%) | Unserved Critical Load (%) |
---|---|---|---|
Proposed Strategy | 43 | 40–70 | <5 |
Stochastic Optimization [25] | 25–35 | 30–55 | 5–8 |
Distributed MPC [26] | 20–40 | 35–60 | 5–7 |
AI-based Controllers [27] | 30–40 | 32–58 | 5–7 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Amar, A.; Yusupov, Z. Real-Time Capable MPC-Based Energy Management of Hybrid Microgrid. Processes 2025, 13, 2883. https://doi.org/10.3390/pr13092883
Amar A, Yusupov Z. Real-Time Capable MPC-Based Energy Management of Hybrid Microgrid. Processes. 2025; 13(9):2883. https://doi.org/10.3390/pr13092883
Chicago/Turabian StyleAmar, Abdellfatah, and Ziyodulla Yusupov. 2025. "Real-Time Capable MPC-Based Energy Management of Hybrid Microgrid" Processes 13, no. 9: 2883. https://doi.org/10.3390/pr13092883
APA StyleAmar, A., & Yusupov, Z. (2025). Real-Time Capable MPC-Based Energy Management of Hybrid Microgrid. Processes, 13(9), 2883. https://doi.org/10.3390/pr13092883