Research on the operation of integrated energy microgrid based on cluster power sharing mechanism

This paper proposes a Nash bargaining cooperative game model for a microgrid cluster system with double re-energy-load delay considering electricity, heat and gas multi-energy synergies. With the minimization of the operating cost of each microgrid as the objective function, a low-carbon operation model of a multi-energy complementary integrated energy microgrid considering fuzzy opportunity constraints is developed, an optimal operation mechanism including carbon quota and carbon trading is assessed, and a carbon capture system and an electricity-gas conversion device are added to the improved cogeneration unit model. Source-load uncertainty in microgrids is described in terms of new fuzzy parameters of new energy and undefined parameters of load demand. Each microgrid plays a second game with the marginal contribution rate and carbon trading cost rate as the bargaining power. The model is solved in a distributed manner using the ADMM-RGE algorithm. Finally, the simulation results show that the proposed multi-microgrid power-sharing way maximizes the benefits of microgrid alliances; the cooperative help of microgrid alliances is pretty distributed according to the size of each microgrid's energy contribution; carbon capture joint power-gas systems and energy sharing methods between microgrids can effectively reduce carbon emissions during microgrid operation.


Introduction
With the rapid development of the economy, energy consumption continues to grow, carbon emissions are increasing daily, and environmental pollution and climate change problems are becoming increasingly severe (Alaboudy et al., 2012).For this reason, China has committed to achieving the goal of carbon peaking and carbon neutrality by 2030 and developing carbon trading and other related policies.The integrated energy system is based on traditional electric energy.It adds other energy supply methods such as natural gas, heat and cold, which effectively improves the efficiency of the energy supply, empowers the concept of low carbon and better realizes the consumption of renewable energy (Ambia et al., 2021).
Research on energy trading among distributed microgrids mainly includes (1) promoting rated commercial energy trading among producers and consumers through blockchain technology (Astriani et al., 2018) and (2) maximizing the revenue of electricity trading among microgrids using game theory methods.Energy trading between multiple entities can generally be done in cooperative and non-cooperative games (Basak et al., 2012).
In the first category, the energy surplus or deficiency of the producer-consumer is always into two classes of opposing buyers and sellers, often through the Stackelberg game to optimize their respective individual costs to compete with each.They often compete to achieve the minimum energy cost based on Nash equilibrium through the Stackelberg game to optimize their costs (Che et al., 2015).The literature (Che & Chen, 2012) divides multiple community microgrids into buyer and seller.Mutual master-slave competition.Another method based on a bidding auction game (Dawoud et al., 2017;Pang et al., 2022) has the advantage that it is easy to write intelligently.The advantage of this approach is that it is easy to write intelligent contracts.In a non-cooperative game, each subject is considered selfish.In a non-cooperative game, each issue is considered selfish and antagonistic and thus lacks consideration of the overall interest.
In the second category, multi-subject P2P energy transactions are modelled as the coalition alliance game model or Nash bargaining (NB) model.Model.In the literature (Debouza et al., 2022), based on the coalition game optimization approach, the mutual benefits are distributed among the coalition members based on the Shapley value.The coalition game model is computationally complex and can only ensure the maximization of uses within a stable coalition and maximize benefits within the stable alliance but not the global benefits (Debouza et al., 2022).In this regard, the Nashnegotiation model overcomes the limitations of coalition games (Dawoud et al., 2017;Pang et al., 2022).In this paper, the optimization method belongs to the research area of Nash negotiation.
The main work of this paper differs from the existing work as follows: In terms of modelling, unlike the conventional combined heat and power (CHP) model, this paper considers the low-carbon operation requirements and constructs a new CHP unit model that couples a carbon capture system (CCS) with a power to gas (P2G) unit.This paper develops a new CHP unit model that connects a carbon capture system (CCS) and a power-to-gas (P2G) unit into a CHP unit.In terms of optimization methods, we first propose a multi-microgrid energy-sharing architecture based on microgrid cluster power trading considering source-load uncertainty and apply Nash negotiation theory to construct a multi-microgrid power-sharing cooperative optimization model, and then divide it into two stages: Stage 1: minimum coalition operation cost and Stage 2: maximum microgrid cluster revenue distribution, to investigate the impact of source-load uncertainty on microgrid operation cost.Finally, the proposed model is solved using the ADMM-RGE algorithm in the solution algorithm.The simulation results verify that the proposed optimal scheduling strategy not only reduces the operating cost of each microgrid but also does not require too much information interaction between microgrids during the calculation.In addition, the impact of confidence level on the operating cost and carbon emission of microgrid clusters is also investigated.

