Multi-microgrid scheduling method, system and storage medium based on dynamic operation envelope

By dynamically operating the envelope and Nash bargaining models, combined with the alternating direction multiplier algorithm, the problem of ignoring distribution network constraints and privacy information protection in the existing technology is solved, and efficient microgrid resource allocation and grid security are achieved.

CN118381015BActive Publication Date: 2024-09-17CHINA UNIV OF MINING & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410796374.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing microgrid operation and scheduling methods ignore the operational constraints of the underlying distribution network, or only consider the virtual layer of the distribution network, resulting in inapplicability to actual systems, and the method of directly controlling the microgrid cannot protect the privacy information of the microgrid.

Method used

A multi-microgrid scheduling method based on dynamic operation envelope is adopted. By constructing a low-voltage radial distribution network model, the constraints are obtained, the total daily operation minimum cost of the microgrid is calculated, and a multi-microgrid is constructed based on the dynamic operation envelope algorithm and constraint conditions. The network Nash bargaining model uses the alternating direction multiplier algorithm to obtain the transaction power and transaction price, ensuring the physical constraints of the power grid and the protection of private information.

Benefits of technology

It improves network application efficiency, ensures that the voltage is within a safe range, realizes effective resource allocation and maximizes benefits between microgrids, and at the same time protects the privacy information of microgrids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381015B
    Figure CN118381015B
Patent Text Reader

Abstract

The present invention discloses a multi-microgrid dispatching method, system and storage medium based on dynamic operation envelope, which belongs to the technical field of intelligent dispatching of power system. The method includes: constructing a low-voltage radial distribution network model, obtaining a first constraint condition based on the low-voltage radial distribution network model; calculating the total daily operation minimum cost of the microgrid through an objective function, and obtaining a second constraint condition of the microgrid based on the minimum cost; obtaining a third constraint condition that limits the final net injected active power of the microgrid through a dynamic operation envelope algorithm and the first constraint condition based on the expected net injected active power of the microgrid; constructing a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition; obtaining the transaction power and transaction price of the microgrid through an alternating direction multiplier algorithm based on the Nash bargaining model. The present invention solves the problem that the network integrity of the distribution system may be destroyed during the transaction process of the microgrid system, and decouples the distribution network from the decision made by the microgrid, protecting the privacy of each microgrid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent dispatching of electric power systems, and in particular relates to a multi-microgrid dispatching method, system and storage medium based on a dynamic operation envelope. Background Art

[0002] Under the background of energy shortage, environmental protection and climate change, the development of clean energy and the connection of renewable energy power generation to the grid have become the popular trend of future smart grids. Constructing a multi-energy microgrid that coordinates and efficiently utilizes wind power, photovoltaics, energy storage, hydrogen fuel and other equipment, and coordinating the linkage of electricity, heat and gas to form a smart network of multi-energy complementary recycling can better adapt to local energy needs and reduce dependence on traditional fossil energy, which is of great significance for mitigating climate change. With the rapid development of distributed energy, microgrids, as an effective means to solve the imbalance between energy supply and demand and improve energy utilization efficiency, have made the optimization of multi-microgrid operation systems a research hotspot.

[0003] For example, the Chinese patent application "CN105515005B" discloses a multi-microgrid system optimization method based on an open market environment, which includes the following steps: data collection; data publication; lower-level optimization; upper-level coordination; execution plan, and the MGEMS of each member microgrid accepts and executes the final optimization plan issued by the DMS. The effect of this invention is that when using this method to optimize the multi-microgrid system, the interests of each microgrid are taken as the optimization goal. The microgrid can independently formulate its own optimization plan and increase its own income. Compared with the multi-microgrid system that does not allow transmission between microgrids, after allowing free transmission of electric energy between microgrids, each microgrid can increase its income by about 2%. For another example, the Chinese patent application "CN110518580B" discloses an active distribution network operation optimization method considering active optimization of microgrids, including the following steps: S1, establish an independent optimization model of the microgrid; S2, establish an active distribution network operation optimization model in combination with the independent optimization model of the microgrid; S3, use the DDPG method to solve the active distribution network operation optimization model to obtain the optimal solution for the operation of the active distribution network; S4, output the optimal solution for the operation of the active distribution network to the flow control center and the microgrid control center of the active distribution network to optimize the operation state of the active distribution network. Compared with the prior art, this invention establishes an active distribution network optimization model considering the active optimization of multiple microgrids, and uses the DDPG method to solve it, which solves the optimization problem of multiple control centers and can optimize the active distribution network in real time.

[0004] However, existing microgrid operation and dispatching methods ignore the operation constraints of the underlying distribution network, or only consider the virtual layer of the distribution network, but pay too little attention to the technical limitations of the physical layer modeling transactions of the network, and the results may not be applicable to the actual system. Or in order to solve the above problems, the distribution system operator incorporates network constraints into the control decision of the microgrid. However, with this method of directly controlling the microgrid, the DSO directly participates in the management of the market price and microgrid assets of the local power market, and cannot protect the privacy information of each microgrid. Summary of the invention

[0005] To solve the above problems, the present invention provides a multi-microgrid scheduling method, system and storage medium based on dynamic operation envelope to solve the problems in the prior art.

[0006] In order to achieve the above-mentioned invention object, the present invention proposes a multi-microgrid scheduling method based on a dynamic operation envelope, comprising:

[0007] Step S1: constructing a low-voltage radial distribution network model based on each node of the distribution network, and obtaining a first constraint condition based on the low-voltage radial distribution network model;

[0008] Step S2: calculating the total daily operation minimum cost of the nth microgrid through the objective function, and obtaining the second constraint condition of the nth microgrid based on the minimum cost;

[0009] Step S3: based on the expected net injected active power of the nth microgrid, a third constraint condition for limiting the final net injected active power of the nth microgrid is obtained by dynamically running the envelope algorithm and the first constraint condition;

[0010] Step S4: constructing a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition;

[0011] Step S5: Based on the Nash bargaining model, the transaction power and transaction power price of the nth microgrid are obtained through an alternating direction multiplier algorithm.

[0012] Furthermore, the first constraint condition includes node active power balance and reactive power balance, distribution network voltage drop balance, branch power flow equation, node voltage limit constraint, and branch bidirectional complex power constraint;

[0013] The expression of the first constraint condition is:

[0014] (1)

[0015] (2)

[0016] (3)

[0017] (4)

[0018] (5)

[0019] (6)

[0020] (7)

[0021] Formula (1) and (2) are the expressions for active power balance and reactive power balance of the node, respectively, where i and j are the node numbers i and j, respectively. , is a collection of distribution network nodes; the nodes are connected by distribution lines. , is the distribution network branch set; at any time , and Branch Active power and reactive power in period t; and are respectively the active power and the reactive power net injected by the nth microgrid connected at node j; and are the active load and reactive load of node j in period t respectively; and Branch resistance and reactance; For branch The square of the current amplitude in time period t; k is the child node; is the child node set of the bus where node j is located; and Branch The active load and the reactive load in time period t; Formula (3) is the voltage drop balance expression of the distribution network, where: and are the squares of the voltage amplitudes of nodes i and j in time period t respectively; Formula (4) is the second-order cone form expression of the branch power flow equation; Formula (5) is the node voltage limit constraint expression, where, and are the minimum and maximum values ​​of the square of the voltage amplitude at node i, respectively; Equations (6) and (7) are the expressions for the branch bidirectional complex power constraint, where: For branch The maximum apparent power during period t.

[0022] Furthermore, the step S2 comprises:

[0023] The total daily minimum operating cost of the nth microgrid is obtained based on the objective function, and the expression of the objective function is:

[0024] (8)

[0025] (9)

[0026] (10)

[0027] In formula (8), is the total daily operating cost of the nth microgrid in the alliance; , , are the energy cost, demand response cost and P2P transaction cost of the nth microgrid in period t respectively; in formula (9), , are respectively the electricity prices that the nth microgrid purchases and sells from the distribution network in period t; , are respectively the amount of electricity purchased and sold by the nth microgrid from the distribution network in period t; is the price of natural gas; is the gas purchase volume of the nth microgrid in period t; in formula (10), , , are the compensation costs per unit of shiftable electrical load, curtailable electrical load and curtailable thermal load respectively; , , are respectively the transferable electric load, the reducible electric load and the reducible thermal load of the nth microgrid in time period t;

[0028] The second constraint condition of the nth microgrid is obtained based on the minimum cost, where the second constraint condition includes an electric power balance constraint, a thermal power balance constraint, and a cold power balance constraint of the nth microgrid.

[0029] Further, obtaining the second constraint condition of the nth microgrid includes the following steps:

