Optimized scheduling method, device and equipment for multiple microgrids and power distribution network, and medium

By constructing a master-slave game model for multiple microgrids and distribution networks, the problem of limitations of the existing dispatch model is solved, the energy selling price and purchase volume are optimized, and the income of distribution network operators and the efficiency of multiple microgrids are improved. Economical operation.

CN118798930APending Publication Date: 2024-10-18JILIN ELECTRIC POWER RES INST LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410901212.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing multi-microgrid and distribution network dispatching models are based on their own interests, resulting in dispatching limitations, which is not conducive to the income of distribution network operators and the economic operation of multi-microgrids.

Method used

Construct a distribution network operator model and a multi-microgrid model, with the goal of maximizing economic benefits and minimizing resource costs, and establishing a master-slave game model. The distribution network operator acts as the leader to formulate energy selling strategies, and the multiple microgrids act as followers. Adjust the load and equipment output, and obtain the equilibrium solution through genetic algorithm and CPLEX solver.

Benefits of technology

It achieves the optimization of energy selling price and purchase volume, maximizes the benefits of distribution network operators and minimizes the energy costs of multiple microgrids, balances the interests of both parties, and improves operational stability and economic benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798930A_ABST
    Figure CN118798930A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-microgrid and power distribution network optimization scheduling method, device, equipment and medium, and relates to the technical field of power distribution networks, and the method comprises the following steps: building a distribution network operator and multi-microgrid interaction master-slave game model according to a distribution network operator model and a multi-microgrid model, the strategy module is used for formulating energy price strategies; the multiple microgrids serve as followers and are used for adjusting the load and the output condition of internal equipment of the multiple microgrids according to the energy selling price to obtain an energy purchasing strategy; the energy selling price strategy is dynamically adjusted according to the energy purchasing strategy; and obtaining an equilibrium solution of the master-slave game model. According to the invention, the specific amount of the energy selling price and the energy purchase amount is gradually determined in the interaction between the distribution network operator and the multi-microgrid, so that the balance between the maximization of the energy selling income of the distribution network operator and the minimization of the energy introduction cost of the multi-microgrid is achieved, and both parties of the transaction are satisfied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of distribution network, and in particular to an optimization dispatching method, device, equipment and medium for multiple microgrids and distribution networks. Background Art

[0002] The birth of the existing microgrid (MC) technology has fundamentally solved the technical problem of overuse of traditional resources and the inability of new energy to be efficiently converted into real-time available energy. From a structural point of view, the microgrid has modules such as new energy power generation system, energy storage system and supply load, which can easily convert the new energy widely existing in nature into available resources such as electricity and heat energy in real time, thereby reducing the consumption of fossil energy and the emission of greenhouse gases. A multi-microgrid system refers to a system in which multiple microgrids coordinate their output.

[0003] With the vigorous development of new energy technologies, multiple microgrids have begun to be connected to the distribution network, and the distribution network has changed from a traditional one-way flow to a two-way complex system. Although the extensive use of distributed energy helps to improve the environmental benefits of the system, the volatility of its output and the randomness of its dependence on the operating environment have brought considerable challenges to the safe and stable operation of the distribution network system.

[0004] In the traditional dispatching mode of multi-microgrid-distribution network joint system, the distribution network has always been the setter of energy prices, while multi-microgrids can only purchase energy through inherent prices and out of consideration of their own economic factors, and cannot participate in the formulation of energy prices. Therefore, the existing dispatching modes are based on their own interests, which makes the dispatch between the two limited, which is not conducive to the profits of distribution network operators, nor to the economic operation of multi-microgrids. Summary of the invention

[0005] The present invention provides a method, device, equipment and storage medium for optimizing the scheduling of multiple microgrids and distribution networks, which solves the problem that the existing scheduling modes are based on their own interests, resulting in limitations in the scheduling between the two, which is not conducive to the benefits of distribution network operators and the economic operation of multiple microgrids.

[0006] The present invention provides a method for optimizing the dispatching of multiple microgrids and a distribution network, comprising the following steps:

[0007] The distribution network operator model is constructed with maximizing economic benefits as the objective function, and the multi-microgrid model is constructed with minimizing resource costs as the objective function;

[0008] According to the distribution network operator model and the multi-microgrid model, a master-slave game model of the interaction between the distribution network operator and the multi-microgrid is constructed, in which the distribution network operator is used as a leader to formulate an energy price strategy; the multi-microgrid is used as a follower to adjust the load and the output of the internal equipment of the multi-microgrid according to the energy price to obtain the energy purchase strategy; the energy price strategy is dynamically adjusted according to the energy purchase strategy;

