Next Article in Journal
Study on the Unsteady Pressure Fluctuations and Radial Forces in a Vaned-Diffuser Heavy-Liquid-Metal Centrifugal Pump
Next Article in Special Issue
Development of a Hybrid Modeling Framework for the Optimal Operation of Microgrids
Previous Article in Journal
Exploring the Green Horizon: Recent Research on Renewable Energy in Poland—A Review
Previous Article in Special Issue
DC Microgrid Deployments and Challenges: A Comprehensive Review of Academic and Corporate Implementations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids

Energy IT Convergence Research Center, Korea Electronics Technology Institute, 25 Saenari-ro, Bundang-gu, Seongnam-si 13509, Gyeonggi-do, Republic of Korea
*
Author to whom correspondence should be addressed.
Energies 2025, 18(7), 1696; https://doi.org/10.3390/en18071696
Submission received: 4 March 2025 / Revised: 18 March 2025 / Accepted: 24 March 2025 / Published: 28 March 2025
(This article belongs to the Special Issue Advances in Power Distribution Systems)

Abstract

:
This paper presents a model predictive control (MPC)-based energy management system (EMS) for optimizing cooperative operation of networked microgrids (MGs). While the isolated operation of individual MGs limits system-wide optimization, the proposed approach enhances both stability and efficiency through integrated control. The system employs mixed-integer quadratic constrained programming (MIQCP) to model complex operational characteristics of MGs, facilitating the optimization of interactions among distributed energy resources (DERs) and power exchange within the MG network. The effectiveness of the proposed method was validated through a series of case studies. First, the performance of the algorithm was evaluated under various weather conditions. Second, its robustness against prediction errors was tested by comparing scenarios with and without disturbance prediction. Finally, the cooperative operation of MGs was compared with the independent operation of a single MG to analyze the impact of the cooperative approach on performance improvement. Quantitatively, integrating predictions reduced operating costs by 19.23% compared to the case without predictions, while increasing costs by approximately 3.7% compared to perfect predictions. Additionally, cooperative MG operation resulted in an average 46.18% reduction in external resource usage compared to independent operation. These results were verified through simulations conducted on a modified version of the IEEE 33-bus test feeder.

1. Introduction

1.1. Research Background and Motivation

The increasing severity of climate change has highlighted the need for a structural transformation of global power systems to reduce greenhouse gas emissions and achieve sustainable development [1]. Consequently, the traditional fossil fuel-driven, vertically integrated energy industry is transitioning to decentralized, horizontal energy industries such as MGs, which leverage small-scale distributed resources. MGs, particularly those utilizing renewable energy resources such as photovoltaic (PV) systems and wind turbines (WT), are increasingly recognized as a solution to both promote the use of green energy and address broader environmental issues. Beyond reducing greenhouse gas emissions, these transformations can lead to a comprehensive restructuring of power systems, including the integration of energy storage systems (ESSs). A MG is defined as a smart power system that includes loads, distributed generators (DGs), and ESSs, all grouped together within a limited geographic area [2,3]. MGs have long been recognized as effective solutions for integrating these power sources into conventional power systems without causing significant disruptions [4]. In MGs, consumers can independently manage both their energy demand and surplus energy through a bidirectional communication platform and control devices [5]. MGs can either be connected to the main grid or operate autonomously. When connected to the main grid, MGs can receive additional power from the grid. However, from the perspective of sustainable development, purchasing energy from the main grid, especially when the energy is generated from non-renewable resources, should be regulated within certain limits [6]. Independent MGs must maintain sufficient levels of DGs and ESSs to enhance system reliability and ensure the quality of local loads. However, MGs based on renewable energy face operational challenges due to the intermittency and forecast uncertainty of renewable power generation [7]. To address these challenges, networking neighboring MGs has been identified as a feasible solution. According to [8,9], energy exchange and cooperation between MGs can improve the overall reliability and stability of the system.

1.2. Related Works

The study of interconnected MGs is an active and rapidly evolving research field. Recent studies have suggested that cooperative operational strategies can provide higher efficiency and economic benefits compared to the operation of a single MG. Various algorithms and optimization models have been proposed for energy management in multiple MGs (MMG). Ref. [10] introduced a centralized control model for optimal energy management in MG networks using a linear quadratic Gaussian problem formulation. The study aimed to minimize power exchanges between MGs and optimize local energy storage operations. Ref. [11] proposed a coordinated energy management strategy for networked MGs in distribution systems by formulating a stochastic bi-level optimization problem, with the distribution network operator at the upper level and MGs at the lower level. This study assumed the presence of both dispatchable and non-dispatchable DGs within the networked MGs. By transforming the nonlinear convex optimization problem into a mixed-integer linear programming formulation, the study improved computational feasibility. Ref. [12] addressed decentralized control in MG networks by enabling power exchanges between MGs to maintain local storage levels around predefined reference values. This approach employed a linear quadratic control framework, ensuring computational efficiency even in MMG systems. An integrated approach combining MG load dispatch and network reconfiguration was presented in [13], utilizing power-flow techniques to minimize the total operational cost of distribution networks incorporating MMGs. Ref. [14] proposed a decentralized optimal control algorithm for distribution management systems by modeling distribution networks as interconnected MGs. By formulating the optimal control problem as a decentralized partially observable Markov decision process, this study enabled MGs to autonomously optimize their operations while coordinating with other MGs. Ref. [15] proposed an optimal energy management strategy for cooperative MMG communities using sequentially coordinated operations. This strategy distributes computational efforts to enable optimal 24 h energy management while reducing unnecessary external trading costs. The framework integrates combined heat and power systems with ancillary internal trading mechanisms, facilitating cost-effective energy management within the MMG community. Ref. [16] proposes a hierarchical decision-making model for MMG energy management through bi-level programming. In this study, two operational models, centralized and decentralized, are presented to simulate the interaction between the MG aggregator (MA), which is the entity managing the MMGs, and the electricity market.

1.3. Research Objectives

Energy management in MGs is typically configured using offline day-ahead optimization methods, where operational plans for the following day are scheduled through a single optimization process. This method assumes perfect prediction and is modeled as an open-loop system, making it vulnerable to forecast errors. Consequently, it struggles to effectively respond to the output variability of renewable energy sources (RESs) and load demand uncertainties in real-time operating environments. Therefore, schedules generated by this static approach are likely to fail in maintaining optimal conditions in real-time scenarios where unexpected variations may occur, making them unsuitable for real-time EMSs. An alternative approach is rolling optimization, which dynamically adjusts schedules according to real-time conditions. In MG operations, MPC strategies are primarily used for rolling optimization [17,18,19]. In the MPC approach, control actions are calculated online based on system states and predictions, rather than relying on offline static control results. MPC features a closed-loop control structure, continuously adjusting control actions to compensate for forecast uncertainties. Thus, MPC is effective in formulating optimal control problems where system uncertainties exist and multi-step sequential decision-making is required.
In this paper, we propose an MPC-based cooperative EMS that extends the capabilities of conventional MPC by integrating cooperative control mechanisms. Specifically, we present a control architecture and multi-objective optimization model for a renewable energy-based MG network managed by a cooperative global central controller. The MPC approach is recognized as an optimal control method for centralized management in MG operations because it can robustly handle multi-input, multi-output functions and operational constraints [20,21]. MPC integrates predictions of future system behavior, making it particularly effective for renewable energy-based MGs and load forecasting [22]. This method utilizes forecast information on renewable generation, electrical load demand, and electricity market prices in each control step, solving the problem using a rolling horizon approach. This enables the system to manage dynamic changes and uncertainties, periodically optimizing power distribution among all controllable units to promote sustainable energy management strategies within the MG [23]. Many studies have reported that predictive model-based methods in MG operations contribute to cost minimization by reducing operational costs and enabling optimal economic scheduling [24,25,26].
This research aims to address power control issues within MG networks and maximize RES utilization to enhance the reliability of the entire network. Additionally, it explores how cooperative operational strategies between interconnected MGs can improve power system stability and economic efficiency. The focus of this paper is to achieve effective power control both locally within MGs and across the entire MG network through real-time power flow management and integrated operation of DERs, while considering uncertainties in renewable energy generation and load demand. This integrated MPC approach can effectively balance multiple objectives through appropriate parameter tuning [27]. In this paper, the multi-objective optimization problem is transformed into a single-objective optimization using a scalarization technique, specifically the cost summation method [28]. In this process, each component of the objective vector represents the cost function of an individual MG. The goal of the optimization is to minimize the total cost incurred in the MG network. This paper guarantees Pareto equilibrium by formulating a single-objective optimization that minimizes the sum of the operation costs of individual MGs, which corresponds to the sum of the components that make up the objective vector. However, this total cost minimization approach may not provide a unique solution for the optimization variables. The ratio of purchased/sold power between MGs and the main grid can be adjusted in specific solutions, which may not affect the total cost but can impact individual MG costs. To address the issue of redundancy and ensure consistent decision-making in the optimization process, a cost function related to power trading is incorporated into the formulation. This function prioritizes local optimization within each MG, thereby maintaining the integrity and efficiency of the overall optimization problem while promoting fair and equitable power distribution across the network. This paper addresses important practical considerations in MG operations. First, it provides greater operational flexibility to each MG through power exchange with neighboring MGs. Second, it ensures maximum utilization of renewable energy generated across the network. Third, it ensures that local loads can be met with minimal interaction with the main grid.
To the best of our knowledge, research considering a detailed and comprehensive MPC approach for the cooperative optimization of renewable energy-based MG networks remains a relatively new field of study. Moreover, most existing studies assume that all generators and loads within a MG are connected to a single bus, neglecting distribution network constraints such as voltage limits. As a result, the schedules obtained through these methods are unreliable and difficult to implement in real-world systems. This paper aims to bridge this important research gap in the literature. The main contributions of this thesis are summarized as follows.
  • A global centralized control model has been established to efficiently manage a MG network consisting of multiple DERs and loads. Each MG is designed as a renewable energy-based MG, incorporating microturbine (MT), ESS, and local-scale power generation from RES. The complex operational characteristics and components within the MGs are mathematically formulated as constraints using MIQCP, designed to be adaptable to distribution networks of any scale.
  • A synthetic forecasting technique has been proposed to generate renewable energy generation forecasting scenarios. Specifically, the probability distribution of prediction error is calculated, and added to actual generation to generate synthetic forecasting scenarios. By adjusting the added error distribution, different levels of forecast error can be simulated, allowing the robustness of the controller to be quantitatively evaluated. This method eliminates the impact of modeling errors in the forecasting module on subsequent analysis, enabling more accurate system optimization and decision-making. As a result, it distinguishes itself from conventional time series-based forecasting methods.
  • MPC is employed to schedule and manage energy exchanges at the network level. All controllable devices within the MG network are optimized on a rolling basis, establishing a cooperative control framework among interconnected MGs. The proposed MPC-based cooperative EMS adopts an integrated approach that coordinates MGs within local energy systems to achieve common goals. The primary control objectives are to minimize the total operating costs, reduce energy exchanges with the main grid as much as possible, and maintain the power balance within the system.