[0030] Step S21: Obtain the electric power balance constraint of the nth microgrid. The specific calculation steps are as follows:

[0031] The multi-energy microgrid load demand response model is constructed, and the expression of the transferable load constraint is:

[0032] (11)

[0033] In formula (11), tr is the transferable amount, load0 is the actual amount, is the transferable electric load of the nth microgrid in period t, is the actual electrical load of the nth microgrid in period t, is the transferable electric load factor;

[0034] The expression for the total amount of transferable electric load constraint within one cycle is:

[0035] (12)

[0036] The constraint expression for reducing the electric load is:

[0037] (13)

[0038] In formula (13), cut represents the amount that can be cut. It means that the nth microgrid can reduce the power load in the t period, represents the actual electrical load of the nth microgrid in period t, Indicates the reducible electric load factor;

[0039] Based on the transferable electric load constraint, the transferable electric load total constraint and the curtailable electric load constraint in the nth microgrid, the expression of the electric load power balance constraint of the demand response is calculated as follows:

[0040] (14)

[0041] In formula (14), represents the electric load of the nth microgrid after demand response in period t;

[0042] A cogeneration device model is constructed. The cogeneration device is in a normally open state. The expressions of the electrical output constraint and the thermal output constraint of the cogeneration device are:

[0043] (15)

[0044] (16)

[0045] In formula (15), e represents electric energy, CHP represents the cogeneration device, represents the electric power of the cogeneration device in the nth microgrid during period t, represents the power generation efficiency of the cogeneration device, Indicates the calorific value of natural gas combustion. represents the gas consumption of the cogeneration device, in formula (16), h represents thermal energy, represents the thermal power of the cogeneration device of the nth microgrid in time period t, , is the electrothermal conversion coefficient;

[0046] The expression of wind and solar output constraint is:

[0047] (17)

[0048] In formula (17), is the actual power of wind and solar power generation; is the predicted value of wind and solar power generation;

[0049] The expression of the electric power of the cogeneration device and the capacity constraint of the cogeneration device is:

[0050] (18)

[0051] In formula (18), is the configured capacity of the cogeneration device;

[0052] The expression of the electric power consumption of the electric refrigerator and the capacity constraint of the electric refrigerator is:

[0053] (19)

[0054] In formula (19), is the electrical power consumption of the electric refrigerator, is the configuration capacity of the electric refrigerator;

[0055] Based on the power balance constraint of the electric load of the demand response, the power output constraint of the cogeneration device, the wind and solar output constraint, the power of the cogeneration device and the capacity constraint of the cogeneration device, and the power consumption of the electric refrigerator and the capacity constraint of the electric refrigerator, the power balance constraint expression of the nth microgrid considering multi-microgrid P2P trading is calculated as follows:

[0056] (20)

[0057] In formula (20), is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , N is the number of microgrids participating in Nash bargaining;

[0058] Step S22: Obtain the thermal power balance constraint of the nth microgrid. The specific calculation steps are as follows:

[0059] Construct a gas boiler model, and the expression of the gas boiler heat output constraint is:

[0060] (twenty one)

[0061] In formula (21), GB is the gas boiler, is the heat generation power of the gas boiler in the nth microgrid during time period t, is the heat generation efficiency of the gas boiler, is the gas consumption of the gas boiler;

[0062] The heat load demand response model of the multi-energy microgrid is constructed, and the expression of heat load constraint can be reduced as follows:

[0063] (twenty two)

[0064] In formula (22), The heat load that can be reduced by the nth microgrid in period t, is the actual heat load of the nth microgrid in period t, is the reducible heat load coefficient;

[0065] The expression of the heat load power balance constraint for demand response based on the curtailable heat load constraint is:

[0066] (twenty three)

[0067] Formula (23), is the heat load of the nth microgrid after demand response in period t;

[0068] The expression of the heat generation power of the gas boiler and the capacity constraint of the gas boiler is:

[0069] (twenty four)

[0070] In formula (24), is the configuration capacity of the gas boiler;

[0071] Based on the thermal output constraint of the cogeneration device, the thermal output constraint of the gas boiler, the thermal load power balance constraint of the demand response, and the thermal power of the gas boiler and the capacity constraint of the gas boiler, the expression of the thermal power balance constraint of the nth microgrid is calculated as follows:

[0072] (25)

[0073] Step S23: obtaining the cold power balance constraint of the nth microgrid, the specific calculation steps are as follows:

[0074] The electric refrigerator model is constructed, and the expression of the relationship between the cooling power and the consumed electrical power of the electric refrigerator is:

[0075] (26)

[0076] In formula (26), c is the cooling energy, EC is the electric refrigerator, is the cooling power of the electric refrigerator of the nth microgrid in time period t, is the electric refrigeration efficiency of the electric refrigerator;

[0077] Construct an absorption refrigerator model. The expression for the relationship between the cooling power and the heat absorption power of the absorption refrigerator is:

[0078] (27)

[0079] In formula (27), AC is the absorption refrigerator, is the cooling power of the absorption refrigerator of the nth microgrid in time period t, is the thermal cooling efficiency of the absorption refrigerator, is the heat power absorbed by the absorption refrigerator;

[0080] The expression of the refrigeration power of the absorption refrigerator and the capacity constraint of the absorption refrigerator is:

[0081] (28)

[0082] In formula (28), is the configuration capacity of the absorption chiller;

[0083] Based on the relationship constraint between the cooling power and the electric power consumption of the electric refrigerator, the relationship constraint between the cooling power and the heat absorption power of the absorption refrigerator, and the cooling power and capacity constraint of the absorption refrigerator, the expression of the cooling power balance constraint of the nth microgrid is calculated as follows:

[0084] (29)

[0085] In formula (29), is the actual cooling load of the nth microgrid in period t.

[0086] Furthermore, the step S3 comprises:

[0087] Based on expression (30), the expected net injected active power of the nth microgrid is obtained. Expressions (31) and (32) limit the DOEs of the nth microgrid:

[0088] (30)

[0089] (31)

[0090] (32)

[0091] in, , are the amount of electricity purchased and sold by the nth microgrid to the distribution network during period t, is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , , are the expected net injected active power and the allocated DOEs of the nth microgrid connected to node j in period t respectively;

[0092] The expression of branch active power balance constraint is:

[0093] (33)

[0094] Based on the expected net injected active power, the dynamic operation envelope algorithm and the first constraint condition are used to obtain the expression of the third constraint condition for limiting the final net injected active power of the nth microgrid:

[0095] (34)

[0096] According to the definition of the dynamic operation envelope algorithm, the nth microgrid should limit the final net injected active power to below the calculated DOEs, expressed as:

[0097] (35)

[0098] (36)

[0099] in, is the final net injected active power of the nth microgrid connected to the node j in the time period t.

[0100] Furthermore, the step S4 includes: constructing a multi-microgrid Nash bargaining model based on expression (37), wherein expression (37) is:

[0101] (37)

[0102] In formula (37), N is the number of microgrids participating in Nash bargaining. is the total daily operating cost of the nth microgrid participating in Nash bargaining, is the negotiation breakdown point, i.e., the total daily operating cost of the nth microgrid before bargaining. The payment benefit obtained by the nth microgrid participating in the cooperation.

[0103] Furthermore, the step S5 comprises:

[0104] Based on the mean inequality theory, we can get:

[0105] (38)

[0106] Based on the Nash bargaining model, the minimum cost and maximum payment benefit of the multi-energy microgrid alliance are obtained, and the minimum cost is used as the solution to the first problem, and the maximum payment benefit is used as the solution to the second problem. The expression of the first problem is:

[0107] (39)

[0108] Based on the alternating direction multiplier algorithm, the optimal transaction power and The optimal solution , based on the optimal solution And the expression (37), the maximum payment benefit expression is obtained as follows:

[0109] (40)

[0110] In formula (40), The optimal solution for transaction costs between the nth microgrid and other microgrids after the microgrid participates in the cooperation;

[0111] The second problem expression is:

[0112] (41)

[0113] The first problem includes coupling variables of electric energy transactions between the cooperatively operated microgrids, and the coupling variables satisfy the consensus conditions for electric energy transactions between the multi-energy microgrids:

[0114] (42)

[0115] In formula (42), is the amount of electricity that the nth microgrid is expected to supply to the other n'th microgrids in period t, is the amount of electricity that the other n'th microgrids are expected to supply to the nth microgrid in time period t;

[0116] Based on the distributed computing of the first problem using the alternating direction multiplier algorithm, the specific steps are as follows:

[0117] Step S51: Construct the augmented Lagrangian function of the first problem, and optimize the variables: :

