Multi-microgrid system energy transaction method and system based on master-slave game
By introducing master-slave game theory into the multi-microgrid system, the energy transaction between the microgrid and the distribution network is optimized, which solves the problems of low efficiency and high cost in energy transactions, and achieves more efficient energy dispatch and operating benefits. promote.
Patent Information
- Application Number
- CN202410754697.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Multi-microgrid systems have problems such as low distributed energy benefit efficiency, high microgrid operating costs, and poor power supply reliability in energy transactions. Existing technologies fail to give full play to the positive role of internal electricity prices in the power market on the energy dispatch of microgrid groups.
Adopting a multi-microgrid system energy trading method based on master-slave game, by establishing the benefit model of each microgrid and the operating benefit model of the distribution network operator, based on the predicted electricity price and energy transaction volume, the electricity sales price and purchase price are optimized, and the distribution The active power output by the generator realizes energy transaction scheduling between the microgrid and the distribution network.
Effectively optimize the energy dispatch of multiple microgrids, reduce operating costs, improve the operating income of distribution network operators, smooth the energy fluctuations in the interaction between regional power grids and large power grids, and improve the economic benefits of individual microgrids and the region as a whole.
Smart Images

Figure CN118587012A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of microgrid energy distribution, and in particular relates to a multi-microgrid energy system trading method and system based on master-slave game. Background Art
[0002] The multi-microgrid (MMG) system is an electric power system composed of multiple microgrids, which reduces the dependence of microgrids on distributed generators and micro gas turbines, and gives different microgrids the function of using renewable energy for power mutual assistance. Although the MMG system has advantages that a single microgrid does not have, the complexity of its energy management is greatly increased. Game theory is an effective method to solve the decision-making process of different stakeholders with conflicting goals. Any game model includes three parts: the player, the strategy set composed of decision variables, and the player's benefits. The energy transaction of the MMG system involves not only multiple microgrids, but also the distribution system operator (DSO). In the existing technology, the MMG energy transaction is solved by introducing the game method. In the MMG energy transaction, it is necessary to optimize the energy scheduling of the microgrid, improve the operating efficiency of the single microgrid and the region as a whole, and enhance the reliability of the regional power grid.
[0003] The existing technology adopts a variety of methods to solve the problem of multi-microgrid optimization scheduling. For example, multiple residential units are combined into a regional energy system, and a shared facility controller schedules power transactions between different residential units under the proposed electricity price strategy. Another example is that the distribution network operator sends transaction instructions to each MG (microgrid, MG), and similar power market operators are also used to control the energy transactions of different MGs to maximize the benefits of the MMG system. There is also a management system that optimizes the optimal output value of the distributed power source with the goal of minimizing the operating cost of each MG and transmits it to the upper layer, which coordinates the power transactions between different MGs. A microgrid double-layer energy trading method is proposed. A non-cooperative game model is established according to a user terminal, and the load strategy corresponding to the user terminal is optimized and scheduled according to the non-cooperative game model to obtain a first load strategy. The microgrid role is determined according to the first load strategy. The microgrid roles include microgrid sellers and microgrid buyers. A multi-master and multi-slave Stackelberg game model is established between the microgrid seller and the microgrid buyer. The energy trading strategy of the microgrid seller is optimized and scheduled according to the multi-master and multi-slave Stackelberg game model to obtain a first energy trading volume strategy. According to the multi-master and multi-slave Stackelberg game model and the first energy trading volume strategy, the buying strategy of the microgrid buyer is optimized and scheduled to obtain a first buying strategy. However, this method still has shortcomings in optimizing the scheduling of distributed energy in microgrids, and does not give full play to the positive role of the internal electricity price of the power market on the energy scheduling of microgrid groups. There is room for further improvement. The multi-microgrid system is optimized and scheduled by minimizing the operating cost of a single microgrid, optimizing the interaction between distributed power sources and upper-level management, focusing on upper-level energy management, and constructing a dynamic electricity price model. However, these goals are too single, and all take overall optimization as a strategy, without paying attention to the regulatory role of the power market. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the present invention provides a multi-microgrid system energy trading method and system based on master-slave coordination, which solves the problems of low distributed energy benefit efficiency, high microgrid operating cost and poor power supply reliability in multi-microgrid energy trading.
[0005] The present invention adopts the following technical solution.
[0006] The present invention proposes a multi-microgrid system energy trading method based on master-slave game, wherein the multi-microgrid system includes multiple microgrids and distribution network operators, including:
[0007] Establish each microgrid benefit model based on the predicted electricity price; aggregate multiple microgrid benefit models to establish the distribution network operator operation benefit model;
[0008] Collect the active power output of distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit model of each microgrid and the operating benefit model of the distribution network operator, and establish an energy trading optimization model for a multi-microgrid system based on the master-slave game;
[0009] Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, the optimal electricity sales price and electricity purchase price are solved with the goal of optimizing the operating efficiency of the distribution network operator;
[0010] Based on the energy transaction volume model between each microgrid and distribution network operator and the energy transaction optimization model of multi-microgrid system, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generators in the microgrid under the optimal electricity sales price and electricity purchase price is solved.
[0011] Preferably, the output power of each microgrid, the charging and discharging power of the energy storage device in each microgrid, and the load of the microgrid are collected to establish an energy transaction volume model between each microgrid and the distribution network operator.
[0012] Preferably, the output power of the microgrid includes: the active power output by the distributed generators in the microgrid, and the active power output by the photovoltaic generator sets in the microgrid;
[0013] The energy transaction volume model between the microgrid and the distribution network operator satisfies the following relationship:
[0014] P net,i,t =P DG,i,t +P PV,i,t -ΔP s,i,t -P PL,i,t
[0015] Where P net,i,t is the energy transaction volume of the i-th microgrid in period t. net,i,t >0 means microgrid sells electricity. net,i,t <0 means the microgrid purchases electricity; P DG,i,t is the active power output by the distributed generator in the i-th microgrid in time period t; P PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t.
[0016] Preferably, establishing each microgrid benefit model based on the predicted electricity price includes: introducing variables characterizing the energy trading state of each microgrid, and establishing constraints on the energy trading volume of each microgrid and the distribution network operator based on each microgrid benefit model.
[0017] Preferably, each microgrid benefit model satisfies the following relationship:
[0018]
[0019] In the formula, f m,t is the microgrid benefit in time period t, k i is the benefit coefficient of the i-th microgrid, k i ln(1+P PL,i,t ) represents the marginal benefit of the load of the i-th microgrid in time period t; is the electricity price predicted for period t, P s,i,t is the electricity sales of the i-th microgrid in time period t; is the predicted electricity purchase price in period t, P b,i,t is the amount of electricity purchased by the i-th microgrid in time period t; C DG,i,t is the operating cost of the i-th microgrid in time period t.
[0020] Preferably, the energy transaction amount constraint between each microgrid and the distribution network operator satisfies the following relationship:
[0021] P net,i,t =P s,i,t -P b,i,t
[0022]
[0023] D s,i,t +D b,i,t ≤1
[0024] In the formula, is the maximum power of the tie line of the i-th microgrid in time period t, D s,i,t , D b,i,t are binary variables representing the energy transaction status of the i-th microgrid in time period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t.
[0025] Preferably, aggregating multiple microgrid benefit models to establish a distribution network operator operating benefit model further includes: establishing an electricity price constraint on the distribution network operator operating benefit.
[0026] Preferably, the distribution network operator operates a benefit model that satisfies the following relationship:
[0027] f D,t =π mb,t E s,t -π ms,t E b,t +π Db,t(E b,t -E s,t )(1-M)+π Ds,t (E b,t -E s,t )M
[0028] In the formula, f D,t is the operating benefit of the distribution network operator in time period t;
[0029] M is the energy state within the distribution network. When M is 0, it means that the distribution network is in an energy demand state. When M is 1, it means that the distribution network is in an energy surplus state.
[0030] π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the grid during period t, π Db,t is the electricity price sold to the grid during period t;
[0031] E s,t is the energy demand in period t, satisfying: E s,t =∑ i∈I P b,i,t ; E b,t is the energy surplus in period t, satisfying: E b,t =Σ i∈I P s,i,t ; I is the microgrid collection.
[0032] Preferably, the electricity price constraint of the distribution network operator's operating benefits satisfies the following relationship:
[0033] πD s,t ≤π ms,t ≤π mb,t ≤π Db,t
[0034] In the formula, π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the power grid during period t, πD s,t is the electricity price sold to the grid during period t.
[0035] Preferably, the multi-microgrid system energy trading optimization model satisfies the following relationship:
[0036] L={(I∪{DSO}),{P DG,i,t} i∈I , {π ms,t},{π mb,t}, {f m,t}i∈I , f D,t}
[0037] Where L represents the master-slave game strategy definition, I is the set of microgrids, {DSO} is the set of distribution network operators, {P DG,i,t} i∈I is the output power set of multiple microgrids. In a non-limiting preferred embodiment, it is the set of active power output by distributed generators in each microgrid; {π ms,t},{π mb,t} are the electricity sales price set and the electricity purchase price combination issued by the distribution network operator in time period t; {f m,t} i∈I is the benefit set of multiple microgrids, f D,t Operational benefits for distribution network operators.
[0038] Preferably, based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, with the goal of optimizing the operating efficiency of the distribution network operator, the optimal electricity sales price and electricity purchase price are solved, including:
[0039] Based on the multi-microgrid system energy trading optimization model, the distribution network operator's operating benefit model is transformed to introduce the active power output of the distributed generators in the microgrid and the electricity sales price and purchase price issued by the distribution network operator as master-slave game nodes into the distribution network operator's operating benefit model;
[0040] With the goal of optimizing the operating efficiency of distribution network operators, the transformed operating efficiency model of distribution network operators is solved to obtain the optimal electricity sales price and electricity purchase price.
[0041] Preferably, the transformed distribution network operator operating benefit model satisfies the following relationship:
[0042]
[0043] In the formula, is the energy demand in period t after the master-slave game relationship is introduced, is the energy surplus in period t after the master-slave game relationship is introduced; f D,t is the operating benefit of the distribution network operator in time period t; M is the energy state within the distribution network. When M is 0, it means that the distribution network is in an energy demand state, and when M is 1, it means that the distribution network is in an energy surplus state; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the grid during period t, π Ds,t is the electricity price sold to the grid during period t.
[0044] Preferably, the energy demand in time period t after the master-slave game relationship is introduced satisfies the following relationship:
[0045]
[0046] In the formula, a DG 、b DG are cost coefficients; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π mb,t , are the lower and upper limits of the electricity purchase price issued by the distribution network operator in time period t; D b,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t; P PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t; is the upper limit of active power output by the distributed generator in the i-th microgrid;
[0047] After the master-slave game relationship is introduced, the energy surplus in time period t satisfies the following relationship:
[0048]
[0049] In the formula, π ms,t is the electricity price published by the distribution network operator in time period t, π ms,t , are the lower and upper limits of the electricity sales price published by the distribution network operator in time period t; D s,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t.
[0050] Preferably, based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, with the goal of optimizing the microgrid benefit, the active power output of the distributed generators in the microgrid under the optimal electricity sales price and electricity purchase price is solved, including:
[0051] Based on the multi-microgrid system energy trading optimization model, the microgrid benefit model is transformed to introduce the active power output by the distributed generators in the microgrid and the electricity sales price and electricity purchase price as master-slave game nodes into the microgrid benefit model.
[0052] With the goal of optimizing the microgrid benefit, the transformed microgrid benefit model is solved. Under the constraint of the energy transaction volume between each microgrid and the distribution network operator, the constraint relationship between the active power output of the distributed generator in the microgrid and the purchase and sale prices of electricity issued by the distribution network operator is obtained.
[0053] The optimal electricity selling price and electricity purchase price are substituted into the constraint relationship between the active power output of the distributed generator and the electricity purchase price and electricity selling price issued by the distribution network operator to obtain the active power output of the distributed generator in the microgrid under the optimal electricity selling price and electricity purchase price.
[0054] Preferably, the constraint relationship between the active power output by the distributed generator and the power purchase price and power sales price issued by the distribution network operator satisfies the following relationship respectively:
[0055]
[0056] In the formula, a DG 、b DG are cost coefficients; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t P is the electricity price published by the distribution network operator in time period t; PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t; is the upper limit of the active power output of the distributed generator in the i-th microgrid.
[0057] The present invention also proposes a multi-microgrid system energy trading system based on master-slave game, comprising:
[0058] Model building module, master-slave game solving module;
[0059] The model building module is used to establish the benefit model of each microgrid based on the predicted electricity price; aggregate multiple microgrid benefit models to establish the distribution network operator's operating benefit model; collect the active power output of the distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit models of each microgrid and the distribution network operator's operating benefit model, and establish a multi-microgrid system energy trading optimization model based on the master-slave game;
[0060] The master-slave game solving module is used to solve the optimal electricity sales price and electricity purchase price based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the operating efficiency of the distribution network operator; based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generator in the microgrid is solved under the optimal electricity sales price and electricity purchase price.
[0061] A terminal comprises a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of a method.
[0062] A computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0063] The beneficial effects of the present invention are that, compared with the prior art, at least the method proposed by the present invention effectively optimizes the energy scheduling of multiple microgrids, reduces the operating costs of microgrids participating in internal transactions in the electricity market, enables distribution network operators to obtain operating income, and smoothes energy fluctuations when regional power grids interact with large power grids.
[0064] Microgrids reduce their operating costs by optimizing scheduling; distribution network operators regulate the energy flow between microgrids by building electricity markets and setting market purchase and sales prices, thereby improving the profitability of distributed energy and obtaining operational benefits, while reducing the interactive power with the grid; simulation results show that the multi-microgrid energy trading method can effectively improve the economic benefits of a single microgrid and DSO, and optimize system energy scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a flow chart of a multi-microgrid energy trading method based on master-slave game proposed by the present invention;
[0066] Figure 2 is a microgrid photovoltaic power generation data diagram used in an embodiment of the present invention;
[0067] Figure 3 is a microgrid load curve diagram in an embodiment of the present invention;
[0068] Figure 4 is an optimization diagram of the internal market electricity purchase and sale prices after optimization in an embodiment of the present invention;
[0069] Figure 5 is a microgrid energy storage optimization diagram in an embodiment of the present invention;
[0070] Figure 6 is a distributed generator output optimization diagram in an embodiment of the present invention;
[0071] Figure 7 is a graph of the growth of microgrid benefits under the internal electricity price in an embodiment of the present invention;
[0072] Figure 8 It is a static power diagram of the interaction between the system and the power grid in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.
[0074] When multiple microgrids participate in the local power market constructed by DSO to purchase and sell electricity, by optimizing the energy scheduling between multiple microgrids, energy interaction with the power grid is required when there is an energy imbalance within the power market. Among them, the power market is an electricity trading system operated by DSO and sets the purchase and sale prices to obtain operating benefits.
[0075] The present invention proposes a multi-microgrid system energy trading method based on master-slave game. Figure 1 As shown, the following steps are included:
[0076] Step 1: Collect the output power of each microgrid, the charging and discharging power of the energy storage device in each microgrid, and the load of the microgrid to establish an energy transaction volume model between each microgrid and the distribution network operator.
[0077] Specifically, in a non-limiting preferred embodiment, the output power of each microgrid includes but is not limited to: the active power P output by the distributed generator in the microgrid DG,i,t , the active power P output by the photovoltaic generator set in the microgrid PV,i,t .
[0078] The energy transaction volume model between each microgrid and the distribution network operator satisfies the following relationship:
[0079] P net,i,t =P DG,i,t +P PV,i,t -ΔP s,i,t -P PL,i,t
[0080] Where P net,i,t is the energy transaction volume of the i-th microgrid in period t. net,i,t >0 means microgrid sells electricity. net,i,t <0 means the microgrid purchases electricity; P DG,i,tis the active power output by the distributed generator in the i-th microgrid in time period t; P PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t.
[0081] Among them, the constraints on the active power output by the distributed generators in each microgrid satisfy the following relationship:
[0082]
[0083] In the formula, is the maximum active power output by the distributed generator in the i-th microgrid.
[0084] Among them, the active power output by the photovoltaic generator set in each microgrid and the load of the microgrid respectively satisfy the following relationship:
[0085] P PV,i = {P PV,i,1 , P PV,i,2 ,…,P PV,i,T}
[0086] P PL,i = {P PL,i,1 , P PL,i,2 ,…,P PL,i,T}
[0087] Where P PV,i is the active power set output by the photovoltaic generator set in the i-th microgrid, P PL,i is the load set of the i-th microgrid, and T is the total number of microgrid optimization scheduling cycles.
[0088] Among them, the charging and discharging power of the energy storage device in each microgrid satisfies the following relationship:
[0089] ΔP s,i,t Δt=E s,i,t -E s,i,t-1
[0090] In the formula, E s,i,t is the remaining capacity of the energy storage device of the i-th microgrid in time period t, ΔP s,i,t is the charging and discharging power of the energy storage device of the i-th microgrid in time period t. s,i,t >0, the energy storage device is charged, when ΔP s,i,t <0, the energy storage device is discharged; Δt is the charging or discharging time.
[0091] Furthermore, the constraints of the energy storage devices in each microgrid satisfy the following relationship:
[0092]
[0093] E s,i,0 =E s,i,T
[0094] In the formula, is the maximum capacity of the energy storage device of the i-th microgrid, is the maximum charging and discharging power of the energy storage device in the i-th microgrid, E s,i,0 、E s,i,T are the remaining capacity of the energy storage device in the i-th microgrid in the initial period and the end period T of the microgrid optimization scheduling cycle, respectively.
[0095] Step 2: Establish a benefit model for each microgrid based on the predicted electricity price; introduce variables that characterize the energy trading status of each microgrid, and establish constraints on the energy trading volume between each microgrid and the distribution network operator based on the benefit model of each microgrid.
[0096] Specifically, step 2 includes:
[0097] Step 2.1, based on the predicted electricity price, establish the benefit model of each microgrid;
[0098] Each microgrid benefit model satisfies the following relationship:
[0099]
[0100] In the formula, f m,t is the microgrid benefit in time period t, k i is the benefit coefficient of the i-th microgrid, k i ln(1+P PL,i,t ) represents the marginal benefit of the load of the i-th microgrid in time period t; is the electricity price predicted for period t, P s,i,t is the electricity sales of the i-th microgrid in time period t; is the predicted electricity purchase price in period t, P b,i,t is the amount of electricity purchased by the i-th microgrid in time period t; C DG,i,t is the operating cost of the i-th microgrid in time period t.
[0101] Specifically, in a non-limiting preferred embodiment, based on the active power output by the distributed generators in each microgrid, the operating cost C of the i-th microgrid in time period t is obtained: DG,i,t Satisfies the following relationship:
[0102] C DG,i,t =a DG (P DG,i,t ) 2 +bDG P DG,i,t +C DG
[0103] In the formula, a DG 、b DG and c DG Both are cost coefficients.
[0104] Step 2.2, introduce variables that characterize the energy trading status of each microgrid, and establish constraints on the energy trading volume between each microgrid and the distribution network operator based on the benefit model of each microgrid;
[0105] Specifically, the energy transaction volume constraints between each microgrid and the distribution network operator satisfy the following relationship:
[0106] P net,i,t =P s,i,t -P s,i,t
[0107]
[0108] D s,i,t +D b,i,t ≤1
[0109] In the formula, is the maximum power of the tie line of the i-th microgrid in time period t, D s,i,t , D b,i,t are binary variables representing the energy transaction status of the i-th microgrid in time period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t.
[0110] The present invention introduces variables that characterize the energy trading state of the microgrid, establishes constraints on the energy trading volume between the microgrid and the distribution network operator based on the microgrid benefit model, and under the condition that the load of the microgrid is constant, the constraints on the energy trading volume have a direct impact on the output power of the microgrid and the charging and discharging power of the energy storage device in the microgrid. In particular, under the optimization goal of maximizing the benefit of the microgrid, under the constraints of the energy trading volume, the energy storage device is preferentially scheduled to achieve the interaction between the charging and discharging power of the energy storage device and the energy trading volume between the microgrid and the distribution network operator, and also forms an inherent master-slave game relationship between the energy trading volume between the microgrid and the distribution network operator and the benefit of the microgrid.
[0111] Step 3: Aggregate multiple microgrid benefit models to establish a distribution network operator operating benefit model, and establish electricity price constraints for the distribution network operator operating benefit.
[0112] The distribution network operator operation benefit model satisfies the following relationship:
[0113] f D,t =π ms,t E b,t -π ms,t E b,t +π Db,t (E b,t -E s,t )(1-M)+π Ds,t (E b,t -E s,t )M
[0114] In the formula, f D,t is the operating benefit of the distribution network operator in time period t;
[0115] M is the energy state within the distribution network. When M is 0, it means that the distribution network is in an energy demand state. When M is 1, it means that the distribution network is in an energy surplus state.
[0116] π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the power grid during period t, πD s,t is the electricity price sold to the grid during period t;
[0117] E s,t is the energy demand in period t, satisfying: E s,t =∑ i∈I P b,i,t ; E b,t is the energy surplus in period t, satisfying: E b,t =∑ i∈I P s,i,t ; I is the microgrid collection.
[0118] The electricity price constraint of the distribution network operator's operating efficiency satisfies the following relationship:
[0119] π Ds,t ≤π ms,t ≤π mb,t ≤π Db,t
[0120] Step 4: Collect the active power output of the distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit model of each microgrid, and the operating benefit model of the distribution network operator, and establish an energy trading optimization model for the multi-microgrid system based on the master-slave game.
[0121] Specifically, the multi-microgrid system energy trading optimization model satisfies the following relationship:
[0122] L={(I∪{DSO}),{PDG,i,t} i∈I , {π ms,t},{π mb,t}, {f m,t} i∈I , f D,t}
[0123] Where L represents the master-slave game strategy definition, I is the set of microgrids, {DSO} is the set of distribution network operators, {P DG,i,t} i∈I is the output power set of multiple microgrids. In a non-limiting preferred embodiment, it is the set of active power output by distributed generators in each microgrid; {π ms,t},{π mb,t} are the electricity sales price set and the electricity purchase price combination issued by the distribution network operator in time period t; {f m,t} i∈I is the benefit set of multiple microgrids, f D,t Operational benefits for distribution network operators.
[0124] Step 5: Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, with the goal of optimizing the operating efficiency of the distribution network operator, the optimal electricity sales price and electricity purchase price are solved.
[0125] Specifically, step 5 includes:
[0126] Step 5.1, based on the multi-microgrid system energy trading optimization model, the distribution network operator operation benefit model is transformed to introduce the active power output of the distributed generators in the microgrid and the electricity sales price and purchase price issued by the distribution network operator as master-slave game nodes into the distribution network operator operation benefit model;
[0127] Through conversion, the active power P output by the photovoltaic generator set in the i-th microgrid in time period t is PV,i,t , the charging and discharging power ΔP of the energy storage device in the i-th microgrid in time period t s,i,t ; is the load P of the i-th microgrid in time period t PL,i,t All of them become variables that affect the operating benefits of distribution network operators. Based on the multi-microgrid system energy trading optimization model, it can be known that the active power P output by the photovoltaic generator set in the i-th microgrid in time period t is PV,i,t , the charging and discharging power ΔP of the energy storage device in the i-th microgrid in time period t s,i,t ; is the load P of the i-th microgrid in time period t PL,i,tIt actually represents the active power output by the distributed generator in the i-th microgrid under the energy trading volume of the i-th microgrid in time period t. Therefore, the above transformation realizes the introduction of the active power output by the distributed generator in the microgrid and the electricity sales price and purchase price issued by the distribution network operator as a master-slave game relationship into the operation benefit model of the distribution network operator.
[0128] The transformed distribution network operator operating benefit model satisfies the following relationship:
[0129]
[0130] In the formula, is the energy demand in period t after the master-slave game relationship is introduced, is the energy surplus in period t after the master-slave game relationship is introduced.
[0131] Among them, the energy demand in time period t after the introduction of the master-slave game relationship satisfies the following relationship:
[0132]
[0133] In the formula, a DG 、b DG are cost coefficients; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π mb,t , are the lower and upper limits of the electricity purchase price issued by the distribution network operator in time period t; D b,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t; is the upper limit of the active power output of the distributed generator in the i-th microgrid.
[0134] After the master-slave game relationship is introduced, the energy surplus in time period t satisfies the following relationship:
[0135]
[0136] In the formula, π ms,t is the electricity price published by the distribution network operator in time period t, π ms,t , are the lower and upper limits of the electricity sales price published by the distribution network operator in time period t; D s,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t.
[0137] Step 5.2, with the goal of optimizing the operating efficiency of the distribution network operator, solve the transformed distribution network operator operating efficiency model to obtain the optimal electricity sales price and electricity purchase price.
[0138] Step 6: Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generators in the microgrid under the optimal electricity sales price and electricity purchase price is solved.
[0139] Specifically, step 6 includes:
[0140] Step 6.1, based on the multi-microgrid system energy trading optimization model, the microgrid benefit model is transformed to introduce the active power output by the distributed generators in the microgrid and the electricity sales price and electricity purchase price as master-slave game nodes into the microgrid benefit model. The transformed microgrid benefit model satisfies the following relationship:
[0141] f m,t =k i ln(1+P PL,i,t )+π mb,t (P DG,i,t )+P PV,i,t -ΔP s,i,t -P PL,i,t )-C DG,i,t
[0142] Step 6.2, with the goal of optimizing the microgrid benefit, solve the transformed microgrid benefit model to obtain the constraint relationship between the active power output by the distributed generators in the microgrid and the power purchase price and power sales price issued by the distribution network operator.
[0143] In the microgrid optimization dispatch cycle, under ideal conditions, when the benefits of each microgrid are maximized, the operating benefits of the distribution network operator are also maximized; the maximum benefits of each microgrid satisfy the following relationship:
[0144]
[0145] In the formula, is the benefit of each microgrid within the microgrid optimization scheduling cycle; KΔt represents a microgrid optimization scheduling cycle.
[0146] In a non-limiting preferred embodiment, when the microgrid purchases electricity, the following relationship is satisfied:
[0147] P net,i,t =P DG,i,t +P PV,i,t -ΔP s,i,t -P PL,i,t ≤0
[0148] Find the first-order partial derivative of the active power output of the distributed generator for the microgrid benefit model Combined with the constraints of energy trading volume between each microgrid and the distribution network operator, the constraint relationship between the active power output of the distributed generator and the purchase price and sales price of electricity issued by the distribution network operator is obtained, which respectively satisfies the following relationship:
[0149]
[0150] In step 6.3, the optimal electricity sales price and electricity purchase price are substituted into the constraint relationship between the active power output of the distributed generator and the electricity purchase price and electricity sales price issued by the distribution network operator to obtain the active power output of the distributed generator in the microgrid under the optimal electricity sales price and electricity purchase price.
[0151] Figure 2 , Figure 3 It is the microgrid photovoltaic data and load curve diagram, Figure 4 It is the internal market purchase and sale of electricity after optimization. Through the proposed master-slave game method, the internal market purchase and sale price is obviously lower than the grid electricity price, and higher than the on-grid electricity price, which reduces the operating cost of the microgrid and improves the benefits obtained. Figure 5 It is the microgrid energy storage optimization diagram. After the optimization of the proposed algorithm, the output of the microgrid energy storage system is optimized, which helps to reduce the operating cost. Figure 6 is the optimization diagram of distributed generators in each microgrid, Figure 6 It shows the result of the mutual influence between the coupled optimization variables in the proposed algorithm. The distributed generator power diagram is the corresponding strategy of the microgrid according to the electricity price formulated by the DSO, and it is the optimal result after the game. Figure 7 It is a graph of the growth of microgrid benefits under internal electricity prices, which shows that compared with the optimal scheduling of a single microgrid, establishing an electricity market through master-slave game is more meaningful for economic benefits. Figure 8 It is a static power diagram of the interaction between the system and the grid, which illustrates the proposed master-slave game energy trading method. In the regional microgrid, it can effectively reduce the interaction with the grid, enhance the reliability of the regional grid, and provide power to the grid when the electricity consumption is high at noon.
[0152] In the method proposed in the present invention, a complete set of multi-microgrid internal power market architecture is constructed, and a mathematical model of the operating benefit of a single microgrid is built. The model includes a distributed generator model, an energy storage system model, a photovoltaic and load model within a single microgrid. In the single microgrid operation objective function, maximizing the microgrid benefit is used as the objective function, and the energy storage system is preferentially optimized and scheduled. The energy storage output and the microgrid transaction status are interacted with the distribution network operator. Then, the distribution network operator constructs the distribution network operator operation benefit function by aggregating the information of each microgrid, constructs a master-slave game model, and optimizes the electricity price and power with the internal electricity market price and the distributed generator power as the game point. Finally, the obtained optimization result is substituted into the single microgrid benefit function to obtain its own benefit. By optimizing the microgrid energy scheduling, the operation benefits of the single microgrid and the region as a whole are improved, and the reliability of the regional power grid is enhanced.
[0153] Under the multi-microgrid energy trading framework, an overall optimization strategy is proposed. First, the single microgrid is optimized to determine the energy storage output and trading role of the microgrid in the game stage. Then, a master-slave game model between the microgrid and the distribution network operator is constructed. The internal electricity price of the power market and the output of the distributed generators of each microgrid are used as strategic points for game optimization. The distribution network operators intervene in the power market to macro-regulate the energy dispatch of multi-microgrid groups, reduce the operating costs of microgrids, and obtain their own operating benefits through the price difference, effectively smooth out the fluctuations when interacting with the large power grid, and improve the reliability of multi-microgrids in the overall region.
[0154] The present invention effectively reduces the operating costs of microgrids, improves the operating benefits of microgrids, and fully utilizes the multi-microgrid energy trading system of local distributed energy. The master-slave game theory is introduced into the multi-microgrid system to resolve the conflicts of interest between the participants in the power market. The existing technology mainly uses game theory to improve the dispatching and operating interests of the multi-microgrid system power market, but there is no complete and mature power market system, and the interests are focused on a single microgrid, and the role of electricity prices within the power market is not fully utilized. The method proposed by the present invention introduces distribution network operators to join the power market, focuses on electricity prices and distributed generators, couples the interests of distribution network operators and microgrids, and achieves the goal of mutual benefit and win-win.
[0155] The present invention also proposes a multi-microgrid system energy trading system based on master-slave game, comprising: a model building module, a master-slave game solving module;
[0156] The model building module is used to establish the benefit model of each microgrid based on the predicted electricity price; aggregate multiple microgrid benefit models to establish the distribution network operator's operating benefit model; collect the active power output of the distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit models of each microgrid and the distribution network operator's operating benefit model, and establish a multi-microgrid system energy trading optimization model based on the master-slave game;
[0157] The master-slave game solving module is used to solve the optimal electricity sales price and electricity purchase price based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the operating efficiency of the distribution network operator; based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generator in the microgrid is solved under the optimal electricity sales price and electricity purchase price.
[0158] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0159] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0160] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0161] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A multi-microgrid system energy trading method based on master-slave game, wherein the multi-microgrid system includes multiple microgrids and distribution network operators, characterized in that: include: Establish benefit models for each microgrid based on predicted electricity prices; Aggregate multiple microgrid benefit models to establish a distribution network operator operating benefit model; Collect the active power output of distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit model of each microgrid and the operating benefit model of the distribution network operator, and establish an energy trading optimization model for a multi-microgrid system based on the master-slave game; Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, the optimal electricity sales price and electricity purchase price are solved with the goal of optimizing the operating efficiency of the distribution network operator; Based on the energy transaction volume model between each microgrid and distribution network operator and the energy transaction optimization model of multi-microgrid system, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generators in the microgrid under the optimal electricity sales price and electricity purchase price is solved.
2. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: The method further comprises: The output power of each microgrid, the charging and discharging power of the energy storage device in each microgrid, and the load of the microgrid are collected to establish an energy transaction volume model between each microgrid and the distribution network operator.
3. The multi-microgrid system energy trading method based on master-slave game according to claim 2 is characterized in that: The method further comprises: The output power of the microgrid includes: the active power output by the distributed generators in the microgrid and the active power output by the photovoltaic generators in the microgrid; The energy transaction volume model between the microgrid and the distribution network operator satisfies the following relationship: P net,i,t =P DG,i,t +P PV,i,t -ΔP s,i,t -P PL,i,t Where P net,i,t is the energy transaction volume of the i-th microgrid in period t. net,i,t >0 means microgrid sells electricity. net,i,t <0 means the microgrid purchases electricity; P DG,i,t is the active power output by the distributed generator in the i-th microgrid in time period t; P PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t.
4. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: include: Establishing each microgrid benefit model based on the predicted electricity price includes: introducing variables that characterize the energy trading state of each microgrid, and establishing constraints on the energy trading volume between each microgrid and the distribution network operator based on the benefit model of each microgrid.
5. The multi-microgrid system energy trading method based on master-slave game according to claim 4 is characterized in that: include: Each microgrid benefit model satisfies the following relationship: In the formula, f m,t is the microgrid benefit in time period t, k i is the benefit coefficient of the i-th microgrid, k i ln(1+P L,i,t ) represents the marginal benefit of the load of the i-th microgrid in time period t; is the electricity price predicted for period t, P s,i,t is the electricity sales of the i-th microgrid in time period t; is the predicted electricity purchase price in period t, P b,i,t is the amount of electricity purchased by the i-th microgrid in time period t; C DG,i,t is the operating cost of the i-th microgrid in time period t.
6. The multi-microgrid system energy trading method based on master-slave game according to claim 4 is characterized in that: include: The energy transaction volume constraints between each microgrid and the distribution network operator satisfy the following relationship: P net,i,t =P s,i,t -P b,i,t D s,i,t +D b,i,t ≤1 Where P net,i,t is the energy transaction volume of the i-th microgrid in period t, P s,i,t is the electricity sales of the i-th microgrid in time period t, P b,i,t is the power purchase amount of the i-th microgrid in time period t, is the maximum power of the tie line of the i-th microgrid in time period t, D s,i,t , D b,i,t are binary variables representing the energy transaction status of the i-th microgrid in time period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t.
7. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: include: Aggregating multiple microgrid benefit models to establish a distribution network operator operating benefit model also includes: establishing electricity price constraints on the distribution network operator operating benefits.
8. The multi-microgrid system energy trading method based on master-slave game according to claim 7 is characterized in that: include: The distribution network operator operation benefit model satisfies the following relationship: f D,t =π mb,t AND s,t −π ms,t AND b,t +π Db,t (AND b,t -AND s,t )(1−M)+π Ds,t (AND b,t -AND s,t )M In the formula, f D,t is the operating benefit of the distribution network operator in time period t; M is the energy state within the distribution network. When M is 0, it means that the distribution network is in an energy demand state. When M is 1, it means that the distribution network is in an energy surplus state. π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the grid during period t, π Ds,t is the electricity price sold to the grid during period t; E s,t is the energy demand in period t, satisfying: E s,t =∑ i∈I P b,i,t ; E b,t is the energy surplus in period t, satisfying: E b,t =∑ i∈I P s,i,t ; I is the microgrid collection.
9. The multi-microgrid system energy trading method based on master-slave game according to claim 7 is characterized in that: include: The electricity price constraint of the distribution network operator's operating efficiency satisfies the following relationship: π Ds,t ≤π ms,t ≤π mb,t ≤π Db,t In the formula, π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the grid during period t, π Ds,t is the electricity price sold to the grid during period t.
10. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: include: The energy trading optimization model of multi-microgrid system satisfies the following relationship: L={I∪{DSO}),{P DG,i,t } i∈I ,{π ms,t }, {π mb,t },{f m,t } i∈I ,f D,t } Where L represents the master-slave game strategy definition, I is the set of microgrids, {DSO} is the set of distribution network operators, {P DG,i,t } i∈I is the output power set of multiple microgrids. In a non-limiting preferred embodiment, it is the set of active power output by distributed generators in each microgrid; {π ms,t },{π mb,t } are the electricity sales price set and the electricity purchase price combination issued by the distribution network operator in time period t; {f m,t } i∈I is the benefit set of multiple microgrids, f D,t Operational benefits for distribution network operators.
11. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: include: Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, the optimal electricity sales price and electricity purchase price are solved with the goal of optimizing the operating efficiency of the distribution network operator, including: Based on the multi-microgrid system energy trading optimization model, the distribution network operator's operating benefit model is transformed to introduce the active power output of the distributed generators in the microgrid and the electricity sales price and purchase price issued by the distribution network operator as master-slave game nodes into the distribution network operator's operating benefit model; With the goal of optimizing the operating efficiency of distribution network operators, the transformed operating efficiency model of distribution network operators is solved to obtain the optimal electricity sales price and electricity purchase price.
12. The multi-microgrid system energy trading method based on master-slave game according to claim 11 is characterized in that: include: The transformed distribution network operator operating benefit model satisfies the following relationship: In the formula, is the energy demand in period t after the master-slave game relationship is introduced, is the energy surplus in period t after the master-slave game relationship is introduced; f D,t is the operating benefit of the distribution network operator in time period t; M is the energy state within the distribution network. When M is 0, it means that the distribution network is in an energy demand state, and when M is 1, it means that the distribution network is in an energy surplus state; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t is the electricity price published by the distribution network operator in time period t, π Db,t is the electricity purchase price from the grid during period t, π Ds,t is the electricity price sold to the grid during period t.
13. The multi-microgrid system energy trading method based on master-slave game according to claim 12 is characterized in that: include: After the master-slave game relationship is introduced, the energy demand in time period t satisfies the following relationship: In the formula, a DG 、b DG are cost coefficients; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π mb,t , are the lower and upper limits of the electricity purchase price published by the distribution network operator in time period t, respectively; D b,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D b,i,t Taking 1 means that the i-th microgrid is in the power purchasing state in time period t; P PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t; is the upper limit of active power output by the distributed generator in the i-th microgrid; After the master-slave game relationship is introduced, the energy surplus in time period t satisfies the following relationship: In the formula, π ms,t is the electricity price published by the distribution network operator in time period t, π ms,t , are the lower and upper limits of the electricity sales price published by the distribution network operator in time period t, respectively; D s,i,t is a binary variable representing the energy transaction state of the i-th microgrid in period t, D s,i,t Taking 1 means that the i-th microgrid is in the power selling state in time period t.
14. The multi-microgrid system energy trading method based on master-slave game according to claim 1 is characterized in that: include: Based on the energy transaction volume model between each microgrid and the distribution network operator and the multi-microgrid system energy transaction optimization model, with the goal of optimizing the microgrid benefits, the active power output of the distributed generators in the microgrid under the optimal electricity sales price and electricity purchase price is solved, including: Based on the multi-microgrid system energy trading optimization model, the microgrid benefit model is transformed to introduce the active power output by the distributed generators in the microgrid and the electricity sales price and electricity purchase price as master-slave game nodes into the microgrid benefit model. With the goal of optimizing the microgrid benefit, the transformed microgrid benefit model is solved. Under the constraint of the energy transaction volume between each microgrid and the distribution network operator, the constraint relationship between the active power output of the distributed generator in the microgrid and the purchase and sale prices of electricity issued by the distribution network operator is obtained. The optimal electricity selling price and electricity purchase price are substituted into the constraint relationship between the active power output of the distributed generator and the electricity purchase price and electricity selling price issued by the distribution network operator to obtain the active power output of the distributed generator in the microgrid under the optimal electricity selling price and electricity purchase price.
15. The multi-microgrid system energy trading method based on master-slave game according to claim 14 is characterized in that: include: The constraints between the active power output of the distributed generator and the purchase price and sales price of electricity published by the distribution network operator satisfy the following relationships: In the formula, a DG 、b DG are cost coefficients; π mb,t is the electricity purchase price issued by the distribution network operator in time period t, π ms,t P is the electricity price published by the distribution network operator in time period t; PV,i,t is the active power output by the photovoltaic generator set in the i-th microgrid in time period t; ΔP s,i,t is the charging and discharging power of the energy storage device in the i-th microgrid in time period t; P PL,i,t is the load of the i-th microgrid in time period t; is the upper limit of the active power output of the distributed generator in the i-th microgrid.
16. A multi-microgrid system energy trading system based on master-slave game, characterized in that: include: Model building module, master-slave game solving module; A model building module is used to build benefit models of each microgrid based on the predicted electricity price; Aggregate multiple microgrid benefit models to establish a distribution network operator operating benefit model; collect the active power output of distributed generators in the microgrid, the electricity sales price released by the distribution network operator, the electricity purchase price released by the distribution network operator, the benefit models of each microgrid and the operating benefit model of the distribution network operator, and establish a multi-microgrid system energy trading optimization model based on the master-slave game; The master-slave game solving module is used to solve the optimal electricity sales price and electricity purchase price based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the operating efficiency of the distribution network operator; based on the energy trading volume model of each microgrid and distribution network operator and the energy trading optimization model of the multi-microgrid system, with the goal of optimizing the microgrid efficiency, the active power output of the distributed generator in the microgrid is solved under the optimal electricity sales price and electricity purchase price.
17. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 15.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.