[0009] An equilibrium solution of the master-slave game model is obtained, where the equilibrium solution is the optimal energy price strategy of the distribution network operator and the energy purchase strategy of the multi-microgrid.

[0010] Preferably, the distribution network operator model is as follows:

[0011]

[0012] Where: C DNO Represents the revenue of distribution network operators, They represent the electricity price, heat price, and hydrogen unit price provided by the distribution network operator to the multi-microgrid during the period t, They represent the amount of electricity sold by the distribution network operator to the multi-microgrid and the amount of electricity sold by the multi-microgrid to the distribution network operator. Represents the heat sold by the distribution network operator to the multi-microgrid, represents the amount of hydrogen sold by the distribution network operator to the multi-microgrid, and T is the total time;

[0013] The constraints of the distribution network operator model are as follows:

[0014]

[0015] In the formula, UP E-max UP E-min They represent the maximum and minimum electricity prices provided by the distribution network operator to the multi-microgrid, UP H-max UP H-min They represent the maximum and minimum heat prices provided by the distribution network operator to the multi-microgrid respectively. They respectively represent the maximum and minimum electricity prices provided by distribution network operators to multiple microgrids.

[0016] Preferably, the multi-microgrid model is as follows:

[0017]

[0018] In the formula, represents the compensation cost brought by the shiftable electric load response, W i GH,E Represents the system's electricity purchase and sales cost, W i GH,H Represents the system's cost of purchasing and selling heat resources, Represents the system's cost of purchasing and selling hydrogen, Represents the system's cost of purchasing and selling natural gas;

[0019] The constraints of the multi-microgrid model are as follows:

[0020]

[0021] In the formula, Represents the power of the electric load that can be translated within the time period t, Represent the minimum and maximum values ​​of the transferable electrical load, respectively. They represent the load moving-in status flag at time t and the load moving-out status flag at time t respectively. Represents the power transferred into the load during period t, represents the removed power of the electric load during period t, They represent the minimum and maximum input power of the electric load in period t respectively. They represent the minimum and maximum removal power of the electric load in period t, respectively. Represents the compensation cost caused by the shiftable electric load response, Represents the unit price of load reduction compensation, Represents the amount of shiftable electrical load that can be reduced during peak electricity consumption periods.

[0022] Preferably, the master-slave game model is as follows:

[0023]

[0024] In the formula, DNO represents the distribution network operator, 1 represents the campus-level multi-microgrid; DNO , buy , DNO , sell They represent the purchase and sale price strategy set of electricity, heat and hydrogen resources of the distribution network operator within 24 hours, L TL represents the set of transferable load strategies after the adjustment of multi-microgrids at the park level within 24 hours, L Ir represents the strategy set of reducing heat and hydrogen in multiple microgrids at the park level within 24 hours, C DNO Represents the revenue obtained by the distribution network operator from selling resources within 24 hours, W buy Represents the cost of purchasing resources for multiple microgrids at the campus level within 24 hours.

[0025] Preferably, the master-slave game model is equivalent to a two-layer optimization model, the upper layer is the distribution network operator model, and the lower layer is the multi-microgrid model.

[0026] Preferably, obtaining the equilibrium solution of the master-slave game model by using a genetic algorithm and a CPLEX solver comprises the following steps:

[0027] Initialize distribution network operator parameters, multi-microgrid parameters, number of cycles, genetic algorithm parameters and convergence error;

[0028] Transmit the energy selling price set by the distribution network operator to multiple microgrids;

[0029] Multiple microgrids receive energy sales prices, use CPLEX solvers to solve demand-side response load adjustment distribution, and calculate and retain current resource costs The energy purchase amount of multiple microgrids is calculated and returned to the distribution network operator;

[0030] Distribution network operators receive energy purchase calculations and retain current economic benefits

[0031] Genetic algorithms are used to select and compile new energy prices and recalculate the economic benefits of distribution network operators. Economic Costs of Multi-Microgrids

[0032] if and Then execute otherwise,

[0033] like and If yes, the process ends and the optimal energy price strategy and energy purchase strategy are output; otherwise, the above cycle is repeated within the number of cycles.

[0034] An optimization dispatching device for multiple microgrids and distribution networks, comprising:

[0035] A construction module is used to construct a distribution network operator model with maximizing economic benefits as the objective function and to construct a multi-microgrid model with minimizing resource costs as the objective function;

[0036] The game module is used to construct a master-slave game model of the interaction between the distribution network operator and the multi-microgrid based on the distribution network operator model and the multi-microgrid model. The distribution network operator is used as a leader to formulate an energy price strategy; the multi-microgrid is used as a follower to adjust the load and the output of the internal equipment of the multi-microgrid according to the energy price to obtain the energy purchase strategy; the energy price strategy is dynamically adjusted according to the energy purchase strategy;

[0037] The solution module is used to obtain the equilibrium solution of the master-slave game model, where the equilibrium solution is the optimal energy price strategy of the distribution network operator and the energy purchase strategy of the multi-microgrid.

[0038] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned optimization dispatching method for multiple microgrids and distribution networks when executing the program.

[0039] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned optimization scheduling method for multiple microgrids and distribution networks.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention proposes an optimization scheduling method for multi-microgrids and distribution networks. First, a distribution network operator model is constructed with maximizing economic benefits as the objective function, and a multi-microgrid model is constructed with minimizing resource costs as the objective function. Then, a master-slave game model is constructed, in which the distribution network operator, as the leader, sets electricity prices, heat prices and hydrogen prices; the park-level multi-microgrid, as the follower, adjusts the load and the output of the internal equipment of the multi-microgrid according to the energy prices. Finally, the equilibrium solution of the game strategy is solved by a genetic algorithm. The present invention enables the specific amount of energy sales price and energy purchase amount to be gradually determined in the mutual interaction between the distribution network operator and the multi-microgrid, thereby achieving a balance between maximizing the distribution network operator's energy sales revenue and minimizing the multi-microgrid energy introduction cost, so that both parties to the transaction are satisfied. It can effectively improve the economic benefits of the distribution network operator and reduce the operating costs of the park-level multi-microgrid, while improving the operating stability of the multi-microgrid. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 This is a diagram of the campus-level multi-microgrid architecture of the present invention;

[0044] Figure 2 A schematic diagram of the energy interaction structure of multiple microgrids and distribution network operators of the present invention;

[0045] Figure 3 The new energy power generation prediction curve of the embodiment of the present invention;

[0046] Among them, (a) is the prediction curve of photovoltaic power generation of multi-microgrid at the park level, (b) is the prediction curve of wind power generation of multi-microgrid at the park level;

[0047] Figure 4 The power, heat and hydrogen load forecast curves of the park-level multi-microgrid according to the embodiment of the present invention;

[0048] Figure 5 The optimization result of the demand side response of electricity, heat and hydrogen loads in the embodiment of the present invention;

[0049] Among them, (a): the optimization results of the demand side response of the electric load and the thermal load, (b): the optimization results of the demand side response of the hydrogen load;

[0050] Figure 6 The optimization results of the electricity, heat and hydrogen unit prices of the embodiment of the present invention;

[0051] Among them, (a): optimization result of unit price of electricity purchase, (b): optimization result of unit price of electricity sales, (c): optimization result of unit price of heat purchase, (d): optimization result of unit price of hydrogen purchase;

[0052] Figure 7 This is a comparison chart of the electricity, heat and hydrogen energy purchase amounts before and after the demand-side response of an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The present invention provides a method for optimizing the scheduling of multiple microgrids and a distribution network, comprising the following steps:

[0055] Step 1: Build a distribution network operator model and a multi-microgrid model.

[0056] The core purpose of the distribution network operator is to maximize its own profits while ensuring the economic operation of multiple microgrids. It achieves this goal by regulating energy prices. The distribution network operator model is shown in formula (1).

[0057]

[0058] Where: C DNO Represents the revenue of distribution network operators; They represent the electricity price, heat price, and hydrogen unit price provided by the distribution network operator to the multi-microgrid during period t; They represent the amount of electricity sold by the distribution network operator to the multi-microgrid and the amount of electricity sold by the multi-microgrid to the distribution network operator. Heat sold to multiple microgrids on behalf of distribution network operators; Represents the amount of hydrogen sold by the distribution network operator to multiple microgrids.

[0059] The constraints of the distribution network operator model are shown in formula (2):

[0060]