[0118] (43)

[0119] In formula (43), and are the Lagrange multipliers and penalty factors of the first problem respectively;

[0120] Step S52: The nth microgrid updates the trading strategy through the kth iteration calculation :

[0121] (44)

[0122] The other n'th microgrid receives the updated trading strategy Update :

[0123] (45)

[0124] Step S53: Update the Lagrange multiplier:

[0125] (46)

[0126] Step S54: Determine the convergence of the algorithm:

[0127] (47)

[0128] (48)

[0129] In formula (47) and (48), , are the primal residual and dual residual convergence thresholds for the first problem respectively;

[0130] If the convergence conditions of the expression (47) and the expression (48) are met, the iteration is terminated and the optimal value of the first problem is output. Otherwise, the number of iterations is updated. , return to step S52.

[0131] Furthermore, the second problem includes a coupling variable of the cooperative operation of the electric energy transaction price between the microgrids, and the coupling variable satisfies the equal purchase and sale electricity price condition between the microgrids:

[0132] (49)

[0133] In formula (49), is the electricity price that the nth microgrid expects to supply to the other n'th microgrids during period t, is the electricity price that the other n'th microgrids are expected to supply to the nth microgrid in time period t;

[0134] Based on the distributed computing of the second problem using the alternating direction multiplier algorithm, the specific steps are as follows:

[0135] Step S61: Construct the augmented Lagrangian function of the second problem, and optimize the variables: :

[0136] (50)

[0137] In formula (50), and are the Lagrange multiplier and penalty factor of the second problem respectively;

[0138] Step S62: The nth microgrid updates the trading strategy through the kth iteration calculation :

[0139] (51)

[0140] The other n'th microgrid receives the updated trading strategy Update :

[0141] (52)

[0142] Step S63: Update the Lagrange multiplier:

[0143] (53)

[0144] Step S64: Determine the convergence of the algorithm:

[0145] (54)

[0146] (55)

[0147] In formula (54) and (55), , are the primal residual and dual residual convergence thresholds for the second problem respectively;

[0148] If the convergence conditions of the expression (54) and the expression (55) are met, the iteration is terminated and the optimal value of the second problem is output. Otherwise, the number of iterations is updated. , return to step S62.

[0149] The present invention also provides a multi-microgrid dispatching system based on dynamic operation envelope, which is used to implement the above-mentioned method, and the system includes the following modules:

[0150] A first generation module constructs a low-voltage radial distribution network model based on each node of the distribution network, and obtains a first constraint condition based on the low-voltage radial distribution network model;

[0151] A second generation module calculates the total daily operation minimum cost of the nth microgrid through an objective function, and obtains a second constraint condition of the nth microgrid based on the minimum cost;

[0152] A third generation module, based on the expected net injected active power of the nth microgrid, obtains a third constraint condition limiting the final net injected active power of the nth microgrid by dynamically running an envelope algorithm and the first constraint condition;

[0153] Model building module: building a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition;

[0154] The data processing module obtains the transaction power and transaction power price of the nth microgrid through an alternating direction multiplier algorithm based on the Nash bargaining model.

[0155] The present invention also provides a computer storage medium, wherein the computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned method.

[0156] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0157] The present invention proposes a dynamic operation envelope algorithm, which improves the network application efficiency by managing the energy import and export from the multi-energy microgrid to the distribution network, and distributes the calculated DOEs to different microgrids. As long as the final net injected active power of all microgrids is within the DOEs range, the voltage will not exceed the allowed limit; the dynamic operation envelope is incorporated into the multi-microgrid Nash bargaining model. Compared with the traditional Nash bargaining model, which only considers the virtual layer of the distribution network and pays too little attention to the technical limitations of the physical layer modeling transaction of the network, it may not be applicable to the problems of the actual system. Based on the constraints and the dynamic operation envelope algorithm, the present invention constructs a multi-microgrid Nash bargaining model belonging to game theory, decouples the decisions made by the distribution network and the microgrid, and makes shared decisions in a distributed manner under the premise of ensuring the physical constraints of the power grid. Under the premise of ensuring the operation safety of the distribution system, the supply and demand relationship between the multi-microgrids is dispatched to maximize the benefits of each microgrid.

[0158] The electricity transactions between distribution network operators and microgrid operators adopt independent clearing electricity prices. DOEs do not require DSOs to manage market prices and microgrid assets. Microgrids manage their assets independently within their designated DOEs and use their own management systems to trade in the local electricity market. Microgrid operators cannot obtain each other's internal scheduling information, thereby effectively protecting the privacy information of each microgrid entity. BRIEF DESCRIPTION OF THE DRAWINGS

[0159] Figure 1 It is a flowchart of the steps of the multi-microgrid scheduling method based on the dynamic operation envelope of the present invention;

[0160] Figure 2The network structure diagram of the IEEE33-node power distribution system including three microgrids of the present invention;

[0161] Figure 3 It is a flow chart of the multi-microgrid Nash bargaining model constructed based on the dynamic operation envelope algorithm of the present invention;

[0162] Figure 4 This is a schematic diagram of the structure of the multi-energy microgrid for cooling, heating and electricity of the present invention;

[0163] Figure 5 The output curve of the distributed power source in the power distribution network of the present invention;

[0164] Figure 6 The load variation curve of each node of the distribution network of the present invention;

[0165] Figure 7 The wind power output and cooling, heating and power loads of the microgrid 1 of the present invention;

[0166] Figure 8 The photovoltaic output and cooling, heating and electricity loads of the microgrid 2 of the present invention;

[0167] Fig. 9 The photovoltaic output and cooling, heating and electricity loads of the microgrid 3 of the present invention;

[0168] Fig.10 The daily voltage distribution diagram of the distribution network before the present invention incorporates DOEs constraints;

[0169] Fig.11 The daily voltage distribution diagram of the distribution network after the present invention incorporates DOEs constraints;

[0170] Fig.12 is the expected net injected active power, the allocated DOEs and the final net injected active power of the microgrid 1 of the present invention;

[0171] Fig.13 is the expected net injected active power, the allocated DOEs and the final net injected active power of the microgrid 2 of the present invention;

[0172] Fig.14 is the expected net injected active power, the allocated DOEs and the final net injected active power of the microgrid 3 of the present invention;

[0173] Fig.15 The amount of electricity traded between microgrids after the Nash bargaining of the present invention is incorporated into DOEs;

[0174] Fig.16 The Nash bargaining price of microgrid electricity after the present invention incorporates DOEs;

[0175] Fig.17 It is a structural schematic diagram of the multi-microgrid dispatching system based on the dynamic operation envelope of the present invention. DETAILED DESCRIPTION

[0176] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0177] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0178] First, some professional terms involved in this application are explained:

[0179] DOEs: Dynamic Operational Envelopes

[0180] DSO: Distribution System Operator

[0181] MGs: Microgrid

[0182] like Figure 1 As shown, the multi-microgrid scheduling method based on dynamic operation envelope includes:

[0183] Step S1: construct a low-voltage radial distribution network model based on each node of the distribution network, and obtain a first constraint condition based on the low-voltage radial distribution network model.

[0184] Specifically, Figure 2 As shown in the figure, it is a network structure diagram of the IEEE33-node distribution system containing three microgrids. Photovoltaic is installed at node 15, and wind power 1 and wind power 2 are installed at nodes 17 and 33 respectively. The Distflow second-order cone model is used to construct a low-voltage radial distribution network model. The first constraint conditions of the considered distribution network branch flow include: node active power balance and reactive power balance, distribution network voltage drop balance, branch power flow equation, node voltage limit constraint, and branch bidirectional complex power constraint.

[0185] The expression of the first constraint is:

[0186] (1)

[0187] (2)

[0188] (3)

[0189] (4)

[0190] (5)

[0191] (6)

[0192] (7)

[0193] Formula (1) and (2) are the expressions for active power balance and reactive power balance of nodes, respectively. In the formula, i and j are the numbers of nodes i and j, respectively. , is a collection of distribution network nodes; the nodes are connected by distribution lines. , is the distribution network branch set; at any time , and Branch Active power and reactive power in period t; and are the net active power and reactive power injected by the nth microgrid connected at node j, respectively; and are the active load and reactive load of node j in period t respectively; and Branch resistance and reactance; For branch The square of the current amplitude in time period t; k is the child node; is the child node set of the bus where node j is located; and Branch Active load and reactive load in period t; Formula (3) is the voltage drop balance expression of the distribution network, where: and are the squares of the voltage amplitudes at nodes i and j in time period t respectively; Formula (4) is the second-order cone form expression of the branch power flow equation; Formula (5) is the node voltage limit constraint expression, where: and are the minimum and maximum values ​​of the square of the voltage amplitude at node i, respectively; Equations (6) and (7) are expressions for the branch bidirectional complex power constraint, where: For branch The maximum apparent power during period t.