The rest of this paper is organized as follows. Section 2 describes the proposed MMG system model and the architecture of the MPC-based EMS. Section 3 explains the method for generating synthetic forecasting scenarios of RES, incorporating realistic prediction errors. Section 4 formulates the optimization problem for power scheduling in the network of MGs. Section 5 discusses the simulation results. Finally, the conclusion is presented in Section 6.

2. System Architecture

In an MMG system, each MG operates autonomously, but can perform cooperative operations with interconnected MGs when necessary. The MMG system, as illustrated in Figure 1, supports energy management under various operating conditions through this cooperative operation. Each MG is responsible for meeting its local energy demand, and when surplus energy is generated, it can either be stored in an ESS or transmitted to neighboring MGs. This flexible design allows the system to support energy production and consumption across various scenarios, dynamically adjusting according to supply and demand conditions. The energy exchange between MGs is optimized through an EMS, where each MG continuously monitors its status and maintains OPF in real time. This approach effectively manages the complex interactions that can occur within interconnected MG networks, enhancing system stability and operational efficiency.
The main objective of the EMS is to effectively maintain the power balance within the MG, which involves not only managing energy surpluses or deficits but also incorporating additional functions based on economic or operational criteria. The EMS functions as a global central control agent, enabling the optimal operation of each MG within the network while managing power coordination and exchange with regard to the relationships with the main power grid and interconnected MGs. The EMS provides high-level control by generating appropriate setpoints for all controllable devices within the system, optimizing the overall benefits of the MG network while meeting forecasted loads. Local agents within each MG include RES, MT, ESS, and load, which continuously respond to coordinated energy management commands issued by the higher-level EMS to maintain power balance. Generation of RES, electrical load demand, and electricity market price are uncertain disturbances, and their forecasts are continuously updated by the EMS based on information received from each MG.
Figure 2 illustrates the communication architecture of the EMS, designed for the optimization and management of DERs within a MG. This architecture supports real-time power scheduling, DER control, and participation in the electricity market, effectively addressing the operational and economic challenges of active distribution system management. At the communication interface, the RESTful API requests structured data in JSON format from external servers. The market server provides the daily scheduled locational marginal prices (LMP) for energy trading optimization, while the load server supplies real-time measurements and the forecasted power usage data for the following day. Additionally, the renewable RES scenario generator uses historical data in HDF5 format, including time-series records of solar and wind power generation, to generate synthetic forecasts. The network handler constructs the MG network model based on system configuration. This model follows object-oriented design principles and includes individual objects representing buses, lines, and DERs to represent the physical structure of the system. These inputs are processed and integrated by the process module. The module serves as an integration interface, ensuring consistency and alignment between all forecasted and static data required for optimization tasks.
In the MPC approach, control actions are computed online based on the system state and predictions, without relying on offline static control results. The optimization model generates a sequence of control actions over a finite time horizon at each time step, but only the first step is implemented. This method operates using a rolling horizon approach, updating the available information for each MG at the next time step. The system then progresses to the next time step based on the updated state and future information, repeating the same process.
The optimization module presented in Figure 3 performs rolling horizon control, which is handled by an OPF model designed to optimize the objective function while managing operational constraints. The OPF model receives uncontrolled variables, such as renewable energy variability and load disturbances, as well as controlled variables, such as DER output and energy storage operations. The OPF model effectively manages computational complexity, and the MIQCP problem, which includes nonlinear constraints and discrete decision variables, is solved by the optimization solver Gurobi [29]. By iteratively updating its control schedule based on real-time feedback and updated forecasts, the model predictive controller ensures robust and adaptive decision-making under dynamic grid conditions. This interface facilitates seamless communication, enabling the exchange of system measurements and optimal control variables.
MPC features a closed-loop control structure, continuously adjusting control actions to compensate for forecast uncertainties. Thus, MPC is effective in formulating optimal control problems when system uncertainties exist and multi-step sequential decision-making is required. The MPC setup for optimal control problems employs a dynamic control horizon, advancing the control horizon by one step in each control iteration. The process of solving the proposed MPC-based power scheduling problem is diagrammatically represented in Figure 4. The proposed MPC schedules a 24 h period, with the prediction horizon set to 6 h and the control horizon set to 1 h.

3. Synthetic Forecasting Method

The generation of renewable energy is highly influenced by natural environmental factors, making accurate prediction a very challenging task. This uncertainty is likely to result in forecasting errors, which can significantly impact decision-making processes related to distribution system optimization. Therefore, to minimize the effect of forecasting errors on system performance, it is essential to appropriately adjust and manage the level of prediction error. In this section, we propose a method for generating synthetic forecasts that reflects various error levels based on actual renewable energy generation. The proposed method generates synthetic forecasts by adding probabilistic errors that follow predefined error distributions to the actual observations. Specifically, it is designed so that the forecasting error accumulates over time, resulting in larger errors for future time points compared to the present. The synthetic forecasts generated through this method more accurately mimic real-world conditions and minimize errors caused by the limitations of forecasting models. In this study, this method was employed to construct forecast scenarios that reflect various error levels, and the controller’s performance was quantitatively evaluated under different error conditions. The following two subsections will provide detailed explanations of the error distribution modeling method and the procedure for generating power forecast scenarios based on error levels. This method offers a tool for systematically considering forecasting uncertainty in power system operations, presenting the potential to enhance the flexibility and reliability of operational planning and control strategies.

3.1. Error Distribution Model

The goal of our study is to develop a stochastic process model that can adequately represent the uncertainty of forecasts while considering non-stationarity and physical constraints. The first step in the synthetic scenario generation process is mathematically modeling the probability distribution of the forecast errors. Forecast errors tend to accumulate over time, and as errors from each time step add up, the total error in multi-step forecasts gradually increases as time progresses. In this study, to realistically reflect the uncertainty in renewable energy generation forecasts, the forecast error e i at each time step is sampled from a normal distribution N μ , σ 2 . We assume the forecast is unbiased, meaning that there is neither overestimation nor underestimation. Thus, the mean μ of the forecast error is set to 0. The standard deviation is set to reflect the size of the error accumulated at each time step, capturing the phenomenon where forecast uncertainty increases over time. These forecast errors accumulate to form the total forecast error S n = i = 1 n e i , which follows a folded normal distribution. A folded normal distribution is expressed as the absolute value of a normally distributed variable, allowing the expected value of the accumulated error to reach a predefined error level ε . Specifically, to ensure that the expected value of the absolute accumulated forecast error E S n satisfies the target error level ε , the following condition must be met:
E S n = σ 2 n π = ε
Thus, the standard deviation σ is determined based on the target error level ε as σ = ε π / 2 n , and the forecast error e i follows a normal distribution N 0 , ε π / 2 n 2 , where, n represents the number of time steps, and the standard deviation σ decreases as the forecast period n increases, ensuring that the absolute value of the accumulated error over the entire forecast period reaches the target error level ε . The probability density functions of the proposed probabilistic error model are presented in Figure 5. This mathematical approach allows us to model how forecast errors accumulate over time and how their results reach a specific target level.