Integrated energy microgrid cluster structure and mathematical model
The architecture of a microgrid cluster system consisting of three microgrids connected to the public grid is shown in Figure 1.Each microgrid in the system is mainly composed of wind turbines, PV turbines, micro gas turbines, CHP units with CCS and P2G technologies, batteries, and electric heating loads.Multiple MGs have different and complementary energy production and sales.A 2step priority consumption and dispatch strategy for new energy is implemented to achieve efficient consumption of new energy in microgrid clusters.(1) to minimize the operating cost of each microgrid to meet the electricity and heat demand of users within the microgrid; (2) to solve the revenue distribution problem after trading within the microgrid cluster.The energy trading market described in this paper consists of a sizeable public grid, a microgrid cluster trading centre and each microgrid.In the microgrid cluster power trading, microgrids can interact with the large public grid for power and participate in energy trading among microgrids.When the net force in the microgrid is greater than 0, the microgrid needs to purchase power from the public grid or the rest of the microgrid, which is a power-purchasing microgrid; when the net force in the microgrid is less than 0, the microgrid needs to sell power to the public grid or other microgrids, which is a powerful selling microgrid; when the net force in the microgrid is equal to 0, the microgrid does not need to participate in energy trading, which is a balancing microgrid.The microgrid is a balance microgrid at this time.

Integrated energy microgrid foundation model
This paper studies an integrated energy microgrid with complementary electricity, heat and gas.To reduce the carbon emissions generated by the operation of CHP units, this paper proposes to integrate carbon capture and P2G technologies into the CHP unit model to operate synergistically as a whole in response to the national development strategy of green and low-carbon energy transformation.

System model
(1) Gas unit model The kth (k = 1, 2, 3) microgrid whose gas units burn natural gas to produce electricity has the following relationship between power generation and natural gas consumption.
where V CHP k,T is the natural gas consumption;η CHP is the generation efficiency of the gas-fired unit;Q CH 4 is the calorific value of natural gas combustion; considering that the cogeneration power of the gas-fired unit has the constraint of 'heat for electricity', the thermal capacity of the gas unit at time T can be described by Equation (2).where H CHP k,T is the heating power of the CHP unit at time t; and X min X max are the electrical and thermal conversion coefficients of the HP unit corresponding to the minimum and maximum output power, respectively; X h is the linear supply slope of the electrical energy produced by the CHP unit; H k,0 and is the thermal power corresponding to the minimum power generated by the CHP unit.
The heat production power of the gas boiler H CB k,T is.
where V GB k,T is the natural gas consumption of the gas boiler in the kth microgrid in period t;η GE is the efficiency of the gas boiler.
(2) CHP model with CCS and P2G technology In the CHP model with P2G and CCS technologies, the CHP generates power as.
where P E k,T does the CHP unit demand the electricity to supply electricity; γ is the conversion factor of the electricity consumed to capture CO 2 ; β is the amount of CO 2 produced per unit of electricity produced by the CHP unit; P P2G k,T Is the electricity consumed to supply P2G.
P2G power consumption of electrical energy to produce natural gas. (5) The electrical power of CCS, P2G and CHP are all within their corresponding upper and lower power limits, respectively.