[0194] Step S2: Calculate the total daily operation minimum cost of the nth microgrid through the objective function, and obtain the second constraint condition of the nth microgrid based on the minimum cost.

[0195] Specifically, Figure 2As shown in the figure, there are three microgrids, among which microgrid 1 contains wind power output and is connected to node 20, and microgrid 2 and microgrid 3 contain photovoltaic output and are connected to nodes 18 and 31 respectively. Each microgrid belongs to a different interest entity, and formulates an operation plan according to its own supply and demand. In addition, the microgrids conduct power transactions through the distribution network to achieve the purpose of increasing the benefits of each entity.

[0196] Step S3: Based on the expected net injected active power of the nth microgrid, a third constraint condition for limiting the final net injected active power of the nth microgrid is obtained by dynamically running the envelope algorithm and the first constraint condition.

[0197] Specifically, the calculation of the dynamic operation envelope algorithm DOEs is expressed as a deterministic optimal power flow aimed at maximizing the network carrying capacity. In the DOEs calculation algorithm, through power flow analysis, if the expected net injected active power of the microgrid meets the network constraints, the DSO accepts the net injected active power of the microgrid, otherwise, the net injected active power of the microgrid will be limited by DOEs.

[0198] Step S4: construct a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition.

[0199] Specifically, Figure 3As shown in the figure, it is a flow chart of the multi-microgrid Nash bargaining model constructed based on the dynamic operating envelope algorithm. The Nash bargaining model based on the dynamic operating envelope algorithm is decomposed into a two-layer optimization problem: the upper layer is the network layer for solving the optimal power flow problem, and the lower layer is the market layer for coordinating the power transactions between multiple microgrids. The detailed steps are as follows: First, at the lower layer, Nash negotiation is used to solve the problem of multi-microgrid P2P transaction volume, and the model is converted into a multi-microgrid alliance cost minimization problem, and the alternating direction multiplier algorithm is used for distributed solution. Among them, each microgrid calculates the expected net injected active power of each microgrid through Nash negotiation. The expected net injected active power is not subject to static restrictions and is sent to the DSO to obtain DOEs. Then, at the upper layer, the DSO calculates DOEs in two steps to monitor network constraints and manage the expected net injected active power of the microgrid to ensure the integrity of the network. In the first step, the DSO solves an AC power flow to verify the compatibility of the network so that the expected transaction between microgrids can be safely executed under given parameters. If no voltage limit exceeds the limit, the DSO accepts the expected net injected active power of the microgrid for trading. Otherwise, the DSO activates the optimal power flow solver in the second step to determine the DOEs, that is, to calculate the maximum net injected active power limit of the microgrid for P2P trading without compromising the integrity of the network. The optimal power flow formula takes into account the net injected active power limit of the microgrid, the balance of active and reactive power, and other power flow constraints to allocate DOEs as close to the expected operation as possible, and sends the approved DOEs to the lower layer. Finally, at the lower layer, the microgrid conducts Nash bargaining based on the DOEs allocated by the DSO and incorporates the DOEs constraints to determine the final transaction power and transaction price.

[0200] Step S5: Based on the Nash bargaining model, the transaction power and transaction power price of the nth microgrid are obtained through the alternating direction multiplier algorithm.

[0201] Specifically, the Nash bargaining model is transformed into two sub-problems: minimizing the alliance cost and maximizing the payment benefit. The alternating direction multiplier algorithm is used for distributed solution. Since the Nash bargaining model is essentially a non-convex nonlinear optimization problem, it is difficult to solve directly. A series of equivalent transformations are performed on the model to convert it into obtaining the minimum cost and maximum payment benefit of the multi-energy microgrid alliance. The first problem calculates the transaction volume of the microgrid cooperation, and the second problem calculates the electricity transaction price. The optimal solution to the original problem can be obtained by solving the two sub-problems in sequence.

[0202] Further, step S2 includes:

[0203] Based on the objective function, the minimum total daily operation cost of the nth microgrid is obtained. The expression of the objective function is:

[0204] (8)

[0205] (9)

[0206] (10)

[0207] In formula (8), is the total daily operating cost of the nth microgrid in the alliance; are the energy cost, demand response cost and P2P transaction cost of the nth microgrid in period t respectively; in formula (9), , are the electricity prices that the nth microgrid purchases and sells from the distribution network in period t; are the electricity purchased and sold by the nth microgrid from the distribution network in period t; is the price of natural gas; is the gas purchase volume of the nth microgrid in period t; in formula (10), are the compensation costs per unit of shiftable electrical load, curtailable electrical load and curtailable thermal load respectively; They are respectively the transferable electric load, the reducible electric load and the reducible thermal load of the nth microgrid in period t.

[0208] A second constraint condition of the nth microgrid is obtained based on the minimum cost, and the second constraint condition includes an electric power balance constraint, a thermal power balance constraint, and a cold power balance constraint of the nth microgrid.

[0209] Specifically, Figure 4 As shown in the figure, it is a schematic diagram of the structure of a multi-energy microgrid for cooling, heating and electricity. The three microgrids are all equipped with the same type of cogeneration devices, gas boilers, electric refrigerators and absorption refrigerators, etc., to build a model for the optimal operation of the multi-energy microgrid in the system. The goal of each microgrid is to minimize its total operating cost, including energy cost, demand response cost and P2P transaction cost, while satisfying its own power balance constraints.

[0210] Further, obtaining the second constraint condition of the nth microgrid includes the following steps:

[0211] Step S21: Obtain the power balance constraint of the nth microgrid. The specific calculation steps are as follows:

[0212] The multi-energy microgrid load demand response model is constructed, and the expression of the transferable load constraint is:

[0213] (11)

[0214] In formula (11), tr is the transferable amount, load0 is the actual amount, is the transferable load of the nth microgrid in period t, is the actual power load of the nth microgrid in period t, is the transferable electrical load factor.

[0215] The expression of the total amount of transferable electric load constraint in one cycle is:

[0216] (12)

[0217] The constraint expression for reducing the electric load is:

[0218] (13)

[0219] In formula (13), cut represents the amount that can be cut. It means that the nth microgrid can reduce the power load in the t period, represents the actual power load of the nth microgrid in period t, Indicates that the electrical load factor can be reduced.

[0220] Based on the transferable load constraints, the total transferable load constraints and the curtailable load constraints in the nth microgrid, the expression of the load power balance constraint of the demand response is calculated as follows:

[0221] (14)

[0222] In formula (14), It represents the electric load of the nth microgrid after demand response in period t.

[0223] Construct a cogeneration device model. The cogeneration device is in a normally open state. The expressions of the electrical output constraint and thermal output constraint of the cogeneration device are:

[0224] (15)

[0225] (16)

[0226] In formula (15), e represents electric energy, CHP represents cogeneration equipment, represents the electric power of the cogeneration device of the nth microgrid in period t, represents the power generation efficiency of the cogeneration unit, Indicates the calorific value of natural gas combustion. represents the gas consumption of the cogeneration unit. In formula (16), h represents thermal energy. represents the thermal power of the cogeneration device of the nth microgrid in period t, is the electrothermal conversion coefficient.

[0227] The expression of wind and solar output constraint is:

[0228] (17)

[0229] In formula (17), is the actual power of wind and solar power generation; is the predicted value of wind and solar power generation.

[0230] The expression of the electric power of the cogeneration device and the capacity constraint of the cogeneration device is:

[0231] (18)

[0232] In formula (18), The configured capacity of the cogeneration unit.

[0233] The expression of the electric power consumption of the electric refrigerator and the capacity constraint of the electric refrigerator is:

[0234] (19)

[0235] In formula (19), is the power consumption of the electric refrigerator, It is the configuration capacity of the electric refrigerator.

[0236] Based on the power balance constraint of the electric load of demand response, the power output constraint of the cogeneration device, the wind and solar output constraint, the power and capacity constraints of the cogeneration device, and the power consumption and capacity constraints of the electric refrigerator, the power balance constraint expression of the nth microgrid considering multi-microgrid P2P trading is calculated as follows:

[0237] (20)

[0238] In formula (20), is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , N is the number of microgrids participating in Nash bargaining.

[0239] Step S22: Obtain the thermal power balance constraint of the nth microgrid. The specific calculation steps are as follows:

[0240] Construct a gas boiler model, and the expression of the gas boiler heat output constraint is:

[0241] (twenty one)