3.2. Generation of Synthetic Forecasting Scenarios

We now describe the process of generating probabilistic renewable energy generation scenarios based on the estimated forecast error distribution. To generate a synthetic forecast, it is necessary to add errors to actual generation to simulate realistic forecast scenarios. This process plays an important role in simulating various situations that may occur in actual operating environments by integrating the variability of renewable energy systems and the uncertainty of forecasts. This method allows for the emulation of forecasts with different error levels without the need for complex prediction modeling. Given the forecast horizon t and the output percentage of actual generation during the forecast period P 1 : t = p 1 , p 2 , p 3 , , p t , the synthetic forecast P ^ 1 : t = p 1 , p ^ 2 , p ^ 3 , , p ^ t is generated at each step by adding synthetic forecast errors as follows:
p ^ j = a r g m i n y 0 , b j { | y ( p j + i = 1 j e i ) | } , j 2 , 3 , , t
The forecast error e i at each step is modeled as independent and identically distributed, following a normal distribution N ( 0 , ( ε π / 2 t ) 2 ) , where a r g m i n is a function that ensures the forecast remains within feasible upper and lower bounds. In renewable energy generation, the support range of the probability distribution cannot include negative generation values or values that exceed the installed capacity, where b j is an estimated upper bound at step j . For WT, b j is equivalent to the installed capacity. Since the normalized output is used, this value remains constant at 1. In contrast to WT, for a PV system, b j is time-variant and is given by the power generation under clear-sky conditions at step j . The estimated maximum power output at each time step j is calculated based on the historical observed maximum solar power for each time period.
Through this process, synthetic forecasts that reflect the uncertainties that may arise in real operating environments can be generated. Figure 6 shows the daily wind and solar power scenarios generated using this method, which are compared with actual generation and forecasted generation provided by the National Renewable Energy Laboratory [30]. The error level ε is randomly selected between 0.1 and 0.3. This method incorporates forecast uncertainty across various scenarios, enabling system operators to develop more effective response strategies.

4. Problem Formulation

The control and management of networked MGs can be classified into two approaches: centralized and decentralized. In decentralized control, a multi-agent system is frequently utilized, where each MG interacts with autonomous agents that independently manage external power flows. However, the main challenge of decentralized control lies in efficiently achieving consensus among diverse agents. Local controllers focus on optimizing the benefits of individual MGs but may disregard the entire network behavior, leading to unpredictable outcomes. Due to the coupled nature of MGs, the local actions of one MG can influence the entire system, making it difficult to improve overall performance through collaboration among subsystems. In contrast, the centralized approach, as discussed in this study, manages and controls all MGs and the distribution system through a single control agent. Since all control actions are decided in one location, the solution is most suitable when the managing entity is a MA. This approach enables a coordinated decision-making process, where the central MG controller balances the supply and demand of all devices within the system.

4.1. System Constraints

In this section, we describe the proposed modeling configurations that ensure the optimization problem remains suitable for real-time computation. To solve the problem within the MMG system efficiently and with scalability, a robust optimization model was established using MIQCP. This approach effectively integrates complex, nonlinear constraints associated with power balance, voltage stability, and the operational limits of DERs. By formulating the OPF problem as a MIQCP, we achieved modeling of both continuous variables, such as power outputs, and discrete decisions, including the activation states of DERs and network reconfiguration options. This method enables optimal coordination among interconnected MGs, thereby enhancing system-wide efficiency and reliability. The MIQCP-based solution effectively manages dynamic interactions between generation, storage, and load demands, supporting resilient and cost-effective operations across MG networks.

4.1.1. Renewable Energy Sources

The inherently stochastic nature of RESs such as wind and solar complicates precise power output predictions. Consequently, forecasted power values, denoted as P ^ w t t and P ^ p v t for wind and PV systems, respectively, serve as substitutes for actual output levels. To manage variability, each RES can implement power curtailment, represented by curtailment ratios κ w t t and κ p v t , which lie within the range κ w t t , κ p v t 0 , 1 . These ratios specify the fraction of power curtailed relative to the forecasted values, allowing the system to dynamically adapt to fluctuations in resource availability. The curtailed power output is then expressed as:
P w t t = 1 κ w t t P ^ w t t
P p v t = 1 κ p v t P ^ p v t
where P w t t and P p v t denote the adjusted real power output for wind and PV generation, respectively, with curtailment ratios applied to maintain output within forecasted limits. In addition, the reactive power output of both wind and PV systems is constrained within specific bounds to ensure voltage stability and power quality. These bounds are defined as:
Q w t m i n Q w t t Q w t m a x
Q p v m i n Q p v t Q p v m a x
The reactive power Q is further limited by the rated apparent power S and the maximum active power P m a x of each resource. This constraint is represented by:
S 2 P m a x 2 Q S 2 P m a x 2
This constraint is particularly important for inverter-based RES systems, where active and reactive power capabilities are influenced by the inverter’s physical limitations and operational parameters.

4.1.2. Microturbine

MTs are integral to DG systems, offering operational flexibility to balance the intermittency of RESs and load variations. They enhance system stability and reliability by delivering both active and reactive power within defined operational constraints. At any given time t , the active and reactive power outputs of a MT, denoted as P m t t and Q m t t , must satisfy the following bounds:
P m t m i n P m t t P m t m a x
Q m t m i n Q m t t Q m t m a x
where P m t m a x and Q m t m a x denote the maximum allowable active and reactive power capacities of the MT, respectively. To account for the characteristics of the MT, the change in power generation between two consecutive time intervals is constrained as follows:
P m t t P m t t 1 r m t P m t m a x
where r m t is the ramping parameter, defined within the range r m t ( 0 , 1 ] . Each MT is assumed to have a fixed initial fuel supply at the beginning of the time horizon T . The total active power generated over T is constrained by k T P m t t + k | t t E m t . This constraint can be reformulated as a recursive relation by defining ς m t t as the remaining fuel in the MT at time t , leading to the following energy constraint:
ς m t t = ς m t t 1 P m t t t η m t , 0 ς m t t

4.1.3. Energy Storage System

The dynamics of the load and generators operate on significantly faster timescales and are therefore considered negligible relative to the EMS sampling interval. Consequently, the primary dynamics considered within the EMS are those of the ESS. To facilitate optimization, the ESS dynamics are modeled linearly. Since the ESS is capable of both supplying and absorbing power, discharge power injected into the grid is defined as positive, while charge power extracted from the grid is defined as negative.
The operational constraints on active and reactive power during charging and discharging of the ESS are defined as follows. The net power that the ESS exchanges with the MG, P e s t , is given by the difference between the discharge power P e s , d c h t and charge power P e s , c h t :
P e s t = P e s , d c h t P e s , c h t
The ESS’s active and reactive power during charging and discharging are subject to the following constraints:
0 P e s , c h t δ e s , c h t P e s , c h m a x
0 P e s , d c h t δ e s , d c h t P e s , d c h m a x
0 Q e s , c h t δ e s , c h t Q e s , c h m a x
0 Q e s , d c h t δ e s , d c h t Q e s , d c h m a x
where P e s , c h t and P e s , d c h t denote the active power during charging and discharging, and Q e s , c h t and Q e s , d c h t denote the corresponding reactive power. The binary variables δ e s , c h t and δ e s , d c h t , taking values in 0 , 1 , indicate whether the ESS is in charging or discharging mode, respectively, ensuring that power levels remain within the defined maximum capacities P e s , c h m a x , P e s , d c h m a x , Q e s , c h m a x , and Q e s , d c h m a x . To prevent simultaneous charging and discharging, the following mutual exclusivity constraint is applied:
δ e s , c h t + δ e s , d c h t 1
This ensures that only one operational mode can be active at any given time. The state of charge (SOC) of the ESS must be maintained within specific bounds to promote system stability and safety. This is enforced through the following constraint:
S O C e s m i n S O C e s t S O C e s m a x
The SOC is updated at each time step based on the ESS’s current charge and discharge power, accounting for both charging and discharging efficiencies. The SOC update equation is defined as:
S O C e s t = S O C e s t 1 + η e s , c h P e s , c h t C a p e s P e s , d c h t η e s , d c h C a p e s Δ t
where η e s , c h and η e s , d c h represent the charging and discharging efficiencies, respectively, and C a p e s is the rated capacity of the ESS. The update equation reflects the net change in energy storage over each time interval Δ t , ensuring that the SOC accurately reflects the ESS’s current energy state.

4.1.4. Load