[0061] Where: UP E-max UP E-min Respectively represent the maximum and minimum electricity prices provided by the distribution network operator to the multi-microgrid; UP H-max UP H-min They represent the maximum and minimum heat prices provided by the distribution network operator to the multi-microgrid respectively; They respectively represent the maximum and minimum electricity prices provided by distribution network operators to multiple microgrids.

[0062] The multi-microgrid of the present invention is a park-level multi-microgrid, and its architecture is as follows: Figure 1 As shown in Figure 3, a campus-level multi-microgrid model based on electricity-heat-hydrogen demand-side response is established. The objective function of the multi-microgrid model is to minimize the resource cost, including the cost of trading electricity, heat, and hydrogen resources between the multi-microgrid and the distribution network operator. The multi-microgrid model is shown in formula (3).

[0063]

[0064] In the formula, represents the compensation cost brought by the shiftable electric load response, W i GH,E Represents the system's electricity purchase and sales cost, W i GH,H Represents the system's cost of purchasing and selling heat resources, Represents the system's cost of purchasing and selling hydrogen, Represents the system's cost of purchasing and selling natural gas.

[0065] Among them, in the interactive operation between multiple microgrids and the distribution network, there is demand and transaction of electricity. The transaction cost is the electricity purchase cost minus the electricity sales revenue. The model is shown in formula (3-1).

[0066]

[0067] Where: They represent the electricity purchase and sales in period t, They represent the purchase and sale electricity prices in period t respectively.

[0068] In the process of operating costs, microgrids may encounter situations where the electricity price is too high and their own electricity cannot support the electric boiler device and electrolyzer device to operate at the predetermined power, resulting in the output of heat resources and hydrogen resources being unable to meet the heat load and hydrogen load. At this time, it is necessary to purchase the required heat resources and hydrogen resources from the outside to achieve the normal operation of multiple microgrids. The cost of purchasing heat energy is shown in formula (3-2), and the cost of purchasing hydrogen is shown in formula (3-3).

[0069]

[0070] Where: They represent the amount of heat resources purchased and sold during period t, They represent the purchase and sale prices of thermal resources in period t respectively.

[0071]

[0072] Where: They represent the amount of hydrogen purchased and sold during period t, They represent the purchase and sale prices of hydrogen in period t respectively.

[0073] Gas turbines play the role of supplementing electricity and heat energy in microgrids by burning natural gas. Therefore, microgrids need to purchase natural gas from the outside to support the stable operation of microgrids. The cost is shown in formula (3-4).

[0074]

[0075] Where: represents the amount of natural gas purchased during period t, Represents the unit price of natural gas purchased during period t

[0076] The relevant constraints are shown in formulas (4-1) and (4-2).

[0077]

[0078] In the formula, Represents the power of the electric load that can be translated within the time period t, Represent the minimum and maximum values ​​of the transferable electrical load, respectively. They represent the load moving-in status flag at time t and the load moving-out status flag at time t respectively. Represents the power transferred into the load during period t, represents the removed power of the electric load during period t, They represent the minimum and maximum input power of the electric load in period t respectively. They represent the minimum and maximum removal power of the electric load in period t, respectively. Represents the compensation cost caused by the shiftable electric load response, Represents the unit price of load reduction compensation, Represents the amount of shiftable electrical load that can be reduced during peak electricity consumption periods.

[0079]

[0080] Where: UP E-max UP E-min Respectively represent the maximum and minimum electricity prices provided by the distribution network operator to the multi-microgrid; UP H-max UP H-minThey represent the maximum and minimum heat prices provided by the distribution network operator to the multi-microgrid respectively; UP H2-max UP H2-min They respectively represent the maximum and minimum electricity prices provided by distribution network operators to multiple microgrids.

[0081] Step 2: Based on the distribution network operator model and the multi-microgrid model, a master-slave game model for the interaction between the distribution network operator and the multi-microgrid is constructed.

[0082] Campus-level multi-microgrid-distribution network operator multi-level energy interaction Figure 2 As shown. In terms of distribution network operators, the goal is to maximize economic benefits. As the leader in the master-slave game, it receives quotation information from distribution networks, thermal companies, hydrogen companies, and multi-microgrids, and obtains the purchase and sale of multi-microgrid electric, thermal, and hydrogen energy and the unit price of energy. At the multi-microgrid level, as a follower of the master-slave game, it coordinates and optimizes internal facilities and interacts with distribution network operators for resources based on the energy quotations provided by distribution network operators with the goal of minimizing resource purchase costs.