[0242] In formula (21), GB is the gas boiler, is the heating power of the gas boiler of the nth microgrid in period t, is the heat generation efficiency of the gas boiler, The gas consumption of the gas boiler.

[0243] The heat load demand response model of the multi-energy microgrid is constructed, and the expression of heat load constraint can be reduced as follows:

[0244] (twenty two)

[0245] In formula (22), The heat load that can be reduced by the nth microgrid in period t is is the actual heat load of the nth microgrid in period t, To reduce the heat load factor.

[0246] The expression of the heat load power balance constraint for demand response based on the curtailable heat load constraint is:

[0247] (twenty three)

[0248] Formula (23), is the heat load of the nth microgrid after demand response in period t.

[0249] The expression of the heat generation power of the gas boiler and the capacity constraint of the gas boiler is:

[0250] (twenty four)

[0251] In formula (24), It is the configuration capacity of the gas boiler.

[0252] Based on the thermal output constraint of the cogeneration device, the thermal output constraint of the gas boiler, the thermal load power balance constraint of the demand response, and the thermal power and capacity constraints of the gas boiler, the thermal power balance constraint of the nth microgrid is calculated as follows:

[0253] (25)

[0254] Step S23: Obtain the cold power balance constraint of the nth microgrid. The specific calculation steps are as follows:

[0255] The electric refrigerator model is constructed, and the expression of the relationship between the cooling power and the consumed electrical power of the electric refrigerator is:

[0256] (26)

[0257] In formula (26), c is the cooling energy, EC is the electric refrigerator, is the cooling power of the electric refrigerator of the nth microgrid in time period t, is the electrical refrigeration efficiency of the electric refrigerator.

[0258] Construct an absorption refrigerator model. The expression for the relationship between the cooling power and the heat absorption power of the absorption refrigerator is:

[0259] (27)

[0260] In formula (27), AC is an absorption refrigerator, is the cooling power of the absorption chiller of the nth microgrid in period t, is the thermal cooling efficiency of the absorption chiller, It is the heat power absorbed by the absorption refrigerator.

[0261] The expression of the refrigeration power of the absorption refrigerator and the capacity constraint of the absorption refrigerator is:

[0262] (28)

[0263] In formula (28), It is the configuration capacity of the absorption chiller.

[0264] Based on the relationship constraints between the cooling power and the electric power consumption of the electric refrigerator, the relationship constraints between the cooling power and the heat absorption power of the absorption refrigerator, and the cooling power and capacity constraints of the absorption refrigerator, the expression of the cooling power balance constraint of the nth microgrid is calculated as follows:

[0265] (29)

[0266] In formula (29), is the actual cooling load of the nth microgrid in period t.

[0267] Specifically, Figure 4 As shown in the figure, each microgrid contains the same type of cogeneration device, gas boiler, electric refrigerator and absorption refrigerator, etc., connected to the upper power grid, other microgrids, and one of photovoltaic or wind power, supplying the electric load, heat load and cold load in the microgrid. The electric power balance constraint of the nth microgrid is obtained through the following steps:

[0268] A multi-energy microgrid electric load demand response model is constructed, and the electric load power balance constraints of the demand response are obtained based on the transferable electric load constraints, the total transferable electric load constraints and the curtailable electric load constraints in the nth microgrid.

[0269] Construct a cogeneration unit model to obtain the electrical output constraints and thermal output constraints.

[0270] Obtain the constraints on wind and solar power output, the constraints on the electric power and capacity of the cogeneration device, and the constraints on the electric power consumption and capacity of the electric refrigerator.

[0271] Based on the power balance constraints of the electric load in response to demand, the power output constraints of the cogeneration device, the wind and solar output constraints, the power consumption of the cogeneration device and the capacity of the cogeneration device, and the power consumption of the electric refrigerator and the capacity of the electric refrigerator, the power balance constraints of the nth microgrid considering multi-microgrid P2P transactions are obtained.

[0272] Obtain the thermal power balance constraints of the nth microgrid by following the steps below:

[0273] Build a gas boiler model and obtain the thermal output constraints of the gas boiler.

[0274] A multi-energy microgrid thermal load demand response model is constructed to obtain the curtailable thermal load constraints, and the thermal load power balance constraints of the demand response are obtained based on the curtailable thermal load constraints.

[0275] Based on the obtained thermal output constraints of the cogeneration device, the thermal output constraints of the gas boiler, the thermal load power balance constraints of the demand response, and the obtained constraints on the thermal power generation of the gas boiler and the capacity of the gas boiler, the thermal power balance constraints of the nth microgrid are obtained.

[0276] Obtain the cold power balance constraint of the nth microgrid by following the steps below:

[0277] Construct an electric refrigerator model and obtain the relationship constraints between the cooling power and electrical power consumption of the electric refrigerator.

[0278] Construct an absorption chiller model and obtain the relationship constraints between the refrigeration power and heat absorption power of the absorption chiller.

[0279] Based on the relationship constraints between the cooling power of the electric refrigerator and the consumed electric power, the relationship constraints between the cooling power of the absorption refrigerator and the heat absorption power, and the obtained cooling power of the absorption refrigerator and the capacity of the absorption refrigerator, the cooling power balance constraint of the nth microgrid is obtained.

[0280] Further, step S3 includes:

[0281] Based on expression (30), the expected net injected active power of the nth microgrid is obtained. Expressions (31) and (32) limit the DOEs of the nth microgrid:

[0282] (30)

[0283] (31)

[0284] (32)

[0285] in, are the amount of electricity purchased and sold by the nth microgrid to the distribution network during period t, is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , are the expected net injected active power and allocated DOEs of the nth microgrid connected to node j in period t, respectively.

[0286] The expression of branch active power balance constraint is:

[0287] (33)

[0288] Based on the expected net injected active power, the dynamic operation envelope algorithm and the first constraint condition are used to obtain the expression of the third constraint condition that limits the final net injected active power of the nth microgrid:

[0289] (34)

[0290] According to the definition of the dynamic operation envelope algorithm, the nth microgrid should limit the final net injected active power to below the calculated DOEs, expressed as:

[0291] (35)

[0292] (36)

[0293] in, is the final net injected active power of the nth microgrid connected to node j in period t.

[0294] Specifically, in expression (30), at the connection point where the microgrid trades with other microgrids, the expected net injected active power can be divided into two parts: the power of interaction with the distribution network (P2G behavior) and the power of trading with other microgrids (P2P behavior). Constraint expressions (31) and (32) limit the import capacity and export capacity of the microgrid, respectively, which must not exceed the expected value. Since the optimal power flow defines the dynamic operating constraints of the microgrid but does not directly control its assets, if the microgrid wishes to export power, the output power can be reduced to zero, but the microgrid cannot be forced to import power, nor can it be forced to export more power than expected. Similarly, if the microgrid wishes to import power, it cannot be forced to export power, nor can it be forced to import more power than expected.

[0295] Expression (34) is to minimize the expected net injected active power With the distribution According to the definition of DOEs, each microgrid should limit its final net injected active power to below the given DOEs according to expressions (35) and (36).

[0296] Further, step S4 includes: constructing a multi-microgrid Nash bargaining model based on expression (37), where expression (37) is:

[0297] (37)

[0298] In formula (37), N is the number of microgrids participating in Nash bargaining. is the total daily operating cost of the nth microgrid participating in Nash bargaining, is the negotiation breakdown point, i.e., the total daily operating cost of the nth microgrid before bargaining. The payment benefit obtained by the nth microgrid participating in the cooperation.

[0299] Specifically, Nash bargaining theory is a branch of cooperative game theory, which can help distributed decision makers achieve fair Pareto optimal benefit distribution. In the case of conflicts of interest between participants with interactive characteristics, Nash bargaining can coordinate the interests of the participants.

[0300] Multi-energy microgrids belonging to different interest groups are autonomous and rational in choosing external transaction methods. On the premise of meeting their own supply and demand balance, they trade electricity through the distribution network. In order to reach a consensus on the trading volume and trading electricity price between microgrids, they seek strategies to improve the balance of interests of all parties and further reduce the operating costs of the microgrids themselves. Through Nash bargaining, they fairly and reasonably formulate the purchase and sale volume and electricity price strategies for electricity transactions.

[0301] Further, step S5 includes:

[0302] Based on the mean inequality theory, we can get:

[0303] (38)

[0304] Based on the Nash bargaining model, the minimum cost and maximum payment benefit of the multi-energy microgrid alliance are obtained, and the minimum cost is taken as the solution to the first problem, and the maximum payment benefit is taken as the solution to the second problem. The expression of the first problem is:

[0305] (39)