To maintain the stability of the power system, the active and reactive power demands of loads must be balanced with the system’s supply capacity. In scenarios where the generation is insufficient or renewable energy output fluctuates, load reduction or adjustment through demand response (DR) programs can be implemented. This approach enables adaptive load control, which improves system reliability when demand exceeds supply capacity. In this study, the active load P l o a d t and reactive load Q l o a d t , adjusted through DR, are defined as follows:
P l o a d t = ρ t P d e m a n d t
Q l o a d t = ρ t Q d e m a n d t
where P d e m a n d t and Q d e m a n d t represent the active and reactive power demands at time t , and ρ t is the DR factor, indicating the proportion of the demand that is met after adjustment. The ρ t lies within the range ρ t 0 , 1 , with values close to 1 indicating a higher proportion of demand being met and lower values indicating greater demand reduction. In instances where DR leads to reduced power delivery, the unmet power demands, representing load shedding, are given by the following expressions:
P s h e d t = P d e m a n d t P l o a d t
Q s h e d t = Q d e m a n d t Q l o a d t
where P s h e d t and Q s h e d t denote the active and reactive power that are not supplied to the loads due to DR adjustments. This shed power represents the quantity of load curtailed to maintain grid balance, especially under constrained generation conditions.

4.1.5. Power Grid

When a MG operates in grid-connected mode, it has the ability to conduct power transactions with the main grid, either by purchasing or selling power depending on system requirements and market conditions. These interactions are essential for optimizing the economic performance of the system. The net power transacted with the main grid is modeled as follows:
P g r i d t = P p u r t P s a l e t
where P p u r t represents the power purchased from the main grid at time t , and P s a l e t represents the power sold to the main grid. Both are limited by the maximum allowable transaction capacity P g r i d m a x , constrained as follows:
0 P p u r t δ p u r t P g r i d m a x
0 P s a l e t δ s a l e t P g r i d m a x
To ensure that the system operates exclusively in either a purchasing or selling state at any given time t , the binary variables δ p u r t and δ s a l e t , which take values in 0 , 1 , are employed. Specifically, δ p u r t = 1 indicates that power is being purchased from the main grid, while δ s a l e t = 1 signifies that power is being sold. This setup enforces a strict operating mode, preventing simultaneous purchasing and selling actions by ensuring that only one of these variables can be active (equal to 1) at a time:
δ p u r t + δ s a l e t 1
For reactive power transactions, the reactive power exchanged with the main grid, Q g r i d t , is also constrained within specified bounds:
Q g r i d m i n Q g r i d t Q g r i d m a x
where Q g r i d m i n and Q g r i d m a x represent the minimum and maximum allowable reactive power capacities, respectively. These bounds on active and reactive power in main grid transactions ensure that the MG maintains effective power exchanges within operational limits.

4.1.6. Power Flow-Constrained Energy Balance

The power flow within the MG network is characterized by the difference between imported and exported power between nodes. The active power flow P i j t from node i to node j at time t is defined as:
P i j t = P i m p o r t , i j t P e x p o r t , i j t
where P i m p o r t , i j t represents the power imported to node i from node j , and P e x p o r t , i j t represents the power exported from node i to node j . This expression models the direction and magnitude of power flow as the difference between imported and exported power. Both P i m p o r t , i j t and P e x p o r t , i j t are constrained by the maximum capacity of the line, P i j m a x , as follows:
0 P i m p o r t , i j t δ i m p o r t , i j t P i j m a x
0 P e x p o r t , i j t δ e x p o r t , i j t P i j m a x
To ensure that power is either imported or exported, but not both simultaneously at any given time t , the system uses binary variables δ i m p o r t , i j t and δ e x p o r t , i j t , which take values in 0 , 1 . Specifically, δ i m p o r t , i j t = 1 allows power import, while δ e x p o r t , i j t = 1 enables power export. The following exclusivity constraint prevents simultaneous importing and exporting:
δ i m p o r t , i j t + δ e x p o r t , i j t 1
The reactive power flow Q i j t is also subject to bounds that ensure it remains within the allowable limits for line i j :
Q i , j m i n Q i j t Q i j m a x
where Q i , j m i n and Q i j m a x represent the minimum and maximum reactive power capacities of the line. Additionally, the total power transmitted along the line, represented by the sum of the squares of active and reactive power, must not exceed the line’s maximum transmission capacity L c a p , i j , governed by the binary variable δ i j t :
P i j t 2 + Q i j t 2 δ i j t L c a p , i j 2
The binary variable δ i j t , which takes values in 0 , 1 , functions as a switching element to indicate the operational status of the line. When δ i j t = 1 , power flow is enabled between nodes i and j ; when δ i j t = 0 , no power flows along the line. This setup allows the model to reflect both physical and control-based constraints on line availability, optimizing power exchanges according to line capacity. To maintain energy balance at each node, the system must satisfy the following power flow equations, which enforce the balance of generated and consumed power by accounting for inflows, outflows, and the power flowing within the network at each node j . It is reasonable to assume that the line losses are negligible compared to the line power flows. Therefore, the power losses can be approximated as zero to reduce the computational complexity in power flow analysis. This approximation derives the simplified DistFlow model, specifically the linearized DistFlow model [31]:
i N A i j P i j t + P w t , j t + P p v , j t + P e s , j t + P m t , j t + P g r i d , j t = k N A j k P j k t + P l o a d , j t
i N A i j Q i j t + Q w t , j t + Q p v , j t + Q e s , j t + Q m t , j t + Q g r i d , j t = k N A j k Q j k t + Q l o a d , j t
In these equations, A i j and A j k are adjacency matrices that define node connectivity, modeling power inflows and outflows at node j at time t . Voltage drops due to power flow in the radial network are calculated using the following voltage drop equation, which models the impact of power flow on node voltages:
V j t = δ i j t V i t 2 r i j P i j t + x i j Q i j t + 1 δ i j t
where V j t is the squared voltage at node j at time t , and V i t is the squared voltage of the connected parent node i . The parameters r i j and x i j represent the line’s resistance and reactance, respectively. The switching element δ i j t accounts for connection conditions, maintaining separate voltage profiles when nodes are isolated. The voltage at each node is constrained to remain within the allowable range v j m i n to v j m a x :
( v j m i n ) 2 V j t ( v j m a x ) 2
V j t = v j t 2
v j t = 1 , j = s l a c k   b u s
The voltage of the slack bus is fixed at 1 p.u., serving as a reference point for the system. These voltage constraints maintain power quality and ensure reliable voltage control.

4.2. Multi-Objective Function

This section presents a centralized control problem, focusing on the economic optimization of interconnected MG networks. According to the proposed system architecture, the MA is responsible for solving the control problem using a centralized approach. In this approach, each MG must decide whether to exchange energy with other MGs. An MG only interconnects with another MG if it can achieve economic benefits equivalent to or better than operating independently.

4.2.1. Local Optimization

The objective function minimized through MPC is formulated as the aggregate of multiple cost functions representing different components of the MG. The local optimization problem for a single MG can be defined as follows:
J l o c a l = J r e s + J m t + J e s + J l o a d + J g r i d
The cost function J r e s for RES consists of the curtailment-adjusted generation costs for wind and PV systems. The term ξ v w c represents the curtailment cost factor for WT, while κ w t and P ^ w t denote the curtailment ratio and forecasted power output, respectively. Similarly, for a PV system, ξ v p c , κ p v , and P ^ p v are used:
J r e s t = k T j N w t ξ v w c , j t + k | t κ w t , j t + k | t P ^ w t , j t + k | t Δ t + k T j N p v ξ v p c , j t + k | t κ p v , j t + k | t P ^ p v , j t + k | t Δ t
The cost function J m t represents the operational cost associated with fuel consumption. The cumulative cost is determined based on the output power P m t of each MT, the corresponding fuel cost C f u e l , and the efficiency η m t .
J m t t = k T j N m t C f u e l , j P m t , j t + k | t η m t , j Δ t
The cost function J e s aims to minimize the economic costs associated with the use of the ESS. The lifespan of the ESS is determined by the number of charging and discharging cycles. The parameter C C e s represents the capital cost of the ESS, while C y c l e s e s denotes the number of life cycles of the battery. C d e g r , c h and C d e g r , d c h are factors to penalize the degradation of the ESS in the charging and discharging process, respectively:
J e s t = k T j N e s ( C C e s , j 2 C y c l e s e s , j P e s , c h , j t + k | t + P e s , d c h , j t + k | t Δ t + C d e g r , c h , j P e s , c h , j t + k | t 2 + C d e g r , d c h , j P e s , d c h , j t + k | t 2 )
For load management, the cost function J l o a d is formulated with a penalty related to load curtailment as follows, where the parameter C v o l l represents the value of lost load, and it is weighted by the load priority w l o a d :
J l o a d t = k T j N l o a d w l o a d , j C v o l l , j P s h e d , j t + k | t Δ t
The cost function J g r i d represents the total cost associated with energy exchange between the local system and the main grid. The purchased power P p u r is multiplied by the corresponding electricity purchase price λ p u r and weighted by a temporal coefficient φ k . This coefficient can represent priorities or preferences for energy transactions based on temporal conditions, such as peak and off-peak hours, system reliability requirements, or specific optimization goals. Similarly, the sold power P s a l e is multiplied by the sale price λ s a l e and weighted by ψ k :
J g r i d t = k T φ k λ p u r t + k t P p u r t + k t + ψ k λ s a l e t + k t P s a l e t + k t Δ t

