1. Introduction
As global energy systems evolve and low-carbon economies progress, many countries have enacted stringent carbon reduction policies to combat climate change [
1]. These policies challenge traditional power systems, driving a shift toward renewable energy-based production and consumption models [
2]. Microgrids, as a flexible and controllable distributed energy solution, have attracted growing attention. However, individual microgrids are often constrained by equipment capacity and environmental conditions, limiting optimal resource utilization [
3,
4]. Therefore, promoting collaboration and resource sharing between multiple microgrids can achieve coordinated energy and carbon emission optimization, enhancing economic and environmental outcomes while advancing low-carbon energy systems.
Multi-source energy systems, which integrate diverse generation technologies including renewable sources (solar PV, wind), conventional units (gas turbines), and energy storage systems, have become the foundation of modern microgrid design [
5]. These systems are characterized by the heterogeneous nature of their energy sources, each with distinct operational characteristics, output patterns, and environmental impacts. Renewable sources such as solar and wind provide clean energy but exhibit inherent variability due to weather conditions and seasonal fluctuations [
6]. Conventional generation units like gas turbines offer controllable and dispatchable power but contribute to carbon emissions. Energy storage systems serve as crucial components for temporal energy shifting, load balancing, and grid stabilization services. The integration of these diverse energy technologies within multi-microgrid frameworks creates complex interdependencies that require careful consideration of both individual source characteristics and their collective system-wide impacts.
In addition to the integration of multiple energy sources, the physical structure of microgrids has also evolved to meet the increasingly complex demands of smart energy systems [
7]. Hybrid AC/DC microgrid architectures have emerged as a promising solution due to their ability to reduce power conversion losses, improve energy efficiency, and enhance compatibility with renewable energy sources and energy storage systems [
8]. These hybrid systems facilitate more flexible scheduling and resilient operation, particularly in urban environments where diverse types of loads and distributed resources coexist. Reference [
9] identified the grid of hybrid AC/DC microgrids as a new paradigm for future smart cities, enabling seamless interconnection and advanced coordinated control across heterogeneous microgrids.
Driven by low-carbon policies, multi-microgrid systems play a pivotal role in distributed energy management [
10]. Compared to single microgrids, they enable regional resource sharing and coordinated scheduling, promoting efficient use of renewable energy resources [
11]. This enhances energy supply stability and reduces carbon emissions. However, realizing these benefits requires seamless collaboration among microgrids and strong coordination with grid operators to manage electricity and carbon trading [
12]. Through such cooperation, multi-microgrids can obtain grid support during peak demand and supply excess energy during surpluses, maintaining supply–demand balance [
13,
14]. Additionally, peer-to-peer (P2P) trading allows flexible allocation of electricity and carbon quotas, boosting system efficiency and adaptability [
15]. These collaborative mechanisms support clean energy integration and the development of low-carbon, efficient power systems. Nonetheless, ensuring fair and effective coordination among multiple microgrids remains a key challenge.
Despite efforts to optimize resource allocation and utilization in multi-microgrid collaborations, current solutions still face certain limitations [
16]. One prominent challenge arises from the differing objectives regarding supply, demand, and resource allocation, which complicates direct resource sharing and cost distribution [
17]. Yang et al. [
18] introduced an asymmetric Nash bargaining-based approach for integrated energy systems (IES), leveraging P2P trading to enhance coordination and ensure equitable benefit distribution. Similarly, Wu et al. [
19] developed an energy management model based on a Stackelberg–Nash game to regulate electricity trading among photovoltaic (PV) prosumers, incorporating demand response (DR) and carbon emission considerations. While these studies offer valuable insights, they largely address isolated components of a complex optimization problem, leaving several critical issues unresolved.
At the same time, carbon trading mechanisms have become the collaborative optimization of multi-microgrid systems and grid operators [
20]. As carbon reduction targets intensify, their influence on power system operations grows, complicating trading dynamics. Carbon trading impacts microgrid operating costs, grid operators’ emission goals, and system scheduling strategies. By engaging in carbon markets, microgrids can balance electricity use with emissions, improving both economic and environmental performance [
21]. However, challenges persist in quota allocation, fair trading, and cost management. Han et al. [
22] applied a nonlinear energy mapping function to quantify microgrid contributions and allocate benefits, but they focused mainly on electricity, overlooking carbon reduction. Similarly, Liu et al. [
23] proposed a blockchain-based model for secure electricity trading, yet failed to capture the interdependence of power and carbon contributions. Wu et al. [
24] introduced a VCG-based method to promote truthful demand response, but they did not address cooperative optimization or benefit sharing. The aforementioned approaches highlight the pressing need for holistic solutions that not only coordinate power and carbon but also ensure fair and incentive benefit distribution.
Furthermore, in the collaborative optimization of multi-microgrid systems and grid operators, the increasing complexity of electricity and carbon trading presents challenges in ensuring efficient resource allocation and equitable benefit distribution [
25,
26]. Traditional centralized optimization methods often struggle with the large-scale data and multi-dimensional constraints involved. For instance, Karush–Kuhn–Tucker (KKT)-based reformulations and heuristic algorithms have been used to simplify such problems, but their scalability and applicability remain limited [
27]. Although suitable for specific cases, these methods often fall short in dynamic, multi-agent environments. Feng et al. [
28] proposed a decentralized P2P trading model incorporating network constraints, using an event-driven mechanism and a fast dual ascent algorithm to enable efficient local trading while ensuring system safety. Chen et al. [
29] developed a distributed optimization framework for multi-energy microgrids (MEMGs), integrating electricity, heat, and carbon emission rights (CER) trading, and they employed an adaptive consensus ADMM algorithm to enhance privacy and transparency. While these approaches mark meaningful progress, challenges in convergence speed, computational efficiency, and real-time responsiveness remain.
Existing research indicates that the collaborative optimization between multi-microgrid systems and grid operators still has room for improvement, particularly in carbon trading mechanisms, multi-agent resource coordination, and equitable benefit distribution. This study presents a collaborative optimization strategy for power and carbon marginal contributions in multi-microgrid systems, developed within a cooperative Stackelberg game framework. To achieve both system efficiency and fairness, the strategy combines cooperative game theory with an asymmetric Nash bargaining model and incorporates a VCG-based contribution evaluation mechanism. The VCG mechanism is used to quantify the marginal impact of each microgrid on system performance, serving as the basis for fair and incentive-compatible benefit allocation. Furthermore, to adapt to dynamic demand fluctuations, an improved ATC algorithm is employed for distributed optimization, facilitating progressive coordination between hierarchical decision levels while ensuring computational tractability and fairness. The main contributions of this study are as follows:
(1) A bi-level energy trading framework for multi-microgrid systems is developed based on a cooperative Stackelberg game. The upper level represents the grid operator, responsible for the overall scheduling and adjustment, while the lower level encompasses the microgrid alliance. Within this alliance, energy trading and sharing are facilitated through cooperative game theory, alongside collaborative trading with the grid operator.
(2) An asymmetric Nash bargaining model is developed for benefit distribution, using a VCG-based power and carbon contribution factor to evaluate each microgrid’s marginal impact on system performance. It ensures incentive compatibility and fair allocation. A nonlinear energy mapping function captures interactions among microgrids, while the Jain index assesses distributional equity.
(3) To effectively implement the bi-level collaborative scheduling framework and accurately quantify the marginal contributions proposed in this study, an improved ATC algorithm combined with Anderson acceleration is developed. This methodological enhancement improves convergence efficiency and computational speed, enabling distributed problem-solving in dynamic, multi-agent environments and thus addressing the computational complexity inherent in the proposed model.
The remainder of this manuscript is structured as follows.
Section 2 introduces the multi-microgrid system model, detailing the hierarchical structure and interaction mechanisms between the microgrid alliance and the grid operator.
Section 3 outlines the optimization strategy for power and carbon contribution based on a cooperative Stackelberg game with VCG-based contribution evaluation.
Section 4 presents the improved ATC algorithm for distributed problem-solving.
Section 5 evaluates the proposed strategy through numerical results. Finally,
Section 6 outlines the conclusion of this study.
2. System Models
The multi-microgrid system comprises a grid operator, a microgrid alliance, and individual microgrids, as depicted in
Figure 1. The grid operator acting as the upper-level authority oversees power supply adjustments and manages energy and carbon quota interactions. The microgrid alliance serves as an intermediary, facilitating coordination between the grid operator and individual microgrids. Based on its own energy needs and carbon targets, a microgrid can trade energy and carbon quotas with the grid operator or other microgrids, enhancing overall system performance.
The grid operator and microgrid alliance interact through power coordination, information exchange, and dynamic carbon trading. If emissions exceed limits, the alliance can buy additional quotas. It shares power demand and emissions data with the operator to support scheduling, while microgrids conduct P2P energy trading and adjust carbon quotas within the alliance.
Effective coordination among multiple energy sources within each microgrid is essential for optimal system performance. Each microgrid integrates gas turbines, PV systems, wind power, and energy storage, requiring sophisticated coordination to balance renewable intermittency with load demands. The coordination strategy follows the following hierarchical approach: local source optimization within each microgrid, alliance-level resource sharing through P2P trading, and system-level coordination via the grid operator. This multi-source management framework ensures reliable operation while maximizing renewable energy utilization and minimizing carbon emissions.
2.1. Grid Operator Model
The grid operator maintains supply–demand balance and optimizes operations by coordinating with the microgrid alliance. It allocates resources and uses controllable generation and energy storage to support peak demand or emergencies.
The grid operator primarily utilizes diesel generators as its generation units, modeled as follows [
30]:
where
is the output of generation unit
m at time
t;
is the fuel-to-electricity conversion efficiency;
is the fuel power input to the generator.
The output of the generation units must satisfy the following conditions:
where
and
denote the lower and upper output limits of generation unit
m;
and
signify the minimum on-time and minimum off-time for generation unit
m, respectively;
represents the binary variable indicating the startup and shutdown status of the unit
m.
2.2. Microgrid Alliance Model
The microgrid alliance coordinated dispatch by aggregating data from individual microgrids, enabling internal energy sharing and unified grid transactions [
31]. Each microgrid manages local operations with gas turbines, renewables, and storage and collaborates through the alliance when needed.
The power generation from renewable sources, such as PV and wind units, is inherently influenced by environmental parameters. For PV systems, solar irradiance determines the amount of electricity produced, while ambient temperature affects the conversion efficiency of photovoltaic panels. In the case of wind power, generation depends on both wind speed and wind direction—where higher wind speeds increase output, and favorable wind direction improves turbine alignment and energy capture. These factors introduce uncertainty and volatility into renewable generation, thereby affecting energy management strategies, scheduling decisions, and the need for coordinated resource sharing in multi-microgrid systems.
2.2.1. Gas Turbine Unit Model
The gas turbine unit operated by burning natural gas is necessary to generate electricity efficiently [
32]. The relationship between the electricity produced by the gas turbine unit in microgrid
i and natural gas consumption is expressed as follows:
where
and
denote the power output and power generation of the gas turbine unit, respectively;
signifies the calorific value of natural gas; and
refers to the amount of natural gas consumed by the unit.
The gas turbine unit’s output must follow the minimum and maximum constraints, as follows:
2.2.2. Photovoltaic Model
The PV system’s output power is calculated as follows:
where
refers to the efficiency of the PV panel,
is the actual working temperature of the PV cell,
is the PV cell temperature under standard test conditions, generally 25 °C,
represents the surface area of the PV panel, and
denotes the solar irradiance intensity.
2.2.3. Wind Power Model
The output power of a wind turbine is primarily influenced by wind speed, which typically follows a Weibull distribution. Based on this, the wind turbine units’ output power model can be expressed as follows:
where
is the rated power of the wind turbine,
is the cut-in wind speed,
is the cut-out wind speed, and
is the rated wind speed.
2.2.4. Energy Storage System Model
The ESS stores surplus power from generation units and releases it during peak demand to balance supply and demand. Its charging and discharging behavior is modeled as follows:
where
and
are the charging and discharging power of energy storage unit
i at time
t, respectively;
and
denote the charging and discharging efficiencies, respectively. The state of charge (SOC) is subject to upper and lower limits, as well as constraints on charging and discharging power:
The soc is constrained by the following:
2.2.5. Demand Response Model
This study examines the adjustable and transferable DR loads. The electricity demand of microgrids is divided into fixed loads and controllable loads . Controllable loads are further classified into transferable loads and reducible loads , as outlined below:
Controllable loads can be reformulated as follows:
Transferable loads can be shifted to other time periods to reduce costs or gain compensation. Their constraints are shown as follows:
where
represents the proportion of transferable loads in the total electricity load;
signifies the total time;
denotes the pre-demand-response electricity load; and
corresponds to the transferable load.
Reducible loads allow users to cut power use in response to demand signals or price changes, with constraints as follows:
where
refers to the proportion of reducible loads in the total electricity load, and
denotes the reducible load.
2.3. Carbon Emission Model
This study adopts a carbon trading mechanism to manage the microgrid alliance’s emissions. Microgrids exceeding their quotas must purchase allowances, while those with surplus can sell them.
The carbon quota of the grid operator is mainly allocated based on fossil fuel generation units, calculated as follows:
The associated carbon emission is expressed as follows:
The carbon emission model for the microgrid alliance framed in this study includes the following two key components: (1) allocation of emissions for gas turbine units, and (2) allocation of emissions for renewable energy units. The corresponding calculation is as follows:
where
and
denote the emission allocation per unit of power output for conventional and renewable generation units, respectively.
The actual carbon emissions are given by the following:
where
denotes the emission factors for the gas turbine unit.
4. Model Solution Based on the Improved ATC Algorithm
The ATC algorithm is a hierarchical optimization method that decomposes a global objective into layered sub-problems coordinated via coupling variables. This study refines ATC by introducing decoupling variables, transforming the bi-level Stackelberg model into two independent single-level problems.
Figure 2 provides a detailed overview of the proposed hierarchical optimization process. The left section presents the structure of the improved ATC algorithm, where the upper-level scheduling problem coordinates the operation of individual microgrids through iterative information exchange. The lower-level problems, representing local microgrid decision-making, are solved in parallel, and their feedback guides the upper-level adjustments.
The right section illustrates the integration of Anderson acceleration, which enhances the convergence of the iterative process. It leverages the iteration history to adjust key variables more effectively, avoiding oscillation and reducing the number of iterations required. During each acceleration step, adjustments are made to the main coordination parameters based on past iteration data, and the penalty parameters are updated adaptively until convergence is achieved.
To resolve the coupling between the upper and lower levels, this study introduces an augmented Lagrangian penalty function.
In the lower level, due to power exchanges between microgrids, the penalty term must account for iterative updates of exchanged power between microgrids, as follows:
where
and
signify the objective functions of the grid operator and microgrids;
and
denote the decision variables of Equations (33) and (34);
and
denote the feedback values exchanged between upper and lower levels; and
and
are the first- and second-order penalty coefficients used to constrain microgrid transaction behaviors.
To expedite optimization process convergence, this study applies the Anderson acceleration algorithm to update power rates [
39]:
- (1)
- (2)
- (3)
Determination of Anderson Acceleration Coefficients:
- (4)
Solution of Coefficients:
- (5)
The updated rules for the first- and second-order penalty multipliers are as follows:
where
and
are the first- and second-order penalty multipliers in the
k-th iteration, typically initialized as small constants;
is the expansion factor for penalty adjustment, and
is the threshold for updating
;
and
represent the linking variables in the
k-th iteration for the upper- and lower-level problems.
The convergence criteria are defined as follows:
where
and
are convergence tolerances.
controls the precision of linking variable optimization, while
ensures overall system efficiency and coordination.
5. Case Study
This study investigates energy transactions between a grid operator and a microgrid alliance consisting of three microgrids, each equipped with renewable energy sources and adjustable loads. The grid operator operates three diesel generators with capacities of 350 kW, 300 kW, and 250 kW. Microgrid 1 includes a 200 kW gas turbine, a 150 kW PV unit, and a 150 kW ESS. Microgrid 2 is equipped with a 200 kW PV unit, a 130 kW wind power unit, and a 200 kW ESS. Microgrid 3 contains a 400 kW gas turbine, a 100 kW wind unit, a 130 kW PV unit, and a 150 kW ESS. The configuration of each microgrid is shown in
Table 1.
In the implementation, the first- and second-order penalty multipliers and were initialized to 0.01. The expansion factor for penalty adjustment was set to 1.05, and the threshold for the multiplier update was defined as 10−3. The convergence tolerances and were both set to 10−3, and the maximum iteration count was limited to 20. In addition, Anderson acceleration was incorporated to improve convergence speed during the iterative coordination process.
The proposed bi-level optimization model and the improved ATC algorithm were implemented in MATLAB R2020b, with Gurobi 10.0 serving as the optimization solver through the YALMIP R20230622 interface. Numerical simulations were conducted on a PC equipped with an Intel Core i7-12700H CPU (Intel Corporation, Santa Clara, CA, USA) and 32 GB RAM (Samsung Electronics Co., Ltd., Suwon, Republic of Korea). The upper- and lower-level problems were solved using an iterative coordination framework based on augmented Lagrangian decomposition. The Anderson acceleration technique was embedded into the solution process to enhance convergence speed and stability.
5.1. Revenue and Cost Analysis
Table 2 presents the changes in operational costs before and after cooperation. The alliance’s total revenue increased by CNY 1956.55, with individual gains of 4.5%, 8.79%, and 1.85%. These results show that internal electricity trading improved microgrid benefits, while the grid operator’s revenue declined due to reduced dependence from the alliance.
Table 3 and
Table 4 compare the effects of asymmetric and standard Nash bargaining on revenue distribution. In standard Nash bargaining (
Table 3), Microgrid 3 gains the most due to its larger capacity and higher generation. However, this method overlooks the renewable energy contributions of Microgrids 1 and 2, offering limited incentives for clean energy and carbon reduction, leading to suboptimal results.
By applying asymmetric Nash bargaining with a Sigmoid-based contribution model, greater benefits are allocated to microgrids with higher contributions. Adjusting power and carbon factors emphasizes emission reductions, ensuring fairer revenue distribution and encouraging further low-carbon efforts.
Table 4 shows that increasing carbon contribution weights and applying exponential scaling raised the revenues of smaller microgrids like Microgrids 1 and 2. However, due to their lower renewable output and higher reliance on imported electricity, their contribution factors remain low, limiting revenue gains. As a result, Microgrid 3 retains the largest share.
5.2. Fairness Analysis
Table 5 presents the Jain fairness index for different bargaining models, where higher values indicate fairer benefit distribution. Incorporating power and carbon contribution factors and asymmetric Nash bargaining improves fairness. Adding the VCG mechanism further increases the index, from 0.735 to 0.763 in the standard model and from 0.856 to 0.874 in the asymmetric model, confirming the effectiveness of the VCG-based approach.
5.3. Microgrid Electricity Trading Analysis
Figure 3 shows power distribution among microgrids after implementation. Microgrids 1 and 2, equipped with higher shares of photovoltaic and wind power generation, export excess electricity to Microgrid 3 during periods of low load or renewable generation peaks. In contrast, during high-demand periods, Microgrid 3 utilizes its gas turbine units to supply electricity to the other two microgrids. The power exchange is dynamic and varies with time, reflecting the fluctuations in renewable output and demand levels. During off-peak hours, Microgrid 3 reduces its own generation and purchases more low-carbon electricity from Microgrids 1 and 2 to optimize operational costs and improve efficiency.
Figure 4 illustrates the power distribution and trading among microgrids. During 06:00–14:00, Microgrid 3 mainly purchases electricity from Microgrids 1 and 2, which act as sellers due to higher renewable output. After 16:00, Microgrid 3 becomes a power supplier. Although most trading still involves the grid operator, inter-microgrid exchanges occur regularly and reflect dynamic load and generation conditions.
5.4. Carbon Emission Analysis
Table 6 compares carbon emissions and trading revenues for each microgrid before and after electricity trading. After integration, Microgrids 1 and 3 reduced emissions by 15.5% and 19.78%. Microgrid 2, which has no carbon-emitting units, is excluded. Overall, the alliance saw lower carbon emissions, reduced trading costs, and increased revenues.
Figure 5 illustrates the impact of different power and carbon contribution weightings on revenue allocation among microgrids. When carbon weighting increases, Microgrids 1 and 2 receive higher revenues due to their greater renewable generation. Conversely, higher power weighting shifts more revenue to Microgrid 3, which has a larger generation capacity. The allocation pattern changes gradually with the weighting, showing a clear trade-off between power and carbon contributions.
5.5. Convergence Analysis
This study applies the ATC algorithm to solve Subproblems 1 and 2 through distributed iterative processes, as illustrated in the following figures.
Figure 6 illustrates the iterative convergence results for Problems 1 and 2 using the improved ATC algorithm. Problem 1, which involves the coordination between the grid operator and the microgrid alliance, converges in seven iterations. Problem 2, incorporating more complex inter-microgrid trading behavior, requires nine iterations to reach convergence. Both problems exhibit stable decline in residuals and ultimately meet the set convergence threshold of 10
−3.
Figure 7 shows the iterative process of linking power between the microgrids and the grid operator under two scenarios. In the case without inter-microgrid trading, the linking power values gradually stabilize and converge within seven iterations. When inter-microgrid trading is enabled, the presence of additional coupling relationships leads to a slightly longer convergence process, reaching stability after nine iterations. In both cases, the linking power values from different microgrids align to a common value as the iterations progress.
6. Conclusions
This study proposes a collaborative scheduling strategy for multi-microgrid systems that optimizes power and carbon marginal contributions based on a cooperative Stackelberg game framework. The approach balances power and carbon efficiency while enabling equitable revenue distribution and global optimization. A power and carbon contribution factor is proposed to evaluate each microgrid’s role, ensuring fair resource sharing and benefit allocation. To enhance incentive compatibility and fairness, the VCG mechanism is integrated into the revenue distribution process. Additionally, a refined ATC algorithm with Anderson acceleration is adopted for faster convergence. The case study yields the following conclusions:
(1) In the cooperative Stackelberg game model, the upper-level grid operator directs overall scheduling and revenue distribution for the microgrid alliance. The lower-level microgrid alliance facilitates resource sharing and cooperation, boosting economic and environmental outcomes, promoting renewable energy development, and encouraging microgrid collaboration.
(2) By incorporating power and carbon impact factors into the revenue model, this approach ensures fair benefit allocation among microgrids, promoting clean energy and carbon reduction. The VCG mechanism is introduced to enhance fairness and incentive compatibility. Distribution equity is measured using the Jain fairness index. This strategy can foster microgrid collaboration and enhance low-carbon operation.
(3) The improved ATC algorithm is utilized for decentralized optimization. By applying hierarchical optimization across upper and lower levels and integrating Anderson acceleration, the algorithm substantially boosts convergence rate, enhances computational efficiency, enables real-time scheduling in multi-microgrid systems, and improves result accuracy and effectiveness.
The framework developed in this work may provide useful insights for stakeholders in the energy sector. Grid operators could potentially utilize the coordination mechanisms to improve multi-microgrid management, while microgrid developers might apply the cooperative strategies in designing collaborative energy systems. The carbon contribution evaluation methods could serve as a reference for energy policy makers developing carbon trading policies, and the VCG-based allocation mechanism might be adopted by energy market designers for creating fair trading platforms.
Although this study focuses on collaborative scheduling and fair benefit allocation from economic and environmental perspectives, the proposed framework provides a solid foundation for the future integration of advanced intelligent functionalities. The hierarchical Stackelberg–Nash architecture and the distributed optimization approach are inherently adaptable and can be extended to incorporate modules such as self-healing control, real-time fault diagnostics, and resilience-oriented dispatch. These enhancements would significantly improve the autonomy, robustness, and adaptability of multi-microgrid systems operating under uncertain and dynamic conditions. Future research will explore these directions to broaden the model’s applicability toward more intelligent and resilient energy systems.