[0306] Based on the alternating direction multiplier algorithm, the optimal transaction power and The optimal solution , based on the optimal solution And expression (37), the maximum payment benefit expression is obtained as:

[0307] (40)

[0308] In formula (40), It is the optimal solution for transaction costs between the nth microgrid and other microgrids after participating in the cooperation.

[0309] The second problem expression is:

[0310] (41)

[0311] Among them, the first problem includes the coupling variables of power transactions between cooperatively operated microgrids. The coupling variables satisfy the consensus conditions for power transactions between multi-energy microgrids as follows:

[0312] (42)

[0313] In formula (42), is the amount of electricity that the nth microgrid is expected to supply to other n'th microgrids in period t, is the amount of electricity that other n' microgrids are expected to supply to the nth microgrid during period t.

[0314] Based on the first problem of distributed computing of the alternating direction multiplier algorithm, the specific steps are as follows:

[0315] Step S51: Construct the augmented Lagrangian function of the first problem, and the optimization variable is :

[0316] (43)

[0317] In formula (43), and are the Lagrange multiplier and penalty factor for the first problem respectively.

[0318] Step S52: The nth microgrid updates the trading strategy through the kth iteration calculation :

[0319] (44)

[0320] Other n'th microgrids receive updated trading strategies Update :

[0321] (45)

[0322] Step S53: Update the Lagrange multiplier:

[0323] (46)

[0324] Step S54: Determine the convergence of the algorithm:

[0325] (47)

[0326] (48)

[0327] In formula (47) and (48), are the primal residual and dual residual convergence thresholds for the first problem respectively.

[0328] If the convergence conditions of expressions (47) and (48) are met, the iteration is terminated and the optimal value of the first problem is output. Otherwise, the number of iterations is updated. , return to step S52.

[0329] Specifically, the first problem includes the coupling variables of the power transaction between the cooperatively operated microgrids. The coupling variables need to satisfy the equal purchase and sale of power between the subjects. Auxiliary variables are introduced to decouple the coupling variables. The meaning of expression (42) is that the expected purchase of power by the nth microgrid is equal to the expected sale of power by other n'th microgrids to the nth microgrid. The first problem is distributedly calculated by the alternating direction multiplier algorithm to obtain the optimal transaction power that satisfies the Nash bargaining model.

[0330] Furthermore, the second problem includes the coupling variables of the electricity transaction price between cooperatively operated microgrids, and the coupling variables satisfy the condition that the purchase and sale prices between microgrids are equal:

[0331] (49)

[0332] In formula (49), is the electricity price that the nth microgrid expects to supply to other n'th microgrids during period t, is the electricity price that other n'th microgrids expect to supply to the nth microgrid during period t.

[0333] Based on the distributed computing problem of the alternating direction multiplier algorithm, the specific steps are as follows:

[0334] Step S61: Construct the augmented Lagrangian function of the second problem, and optimize the variables: :

[0335] (50)

[0336] In formula (50), and are the Lagrange multiplier and penalty factor for the second problem respectively.

[0337] Step S62: The nth microgrid updates the trading strategy through the kth iteration calculation :

[0338] (51)

[0339] Other n'th microgrids receive updated trading strategies Update :

[0340] (52)

[0341] Step S63: Update the Lagrange multiplier:

[0342] (53)

[0343] Step S64: Determine the convergence of the algorithm:

[0344] (54)

[0345] (55)

[0346] In formula (54) and (55), are the primal residual and dual residual convergence thresholds for the second problem respectively.

[0347] If the convergence conditions of expressions (54) and (55) are met, the iteration is terminated and the optimal value of the second problem is output. Otherwise, the number of iterations is updated. , return to step S62.

[0348] Specifically, the second problem contains the coupling variables of the electricity transaction prices between cooperatively operated microgrids. The coupling variables need to satisfy the equal purchase and sale prices between the entities. Auxiliary variables are introduced to decouple the coupling variables. The meaning of expression (49) is that the expected purchase price of the nth microgrid is equal to the expected sale price of the other n'th microgrids to the nth microgrid. The second problem is distributedly calculated by the alternating direction multiplier algorithm to obtain the optimal transaction price that satisfies the Nash bargaining model.

[0349] Based on the above, the effectiveness of the solution of the present invention is verified by the following examples:

[0350] A 33-node power distribution system in a certain place is selected for testing, such as Figure 2 In the IEEE 33-node distribution system shown in the figure, a photovoltaic power plant with a rated capacity of 900kW is installed at node 15, and wind power 1 with a rated capacity of 900kW and wind power 2 with a rated capacity of 900kW are installed at nodes 17 and 33 respectively. Figure 4 In the multi-energy microgrid structure of cooling, heating and electricity shown in the figure, all three microgrids are equipped with the same type of cogeneration device, gas boiler, electric refrigerator and absorption refrigerator. The output curve of distributed power source in the distribution network is as follows: Figure 5 As shown in the figure, the load change curve of each node in the distribution network is as follows: Figure 6 As shown in Figure 1, the voltage fluctuation range is set to 0.95~1.05pu, the planning time period is set to 24h a day, and the step length is 1h. The wind power output and cooling and heating loads of microgrid 1 are shown in Figure 1. Figure 7 As shown in Figure 2, the photovoltaic output and cooling and heating loads of microgrid 2 are as follows: Figure 8 As shown in Figure 2, the photovoltaic output and cooling and heating loads of microgrid 3 are as follows: Fig. 9 As shown in Table 1, the microgrid electricity purchase and sales prices and gas purchase prices are shown in Table 1, and the system parameters of the multi-energy microgrid are shown in Table 2.

[0351] All experiments were conducted in Matlab environment and solved by calling Gurobi 9.0.3 solver through YALMIP. The parameters of the alternating direction multiplier algorithm were set as follows: the maximum number of iterations was 300; the convergence threshold of the first problem was 10 -3 , the penalty factor is 5×10 -4 ; The convergence threshold for the second problem is 10 -2 , the penalty factor is 10 -1 .

[0352] Table 1 Micro-grid electricity sales price and gas purchase price

[0353]

[0354] Table 2 System parameters of multi-energy microgrid

[0355]

[0356] The impact of the dynamic operation envelope algorithm proposed in this invention on network integrity is analyzed. After the DSO receives the expected net injected active power of each microgrid from the first round of Nash negotiation, it performs power flow calculation and obtains the following: Fig.10 The daily voltage distribution diagram of the distribution network before incorporating DOEs constraints is shown in the figure. It can be seen from the figure that the voltage of the distribution network node 18 exceeds the upper limit during the period of 11:00-13:00, and the voltage of the node 31 exceeds the lower limit during the period of 18:00-22:00. At this time, the DSO calculates the DOEs and returns the calculated DOEs to each microgrid. The microgrid then conducts Nash negotiation with DOEs constraints based on the DOEs to determine the final net injected active power. Fig.11 As shown in Figure 1, the daily voltage distribution diagram of the distribution network after incorporating DOEs is shown. It can be seen from the figure that at any time period, the voltage of each node is within the standard voltage range of 0.95~1.05 pu.

[0357] Fig.12 , Fig.13 , Fig.14 They are the expected net injected active power, the allocated DOEs and the final net injected active power of microgrid 1, microgrid 2 and microgrid 3. It can be seen from the figure that the excessive export volume of microgrid 2 during the period of 11:00-13:00 caused the voltage of node 18 to exceed the upper limit, and the excessive import volume of microgrid 3 during the period of 18:00-22:00 caused the voltage of node 31 to exceed the lower limit. During the period of voltage exceeding the limit, the DOEs allocated to microgrids 2 and 3 were reduced to varying degrees compared with the expected net injected active power. After incorporating the DOEs constraint, the transaction volume of the new round of Nash negotiation was strictly limited to the DOEs allocated to each microgrid by the distribution network.

[0358] Through the above analysis, in the first round of Nash negotiation to solve the expected net injected active power of the microgrid, since the network constraints are not considered, the microgrid can trade unlimitedly and the system has the problem of voltage exceeding the limit. After incorporating DOEs, the net injected active power obtained in the new round of Nash negotiation keeps the voltage within a safe range.