4.2.2. Global Optimization

The global optimization of MGs is achieved through information interaction among MGs. Each subsystem needs to obtain additional information from neighboring MGs at each sampling interval. The exchanged power between MGs can be calculated as the power flow between nodes, which is located at the boundaries of the respective MGs. For each MG i , the cost function associated with power trading between MGs over the time horizon T , denoted as J i n t e r i , is represented by:
J i n t e r i t = k T j M u j i t + k | t φ ~ i k λ r e c e i v e j t + k | t P r e c e i v e j i t + k | t + ψ ~ i k λ s e n d i t + k | t P s e n d j i t + k | t Δ t
The interconnection variable u j i determines whether an active connection exists, exists between MG i and its neighboring MG j , with u j i = 1 if there is a connection, and u j i = 0 otherwise. The cost function comprises the cost of power received by MG i from MG j and the cost of power sent from MG i to MG j . The receiving cost is calculated as the product of the received power P r e c e i v e j i , purchasing price λ r e c e i v e j , and a time-varying weighting coefficient φ ~ i k reflecting cost preferences or priorities. Similarly, the sending cost accounts for the sent power P s e n d j i , the selling price λ s e n d i , and a weighting factor ψ ~ i k . These costs are accumulated over the entire time horizon with a temporal resolution Δ t and summed across all neighboring MGs.
The global objective function, denoted as J g l o b a l , is formulated to optimize the total energy costs across the entire MG network. The control objective within MGs involves minimizing energy costs by considering economic costs associated with DERs and the power exchanges with other MGs or the main grid. This control objective can be approached from a local MG perspective or by considering the performance of the global network. For each MG i M , where M denotes the set of all MGs, the objective is to minimize the total of its local operational costs and power trading costs. The global objective function can be defined as follows:
min J global = i M J l o c a l i + J i n t e r i
A centralized MPC calculates, at each sampling time, the sequence of inputs for all MGs to optimize the overall performance of the network. Since the decision-making process is performed globally, all MG agents collaborate to achieve the optimal solution for the entire system. This approach achieves the global optimal objective through seamless collaboration between MGs.

5. Simulation Results and Discussion

In this section, three representative case studies are presented to analyze the performance of the MMG system in terms of weather conditions, disturbance predictions, and MG operations. The analysis begins by describing the MMG system and the setup used in the simulation. Then, we present the simulation results for the three cases. Finally, the results are discussed in detail.

5.1. Simulation Setup

The proposed method was verified on the IEEE 33-bus system, a radial distribution network consisting of 33 buses and 32 lines. This system is a widely used standard test case in power system research, particularly suitable for evaluating the performance of distribution networks and validating algorithms. In this simulation, as shown in Figure 7, the IEEE 33-bus system was partitioned into four autonomous MGs, consistent with the approach considered in [32]. Each MG has its own PV system, WT, ESS, and MT, and is designed to receive power from external sources through its connection to the main grid when needed. The components of the MMG system and its parameters are listed in Table 1, Table 2 and Table 3. The system operates at a nominal voltage of 12.66 kV. The total load consists of 3655 kW of active power and 2260 kVAR of reactive power. The detailed parameters of the test system are available in [33]. The system is modeled as a balanced three-phase configuration, which simplifies the analysis and ensures consistency in the simulations. This assumption excludes considerations of specific grid-forming controls among various power converters, such as the virtual synchronous generator implementations that would normally define grid-forming capabilities in converter-dominated MGs [34]. Under this assumption, detailed converter dynamics, including the formation of short-circuit currents and the operation of protection systems, are not explicitly modeled.
The daily load curve for each MG is modeled using four distinct load demands, as presented in Figure 8. These load demands are assigned to each MG based on the corresponding NYISO zones: CAPITAL, CENTRAL, GENESE, and HUDSON VALLEY [35]. Specifically, the actual load demands are normalized and then scaled proportionally to the rated demand of the IEEE 33-bus system. This approach replaces the previous assumption of a constant load demand, thereby incorporating realistic load variations.
The transaction prices between the four MGs are presented in Figure 9. These prices are determined based on the day-ahead market LMP corresponding to the four NYISO regions where the load demand is established. This reflects the spatial variations in electricity market conditions and the constraints of economic dispatch models.
The expected costs of purchasing energy from the main grid, shown in Figure 10, are derived from the interregional energy market prices between NYISO and PJM [36]. These prices represent the cost of energy transactions with external power systems. Additionally, the price at which the MGs sell energy to the main grid is set at 70% of the buying price.

5.2. Performance Evaluation Under Different Weather Conditions

To verify the theoretical foundations, simulations were performed to evaluate the performance of the controller under different external conditions, with the same scenarios applied across all case studies. Two types of RES were considered, a PV system and a WT. MG1 and MG3 represent clear-sky conditions with stable outputs following typical solar generation patterns, whereas MG2 and MG4 simulate cloud-covered conditions with more variable outputs. Additionally, WT energy is considered under moderate wind conditions. Figure 11 shows the daily power generation of four MGs, presenting their respective output percentages.
In the simulation, four interconnected MGs are considered. The simulation results compare clear-sky and cloud-covered regions, obtaining similar results under different weather conditions. The overall conclusion confirms that the control objectives effectively minimize power exchange between the main grid and the MGs while prioritizing economic energy sources. The ESS plays a predominant role in both storing surplus energy and supplying energy deficits. The weights of the cost function can be modified to adjust these operations.
In clear-sky regions, high solar irradiation around midday results in energy surpluses, while energy deficits occur at night. The EMS manages both the ESS and MT to meet demand, as these resources are assigned low weights in the cost function and are therefore used relatively freely within operational limits. As shown in Figure 12, energy surpluses occur in MG1 and MG3 due to high solar irradiation. When the ESS in MG1 reaches its upper SOC limit of 80%, part of the surplus energy is exported to the main grid, with limited power exchange between MGs. Similarly, in MG3, when the SOC reaches its upper limit, most of the surplus energy is transferred to neighboring MGs, with negligible energy exchange with the main grid. As solar generation decreases, the ESS and MT share the load based on their respective cost function weights.
On the other hand, in cloud-covered regions, insufficient PV generation leads to unmet demand for most of the day. This energy deficit complicates MG management. As shown in Figure 13, the net load in MG2 and MG4 is predominantly negative. This deficit must be compensated through the ESS, MT, and energy exchange. In this scenario, the power exchange between MGs increases substantially. Even on cloudy days with no surplus energy, MG2 and MG4 maintain relatively high SOC levels through these energy exchanges. These results demonstrate that the MPC adapts to various scenarios, effectively managing power distribution among DERs and providing solutions that consider operational constraints and optimized operational criteria. The performance of MPC was evaluated under a wide range of operating conditions, including SOC limits of the ESS and different generation profiles, and was found to be successful. Depending on the weights assigned to each DER, the power distribution may yield different results.

5.3. Robustness Against Prediction Errors

The power generated from RESs and the corresponding demand are the main disturbance factors affecting the operation of a MG. These variables cannot be directly controlled by the EMS. However, given the availability of current measurements and future predictions, MPC can anticipate system outputs within a given time horizon. This case study analyzes the impact of integrating disturbance information into MPC for MG operation. Three scenarios were considered in this study. The first scenario assumes no available future variations in disturbances. This is the most common case in MPC, where the current disturbance is assumed to remain constant over the time horizon. The second scenario represents an ideal case where perfect disturbance prediction is available, providing an upper bound on achievable optimal performance for comparison. The third scenario considers a more realistic setting where disturbance predictions are available but contain errors, reflecting the inherent uncertainty in future disturbance estimation. In this case study, disturbances are defined as the net load, calculated as the difference between generation and demand, and are measured at the current time step. The objective of this study is to evaluate the robustness of the proposed MPC approach.
Figure 14 presents the control results for ESS charging and discharging, as well as the SOC under the three scenarios. In scenarios 1 and 2, the SOC of the four MGs in the network follows a similar pattern. The prediction errors in scenario 2 cause intermittent deviations in the charging and discharging schedules; however, the trend remains comparable to that of scenario 1, which assumes perfect prediction, with an acceptable level of difference. On the other hand, in scenario 3, where future disturbances are unknown, the power system fails to proactively respond to variations, leading to ineffective ESS control. As a result, MG1 and MG3 did not charge surplus energy generated during daytime, maintaining consistently low SOC levels. Consequently, in the evening when power supply was insufficient, the ESS failed to discharge effectively, and the charging/discharging patterns exhibited abrupt changes. Such unstable operation not only degrades ESS performance but also negatively impacts its lifespan.
Figure 15 presents the energy exchange results with the main grid across the three scenarios. Despite the presence of prediction errors, scenario 2 operates within a similar range to scenario 1, with both cases showing a gradual increase in cumulative transaction costs. In contrast, scenario 3 experiences a sharp cost increase after 6 PM due to the lack of an optimized energy exchange strategy that accounts for electricity prices. These results reflect the limitations of static assumptions in dynamic systems. Specifically, the total costs in scenarios 1 and 2 slightly increased from USD 81 to USD 84, compared to USD 104 in scenario 3. This case study demonstrates that incorporating disturbance prediction into an MPC-based strategy can contribute to reducing operating costs by enabling proactive responses to future disturbances. Therefore, the availability of high-quality forecast information can improve the operational performance of MGs. However, even in the presence of forecast errors, the proposed MPC-based approach minimizes the impact of this uncertainty to consistently maintain near-optimal performance. This robust control strategy is particularly well-suited for real-world applications where perfect forecasting is infeasible. In conclusion, in order to effectively manage the impact of forecast errors, it should be carefully considered in MPC-based optimal control scheduling. Additionally, the selection of an appropriate prediction horizon impacts both performance and computational burden. While a longer prediction horizon typically yields better optimization results, it also increases computational complexity [37]. Therefore, the prediction horizon and time interval should be carefully determined.