[0083] The transaction volume between multi-microgrids and distribution network operators will increase with the increase of resource interaction power. According to the distribution network operator model and the multi-microgrid model, a master-slave game model of the interaction between the distribution network operator and the multi-microgrid is constructed. In the process of the game, both will seek the optimal scheduling plan that best suits their own interests. Among them, the distribution network operator, as a leader, takes maximizing economic benefits as the objective function to formulate energy price strategies. As a follower, the multi-microgrid takes minimizing resource costs as the objective function to adjust the load and the output of the internal equipment of the multi-microgrid according to the price of each energy, and obtain the energy purchase strategy. In this embodiment, the distribution network operator first formulates the electricity price, heat price and hydrogen price within a day and conveys the price information to the park-level multi-microgrid. The park-level multi-microgrid adjusts the internal load of the multi-microgrid and the output of the electric boiler and electrolyzer device according to the pricing plan of the distribution network operator and the demand-side response compensation fee, and updates the energy purchase demand. The distribution network will adjust the energy unit price according to the updated multi-microgrid optimization plan to obtain higher economic benefits. By repeating the above work, the equilibrium solution of the master-slave game model is obtained. The equilibrium solution is the optimal energy pricing strategy of the distribution network operator and the energy purchasing strategy of multiple microgrids.

[0084] The interactive variables between the distribution network operator and the park-level multi-microgrid are electricity sales price, heat sales price, hydrogen sales price, electricity purchase, heat purchase and hydrogen purchase. The park-level multi-microgrid will dynamically adjust the electricity purchase, heat purchase and hydrogen purchase according to the floating resource prices. The distribution network operator will also re-formulate the pricing strategy according to the number of resources purchased by the park-level multi-microgrid, and finally find the optimal pricing strategy after multiple games. The master-slave game model between the distribution network operator and the park-level multi-microgrid is shown in formula (5).

[0085]

[0086] Where: DNO distribution network operator is the leader, and campus-level multi-microgrid 1 is the follower; DNO , buy , DNO , sell They represent the purchase and sale price strategy set of electricity, heat and hydrogen resources of distribution network operators within 24 hours; L TL represents the set of transferable electric load strategies after the adjustment of multi-microgrids at the park level within 24 hours; L Ir Represents the strategy set for reducing heat and hydrogen in multiple microgrids at the park level within 24 hours. DNO represents the revenue obtained by the distribution network operator from selling resources within 24 hours, calculated by formula (1); W buy represents the resource purchase cost of multiple microgrids at the park level within 24 hours, calculated by formula (3).

[0087] The present invention adopts a genetic algorithm (GA) to solve the established master-slave game model. The master-slave game model established by the present invention can be equivalent to a two-layer optimization model, the upper layer is the distribution network operator model, and the lower layer is the park-level multi-microgrid model.

[0088] The upper layer optimization uses genetic algorithms to obtain the optimization plan of the distribution network operator, that is, the purchase and sale price of electricity, the price of heat, and the price of hydrogen; the lower layer optimization uses CPLEX solver to be responsible for the optimal scheduling plan of multi-microgrids at the park level, that is, the energy purchase amount. The solution process is as follows:

[0089] S1: Initialize distribution network operator parameters, multi-microgrid parameters, K = 0, population number = 40, number of iterations = 20, population mutation rate is 5%, crossover probability is 80%, and convergence error ε is set to 0.01.

[0090] S2: Transmit the electricity purchase and sales prices, heat sales prices, and hydrogen sales prices set by the distribution network operator to multiple microgrids.

[0091] S3: K=K+1.

[0092] S4: Multiple microgrids receive price parameters from distribution network operators, use CPLEX solver to solve demand-side response load adjustment distribution, calculate and retain current costs The electricity, heat and hydrogen purchases of multiple microgrids are calculated and returned to the distribution network operator.

[0093] S5: The distribution network operator calculates and retains the current revenue through the returned multi-microgrid electricity, heat, and hydrogen purchases

[0094] S6: Generate new electricity, heat and hydrogen purchases of distribution network operators by selecting and compiling using genetic algorithms, and repeat steps 4-5; calculate the benefits of distribution network operators Economic Costs of Multi-Microgrids

[0095] S7: If and Then execute otherwise,

[0096] S8: If and End the program; otherwise return to S3.

[0097] Based on the same concept, the present invention also provides an optimization dispatching device for multiple microgrids and distribution networks, including a construction module, a game module and a solution module.