[0359] In order to analyze the energy complementarity between microgrids in different time periods, the results of the Nash bargaining between microgrids after incorporating DOEs are as follows: Fig.15 As shown in the figure, it can be seen that the photovoltaic output of microgrid 2 and microgrid 3 in the period of 9:00-16:00 can meet their own load demand, and at the same time, the excess electricity is traded to microgrid 1 with higher load demand at this time, and the remaining electricity is sold to the distribution network. At this time, microgrid 1, as an energy demander, purchases electricity from microgrid 2 and microgrid 3 first, thereby reducing the purchase of electricity from the distribution network. In the period of 00:00-6:00 and 17:00-24:00, the situation is just the opposite. At this time, the photovoltaic output of microgrid 2 and microgrid 3 is 0, and microgrid 2 and microgrid 3, as energy demanders, purchase electricity from microgrid 1 first. At the same time, the energy demand of microgrid 1 is low at night, and the remaining wind power output is sold to microgrid 2 and microgrid 3 first, and the remaining electricity is sold to the distribution network. Therefore, the volatility of wind power and the daily variation characteristics of photovoltaic power generation can be balanced with each other through P2P transactions, further reducing the operating cost of the system. Through direct transactions between microgrids, the system can dynamically adjust according to actual production capacity and demand, thereby achieving more efficient resource allocation.

[0360] like Fig.16 As shown in the figure, the inter-microgrid transaction electricity price after incorporating DOEs is Nash bargaining. It can be seen from the figure that the inter-microgrid transaction electricity price is higher than the electricity price sold to the distribution network in each period, and lower than the electricity price purchased from the distribution network. Microgrids can obtain more profits through bargaining transactions. At the same time, the Nash bargaining problem is solved by using an alternating direction multiplier algorithm to effectively protect the privacy of each microgrid subject.

[0361] like Fig.17 As shown, the present invention also provides a multi-microgrid dispatching system based on dynamic operation envelope, which is used to implement the above method. The system mainly includes:

[0362] The first generation module constructs a low-voltage radial distribution network model based on each node of the distribution network, and obtains a first constraint condition based on the low-voltage radial distribution network model.

[0363] The second generation module calculates the total daily operation minimum cost of the nth microgrid through the objective function, and obtains the second constraint condition of the nth microgrid based on the minimum cost.

[0364] The third generation module obtains the third constraint condition for limiting the final net injected active power of the nth microgrid by dynamically running the envelope algorithm and the first constraint condition based on the expected net injected active power of the nth microgrid.

[0365] Model construction module: Construct a multi-microgrid Nash bargaining model based on the second constraint and the third constraint.

[0366] The data processing module obtains the transaction power and transaction price of the nth microgrid through the alternating direction multiplier algorithm based on the Nash bargaining model.

[0367] The present invention also provides a computer storage medium, which stores program instructions. When the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above method.

[0368] Compared with the prior art, the present invention has at least the following beneficial effects:

[0369] The present invention proposes a dynamic operation envelope algorithm, which improves the network application efficiency by managing the energy import and export from the multi-energy microgrid to the distribution network, and distributes the calculated DOEs to different microgrids. As long as the net injected active power of all microgrids is within the DOEs range, the voltage will not exceed the allowed limit; the dynamic operation envelope is incorporated into the multi-microgrid Nash bargaining model. Compared with the traditional Nash bargaining model, which only considers the virtual layer of the distribution network and pays too little attention to the technical limitations of the physical layer modeling transaction of the network, it may not be applicable to the problems of the actual system. Based on the constraints and the dynamic operation envelope algorithm, the present invention constructs a multi-microgrid Nash bargaining model belonging to game theory. Under the premise of ensuring the physical constraints of the power grid, shared decisions are made in a distributed manner. Under the premise of ensuring the operation safety of the distribution system, the supply and demand relationship between multiple microgrids is dispatched to maximize the benefits of each microgrid.

[0370] The electricity transactions between distribution network operators and microgrid operators adopt independent clearing electricity prices. DOEs do not require DSOs to manage market prices and microgrid assets. Microgrids manage their assets independently within their designated DOEs and use their own management systems to trade in the local electricity market. Microgrid operators cannot obtain each other's internal scheduling information, thereby effectively protecting the privacy information of each microgrid entity.

[0371] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0372] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0373] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0374] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0375] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-microgrid scheduling method based on dynamic operation envelope, characterized in that: include: Step S1: constructing a low-voltage radial distribution network model based on each node of the distribution network, and obtaining a first constraint condition based on the low-voltage radial distribution network model; Step S2: calculating the total daily operation minimum cost of the nth microgrid through the objective function, and obtaining the second constraint condition of the nth microgrid based on the minimum cost; Step S3: based on the expected net injected active power of the nth microgrid, a third constraint condition for limiting the final net injected active power of the nth microgrid is obtained by dynamically running the envelope algorithm and the first constraint condition; Step S4: constructing a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition; Step S5: obtaining the transaction power and transaction power price of the nth microgrid through an alternating direction multiplier algorithm based on the Nash bargaining model; The first constraint condition includes node active power balance and reactive power balance, distribution network voltage drop balance, branch power flow equation, node voltage limit constraint, and branch bidirectional complex power constraint; The expression of the first constraint condition is: (1) (2) (3) (4) (5) (6) (7) Formula (1) and (2) are the expressions for active power balance and reactive power balance of the node, respectively. , Node and serial number, , is a collection of distribution network nodes; the nodes are connected by distribution lines. , is the distribution network branch set; at any time , and Branch Active power and reactive power in period t; and Node The active power and the reactive power net injected by the nth microgrid connected to the microgrid; and Node Active load and reactive load in period t; and Branch resistance and reactance; For branch The square of the current amplitude in time period t; k is the child node; For Node The child node set of the bus; and Branch The active load and the reactive load in time period t; Formula (3) is the voltage drop balance expression of the distribution network, where: and are the squares of the voltage amplitudes of nodes i and j in time period t respectively; Formula (4) is the second-order cone form expression of the branch power flow equation; Formula (5) is the node voltage limit constraint expression, where, and are the minimum and maximum values ​​of the square of the voltage amplitude at node i, respectively; Equations (6) and (7) are the expressions for the branch bidirectional complex power constraint, where: For branch The maximum apparent power during period t; Wherein, obtaining the second constraint condition of the nth microgrid comprises the following steps: Step S21: Obtain the electric power balance constraint of the nth microgrid. The specific calculation steps are as follows: The multi-energy microgrid load demand response model is constructed, and the expression of the transferable load constraint is: (11) In formula (11), tr is the transferable amount, load0 is the actual amount, is the transferable electric load of the nth microgrid in period t, is the actual electrical load of the nth microgrid in period t, is the transferable electric load factor; The expression for the total amount of transferable electric load constraint within one cycle is: (12) The constraint expression for reducing the electric load is: (13) In formula (13), cut represents the amount that can be cut. It means that the nth microgrid can reduce the power load in the t period, represents the actual electrical load of the nth microgrid in period t, Indicates the reducible electric load factor; Based on the transferable electric load constraint, the transferable electric load total constraint and the curtailable electric load constraint in the nth microgrid, the expression of the electric load power balance constraint of the demand response is calculated as follows: (14) In formula (14), represents the electric load of the nth microgrid after demand response in period t; A cogeneration device model is constructed. The cogeneration device is in a normally open state. The expressions of the electrical output constraint and the thermal output constraint of the cogeneration device are: (15) (16) In formula (15), e represents electric energy, CHP represents the cogeneration device, represents the electric power of the cogeneration device in the nth microgrid during period t, represents the power generation efficiency of the cogeneration device, Indicates the calorific value of natural gas combustion. represents the gas consumption of the cogeneration device, in formula (16), h represents thermal energy, represents the thermal power of the cogeneration device of the nth microgrid in time period t, , is the electrothermal conversion coefficient; The expression of wind and solar output constraint is: (17) In formula (17), is the actual power of wind and solar power generation; is the predicted value of wind and solar power generation; The expression of the electric power of the cogeneration device and the capacity constraint of the cogeneration device is: (18) In formula (18), is the configured capacity of the cogeneration device; The expression of the electric power consumption of the electric refrigerator and the capacity constraint of the electric refrigerator is: (19) In formula (19), is the electrical power consumption of the electric refrigerator, is the configuration capacity of the electric refrigerator; Based on the power balance constraint of the electric load of the demand response, the power output constraint of the cogeneration device, the wind and solar output constraint, the power of the cogeneration device and the capacity constraint of the cogeneration device, and the power consumption of the electric refrigerator and the capacity constraint of the electric refrigerator, the power balance constraint expression of the nth microgrid considering multi-microgrid P2P trading is calculated as follows: (20) In formula (20), is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , N is the number of microgrids participating in Nash bargaining; Step S22: Obtain the thermal power balance constraint of the nth microgrid. The specific calculation steps are as follows: Construct a gas boiler model, and the expression of the gas boiler heat output constraint is: (21) In formula (21), GB is the gas boiler, is the heat generation power of the gas boiler in the nth microgrid during time period t, is the heat generation efficiency of the gas boiler, is the gas consumption of the gas boiler; The heat load demand response model of the multi-energy microgrid is constructed, and the expression of heat load constraint can be reduced as follows: (22) In formula (22), The heat load that can be reduced by the nth microgrid in period t, is the actual heat load of the nth microgrid in period t, is the reducible heat load coefficient; The expression of the heat load power balance constraint for demand response based on the curtailable heat load constraint is: (23) Formula (23), is the heat load of the nth microgrid after demand response in period t; The expression of the heat generation power of the gas boiler and the capacity constraint of the gas boiler is: (24) In formula (24), is the configuration capacity of the gas boiler; Based on the thermal output constraint of the cogeneration device, the thermal output constraint of the gas boiler, the thermal load power balance constraint of the demand response, and the thermal power of the gas boiler and the capacity constraint of the gas boiler, the expression of the thermal power balance constraint of the nth microgrid is calculated as follows: (25) Step S23: obtaining the cold power balance constraint of the nth microgrid, the specific calculation steps are as follows: The electric refrigerator model is constructed, and the expression of the relationship between the cooling power and the consumed electrical power of the electric refrigerator is: (26) In formula (26), c is the cooling energy, EC is the electric refrigerator, is the cooling power of the electric refrigerator of the nth microgrid in time period t, is the electric refrigeration efficiency of the electric refrigerator; Construct an absorption refrigerator model. The expression for the relationship between the cooling power and the heat absorption power of the absorption refrigerator is: (27) In formula (27), AC is the absorption refrigerator, is the cooling power of the absorption refrigerator of the nth microgrid in time period t, is the thermal cooling efficiency of the absorption refrigerator, is the heat power absorbed by the absorption refrigerator; The expression of the refrigeration power of the absorption refrigerator and the capacity constraint of the absorption refrigerator is: (28) In formula (28), is the configuration capacity of the absorption chiller; Based on the relationship constraint between the cooling power and the electric power consumption of the electric refrigerator, the relationship constraint between the cooling power and the heat absorption power of the absorption refrigerator, and the cooling power and capacity constraint of the absorption refrigerator, the expression of the cooling power balance constraint of the nth microgrid is calculated as follows: (29) In formula (29), is the actual cooling load of the nth microgrid in period t; Wherein, the step S3 comprises: Based on expression (30), the expected net injected active power of the nth microgrid is obtained. Expressions (31) and (32) limit the DOEs of the nth microgrid: (30) (31) (32) in, , are the amount of electricity purchased and sold by the nth microgrid to the distribution network during period t, is the amount of electricity that the nth microgrid trades with other n'th microgrids in P2P during period t, , , are the expected net injected active power and the allocated DOEs of the nth microgrid connected to node j in period t respectively; The expression of branch active power balance constraint is: (33) Based on the expected net injected active power, the dynamic operation envelope algorithm and the first constraint condition are used to obtain the expression of the third constraint condition for limiting the final net injected active power of the nth microgrid: (34) According to the definition of the dynamic operation envelope algorithm, the nth microgrid should limit the final net injected active power to below the calculated DOEs, expressed as: (35) (36) in, is the final net injected active power of the nth microgrid connected to the node j in the time period t.