5.4. Comparison of Single and Cooperative Microgrid Operation

This case study verifies the effectiveness of cooperation between MGs by comparing the performance of the proposed cooperative MG network with individually controlled MGs. It analyzes the impact of cooperative operation on each MG’s control strategy and validates the benefits of cooperative strategies for optimizing power system operation and reducing costs in the context of distributed energy management.
In each scenario, the SOC of the ESS is shown in Figure 16 to illustrate the differences in operational approaches. Cooperation between MGs smooths out energy usage patterns and optimizes ESS, maintaining higher SOC levels during daytime. In contrast, single MG operation shows limitations in efficiently utilizing ESS. In this scenario, each MG manages energy independently, and energy exchange is limited to interactions with the main grid. Consequently, in the single MG scenario, MG2 and MG4 experience restricted ESS charging due to insufficient PV generation, resulting in relatively lower SOC levels after 12 PM compared to the cooperative scenario. In the cooperative scenario, MG2 and MG4 could maintain higher SOC levels by receiving surplus energy from MG1 and MG3. Therefore, energy exchange between MGs can enhance the utilization of ESS.
A comparison of energy purchased from the main grid in single-MG and cooperative-MG-network scenarios is shown in Figure 17. The results indicate that cooperative MGs significantly reduced energy purchases from the main grid compared to single MGs. This demonstrates that cooperation between MGs can maximize the utilization of renewable energy resources through power exchange with neighboring MGs, enhancing operational flexibility. Additionally, as shown in Table 4, it reduces dependence on expensive external energy resources, leading to substantial cost savings.

5.5. Discussion and Limitations

The simulation results lead to several important conclusions. First, it is confirmed that relying solely on RESs presents significant challenges in maintaining a stable balance between supply and demand. Both solar and wind power generation exhibit considerable temporal variability, which increases uncertainty on the supply side and can negatively impact the stable operation of power systems. Given the high dependence of renewable energy on weather conditions, there is a risk of insufficient power supply during peak demand periods. To address this issue, additional energy resources are necessary to compensate for the intermittency of renewable energy, alongside strategies for their efficient management. In this study, ESS and MT effectively fulfill this role, helping to mitigate supply–demand imbalances, a pattern consistently observed across all MGs. Second, the MPC approach demonstrates robustness against forecasting errors and provides cost-saving benefits, even in scenarios characterized by high forecasting uncertainty. Therefore, this study concludes that real-time dynamic scheduling is highly effective in improving economic efficiency and addressing forecasting uncertainty in power system operations. The MPC approach has proven to be a reliable solution for ensuring the economic efficiency of power systems, even under conditions with significant forecasting errors. Finally, the results highlight that power trading among interconnected MGs enhances operational flexibility and plays a critical role in cost optimization. These power transactions maximize the utilization of renewable energy resources and contribute to improving economic efficiency. Furthermore, the importance of dynamic interactions and power trading with the main grid was identified as a key factor in ensuring both stability and economic efficiency in grid operations. These interactions help resolve supply–demand imbalances and emphasize the need for rolling optimization techniques to minimize operational costs. Collectively, these findings suggest that managing the variability of renewable energy and enabling flexible grid operations through power trading are essential components of future energy management strategies.
However, the centralized control approach in the proposed MG cooperation model presents several limitations. First, a failure in real-time communication could have a catastrophic impact on the overall system operation. Second, as the system scales, the computational burden on the central controller increases sharply, reducing the efficiency of real-time control. Third, there is a complexity issue wherein the central controller must collect and process information from all DERs and the distribution network in real time. Additionally, a centralized system is vulnerable to operational disruptions caused by a single point of failure, which could negatively affect the reliability of the entire MG network. The current power industry faces challenges in expanding large-scale power plants due to greenhouse gas reduction goals, depletion of fossil fuels, and stricter nuclear regulations, further highlighting the limitations of centralized power systems. To overcome these drawbacks of the centralized approach, the implementation of a distributed MPC control strategy is considered a promising alternative. The distributed control approach provides a framework in which each MG maintains a degree of autonomy while coordinating with neighboring MGs to achieve global objectives. This method reduces communication burdens, minimizes the risk of single-point failures, and enhances system scalability. However, it should be noted that the distributed approach may achieve a lower level of optimality compared to the centralized approach.

6. Conclusions

This paper proposes an MPC-based EMS for optimally coordinating power exchange within a MG network sharing DERs. The study focuses on global control to maximize benefits at the network level. The proposed method integrates future information on MG states, renewable resource production, load demand, and electricity market prices into the MPC to address the optimization problem, effectively handling inevitable disturbances and prediction errors. The optimization model satisfies power flow constraints in the distribution system while integrally managing the operation of DG, ESS, and loads. To this end, the problem is formulated as a MIQCP to efficiently address complex constraints. A stochastic approach introduced to model the uncertainty of renewable energy generation provides realistic prediction scenarios, enabling analysis of the impact of forecast errors on controller performance. Simulation results demonstrate that the proposed network-based MG operation offers economic advantages over independent operation. Specifically, cooperative operation among MGs effectively addresses energy surplus or deficit issues caused by the unpredictable behavior of RESs, providing significant benefits compared to individual MG operations. An analysis of the impact of prediction uncertainty on the optimal control schedule further validates the robustness of the proposed approach. Although the proposed model relies on approximations due to certain simplified assumptions, it is highly likely to remain within specified limits when applying setpoints to real physical systems.
Future research will consider several key directions to enable practical system implementation. First, we plan to enhance the grid-forming capabilities of RESs to improve the integration and control of DERs. This will contribute to effectively managing the high uncertainty and intermittency of volatile renewable energy. Second, more sophisticated modeling will be pursued to more accurately reflect the physical characteristics and constraints of the system. In particular, we aim to explore the application of efficient optimization algorithms, such as the alternating direction method of multipliers, for large-scale distributed MPC implementation. Third, we intend to validate the proposed control strategy and evaluate its performance in real-world environments through hardware-in-the-loop simulations. This will be a critical step in confirming the effectiveness of the proposed approach in actual MG settings. Finally, developing MG operation strategies that account for policy support, such as the “Special Act on the Promotion of Distributed Energy” in Korea, represents an important future research direction. This will enhance the feasibility of MG networks not only from a technical perspective but also from the policy and economic standpoints. This study potentially suggests that the use of renewable energy can reduce dependence on fossil fuels and decrease CO2 emissions, but it does not provide specific quantitative analysis. However, quantitatively assessing environmental impacts is essential for understanding the overall performance of MG systems. Therefore, future research should include comprehensive evaluations that incorporate these environmental impacts, which will contribute to the transition to sustainable energy systems.

Author Contributions

Conceptualization, S.L. (Sungmin Lim); methodology, S.L. (Sungmin Lim); software, S.L. (Sungmin Lim); validation, J.L.; project administration, S.L. (Sangyub Lee). All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Korea Institute of Energy Technology Evaluation and Planning (KETEP) grants funded by the Korea government (MOTIE) (RS-2023-00232017, Advancement of e-Demonstration Complex based on Renewable Energy Digital Twin; RS-2023-00231709, Operation and demonstration of grid-forming core technology for distributed energy grid access).

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to privacy permission.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