P
Bringing the upper and lower bound constraints of Equation ( 6) into Equation ( 7), the coupling characteristics of the new CHP electrothermal power with P2G and CCS are obtained as follows.
The coupling relationship between the power supply, thermal power and gas production power of CHP is obtained as shown in Equation ( 9).
(3) Battery Energy storage system model The charge state of the battery storage system at time t during the charging and discharging process is shown in Equation 10.
where energy loss coefficient η loss ≈ 0; charging and discharging efficiency η input < 1 < η ouput ; (4) Electrical and thermal load model The electrical load P load k,T in the microgrid at the time consists of three parts: fixed load P f k,T and level able electrical load P tran k,T , and curtailable electrical load P cut k,T , which can be expressed as: The actual thermal load H load k,T in the microgrid is divided into two parts: fixed thermal load H f k,T and reduced thermal load H cut k,T .
The reduced thermal load H cut k,T can meet the following constraints.
where H cut k, max indicates the upper limit of the heat load that can be reduced.
(5) Carbon emission model The CO 2 emissions from the microgrid are expressed as.
where a, b and c are the CO 2 emission factors of the CHP unit and gas boiler, respectively, C t is the reduction of system CO 2 emission after the addition of CCS and P2G.

Cost model
Based on the microgrid system model established in Section 3.1, a cost optimization model for the cooperative sharing of electricity from multiple microgrids was developed.
where Cost MG k is the overall operating cost of the kth microgrid participating in inter-microgrid power trading.
(1) The operating costs of CHP units with CCS and P2G technologies are where a CHP and b CHP are the operating cost coefficients of CHP units; a CCS are the O&M cost coefficients of CHP units with CCS technology; a P2G are the cost coefficients of CHP with P2G technology; c 0 and are the operating cost constants.(2) External interaction costs Microgrid external interaction costs Cost utility k include the purchase cost of natural gas and the purchase and sale cost of electricity interacting with the grid.
where Up CH 4 k,T is the unit price per unit of natural gas purchased; V buy k,T is the amount of gas purchased when the CHP system is in operation; and Up buy T Up sell T is the unit price of electricity bought and sold, respectively.
(3) Energy storage system operating costs The operating cost of ESS Cost ESS k is.
where ζ is the cost factor of energy storage system operation.
(4) Carbon quota and carbon trading costs The carbon quota for microgrids is.
where μ is the carbon emission allowance per unit of electricity produced by the CHP microgrid; P RES k,T is the new energy generation power.
Cost of carbon trading Cost CO 2 k Derived as follows.
where ε is the carbon trading cost factor.
(5) Demand response costs Transferring or disconnecting the load requires compensation from the customer.
where Cost DR k is the demand response cost; λ cut e , λ tran e , λ cut h and are the compensation costs for load shifting and load shedding, respectively.
(6) Electricity transmission cost The transmission of electricity between microgrids requires the payment of a cross-grid fee to the distribution network operator, and the cost of the cross-grid price is.
where a e is the cost per unit of electrical energy over the grid.
(7) Electricity sharing costs Let P RMG i−j,t denote the amount of electric energy traded between microgrid i and other microgrid j at time t.If P RMG i−j,t > 0, microgrid I obtain electric power from microgrid j, and vice versa, it supplies electric energy to microgrid j.Let r RMG i−j,t denote the price of electric energy that the microgrid I need to pay for the interacted electricity P RMG i−j,t , and the electric energy sharing cost Cost RMG k is: (25)

Consider source-load fuzzy chance constraint power balance constraint
Usually, the new energy generating unit output and load demand are described as deterministic values; however, the fluctuating and intermittent nature of the new energy unit output and the uncertainty of the load demand will have an impact on the microgrid operation, therefore, for the effects of the microgrid scenery output and load uncertainty, this chapter constructs a microgrid robust optimization operation model with strict power balance constraints as.
where P RES k,T is the forecast value of renewable units at moment T; ε RES,T is the forecast error of wind turbines or PV units at moment T; P RES,T is the amount of abandoned wind or light in the day-ahead dispatch plan at moment T; P load k,T is the forecast value of the electric load at moment T; ε L,T is the forecast error of electric load at the moment T.
Since the system power balance contains uncertain variables, the power balance under deterministic conditions will no longer be applicable; therefore, the influence of system uncertainty factors should be considered in inter-microgrid power trading.In this paper, a fuzzy processing method is used to introduce wind power undefined parameters and load fuzzy parameters to relax Equation (29) into a power constraint balance under a specific confidence level condition so that the possibility of this balance constraint is not less than the power constraint balance under.The chance of this balance constraint holding is not less than, so the set of uncertainties is constructed as follows.
where min P r {.} indicates the credibility of the event.
In this paper, in solving the microgrid day-ahead dispatching model with fuzzy opportunity constraint planning, the conversion method is used to transform the fuzzy opportunity constraint planning problem into a deterministic constraint planning problem.In the microgrid system operation with high-security requirements, the confidence level is therefore not easily too low, and when α > 1/2, the apparent equivalence P r {g(x, ξ) 0} α of the opportunity constraint is. where is the assumed two functions; h 0 (x) is a part of the function g(x, ξ), which can be referred to in the literature (18); r k1 -r k4 (k = 1,2 . . ..t) is the affiliation parameter.
The expression of the trapezoidal fuzzy parameter is.
where is PFuzzy T the fuzzy parameter in the system; P Pre T is the predicted value; ρ 1 , ρ 2 ,ρ 3 and ρ 4 is the affiliation parameter of wind power and load in time T; w 1 , w 2 , w 3 and w 4 is the proportional parameter, which is generally determined by the historical data of the fuzzy parameter.Equation ( 29) is transformed into the corresponding precise equivalence class according to the transformation method of trapezoidal parameters.The particular equivalence class under triangular fuzzy parameters is used in this paper.
The power balance precise equivalence class is.