2. The method according to claim 1, characterized in that The step S2 comprises: The total daily minimum operating cost of the nth microgrid is obtained based on the objective function, and the expression of the objective function is: (8) (9) (10) In formula (8), is the total daily operating cost of the nth microgrid in the alliance; , , are the energy cost, demand response cost and P2P transaction cost of the nth microgrid in period t respectively; in formula (9), , are respectively the electricity prices that the nth microgrid purchases and sells electricity to the distribution network in period t; , are respectively the amount of electricity purchased and sold by the nth microgrid from the distribution network in period t; is the price of natural gas; is the gas purchase volume of the nth microgrid in period t; in formula (10), , , are the compensation costs per unit of shiftable electrical load, curtailable electrical load and curtailable thermal load respectively; , , are respectively the transferable electric load, the reducible electric load and the reducible thermal load of the nth microgrid in time period t; The second constraint condition of the nth microgrid is obtained based on the minimum cost, where the second constraint condition includes an electric power balance constraint, a thermal power balance constraint, and a cold power balance constraint of the nth microgrid.

3. The method according to claim 1, characterized in that The step S4 includes: constructing a multi-microgrid Nash bargaining model based on expression (37), wherein expression (37) is: (37) In formula (37), N is the number of microgrids participating in Nash bargaining. is the total daily operating cost of the nth microgrid participating in Nash bargaining, is the negotiation breakdown point, i.e., the total daily operating cost of the nth microgrid before bargaining. The payment benefit obtained by the nth microgrid participating in the cooperation.

4. The method according to claim 3, characterized in that The step S5 comprises: Based on the mean inequality theory, we can get: (38) Based on the Nash bargaining model, the minimum cost and maximum payment benefit of the multi-energy microgrid alliance are obtained, and the minimum cost is used as the solution to the first problem, and the maximum payment benefit is used as the solution to the second problem. The expression of the first problem is: (39) Based on the alternating direction multiplier algorithm, the optimal transaction power and The optimal solution , based on the optimal solution And the expression (37), the maximum payment benefit expression is obtained as follows: (40) In formula (40), The optimal solution for transaction costs between the nth microgrid and other microgrids after the microgrid participates in the cooperation; The second problem expression is: (41) The first problem includes coupling variables of electric energy transactions between the cooperatively operated microgrids, and the coupling variables satisfy the consensus conditions for electric energy transactions between the multi-energy microgrids: (42) In formula (42), is the amount of electricity that the nth microgrid is expected to supply to the other n'th microgrids in period t, is the amount of electricity that the other n'th microgrids are expected to supply to the nth microgrid in time period t; Based on the distributed computing of the first problem using the alternating direction multiplier algorithm, the specific steps are as follows: Step S51: Construct the augmented Lagrangian function of the first problem, and optimize the variables: : (43) In formula (43), and are the Lagrange multipliers and penalty factors of the first problem respectively; Step S52: The nth microgrid updates the trading strategy through the kth iteration calculation : (44) The other n'th microgrid receives the updated trading strategy Update : (45) Step S53: Update the Lagrange multiplier: (46) Step S54: Determine the convergence of the algorithm: (47) (48) In formula (47) and (48), , are the primal residual and dual residual convergence thresholds for the first problem respectively; If the convergence conditions of the expression (47) and the expression (48) are met, the iteration is terminated and the optimal value of the first problem is output. Otherwise, the number of iterations is updated. , return to step S52.

5. The method according to claim 4, characterized in that The second problem includes the coupling variables of the cooperative operation of the electric energy transaction price between the microgrids, and the coupling variables satisfy the equal purchase and sale electricity price condition between the microgrids: (49) In formula (49), is the electricity price that the nth microgrid expects to supply to the other n'th microgrids during period t, is the electricity price that the other n'th microgrids are expected to supply to the nth microgrid in time period t; Based on the distributed computing of the second problem using the alternating direction multiplier algorithm, the specific steps are as follows: Step S61: Construct the augmented Lagrangian function of the second problem, and optimize the variables: : (50) In formula (50), and are the Lagrange multiplier and penalty factor of the second problem respectively; Step S62: The nth microgrid updates the trading strategy through the kth iteration calculation : (51) The other n'th microgrid receives the updated trading strategy Update : (52) Step S63: Update the Lagrange multiplier: (53) Step S64: Determine the convergence of the algorithm: (54) (55) In formula (54) and (55), , are the primal residual and dual residual convergence thresholds for the second problem respectively; If the convergence conditions of the expression (54) and the expression (55) are met, the iteration is terminated and the optimal value of the second problem is output. Otherwise, the number of iterations is updated. , return to step S62.

6. A multi-microgrid dispatching system based on dynamic operation envelope, used to implement the method according to any one of claims 1 to 5, characterized in that: Includes the following modules: A first generation module constructs a low-voltage radial distribution network model based on each node of the distribution network, and obtains a first constraint condition based on the low-voltage radial distribution network model; A second generation module calculates the total daily operation minimum cost of the nth microgrid through an objective function, and obtains a second constraint condition of the nth microgrid based on the minimum cost; A third generation module, based on the expected net injected active power of the nth microgrid, obtains a third constraint condition limiting the final net injected active power of the nth microgrid by dynamically running an envelope algorithm and the first constraint condition; Model building module: building a multi-microgrid Nash bargaining model based on the second constraint condition and the third constraint condition; The data processing module obtains the transaction power and transaction power price of the nth microgrid through an alternating direction multiplier algorithm based on the Nash bargaining model.

7. A computer storage medium, characterized in that: The computer storage medium stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the method according to any one of claims 1 to 5.