MPCModel predictive control
EMSEnergy management system
MGMicrogrid
MIQCPMixed-integer quadratic constrained programming
DERDistributed energy resources
PVPhotovoltaic
WTWind turbine
ESSEnergy storage system
DGDistributed generator
MMGMultiple microgrids
MAMicrogrid aggregator
RESRenewable energy source
MTMicroturbine
LMPLocational marginal price
DRDemand response
Nomenclature
T Control horizon
N Index of node
M Index of MG
Δ t Time interval
P ^ w t , P ^ p v Forecasted active power of WT and PV system
P w t , Q w t Active and reactive power of WT
P p v , Q p v Active and reactive power of PV system
κ w t , κ p v Curtailment ratios of WT and PV system
S Apparent power of DER
P m t , Q m t Active and reactive power of MT
r m t Ramping rate limit of MT
E m t Total initial available fuel of MT
ς m t Remaining fuel level of MT
η m t Efficiency of MT
P e s , c h , Q e s , c h Active and reactive charging power of ESS
P e s , d c h , Q e s , d c h Active and reactive discharging power of ESS
δ e s , c h , δ e s , d c h Binary variables indicating charging and discharging states of ESS
S O C e s State of charge of ESS
η e s , c h , η e s , d c h Charging and discharging efficiency of ESS
C a p e s Energy capacity of ESS
P l o a d , Q l o a d Active and reactive power of load
P d e m a n d , Q d e m a n d Active and reactive power demand
ρ DR factor
P s h e d , Q s h e d Active and reactive power of load shedding
P g r i d , Q g r i d Net active and reactive power exchange with the main grid
P p u r , P s a l e Power purchased from and sold to the main grid
δ p u r , δ s a l e Binary variables indicating purchasing and selling states with the main grid
P i j , Q i j Active   and   reactive   power   flow   between   nodes   i   and   j
P i m p o r t , i j , P e x p o r t , i j Imported   and   exported   power   between   nodes   i   and   j
δ i m p o r t , i j , δ e x p o r t , i j Binary   variables   indicating   import   and   export   states   between   nodes   i   and   j
δ i j Binary   variable   indicating   connection   state   between   nodes   i   and   j
L c a p , i j Apparent   power   capacity   of   the   transmission   line   between   nodes   i   and   j
A i j Adjacency   matrix   element   between   nodes   i   and   j
v j , V j Voltage   and   squared   voltage   magnitude   of   node   j
r i j , x i j Resistance   and   reactance   of   transmission   line   between   nodes   i   and   j
ξ v w c , ξ v p c Cost factors for curtailment of WT and PV system
C f u e l Fuel cost of MT
C C e s Capital cost of ESS
C y c l e s e s Cycle count of ESS
C d e g r , c h , C d e g r , d c h Degradation cost of charging and discharging ESS
w l o a d Load weighting factor
C v o l l Value of lost load
φ , ψ Weighting factors for power exchange with the main grid
λ p u r , λ s a l e Price of purchasing and selling power from/to the main grid
u Binary variable indicating connection state between MGs
φ ~ , ψ ~ Weighting factors for power exchange within MGs
λ r e c e i v e , λ s e n d Price for receiving and sending power within MGs
P r e c e i v e , P s e n d Power received from and sent to neighboring MG

References

  1. Masson-Delmotte, V.; Zhai, P.; Pörtner, H.-O.; Roberts, D.; Skea, J.; Shukla, P.R. Global Warming of 1.5 °C: IPCC Special Report on Impacts of Global Warming of 1.5 °C Above Pre-Industrial Levels in Context of Strengthening Response to Climate Change, Sustainable Development, and Efforts to Eradicate Poverty; Cambridge University Press: Cambridge, UK, 2022. [Google Scholar]
  2. Zhang, Y.; Gatsis, N.; Giannakis, G.B. Robust energy management for microgrids with high-penetration renewables. IEEE Trans. Sustain. Energy 2013, 4, 944–953. [Google Scholar] [CrossRef]
  3. Dall’Anese, E.; Zhu, H.; Giannakis, G.B. Distributed optimal power flow for smart microgrids. IEEE Trans. Smart Grid 2013, 4, 1464–1475. [Google Scholar] [CrossRef]
  4. Wang, C.; Li, P. Development and challenges of distributed generation, the micro-grid and smart distribution system. Autom. Electr. Power Syst. 2019, 34, 10–14. [Google Scholar]
  5. Zafeiropoulou, M.; Sijakovic, N.; Zarkovic, M.; Ristic, V.; Terzic, A.; Makrygiorgou, D.; Zoulias, E.; Vita, V.; Maris, T.I.; Fotis, G. Development and implementation of a flexibility platform for active system management at both transmission and distribution level in Greece. Appl. Sci. 2023, 13, 11248. [Google Scholar] [CrossRef]
  6. Arefifar, S.A.; Mohamed, Y.A.-R.I.; El-Fouly, T.H.M. Supply-adequacy-based optimal construction of microgrids in smart distribution systems. IEEE Trans. Smart Grid 2012, 3, 1491–1502. [Google Scholar] [CrossRef]
  7. Lo, C.-H.; Ansari, N. Decentralized controls and communications for autonomous distribution networks in smart grid. IEEE Trans. Smart Grid 2013, 4, 66–77. [Google Scholar] [CrossRef]
  8. Hossain, M.J.; Mahmud, M.A.; Milano, F.; Bacha, S.; Hably, A. Design of robust distributed control for interconnected microgrids. IEEE Trans. Smart Grid 2016, 7, 2724–2735. [Google Scholar] [CrossRef]
  9. Che, L.; Zhang, X.; Shahidehpour, M.; Alabdulwahab, A.; Abusorrah, A. Optimal interconnection planning of community microgrids with renewable energy sources. IEEE Trans. Smart Grid 2017, 8, 1054–1063. [Google Scholar] [CrossRef]
  10. Ouammi, A.; Dagdougui, H.; Sacile, R. Optimal control of power flows and energy local storages in a network of microgrids modeled as a system of systems. IEEE Trans. Control Syst. Technol. 2015, 23, 128–138. [Google Scholar] [CrossRef]
  11. Wang, Z.; Chen, B.; Wang, J.; Begovic, M.M.; Chen, C. Coordinated energy management of networked microgrids in distribution systems. IEEE Trans. Smart Grid 2015, 6, 45–53. [Google Scholar] [CrossRef]
  12. Dagdougui, H.; Sacile, R. Decentralized control of the power flows in a network of smart microgrids modeled as a team of cooperative agents. IEEE Trans. Control Syst. Technol. 2014, 22, 510–519. [Google Scholar]
  13. Tan, S.; Xu, J.-X.; Panda, S.K. Optimization of distribution network incorporating distributed generators: An integrated approach. IEEE Trans. Power Syst. 2013, 28, 2421–2432. [Google Scholar]
  14. Wu, J.; Guan, X. Coordinated multi-microgrids optimal control algorithm for smart distribution management system. IEEE Trans. Smart Grid 2013, 4, 2174–2181. [Google Scholar] [CrossRef]
  15. Song, N.-O.; Lee, J.-H.; Kim, H.-M.; Im, Y.H.; Lee, J.Y. Optimal energy management of multi-microgrids with sequentially coordinated operations. Energies 2015, 8, 8371–8390. [Google Scholar] [CrossRef]
  16. Asimakopoulou, G.E.; Dimeas, A.L.; Hatziargyriou, N.D. Leader-follower strategies for energy management of multi-microgrids. IEEE Trans. Smart Grid 2013, 4, 1909–1916. [Google Scholar]
  17. Houwing, M.; Negenborn, R.R.; De Schutter, B. Demand response with micro-CHP systems. Proc. IEEE 2011, 99, 200–213. [Google Scholar]
  18. Parisio, A.; Rikos, E.; Glielmo, L. A model predictive control approach to microgrid operation optimization. IEEE Trans. Control Syst. Technol. 2014, 22, 1813–1827. [Google Scholar]
  19. Ouammi, A.; Dagdougui, H.; Dessaint, L.; Sacile, R. Coordinated model predictive-based power flows control in a cooperative network of smart microgrids. IEEE Trans. Smart Grid 2015, 6, 2233–2244. [Google Scholar]
  20. Kouro, S.; Cortes, P.; Vargas, R.; Ammann, U.; Rodriguez, J. Model predictive control—A simple and powerful method to control power converters. IEEE Trans. Ind. Electron. 2009, 56, 1826–1838. [Google Scholar]
  21. Hu, J.; Zhu, J.; Lei, G.; Platt, G.; Dorrell, D.G. Multi-objective model-predictive control for high-power converters. IEEE Trans. Energy Convers. 2013, 28, 652–663. [Google Scholar]
  22. Otomega, B.; Marinakis, A.; Glavic, M.; Van Cutsem, T. Model predictive control to alleviate thermal overloads. IEEE Trans. Power Deliv. 2007, 22, 1384–1385. [Google Scholar]
  23. Zheng, Y.; Li, S.; Tan, R. Distributed model predictive control for on-connected microgrid power management. IEEE Trans. Control Syst. Technol. 2018, 26, 1028–1039. [Google Scholar]
  24. Raimondi Cominesi, S.; Farina, M.; Giulioni, L.; Picasso, B.; Scattolini, R. A two-layer stochastic model predictive control scheme for microgrids. IEEE Trans. Control Syst. Technol. 2018, 26, 1–13. [Google Scholar]
  25. Garcia-Torres, F.; Bordons, C. Optimal economical schedule of hydrogen-based microgrids with hybrid storage using model predictive control. IEEE Trans. Ind. Electron. 2015, 62, 5195–5207. [Google Scholar]
  26. Sachs, J.; Sawodny, O. A two-stage model predictive control strategy for economic diesel-PV-battery island microgrid operation in rural areas. IEEE Trans. Sustain. Energy 2016, 7, 903–913. [Google Scholar]
  27. Li, Z.; Wu, L.; Xu, Y.; Moazeni, S.; Tang, Z. Multi-stage real-time operation of a multi-energy microgrid with electrical and thermal energy storage assets: A data-driven MPC-ADP approach. IEEE Trans. Smart Grid 2021, 13, 213–226. [Google Scholar]
  28. Koski, J.; Silvennoinen, R. Norm Methods and Partial Weighting in Multicriterion Optimization of Structures. Int. J. Numer. Methods Eng. 1987, 24, 1101–1121. [Google Scholar]
  29. Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual. Available online: https://www.gurobi.com (accessed on 23 May 2024).
  30. Sergi, B.; Feng, C.; Zhang, F.; Hodge, B.M.; Ring-Jarvi, R.; Bryce, R.; Doubleday, K.; Rose, M.; Buster, G.; Rossol, M. ARPA-E PERFORM Datasets. In DOE Open Energy Data Initiative (OEDI); National Renewable Energy Laboratory (NREL): Golden, CO, USA, 2022. [Google Scholar]
  31. Baran, M.; Wu, F.F. Optimal sizing of capacitors placed on a radial distribution system. IEEE Trans. Power Deliv. 1989, 4, 735–743. [Google Scholar]
  32. Naz, K.; Zainab, F.; Mehmood, K.K.; Bukhari, S.B.A.; Khalid, H.A.; Kim, C.H. An Optimized Framework for Energy Management of Multi-Microgrid Systems. Energies 2021, 14, 6012. [Google Scholar] [CrossRef]
  33. Dolatabadi, S.H.; Ghorbanian, M.; Siano, P.; Hatziargyriou, N.D. An Enhanced IEEE 33 Bus Benchmark Test System for Distribution System Studies. IEEE Trans. Power Syst. 2021, 36, 2565–2572. [Google Scholar]
  34. Askarov, A.; Rudnik, V.; Ruban, N.; Radko, P.; Ilyushin, P.; Suvorov, A. Enhanced virtual synchronous generator with angular frequency deviation feedforward and energy recovery control for energy storage system. Mathematics 2024, 12, 2691. [Google Scholar] [CrossRef]
  35. NYISO. Market Information System. Available online: https://mis.nyiso.com (accessed on 24 June 2024).
  36. PJM. Data Miner 2. Available online: https://dataminer2.pjm.com (accessed on 26 November 2024).
  37. Ordoñez, J.G.; Barco-Jiménez, J.; Pantoja, A.; Revelo-Fuelagán, J.; Candelo-Becerra, J.E. Comprehensive analysis of MPC-based energy management strategies for isolated microgrids empowered by storage units and renewable energy sources. J. Energy Storage 2024, 94, 112127. [Google Scholar] [CrossRef]