Other constraints
(1) Thermal power balance constraint (2) Gas balance constraint The addition of P2G can reduce the need for gas purchases.
(3) Constraints on power trading within microgrid clusters Within the power transmission limits of the electrical energy transmission line between microgrids at each period t output or received.
Let P P2P i−j,t denote the total amount of electricity traded by microgrid I participating in energy sharing in time t and the corresponding payment to be paid v i,t .The microgrid participating in power trading must satisfy the energy sharing balance and transaction payment balance constraints.

ADMM-RGS algorithm
ADMM can decompose a complex problem into multiple sub-problems and is suitable for solving multisubject optimization problems.The model proposed in this paper, the standard ADMM with two operators, is not applicable and needs to be extended to the threeoperator form.Still, the extended form cannot ensure the convergence of the solution results.Therefore, it is necessary to add the correction link of variables, i.e.ADMM-RGS, to the 3-operator basis to ensure the algorithm's convergence.The direct extension form of the 3-operator ADMM can be expressed as.
where φ 1 (x), φ 2 (y) and φ 3 (z) are the three operators; A, B, C and d are the coupling coefficient matrices; x, y and z are the coupling variables of the three subproblems; H 3 a (x, y, z, β) is the augmented Lagrangian function; β is the Lagrangian multiplier; η is the penalty factor.

Stage 1: minimizing microgrid operating costs
First, it is necessary to establish a microgrid cluster operation cost minimization model, where the total cost is the sum of the energy cost of each microgrid, and construct the power trading model of the microgrid cluster based on the Nash game model as follows.
⎧ ⎨ Since the microgrid cluster power trading balance constraint is multi-coupled among all microgrids, the auxiliary variables are introduced to transform the microgrid cluster operating cost minimization model into a dualcoupling model as shown in Equation ( 41) to equate the multi-coupling constraint.
where P RMG i−j,T denotes the electricity I plan to trade with microgrid j; then P RMG j−i,T denotes the electricity that microgrid j intends to change with microgrid I; when P RMG i−j,T + P RMG j−i,T = 0 it indicates that the electricity transaction between microgrid i and microgrid j is completed.The steps for solving the microgrid cluster operation cost minimization model based on the ADMM-RGE algorithm are follows.
Step 1: Establish the incremental Lagrangian function for minimizing the cost of microgrid cluster operation.
where λ MG min i−j is the Lagrangian multiplier; set penalty parameter ρ RMG min i = 10 −3 .
Step 2: To ensure an orderly microgrid cluster market, only electricity information is exchanged between microgrids and the microgrid trading strategy is updated by local calculation.Let u denote the number of iterations.In each iteration, the following steps are executed.
The update strategy for Microgrid i P RMG j−i,t (u + 1) is as follows.
The update strategy for microgrid j P RMG j−i,t (u + 1) is as follows.
Until each microgrid updates its trading power strategy in the current iteration.
Step 3: After one round of iterations, the formula updates the Lagrange multiplier.
Step 4: update the number of iterations u = u + 1.
Step 5: Determine whether the algorithm converges.
where ε m is the electric power residual value of the mth microgrid; δ 1 for convergence accuracy, this paper takes 10-3.