[0098] The building module is used to construct the distribution network operator model with maximizing economic benefits as the objective function, and to construct the multi-microgrid model with minimizing resource costs as the objective function.

[0099] The game module is used to construct a master-slave game model for the interaction between distribution network operators and multi-microgrids based on the distribution network operator model and the multi-microgrid model. The distribution network operator acts as a leader to formulate an energy pricing strategy; the multi-microgrid acts as a follower to adjust the load and the output of the equipment inside the multi-microgrid according to the energy pricing to obtain the energy purchasing strategy; the energy pricing strategy is dynamically adjusted according to the energy purchasing strategy.

[0100] The solution module is used to obtain the equilibrium solution of the master-slave game model. The equilibrium solution is the optimal energy price strategy of the distribution network operator and the energy purchasing strategy of multiple microgrids.

[0101] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned optimization scheduling method for multiple microgrids and distribution networks is implemented.

[0102] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned optimization scheduling method for multiple microgrids and distribution networks is implemented.

[0103] Example

[0104] The multi-microgrid model adopted in this embodiment adds the energy interaction function between microgrids, so that the three microgrids can realize energy transmission. Since the microgrids within the park-level multi-microgrid are close to each other, the three microgrids are regarded as a whole without considering the transmission cost. Figure 3 As shown in the figure, the electricity, heat and hydrogen load forecast curves are as follows Figure 4 As shown in Table 1, the upper and lower limits of energy purchase and sale prices are shown in Table 1. The optimization period is set to 24 hours, and the programming software is MATLAB2019B.

[0105] Table 1 Upper and lower limits of energy purchase and sale prices of distribution network operators

[0106]

[0107] The distribution network operator-park-level multi-microgrid master-slave game model established in this embodiment is solved by combining genetic algorithm and CPLEX solver. The iteration limit is set to 100 times. The solution result is as follows: Figure 5 , Figure 6 As shown:

[0108] Figure 5 The optimization results of electricity, heat and hydrogen loads after demand-side response are demonstrated. By adjusting the output of equipment within the multi-microgrid and shifting and reducing the electricity, heat and hydrogen loads, the economy and environmental protection of the multi-microgrid are improved. Figure 6 It reflects the results of the unit prices of electricity, heat, and hydrogen after optimization through the master-slave game strategy. By adjusting the output of electric boilers, electrolyzers, gas turbine devices, and energy storage devices within the multi-microgrid, the amount of energy interaction between the multi-microgrid and the distribution network operator is changed, further affecting the results of the master-slave game optimization. In the figure, the upper dotted line represents the upper limit of the energy price, the lower dotted line represents the lower limit of the energy price, and the solid line represents the electricity, heat, and hydrogen energy prices after the game. The electricity purchase price change curve is shown in the figure. Figure 6 As shown in (a) in the figure, the price trend after the game changes with the change of load. In order to meet the economic operation of multi-microgrids at the park level, the distribution network operator will appropriately adjust the unit price during the period when the demand for electricity in the multi-microgrid is high, thereby reducing the overall cost of purchasing electricity for the multi-microgrid. As shown in the 10:00-16:00 period in the figure, the electricity, heat, and hydrogen loads are all at a high level, and the energy conversion devices within the multi-microgrid will operate at high power. The demand for electricity is significantly higher than other periods. Therefore, the distribution network operator will appropriately reduce the electricity price to match the load of the multi-microgrid, and try to maintain the cost of purchasing electricity for the multi-microgrid at a low level. At the same time, in the 0:00-4:00 period, the overall electricity load is low, and the demand for electricity in the multi-microgrid is also low. The distribution network operator will appropriately increase the electricity price during this period. The electricity sales price change curve is shown in the figure. Figure 6 As shown in (b) in the figure, in order to relieve the power supply pressure of the distribution network during the peak power consumption period, the distribution network operator will encourage multiple microgrids to sell electricity to the distribution network. Therefore, the electricity price will increase significantly during the period of 15:00-21:00, thereby guiding multiple microgrids to increase the amount of electricity they sell. Figure 6As shown in (c) in the figure, the demand for heat purchase by multiple microgrids is generally high during the periods of 12:00-16:00 and 20:00-21:00. The distribution network operator guides multiple microgrids to purchase heat energy by appropriately lowering the unit price of heat energy, thereby obtaining higher profits. At the same time, multiple microgrids can also reduce operating costs. The curve of the unit price of hydrogen purchase is shown in Figure 6 As shown in (d) in the figure, compared with electric thermal energy, the demand for hydrogen energy in microgrids is lower. Distribution network operators will make significant adjustments to the unit price of hydrogen during the period of hydrogen energy shortage in microgrids to achieve high profits. Figure 7 It shows the purchase volume of electricity, heat and hydrogen energy within 24 hours before and after the demand-side response based on the master-slave game idea.