Figure 1. Configuration of the proposed MMG System.
Figure 1. Configuration of the proposed MMG System.
Energies 18 01696 g001
Figure 2. Communication architecture of the EMS.
Figure 2. Communication architecture of the EMS.
Energies 18 01696 g002
Figure 3. Iterative process for schedule generation in MPC controller.
Figure 3. Iterative process for schedule generation in MPC controller.
Energies 18 01696 g003
Figure 4. Flowchart of the solution procedure based on the proposed MPC.
Figure 4. Flowchart of the solution procedure based on the proposed MPC.
Energies 18 01696 g004
Figure 5. Probability density functions for different error levels ε.
Figure 5. Probability density functions for different error levels ε.
Energies 18 01696 g005
Figure 6. The synthetic forecasting scenarios of (a) wind and (b) solar power generation.
Figure 6. The synthetic forecasting scenarios of (a) wind and (b) solar power generation.
Energies 18 01696 g006
Figure 7. Topology and configuration of MMG systems based on IEEE 33-bus distribution network.
Figure 7. Topology and configuration of MMG systems based on IEEE 33-bus distribution network.
Energies 18 01696 g007
Figure 8. Daily load curves of the four MGs.
Figure 8. Daily load curves of the four MGs.
Energies 18 01696 g008
Figure 9. Daily transaction prices of the four MGs.
Figure 9. Daily transaction prices of the four MGs.
Energies 18 01696 g009
Figure 10. Daily transaction prices of the main grid.
Figure 10. Daily transaction prices of the main grid.
Energies 18 01696 g010
Figure 11. Daily output percentage of (a) wind and (b) solar power generation.
Figure 11. Daily output percentage of (a) wind and (b) solar power generation.
Energies 18 01696 g011
Figure 12. Clear-sky region: optimization result obtained for (a) MG1 and (b) MG3.
Figure 12. Clear-sky region: optimization result obtained for (a) MG1 and (b) MG3.
Energies 18 01696 g012
Figure 13. Cloud-covered region: optimization result obtained for (a) MG2 and (b) MG4.
Figure 13. Cloud-covered region: optimization result obtained for (a) MG2 and (b) MG4.
Energies 18 01696 g013
Figure 14. The optimal control schedule of the ESS and the variation of the corresponding SOC for (a) MG1, (b) MG2, (c) MG3, and (d) MG4 under three different scenarios.
Figure 14. The optimal control schedule of the ESS and the variation of the corresponding SOC for (a) MG1, (b) MG2, (c) MG3, and (d) MG4 under three different scenarios.
Energies 18 01696 g014
Figure 15. Comparison of the power trading schedule and the accumulated total grid power cost across three scenarios.
Figure 15. Comparison of the power trading schedule and the accumulated total grid power cost across three scenarios.
Energies 18 01696 g015
Figure 16. SOC of the ESS in (a) single and (b) cooperative MGs.
Figure 16. SOC of the ESS in (a) single and (b) cooperative MGs.
Energies 18 01696 g016
Figure 17. Comparison of energy purchased from the main grid in single and cooperative MGs.
Figure 17. Comparison of energy purchased from the main grid in single and cooperative MGs.
Energies 18 01696 g017
Table 1. Components of the MMG System.
Table 1. Components of the MMG System.
No.NodeDER TypeRated Capacity (kW)
MG119, 25WT600, 800
4, 23PV900, 1200
3ESS300
2MT600
MG211WT900
8PV700
9ESS150
7MT300
MG333WT700
30PV1400
31ESS200
28MT400
MG418WT700
13PV800
14ESS100
16MT200
Table 2. System parameters related to MT in each MG.
Table 2. System parameters related to MT in each MG.
ParametersMG1MG2MG3MG4
η m t   % 34303228
E m t   k W h 3600180024001200
r m t 0.30.50.40.6
C g a s   U S D / k W h 0.0440.050.0460.053
Table 3. System parameters related to ESS in each MG.
Table 3. System parameters related to ESS in each MG.
ParametersMG1MG2MG3MG4
η e s , c h   % 95959595
η e s , d c h   % 90909090
S O C e s m a x   % 80808080
S O C e s m i n   % 20202020
C a p e s   ( k W h ) 3600180024001200
C C e s   U S D / k W h 180200210190
C d e g r , c h   U S D / k W 2 h 0.000450.00060.000550.0007
C d e g r , d c h   U S D / k W 2 h 0.000350.00050.000450.0006
C y c l e s e s 7000650067506000
Table 4. Interaction costs with the main grid in single and cooperative MGs.
Table 4. Interaction costs with the main grid in single and cooperative MGs.
MG1MG2MG3MG4
Single MGs (USD)54.3543.6634.9451.18
Cooperative MGs (USD)33.0318.5723.522.88
Cost Saving (USD)21.3225.0911.4428.3
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.

Share and Cite

MDPI and ACS Style

Lim, S.; Lee, J.; Lee, S. Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids. Energies 2025, 18, 1696. https://doi.org/10.3390/en18071696

AMA Style

Lim S, Lee J, Lee S. Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids. Energies. 2025; 18(7):1696. https://doi.org/10.3390/en18071696

Chicago/Turabian Style

Lim, Sungmin, Jaekyu Lee, and Sangyub Lee. 2025. "Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids" Energies 18, no. 7: 1696. https://doi.org/10.3390/en18071696

APA Style

Lim, S., Lee, J., & Lee, S. (2025). Model Predictive Control-Based Energy Management System for Cooperative Optimization of Grid-Connected Microgrids. Energies, 18(7), 1696. https://doi.org/10.3390/en18071696

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