Stage 2: cost allocation within the microgrid cluster
This paper uses marginal contribution rate and carbon transaction cost to quantify the weights of different microgrids in the internal trading of micro electricity clusters.Then, the microgrids negotiate with each subject's electric energy contribution among themselves twice to determine the internal trading tariff between each subject.The process of revenue allocation after internal trading is as follows.
Firstly, the contribution of each microgrid to the cooperation is reflected by comparing the cost changes before and after joining the collaboration in the process of power trading.The marginal contribution rate S MC i is given by.
where Cost MG i is the cost of each microgrid before cooperation, Cost MG i,0 is the cost of each microgrid before cooperation, i.e.
The carbon cost ratio is where Cost CO 2 i denotes the carbon cost of each microgrid; Cost SG i indicates the operating cost of each microgrid.The marginal contribution rate S MC i and the carbon trading cost ratio S CE i yield a total bargaining value S i of.
where γ 1 and γ 2 are the marginal contribution rate S MC i and the carbon cost ratio S CE i , respectively, as weights in the bargaining power γ 1 + γ 2 = 1.
Finally, normalizing the above equation, the bargaining factor for each microgrid Bar n is.
Finally, according to the established quantitative model of bargaining power, the microgrid cluster optimal interaction power is substituted into the microgrid cluster revenue allocation model, which is constructed based on the model of Nash negotiation as shown in Equation ( 51).31), ( 36) The microgrid cluster internal transaction allocation model is similar to the microgrid cluster operation cost minimization model solving process, which is not repeated in this paper.

Basic data
The power-sharing mechanism among the three microgrids is studied in the asymmetric Nash negotiationbased microgrid cluster power-sharing model constructed in this paper (Table 1).Microgrids a and c are conventional CHP units.At the same time, Microgrid b is modified into a new CHP unit model with a carbon capture system and electric-to-gas converter to verify its effectiveness in carbon reduction.The unit output and electric and thermal load forecast data of each microgrid are shown in Figure 2. The interactive electricity price between each microgrid and the public main network is shown in Table 2.

Analysis of algorithm convergence
In this chapter, The ADMM-RGE algorithm is used to solve the distributed problem. Figure 3 shows the convergence result of micro-grid cluster operation cost considering the uncertainty of source load.The ADMM algorithm converges to 19288.26CHY after 35 iterations, and the calculation time is 203 s, while the ADMM-RGE algorithm only needs 30 iterations and takes 167 s.Therefore, the algorithm adopted in this chapter has good convergence and computational speed.

Analysis of power-sharing results of microgrid cluster
Figure 4 shows the power-sharing results of microgrid clusters with source load uncertainties taken into account.As can be seen from Figure 4, during the period of 06:00-18:00, the photovoltaic power generation of MGc is in excess, and the energy demand of MGb is large.MGc supplies energy to MGb to reduce the operation cost of the microgrid cluster.During 00:00-06:00    and 18:00-24:00, due to natural factors, the MGc photovoltaic generating set can hardly supply power.In this case, power needs to be purchased from MGa and MGb  to meet the needs of users in the microgrid.To reduce the risk caused by the uncertainty of source load, the MGb needs to ensure sufficient standby scheduling capacity, which is in the situation of 'supply is less than demand' in the whole period.During 00:00-08:00 and 18:00-24:00, the wind power unit has excess capacity and supplies energy to other microgrids.During 08:00-18:00, the wind power unit has insufficient capacity and needs to purchase power from MGc to meet its demand.
Figure 5 shows the transaction price result of each microgrid subject after mutual negotiation in the microgrid cluster.As shown in Figure 5, the internal transaction price of the micro-grid cluster is between the electricity selling price and the electricity purchasing price of the superior main network.Therefore, the electric energy trading of the micro-grid cluster can sell the electric energy at a price higher than the electricity purchasing price of the main network, and purchase the renewable energy electricity at a price lower than the electricity selling price of the main network, thus effectively reducing the operation cost of each main body of the micro-grid cluster.
The power optimization of each main body of the microgrid cluster is shown in Figure 6.It can be seen that each main body of the microgrid cluster preferentially consumes renewable energy on the premise of realizing the optimization of its power scheduling.For the shortage or surplus power, the cost optimization of the microgrid cluster can be realized using power-sharing of the microgrid cluster.For CHP units in MGb, almost no power is output to the demand side, but all the power is used for P2G and CCS equipment, which improves the operating income of the microgrid and reduces the carbon emission of the system.