[0109] The present invention establishes four scenarios and analyzes the improvement of the economic operation cost of multi-microgrids by the master-slave game idea and demand-side response technology through multi-microgrid cost analysis in different scenarios.

[0110] Table 2 Energy cost of multiple microgrids

[0111] Table 2 compares the energy costs of multi-microgrids before and after demand response based on the optimized electricity, heat and hydrogen energy prices based on the master-slave game algorithm, as well as the energy costs of multi-microgrids based on the highest and lowest energy unit prices. By comparing scenario 1 and scenario 2, it can be seen that under the premise of the master-slave game idea, the total energy cost of the multi-microgrid before demand response is 15652.8 yuan, and the total energy cost of the multi-microgrid after demand response is 11393.4 yuan, saving 4259.4 yuan in total energy cost, a year-on-year decrease of 27.2%, which effectively proves that demand-side response technology can reduce the operating cost of multi-microgrids to a certain extent; by comparing scenarios 2, 3 and 4, it can be seen that the energy cost of multi-microgrids based on the highest energy unit price is 24849.1 yuan, and the energy cost of multi-microgrids based on the lowest energy unit price is 4270.39 yuan. Since both Scenario 3 and Scenario 4 cannot meet the interests of distribution network operators and multi-microgrids at the same time, they do not meet the requirements. Scenario 2 makes certain adjustments to energy prices based on the master-slave game idea. Its cost is at the middle level between Scenario 3 and Scenario 4, while taking into account the interests of distribution network operators and multi-microgrids. This example verifies the rationality of the proposed strategy, and improves the economic benefits of civil distribution network operators while reducing the energy cost of multi-microgrids.

[0112] The present invention proposes a bidding game strategy between a park-level multi-microgrid and a distribution network operator based on a master-slave game. As a leader, the distribution network operator sets electricity prices, heat prices and hydrogen prices with the objective function of maximizing economic benefits. As a follower, the park-level multi-microgrid adjusts the load and the output of the internal equipment of the multi-microgrid according to the prices of various energy sources. Finally, the equilibrium solution of the game strategy is solved by a genetic algorithm. The effectiveness of the strategy is verified by simulating the proposed game. Compared with the energy prices at the beginning of the game, the optimized energy prices can effectively improve the economic benefits of the distribution network operators and reduce the operating costs of the park-level multi-microgrids, while improving the operating stability of the park-level multi-microgrids.

[0113] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0114] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for optimizing the dispatching of multiple microgrids and distribution networks, characterized in that: The following steps are involved: The distribution network operator model is constructed with maximizing economic benefits as the objective function, and the multi-microgrid model is constructed with minimizing resource costs as the objective function; According to the distribution network operator model and the multi-microgrid model, a master-slave game model of the interaction between the distribution network operator and the multi-microgrid is constructed, in which the distribution network operator is used as a leader to formulate an energy price strategy; the multi-microgrid is used as a follower to adjust the load and the output of the internal equipment of the multi-microgrid according to the energy price to obtain the energy purchase strategy; the energy price strategy is dynamically adjusted according to the energy purchase strategy; An equilibrium solution of the master-slave game model is obtained, where the equilibrium solution is the optimal energy price strategy of the distribution network operator and the energy purchase strategy of the multi-microgrid.

2. The method for optimizing the dispatching of multiple microgrids and distribution networks according to claim 1, characterized in that: The distribution network operator model is as follows: Where: C DNO Represents the revenue of distribution network operators, They represent the electricity price, heat price, and hydrogen unit price provided by the distribution network operator to the multi-microgrid during the period t, They represent the amount of electricity sold by the distribution network operator to the multi-microgrid and the amount of electricity sold by the multi-microgrid to the distribution network operator. Represents the heat sold by the distribution network operator to the multi-microgrid, represents the amount of hydrogen sold by the distribution network operator to the multi-microgrid, and T is the total time; The constraints of the distribution network operator model are as follows: In the formula, UP E-max UP E-min They represent the maximum and minimum electricity prices provided by the distribution network operator to the multi-microgrid, UP H-max UP H-min They represent the maximum and minimum heat prices provided by the distribution network operator to the multi-microgrid respectively. They respectively represent the maximum and minimum electricity prices provided by distribution network operators to multiple microgrids.

