1. Introduction
With the rapid development of smart grids, microgrids (MGs) have gradually become key participants in future power-grid transactions [
1,
2]. The concept of a microgrid (MG) emerged in the context of the continuous aggregation of distributed energy resources. The operational capacity of a single MG is quite limited, and it is affected by changes in the operating environment, resulting in less-than-satisfactory anti-disturbance ability [
3,
4,
5]. To coordinate various distributed energy resources and comprehensively consider operating costs and electricity demand, an MG energy management strategy is proposed [
6,
7]. The goal is to optimize the energy interaction and trading strategies between the MG cluster and the main grid to enhance the stability, reliability, and energy efficiency of the power system. However, the inherent intermittency and volatility of renewable energy generation and the uncertainty of users’ electricity demand still pose significant challenges with respect to energy management [
8]. To address the above issues, this paper mainly focuses on research into two types of methods: model predictive control (MPC) and the cooperative game method.
Beyond economic dispatch, coordinated energy management of interconnected microgrids is also essential for sustainable energy development because it can improve local renewable energy utilization, reduce dependence on centralized fossil fuel-dominated grid supply, and enhance the resilience of regional energy systems under uncertainty.
MG clusters have different control architectures, such as centralized, decentralized, and distributed modes [
9,
10,
11]. In centralized control architectures, the central controller uniformly coordinates the operation and energy interaction of each MG. However, there are issues with the safeguarding of data privacy of individual MGs, and when the cluster scale expands, it the problem of increased computational pressure is introduced [
12]. In the decentralized control mode, each MG can make independent decisions without communicating with the central control unit or other MGs [
13]. This approach helps to cope with external disturbances and can improve the robustness of the scheduling scheme, but it also makes the overall coordinated operation of the MG cluster difficult [
14]. In contrast, the distributed control structure performs better in adapting to system-scale changes and communication topology adjustments, and it can better safeguard the privacy and security of each participating entity [
15].
With the increasing complexity of energy systems and the intensification of data, adaptive intelligent control methods represented by MPC are gradually attracting more attention, as they can optimize system performance in uncertain environments [
16]. MPC can predict the future states of the system within a finite time horizon and iteratively solve optimization problems. Meanwhile, it combines the receding horizon strategy to generate an optimal control sequence. After executing control actions at each time step, it will re-optimize based on the updated system states and prediction results [
17]. This method allows for the customization of objective functions to incorporate multiple objectives, such as minimizing energy costs, reducing carbon emissions, and improving power-grid operation efficiency, into a unified optimization framework [
18]. In reference [
19], MPC was used to achieve multi-time-scale scheduling of integrated energy systems, with subsystems collaborating to meet control requirements. Reference [
20] adopted a mathematical programming approach to construct a multi-time-scale optimal scheduling model for a hydrogen-based integrated energy system, coordinating day-ahead and intra-day scheduling. Reference [
21] proposed a parameter-adaptive stochastic MPC power regulation strategy to address the uncertainties in a wind–solar–hydrogen coupled power generation system. Reference [
22] developed an economic MPC method for adjusting heat consumption based on electricity price response. Reference [
23] also used MPC to optimize the operation of battery energy storage systems with a 24 h rolling cycle.
In the energy trading problem, game theory has become a commonly used analytical tool, as it can effectively handle the interest distribution problem among multiple agents [
24]. Reference [
25] established an optimal scheduling model for a multi-MGS shared energy storage system. It uses energy storage to smooth the fluctuations of renewable energy in each MG and rationally allocates the shared capacity to improve the overall benefits of both the MG and the energy storage system. Reference [
26] constructed an economic cooperative game framework that takes into account both the MG and energy storage to achieve a win–win situation for all participants. The Shapley value method is a classic cooperative game distribution method in terms of interest distribution. Reference [
27] used the multi-leader–multi-follower Stackelberg game to characterize the multilateral contract trading behavior between integrated energy service providers and load aggregators. Reference [
28] also constructed an optimal scheduling model for an electricity–heat–hydrogen integrated energy system based on the Stackelberg game. Some studies have integrated scheduling-influencing factors into a correction coefficient that is incorporated it into the gain distribution model for improvement to more accurately reflect the contribution of each agent [
29]. Even though this method has been improved to make the contribution of each agent more accurate, it is still difficult to avoid the combinatorial explosion problem of the Shapley value in large-scale systems [
30].
Based on the advantages of the MPC and cooperative game methods, they are used to solve the above-mentioned problems.
- 1.
In response to the uncertainties in MG energy management and the requirements for forward-looking and rational energy trading and scheduling, an optimized scheduling framework based on MPC is proposed. Through the rolling=horizon optimization and closed-loop feedback mechanism, the economy and robustness of system operation are ensured.
- 2.
Based on cooperative game theory, a distributed trading model for interconnected MGs is constructed. The Nash model is equivalently decomposed into a two-stage problem of energy trading volume and trading price to remove the variable coupling limitation, ensuring the rationality and feasibility of trading.
- 3.
In response to the limitations inherent in traditional distributed optimization methods, an enhanced alternating-direction method of multipliers (ADMM) is proposed. By incorporating a dynamic penalty mechanism and a parallel computing strategy, the proposed approach significantly accelerates convergence speed, making it well-suited for the coordinated optimal scheduling of large-scale MG clusters. This method effectively supports the sustainable operation of larger-scale clean energy clusters.
4. MPC Strategy
During the optimization process, sudden disturbances, such as random fluctuations on both the source and load sides that may occur in the system, can affect the real-time processing performance of MPC. To address this situation, parameters such as the MPC sampling period and control horizon are dynamically adjusted to improve the optimization accuracy.
Due to the uncertainties in load demand and the power prediction of wind and photovoltaic generation, the actual output deviation exhibits random fluctuation characteristics. To address the issue of determining the fluctuation range of such prediction deviations, the quantile regression method is employed for recursive calculation. Finally, the load interval , the photovoltaic output fluctuation interval , and the wind power output fluctuation interval of each MG during period t are obtained.
In view of the insufficient adaptability of the optimization process caused by the fixed step sizes of the prediction and control horizons in MPC, this paper adopts an improved algorithm strategy with dynamic adjustment. Considering the time-varying characteristics of the prediction errors of wind power, photovoltaic power output, and load demand, this method can dynamically and adaptively adjust the step sizes of the prediction and control horizons, track the prediction deviations of variables in real time, and automatically adjust the parameters in each rolling optimization cycle. To balance the computational efficiency and optimization performance, the step sizes of the two horizons need to be kept consistent. For a system with an initial step size, the step sizes are as follows:
where
,
and
are the day-ahead predicted values of the load, wind power and photovoltaic power of each microgrid in period
t, respectively; and
are the interval demarcation values of
q.
The time-interval adjustment mechanism of adaptive sampling is based on the following design criteria.
where
is the sampling step size in time period
t;
is the initial sampling step size;
and
are the upper and lower limits of the fluctuation;
,
and
are the actual values of the
i-th MG’s load, photovoltaic power generation, and wind power grid in time period
t, respectively; and
,
and
are the values of the load, photovoltaic power generation, and wind power generation at the
k-th sampling point of the
i-th MG in time period
t, respectively.
The dynamic characteristics of the
i-th MG in the alliance can be described by the following discrete-time state-space equations:
where
is the state matrix;
is the state variable, including the state of charge of the ESS (
);
is the control matrix;
is the control variable, including the power of electricity trading between MGs (
), the power of trading between the MG and the upper-level power grid (
), the charging and discharging power of the ESS (
) and the GT power (
);
is the disturbance matrix;
is the disturbance variable, including the load (
), the wind power (
) and the photovoltaic power (
);
is the information matrix between the
i-th MG and the
j-th MG;
is the output matrix (
), including
.
6. Solution Steps of the Bargaining Model Based on ADMM
The ADMM algorithm is employed to solve the minimum operational cost subproblem and the transaction bargaining subproblem.
- (1)
Solution flow for Subproblem 1:
First, it is necessary to determine the optimal electricity trading volume among the MGs, then decouple the electricity transactions between the MGs:
where
represents the expected electricity transaction volume between the
i-th MG and the
j-th MG and
represents the expected electricity transaction volume between the
j-th MG and the
i-th MG.
Substitute the optimization objective function of the MG into the augmented Lagrange function formula to obtain the augmented Lagrange function of the
i-th MG in Subproblem 1:
where
and
are the Lagrange multiplier and the penalty factor for the minimum coalition operation cost problem, respectively.
Augmented Lagrange function of the
j-th MG:
The Lagrange multiplier mentioned above is updated as follows:
The solution steps of the subproblem for minimizing the operation cost of the MG coalition are outlined as follows:
- (1)
Initialize the iteration number as and the penalty factor as . The convergence precision of both the primal residual and dual residual is set to , and the initial Lagrange multiplier is . The power transaction volume in the first iteration is .
- (2)
the
I-th MG obtains electric energy from the
j-th MG (
); then, the expected power transaction volume is obtained by solving Equation (
35) (
).
- (3)
The
j-th MG obtains electric energy from the
i-th MG (
); then, the expected power transaction volume is obtained by solving Equation (
36) (
).
- (4)
The Lagrange multiplier is updated using Equation (
37), and the iteration count is updated as
.
- (5)
The convergence of the algorithm is judged using the primal residual and dual residual:
- (6)
If the convergence condition is satisfied in Step 5, the iteration stops. Otherwise, return to Step 2 and iterate again until the convergence condition is met or the maximum number of iterations is reached.
- (2)
Solution flow of Subproblem 2:
After determining the optimal power transaction volume of each MG, decouple the electricity transaction prices between each MG:
where
is the expected transaction price between the
i-th MG and the
j-th MG and
is the expected transaction price between the
j-th MG and the
i-th MG.
The corresponding augmented Lagrangian function for the
i-th MG and the
j-th MG is expressed as follows:
where
and
are the Lagrange multiplier and penalty factor, respectively. The Lagrange multiplier is updated as follows:
The specific steps of Subproblem 2 are outlined as follows:
- (1)
Set the initial number of iterations as k = 0 and the penalty factor as . The convergence accuracy of both the primal residual and dual residual is , the initial Lagrange multipliers are = 0, and the expected payment for the first iteration is .
- (2)
For the
i-th MG, obtain the transaction price from the
j-th MG (
), then solve Equation (
40) to obtain the expected transaction price of the
i-th MG (
).
- (3)
For MG
j, obtain the transaction price from MG
i (
), then solve Equation (
41) to obtain the expected transaction price of MG
j (
).
- (4)
Update the Lagrange multiplier using Equation (
42) and update the iteration number as
.
- (5)
Judge the convergence of the algorithm using the primal residual and dual residual:
- (6)
If the convergence condition is satisfied in Step 5, stop the iteration. Otherwise, return to Step 2 and iterate again until the convergence condition is met or the maximum number of iterations is reached.
7. Results and Discussion
To analyze the effectiveness of the multi-stage, multi-time-scale and cooperative game optimization control method proposed in this paper, two scenarios are set up for simulation and analysis. The scenarios involve three MGs. The load and renewable energy output within the MGs are shown in
Figure 3,
Figure 4 and
Figure 5. The renewable energy sources in MG1 include photovoltaics and wind power, while those in MG2 and MG3 are photovoltaic. The electricity purchase price from the power grid is shown in
Figure 6. The overall fluctuation range of the real price is relatively large, and the overall trend of the predicted value is highly consistent with the real value, effectively capturing the periodic fluctuation characteristics of the price. The price of natural gas is 3.5 CNY/m
3. The operation and maintenance costs for wind turbines, photovoltaic panels, and gas turbines are 0.2 CNY/kWh, 0.15 CNY/kWh, and 0.3 CNY/kWh, respectively. The electricity selling price of the upstream grid is shown in
Figure 6, and the feed-in tariff is set to half of the selling price. The equipment parameters of the MGs are shown in
Table 1. The control horizon of the MPC algorithm corresponds to a scheduling time resolution of 15 min. Accordingly, a 24 h operation cycle is divided into 96 scheduling intervals, with a prediction horizon of 16 steps. The initial state of charge of the energy storage system is set at 50% of its rated capacity. The code was developed in MATLAB 2019a, modeled with YALMIP, and solved by CPLEX. The computing environment is a PC with an Intel Core i7-1355U 5.0 GHz CPU and 8 GB of RAM.
Scenario 1: Each MG operates in cooperation, adopting the methods of MPC and cooperative game theory.
Scenario 2: Each MG operates independently.
Scenario 3: Each MG operates in a cooperative manner without considering MPC.
Figure 7 shows the iterative convergence during the optimization process based on MPC. The benefit functions of the three MGs all converge within a finite number of iterative steps. The benefit of MG1 rises rapidly in the first few iterations, then tends to be stable, while MG2 and MG3 enter the stable stage after the fourth and sixth iterations, respectively.
As shown in
Figure 8, the trading price between MGs fluctuates within the range of 0.35–0.55 yuan/kWh, always remaining lower than the electricity purchase price from the power grid and higher than the electricity selling price to the power grid. Cooperative trading between MGs can effectively reduce the electricity purchase cost. The energy complementarity between MGs weakens the impact of power-grid electricity price fluctuations on the operational economy of a single MG and enhances the overall robustness and economy of the system.
Figure 9,
Figure 10 and
Figure 11 show the active power-balance results of MGs in Scenarios 1, 2, and 3. Scenario 1 adopts the coordinated scheduling strategy combining MPC and cooperative game theory; Scenario 2 corresponds to the independent operation of each MG; and Scenario 3 only considers cooperative game theory. This scenario setting is consistent with most existing studies. By comparing scenarios with and without MPC, it can be seen that MG1 with MPC hardly require gas-turbine generation during scheduling periods 32–69, instead purchasing more electricity from other MGs. This is because, without MPC, the optimization only targets the minimization of the current operating cost, without considering the predicted information of future periods and the global cooperative benefits, therefore relying more on GT generation to meet the immediate load requirement. During periods 38–57, the operation scenario without MPC increases GT output and sells more electricity to the main grid for relatively low profits. This is because the scheduling strategy without MPC only takes the economic benefit of a single period as the optimization objective. To maximize the profit of that period, it increases the gas turbine output to generate surplus electricity, which is then sold to the main grid for revenue. This mode only pursues the local optimum of the current period and does not predict the operating status and interaction costs in future periods, which easily leads to excessive local unit generation and heavy dependence on the main grid for power exchange. After introducing MPC, rolling optimization and global decision-making can be carried out based on the load, renewable energy output, electricity price, and interaction potential among multiple MGs over multiple future periods. Comparing the scenario with MPC and cooperative game theory with the independent MG operation scenario, it can be observed that during periods 0–28 and 90–96, the coordinated operation scenario sells surplus power to other MGs for revenue, whereas the independently operating MG can only sell electricity to the main grid for lower profits. During periods 31–40 and 57–65, the electric load demand is high, and the combined output of renewable energy and GT can hardly meet the load. Therefore, it is necessary to purchase electricity from external sources. The scenario with MPC and cooperative game theory satisfies the load by purchasing electricity from other MGs, while the independently operating MG can only buy power from the main grid. The cooperative operation mode reduces the dependence on the main grid and optimizes the ESS operation strategy, resulting in more balanced charging and discharging of the ESS and a more prominent peak-shaving and valley-filling effect. By leveraging the energy complementarity among multiple MGs, the cooperative operation mode improves the accommodation level of renewable energy, reduces the system’s dependence on the main grid, and lowers the overall operating cost. The operating characteristics of MG2 and MG3 under each scenario are similar to those of MG1 and will not be repeated here.
The cooperative operation mode reduces the dependence on the power grid and improves the energy storage operation strategy. The charging and discharging of the energy storage system become more balanced, and the function of peak shaving and valley filling becomes more prominent. The cooperative operation mode leverages the advantage of energy complementarity among multiple MGs to enhance the consumption level of renewable energy, reducing the system’s dependence on the power grid and operating costs.
As shown in
Figure 12, during the night, the wind power generation in MG1 is relatively abundant, and the load within the MG cannot fully absorb it. Therefore, the electricity is sold to other MGs to obtain higher profits, while other MGs purchase electricity from MG1 to save costs. At noon, the photovoltaic power generation in MG2 and MG3 is sufficient, and the surplus electricity is sold to MG1 for profit. The energy complementarity among MGs is fully demonstrated. This dynamic power interaction effectively enhances the overall flexibility of the system and the utilization rate of resources, reducing the operating cost while improving the reliability of energy supply.
It can be seen from
Figure 13 that under the proposed MPC and cooperative game coordinated scheduling strategy, the comprehensive operating costs of MG1, MG2, and MG3 are all lower than those of the two most common modes in recent studies, i.e., the sole cooperative game mode and the independent operation mode. Specifically, compared with the sole cooperative game mode, the cost of MG1 is reduced by 1045 yuan, and the cost is reduced by 2965 yuan compared with independent operation, while the cost of MG2 is reduced by 1470 yuan and 7706 yuan, respectively, and the cost of MG3 is reduced by 2566 yuan and 11,650 yuan, respectively. This indicates that after introducing MPC rolling optimization on the basis of traditional cooperative game theory, the economic performance of each MG is further improved, and the proposed method is superior to existing cooperative scheduling and independent scheduling methods. From the perspective of cost composition, cooperative operation effectively reduces the interaction cost between MGs and the main grid and further optimizes the gas cost, as well as equipment operation and maintenance costs, etc. The power purchase cost of MG1 from the grid increases slightly, mainly because its surplus renewable energy is more involved in mutual power assistance among MGs and is preferentially supplied to other MGs, thereby improving the global revenue. Through energy complementarity and coordinated scheduling among multiple MGs, the proposed method realizes cross-period and cross-agent resource sharing, reduces the redundancy and power fluctuation of system operation, and achieves better overall economic performance, fully demonstrating the superiority and effectiveness of the proposed MPC and cooperative game combined scheduling strategy.
As can be seen from
Figure 14, the total cost of the system in the cooperative operation mode with MPC is 75,556 yuan, which is lower than the 80,637 yuan cost in the cooperative operation mode without considering MPC and the 97,877 yuan cost in the independent operation mode. The interconnection and collaborative optimization among MGs not only reduce the operating pressure of individual MGs but also enable the entire system to achieve economies of scale and improve energy utilization efficiency. In addition, from a sustainability perspective, the proposed cooperative MPC-based strategy facilitates better local accommodation of renewable energy, reduces dependence on electricity purchased from the upstream grid, and supports more flexible and resilient operation of interconnected MGs.
8. Conclusions
This paper focuses on the problems of high operation cost, high volatility, and insufficient utilization of renewable energy caused by the independent operation of multiple MGs. A distributed cooperative energy management strategy for interconnected MGs based on MPC is proposed. This strategy combines receding-horizon optimization with a cooperative game mechanism to achieve energy complementarity and power coordination among multiple MGs, in addition to ensuring system scalability and convergence under a distributed optimization framework.
Simulation results show that under the cooperative operation mode, bidirectional power exchange can be carried out among MGs, which improves the accommodation level of renewable energy and reduces the total system operation cost by 22,321 yuan. Iterative convergence analysis verifies that the proposed ADMM algorithm guarantees solution accuracy while achieving a fast convergence rate, making it suitable for the optimal scheduling of large-scale MG clusters.
However, this method has some limitations. It was developed under the assumption that the communication between MGs is always reliable, but in practical applications, the existence of communication faults or delays will affect the system’s performance. Future research can consider the robustness of the method under communication uncertainty and delays. The model proposed in this paper was simulated and verified based on a fixed MG cluster. With the development of MGs and the integration of more distributed energy sources, the scalability of the system may become a challenge. Future research can focus on exploring the scalability of the proposed method when the number of MGs or the scale of the interconnected system increases. Machine learning technologies can be integrated to adaptively adjust optimization parameters based on changing grid configurations to further improve the scalability of the system.
From the perspective of sustainability, the distributed cooperative energy management strategy for interconnected MGs based on MPC proposed in this paper not only improves the economic performance of system operation but also reduces the dependence on the upstream grid and conventional generation units by promoting bidirectional energy sharing among MGs and local consumption of renewable energy, thereby enhancing energy utilization efficiency and reducing potential environmental burdens. Meanwhile, the adopted distributed cooperative optimization framework takes into account the flexibility, scalability, and operational resilience of multi-MG systems, enabling them to maintain more stable and efficient operation under uncertain conditions. Therefore, the contributions of this paper are reflected not only in reducing operating costs and improving scheduling performance but also in providing methodological support for the building of cleaner, more efficient, and more resilient regional energy systems with high penetration of renewable energy, demonstrating relevance to the journal’s sustainability theme.