Carbon emission analysis of microgrid cluster
Table 3 shows the carbon emission before and after power transactions of various comprehensive energy microgrids, taking source load uncertainty into account.As can be seen from Table 3, the carbon emissions of each microgrid after participating in the internal transaction of the microgrid cluster are reduced by 327.38, 862.59 and 267.03 kg, respectively.It can be seen that after participating in the internal transaction of the microgrid cluster, each microgrid reduces the carbon emission of the microgrid cluster by giving priority to the use of clean energy such as landscape.

Analysis of benefits and costs of microgrid sets
Table 4 shows the operating cost results before and after microgrid cluster sharing, taking source load uncertainty into account.Table 4 shows that the negotiation coefficients of each microgrid are 1.17, 0.85 and 1.23 respectively, and the cost of each microgrid is reduced by −100.31,3578.25 and −3481.95CHY.It can be seen that the benefit distribution method based on negotiation power proposed in this paper can reduce the operating cost of each main body of the microgrid cluster (Table 5).The operating costs of microgrid clusters under different confidence levels are shown in Figure 7 As can be seen from Figure 7, with the improvement of confidence, the operating cost of microgrid clusters is constantly increasing.This is because to reduce the operation risk caused by the uncertainty of source load, the system needs to increase the reserve capacity, which leads to a decrease in system benefits.In the actual operation of the microgrid, the appropriate confidence level should be selected according to the actual demand of the microgrid cluster, considering the security and economy comprehensively.

Conclusion
With the increasing proportion of renewable energy supply in the power system, a multi-microgrid inter-energy trading model based on a cooperative game framework is proposed in this paper in response to the requirement for low-carbon operation of the power system.The main findings are as follows.
(1) Based on the optimization model of multi-microgrid power-sharing solved by the ADMM-RGE algorithm, each microgrid only exchanges a limited amount of transacted power and transacted tariff information during the cooperation process.Thus the privacy of each participating subject can be effectively protected, and the proposed algorithm has good convergence.
(2) Compared with independently operated microgrids, the operating cost of each microgrid is effectively reduced, and the local consumption rate of new energy can be significantly improved.(3) Microgrid quantifies bargaining power according to marginal contribution rate and carbon cost rate in the microgrid cluster.Electric energy trading takes bargaining power as an essential indicator of revenue distribution and achieves fair revenue distribution.Each microgrid gets more benefits in the distribution by improving bargaining power, thus effectively stimulating each microgrid to participate in energy cooperation and motivating distributed subjects to increase new energy generation construction.(4) Improving CHP units by adding carbon capture electrical co-conversion systems and sharing power among microgrids can reduce carbon emissions during microgrid operation and promote low-carbon processes.In future research, we will further study the low-carbon process in the context of carbon trading and review the advanced modelling and capacity optimization allocation of carbon capture systems and electrical co-conversion units in microgrids to minimize carbon emissions in cogenerationtype microgrid operation.

Figure 2 .
Figure 2. Forecast values of pre-day electrical load, thermal load and wind turbine output.(b) MGb day-ahead electric load, thermal load and wind turbine output forecast.(c) MGc day-ahead electric load, thermal load and wind turbine output forecast.

Figure 4 .
Figure 4. Electricity trading results of each subject in the microgrid cluster.

Figure 5 .
Figure 5. Electricity trading tariff results within the microgrid cluster.

Figure 7 .
Figure 7. Relationship between confidence and operating costs.

Table 1 .
Parameters of integrated energy microgrid dispatching model.

Table 2 .
Electricity purchasing price and selling price of Microgrid.

Table 3 .
Carbon emissions before and after microgrid cluster sharing with source-load uncertainty.

Table 4 .
Benefit and cost studies before and after microgrid cluster sharing under source-load uncertainty.

Table 5 .
Comparison of benefit distribution of standard Nash models.