3. The method for optimizing the dispatching of multiple microgrids and distribution networks according to claim 2, characterized in that: The multi-microgrid model is as follows: In the formula, represents the compensation cost brought by the shiftable electric load response, W i GH,E Represents the system's electricity purchase and sales cost, W i GH,H Represents the system's cost of purchasing and selling heat resources, Represents the system's cost of purchasing and selling hydrogen, Represents the system's cost of purchasing and selling natural gas; The constraints of the multi-microgrid model are as follows: In the formula, Represents the power of the electric load that can be translated within the time period t, Represent the minimum and maximum values ​​of the transferable electrical load, respectively. They represent the load moving-in status flag at time t and the load moving-out status flag at time t respectively. Represents the power transferred into the load during period t, represents the removed power of the electric load during period t, They represent the minimum and maximum input power of the electric load in period t respectively. They represent the minimum and maximum removal power of the electric load in period t, respectively. Represents the compensation cost caused by the shiftable electric load response, Represents the unit price of load reduction compensation, Represents the amount of shiftable electrical load that can be reduced during peak electricity consumption periods.

4. The method for optimizing the dispatching of multiple microgrids and distribution networks according to claim 3, characterized in that: The master-slave game model is as follows: In the formula, DNO represents the distribution network operator, 1 represents the campus-level multi-microgrid; DNO , buy , DNO , sell They represent the purchase and sale price strategy set of electricity, heat and hydrogen resources of the distribution network operator within 24 hours, L TL represents the set of transferable load strategies after the adjustment of multi-microgrids at the park level within 24 hours, L Ir represents the strategy set of reducing heat and hydrogen in multiple microgrids at the park level within 24 hours, C DNO Represents the revenue obtained by the distribution network operator from selling resources within 24 hours, W buy Represents the cost of purchasing resources for multiple microgrids at the campus level within 24 hours.

5. The method for optimizing the dispatching of multiple microgrids and distribution networks according to claim 4, characterized in that: The master-slave game model is equivalent to a two-layer optimization model, the upper layer is the distribution network operator model, and the lower layer is the multi-microgrid model.

6. The method for optimizing the dispatching of multiple microgrids and distribution networks according to claim 5, characterized in that: Obtaining the equilibrium solution of the master-slave game model through genetic algorithm and CPLEX solver includes the following steps: Initialize distribution network operator parameters, multi-microgrid parameters, number of cycles, genetic algorithm parameters and convergence error; Transmit the energy selling price set by the distribution network operator to multiple microgrids; Multiple microgrids receive energy sales prices, use CPLEX solvers to solve demand-side response load adjustment distribution, and calculate and retain current resource costs The energy purchase amount of multiple microgrids is calculated and returned to the distribution network operator; Distribution network operators receive energy purchase calculations and retain current economic benefits Genetic algorithms are used to select and compile new energy prices and recalculate the economic benefits of distribution network operators. Economic Costs of Multi-Microgrids if and Then execute otherwise, like and If yes, the process ends and the optimal energy price strategy and energy purchase strategy are output; otherwise, the above cycle is repeated within the number of cycles.

7. An optimization dispatching device for multiple microgrids and distribution networks, characterized in that: include: A construction module is used to construct a distribution network operator model with maximizing economic benefits as the objective function and to construct a multi-microgrid model with minimizing resource costs as the objective function; The game module is used to construct a master-slave game model of the interaction between the distribution network operator and the multi-microgrid based on the distribution network operator model and the multi-microgrid model. The distribution network operator is used as a leader to formulate an energy price strategy; the multi-microgrid is used as a follower to adjust the load and the output of the internal equipment of the multi-microgrid according to the energy price to obtain the energy purchase strategy; the energy price strategy is dynamically adjusted according to the energy purchase strategy; The solution module is used to obtain the equilibrium solution of the master-slave game model, where the equilibrium solution is the optimal energy price strategy of the distribution network operator and the energy purchase strategy of the multi-microgrid.

8. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for optimizing the scheduling of multi-microgrids and distribution networks as described in any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for optimizing the scheduling of multiple microgrids and distribution networks as described in any one of claims 1 to 6 above is implemented.