Regional power grid elastic optimization scheduling method and system supported by distributed power sources

The elastic optimization dispatch method of regional power grids supported by distributed power sources uses two-stage stochastic planning and distributed power supply models to improve the power grid's ability to respond to natural disasters, solve the problem of insufficient power grid elasticity, and achieve the best response to power grid failures. Economic benefits and load protection.

CN117394360BActive Publication Date: 2024-09-03STATE GRID JIANGSU ELECTRIC POWER CO LTD NANJING POWER SUPPLY COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311125727.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-01
Publication Date
2024-09-03
Estimated Expiration
2043-09-01

AI Technical Summary

Technical Problem

The power system faces increased power demand caused by the randomness of new energy output and extreme climate events, resulting in insufficient grid flexibility and a lack of effective ways to improve the grid's ability to respond to natural disasters.

Method used

A regional power grid elastic optimization dispatching method supported by distributed power sources is adopted. By establishing a distributed power supply model, evaluating regional power grid elasticity indicators and power flow models, a two-stage stochastic programming method is used to build a dispatch model, and the distribution is optimized by combining energy storage devices and solar panel constraints. Dispatch strategies for power supply to improve grid flexibility.

Benefits of technology

It effectively improves the elasticity of the power grid, can maximize the protection of the grid load and reduce economic costs when the grid fails, simplifies the modeling process and reduces the difficulty of solving, and fully unleashes the regulatory potential of distributed power sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117394360B
    Figure CN117394360B
Patent Text Reader

Abstract

This invention relates to the field of power system dispatching and optimization, and particularly to a method and system for resilient optimization dispatching of a regional power grid supported by distributed generation. The method includes: establishing a distributed generation model; establishing a resilience index to evaluate the resilience of the regional power grid; establishing a regional power flow model; constructing a dispatching model using a two-stage stochastic programming method, with the distributed generation model and the regional power flow model as constraints and the resilience index as the optimization objective, to address the uncertainty of power grid faults; and solving the problem based on the dispatching model after inputting the states of the regional power grid during normal operation and during fault operation. This invention improves power grid resilience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system dispatching and optimization, and in particular to a method and system for elastic optimization dispatching of a regional power grid supported by distributed power sources. Background Art

[0002] The transformation of energy consumption structure is imperative, but energy transformation has brought considerable challenges to the power system. The output of new energy sources, mainly wind and solar, is highly random and insufficient in supporting the balance of electricity. The frequent occurrence of extreme climate events has led to a significant increase in electricity demand, which seriously threatens the safe supply of electricity. Therefore, the distribution network urgently needs effective means to improve the resilience of the grid, enhance the ability of the power system to face natural disasters, and ensure energy security.

[0003] Distributed power sources have become somewhat popular, and there are many methods for distributed power source scheduling. However, there is still a lack of relevant research on how to solve the randomness of power grid failures and how to use distributed power sources to enhance power grid resilience. Summary of the invention

[0004] The purpose of the present invention is to provide a regional power grid elasticity optimization scheduling method and system supported by distributed power sources, thereby improving the elasticity of the power grid.

[0005] In order to solve the above technical problems, the technical solution of the present invention is:

[0006] In a first aspect, a regional power grid elastic optimization scheduling method supported by distributed power sources is provided, comprising:

[0007] Step S100: establishing a distributed power supply model;

[0008] Step S200: Establishing a resilience index for evaluating regional power grid resilience;

[0009] Step S300: Establishing a regional power grid power flow model;

[0010] Step S400: constructing a scheduling model by a two-stage stochastic programming method, taking the distributed power model and the regional power grid power flow model as constraints and taking the elasticity index as the optimization target;

[0011] Step S500: Solve the scheduling model to obtain a scheduling strategy for distributed power sources.

[0012] Furthermore, in step S100, the distributed power source includes a solar panel and an energy storage device.

[0013] Further, in step S100, the distributed power supply model includes: energy storage device constraints and solar panel constraints;

[0014] Among them, the energy storage device constraints are:

[0015]

[0016] u dis,t +u ch,t ≤1

[0017] E t+1 =KE t +P ch,t η ch Δt-P dis,t Δt / η dis

[0018] E min ≤E t ≤E max

[0019] In the above formula, P ch,t is the charging power of the energy storage at time t; P ch,max is the maximum charging power of energy storage; P dis,t is the discharge power of the energy storage at time t; P dis,max is the maximum discharge power of energy storage; u dis,t ,u ch,t are the discharge state and charge state of the energy storage at time t, respectively. A value of 1 indicates that the energy storage is in the corresponding state, and a value of 0 indicates that it is not in the corresponding state. t is the power level of the energy storage at time t; E min is the minimum power level of energy storage; E max is the maximum power level of energy storage; K is the energy storage self-discharge coefficient; Δt is the time change value; η dis is the energy storage discharge efficiency; η ch Charging efficiency for energy storage;

[0020] Among them, the solar panel constraints are:

[0021]

[0022]

[0023] In the above formula, is the active power injected by the photovoltaic inverter at time t; Q max The maximum reactive power that can be injected into the PV inverter; is the reactive power injected by the PV inverter at time t; It is the maximum apparent power that can be injected into the PV inverter.

[0024] Furthermore, in step S200, the elasticity index includes: weighted load loss and economic cost C;

[0025] Among them, weighted loss load

[0026]

[0027] In the above formula, q j represents the weight of node j; represents the power system load at node j at time t; R0 represents the load level when the system is operating normally; Ω j represents the set of all load nodes; T represents the program running time after the power grid fails;

[0028] Among them, the economic cost C is:

[0029] min C=C INV +C OPT

[0030] C OPT =C OPT-PUR +C OPT-VOLL

[0031]

[0032]

[0033] In the above formula, C OPT is the electricity purchase cost; C INV is the annualized coefficient; C OPT-PUR The cost of purchasing electricity from the upper grid; C OPT-VOLL is the compensation cost caused by power outage; s represents the scenario; Ω S represents a set of possible scenarios; j represents a node in the power grid; Ω j represents the set of all power grid nodes; c PUR represents the electricity purchase cost per unit; ρ s is the probability of scene s appearing; θ is the annualized coefficient; Δt is the time change value; c VOLL The compensation cost for each watt of load loss; is the load loss power at time t for node j in scenario s; is the power provided by the distributed generation to the grid at time t in the scenario of node j s;

[0034]

[0035] In the above formula, C INV is the annualized coefficient; Ω j represents the set of all load nodes; c ES is the energy storage charging and discharging cost coefficient; P dis,j,t is the energy storage discharge power; P ch,j,t is the energy storage charging power; c V is the cost factor for solar panel operation; is the discharge power of the solar panel; T is the operating time before the system fails.

[0036] Furthermore, in step S300, a regional power grid power flow model is established, including:

[0037] To establish a power flow balance constraint:

[0038]

[0039]

[0040]

[0041]

[0042] In the above formula, P i,t Inject active power into node i at time t; Q i,t Inject reactive power into node i at time t; U i,t is the voltage amplitude of node i at time t; G ij is the conductance on branch ij; B ij is the susceptance on branch ij; δ ij,t is the voltage phase difference between node i and node j at time t; P ij,t is the active power on branch ij at time t; Q ij,t is the reactive power on branch ij at time t; l ij,t is the square of the current amplitude on branch ij; V i,t is the square of the voltage amplitude at node i; r ij is the resistance of branch ij; x ij is the reactance on branch ij; N S is the set of all nodes in the system; B S is the set of all branches in the system; T(i) is the set of head nodes of the branch with node i as the end node; F(i) is the set of end nodes of the branch with node i as the head end node;

[0043] Establish system security constraints:

[0044] V i,min ≤V i,t ≤V i,max

[0045] l ij,t ≤l ij,max or

[0046] In the above formula, V i,min and V i,max are the minimum and maximum voltages of node i, respectively; l ij,maxis the maximum value of the square of the current amplitude on branch ij; l ij,t is the square of the current amplitude on branch ij; P ij,t is the active power on branch ij; Q ij,t is the reactive power on branch ij; S ij,max is the maximum apparent power on branch ij.

[0047] Furthermore, in step S400, the energy storage device constraint and solar panel constraint of step S100 are used as additional conditions, the weighted load loss and economic cost of step S200 are used as optimization targets, and a mathematical model is established based on the power flow balance constraint and system safety constraint of step S300; a two-stage stochastic programming method is used to process the mathematical model to construct a scheduling model;

[0048] The two-stage stochastic programming method is expressed as:

[0049] min{C T x+E ξ [f(y s ,ξ)]}

[0050] Ax≤b

[0051]

[0052] x≥0,y s ≥0

[0053] In the above formula, x is a first-stage decision variable; y s is the two-stage decision variable; E ξ [ξ] is the mathematical expectation of ξ; ξ is a random variable; C T x is a one-stage objective function that is independent of the random variable; f(y s ,ξ) is the second-stage objective function that can only be solved after the random variable ξ is determined; Ω s is a random scene set; s represents the scene; C in the formula T ,A,b,T s ,W s ,e s is a constant.

[0054] Further, in step S500, based on the dispatch model, the states of the regional power grid during normal operation and fault operation are respectively input and solved. The method for solving the dispatch model is:

[0055] Step S510: Initialize various parameters of the regional power grid and distributed power sources;

[0056] Step S520: According to the parameters, the first stage of the two-stage random programming algorithm is solved: the first stage is the normal operation stage of the regional power grid, at this time, the power flow calculation is performed to find the minimum economic cost, and the dispatching operation status at this time is reflected through the power grid power flow and node power level;

[0057] Step S530: Input the fault scenario set into the scheduling model and perform the second stage solution of the two-stage random programming algorithm: the second stage is the power grid fault operation stage, calculates all situations in the fault scenario set, solves the power grid flow under each fault situation, solves the weighted load loss by the node load level and the node weight, and reflects the distributed power generation scheduling situation through the working conditions of the energy storage device and the solar panel;

[0058] Step S540: Calculate the minimum value of the first-stage economic cost plus the inverse of the weighted load loss mathematical expectation of the second-stage, and display the first-stage scheduling process through the power grid flow situation, and display the second-stage scheduling process through the working status of the energy storage device and the solar panel; the scheduling process obtained at this time represents: in the first stage, the lowest economic cost can be obtained when the power grid is operating normally, and at the same time, in the second stage, the maximum value of the weighted load loss mathematical expectation can be obtained in all fault scenarios, that is, the optimal economic benefit is achieved while protecting the power grid load.

[0059] Furthermore, the CPLEX solver is used to solve the scheduling model.

[0060] In a second aspect, a regional power grid elasticity optimization and scheduling system supported by distributed power sources is provided, comprising a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, the above-mentioned regional power grid elasticity optimization and scheduling method supported by distributed power sources can be implemented.

[0061] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for optimizing the elasticity scheduling of a regional power grid supported by distributed power sources is implemented.

[0062] The present invention has the following beneficial effects:

[0063] First, the present invention adopts a two-stage random programming algorithm to deal with the uncertainty of power grid failures. The first stage is the normal operation state of the power grid, which can solve the minimum economic cost. The second stage is after the power grid failure occurs at any time, which can solve the optimal elasticity index to evaluate the regional power grid elasticity. At the same time, the CPLEX solver can be directly used for optimization and solution, which simplifies the modeling process and reduces the difficulty of solution.

[0064] 2. The present invention adds distributed power sources to the optimization algorithm of the regional power grid, constructs a scheduling model based on the characteristics of distributed power sources, clearly reflects the way in which distributed power sources participate in power grid regulation, fully taps the regulation potential of distributed power sources, and improves the resilience of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a schematic diagram of the overall flow of the scheduling method of the present invention;

[0066] Figure 2 It is a schematic diagram of the process of solving the scheduling model in the present invention;

[0067] Figure 3 This is a schematic diagram of the IEEE 33-node distribution network model in this embodiment;

[0068] Figure 4 This is the photovoltaic output diagram in this embodiment;

[0069] Figure 5 This is a schematic diagram of load forecasting data in this embodiment;

[0070] Figure 6 It is a schematic diagram for comparing the elasticity of the power grid with and without a distributed power source in this embodiment. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0072] Please refer to Figure 1 The present invention is a method for optimizing the elasticity of a regional power grid supported by distributed power sources, which comprises:

[0073] Step S100: establishing a distributed power supply model;

[0074] Step S200: Establishing a resilience index for evaluating regional power grid resilience;

[0075] Step S300: Establishing a regional power grid power flow model;

[0076] Step S400: constructing a scheduling model by a two-stage stochastic programming method, taking the distributed power model and the regional power grid power flow model as constraints and taking the elasticity index as the optimization target;

[0077] Step S500: Solve the scheduling model to obtain a scheduling strategy for distributed power sources.

[0078] The following is for Figure 1 Each step in the following sections is described in detail.

[0079] In step S100, a distributed power supply model is established; including:

[0080] A distributed power model is established based on the characteristics of distributed power sources. In this embodiment, solar panels and energy storage devices are used to build a distributed power model based on their physical characteristics. The distributed power model includes: energy storage device constraints and solar panel constraints.

[0081] Among them, the energy storage device constraints are:

[0082]

[0083] u dis,t +u ch,t ≤1

[0084] E t+1 =KE t +P ch,t η ch Δt-P dis,t Δt / η dis

[0085] E min ≤E t ≤E max

[0086] In the above formula, P ch,t is the charging power of the energy storage at time t; P ch,max is the maximum charging power of energy storage; P dis,t is the discharge power of the energy storage at time t; P dis,max is the maximum discharge power of energy storage; u dis,t ,u ch,t are the discharge state and charge state of the energy storage at time t, respectively. A value of 1 indicates that the energy storage is in the corresponding state, and a value of 0 indicates that it is not in the corresponding state. t is the power level of the energy storage at time t; E min is the minimum power level of energy storage; E max is the maximum power level of energy storage; K is the energy storage self-discharge coefficient; Δt is the time change value, which is taken as 1 hour; η dis is the energy storage discharge efficiency; η ch Charging efficiency for energy storage;

[0087] Among them, the solar panel constraints are:

[0088]

[0089]

[0090] In the above formula, is the active power injected by the photovoltaic inverter at time t; Q max The maximum reactive power that can be injected into the PV inverter; is the reactive power injected by the PV inverter at time t; The maximum apparent power that the photovoltaic inverter can inject. The photovoltaic inverter is a device that converts the direct current generated by the solar panel into alternating current. It is currently the main reason restricting the performance of solar panels. Therefore, the constraint modeling of solar panels only needs to consider the constraints on the photovoltaic inverter.

[0091] In step S200, a resilience index for evaluating regional power grid resilience is established, including:

[0092] Analyze the factors that affect the elasticity of the power grid and set the elasticity index of the evaluation area power grid. In this embodiment, the elasticity index includes: weighted load loss and economic cost C;

[0093] Among them, weighted loss load

[0094]

[0095] In the above formula, q j represents the weight of node j; represents the power system load at node j at time t; R0 represents the load level when the system is operating normally; Ω j represents the set of all load nodes; T represents the program running time after the power grid fails;

[0096] Among them, the economic cost C is:

[0097] min C=C INV +C OPT

[0098] C OPT =C OPT-PUR +C OPT-VOLL

[0099]

[0100]

[0101] In the above formula, C OPT is the electricity purchase cost; C INV is the annualized coefficient; C OPT-PUR The cost of purchasing electricity from the upper grid; C OPT-VOLL is the compensation cost caused by power outage; s represents the scenario; Ω S represents a set of possible scenarios; j represents a node in the power grid; Ω j represents the set of all power grid nodes; c PUR represents the electricity purchase cost per unit; ρ sis the probability of scene s appearing; θ is the annualized coefficient; Δt is the time change value, which is taken as 1 hour; c VOLL The compensation cost for each watt of load loss; is the load loss power at time t for node j in scenario s; is the power provided by the distributed generation to the grid at time t in the scenario of node j s;

[0102]

[0103] In the above formula, C INV is the annualized coefficient; Ω j represents the set of all load nodes; c ES is the energy storage charging and discharging cost coefficient; P dis,j,t is the energy storage discharge power; P ch,j,t is the energy storage charging power; c V is the cost factor for solar panel operation; is the discharge power of the solar panel; T is the operating time before the system fails.

[0104] In step S300, a regional power grid power flow model is established, including:

[0105] To establish a power flow balance constraint:

[0106]

[0107]

[0108]

[0109]

[0110] In the above formula, P i,t Inject active power into node i at time t; Q i,t Inject reactive power into node i at time t; U i,t is the voltage amplitude of node i at time t; G ij is the conductance on branch ij; B ij is the susceptance on branch ij; δ ij,t is the voltage phase difference between node i and node j at time t; P ij,t is the active power on branch ij at time t; Q ij,t is the reactive power on branch ij at time t; l ij,t is the square of the current amplitude on branch ij; V i,t is the square of the voltage amplitude at node i; r ij is the resistance of branch ij; x ij is the reactance on branch ij; N S is the set of all nodes in the system; BS is the set of all branches in the system; T(i) is the set of head nodes of the branch with node i as the end node; F(i) is the set of end nodes of the branch with node i as the head end node;

[0111] Establish system security constraints:

[0112] V i,min ≤V i,t ≤V i,max

[0113] l ij,t ≤l ij,max or

[0114] In the above formula, V i,min and V i,max are the minimum and maximum voltages of node i, respectively; l ij,max is the maximum value of the square of the current amplitude on branch ij; l ij,t is the square of the current amplitude on branch ij; P ij,t is the active power on branch ij; Q ij,t is the reactive power on branch ij; S ij,max is the maximum apparent power on branch ij.

[0115] In step S400, a scheduling model is constructed by a two-stage stochastic programming method, with a distributed power model and a regional power grid power flow model as constraints and elasticity index as an optimization target; including:

[0116] The energy storage device constraint and solar panel constraint of step S100 are used as additional conditions, the weighted load loss and economic cost of step S200 are used as optimization targets, and a mathematical model is established based on the power flow balance constraint and system safety constraint of step S300; a two-stage stochastic programming method is used to process the mathematical model to construct a scheduling model;

[0117] The generalized mathematical expression of the two-stage stochastic programming method is expressed as:

[0118] min{C T x+E ξ [f(y s ,ξ)]}

[0119] Ax≤b

[0120]

[0121] x≥0,y s ≥0

[0122] In the above formula, x is a first-stage decision variable; y s is the two-stage decision variable; Eξ [ξ] is the mathematical expectation of ξ; ξ is a random variable; C T x is a one-stage objective function that is independent of the random variable; f(y s ,ξ) is the second-stage objective function that can only be solved after the random variable ξ is determined; Ω s is a random scene set; s represents a scene; in addition, C in the formula T ,A,b,T s ,W s ,e s is a constant.

[0123] In step S500, based on the dispatch model, the states of the regional power grid during normal operation and fault operation are respectively input, and the CPLEX solver is selected to efficiently solve the dispatch model to obtain the dispatch strategy of the distributed power source;

[0124] The dispatching model is as follows: in the first stage, the lowest economic cost is solved when the power grid is operating normally; the second stage is immediately entered after a power grid fault occurs, and the highest weighted load loss under various fault conditions is solved in the second stage; then, the minimum value of the inverse of the mathematical expectation of the first stage economic cost plus the second stage weighted load loss is calculated, and the first stage dispatching process is displayed by the power grid flow situation, and the second stage dispatching process is displayed by displaying the working status of the energy storage device and the solar panel.

[0125] In this embodiment, the method for solving the scheduling model in step S500 is:

[0126] Step S510: Initialize various parameters of the regional power grid and distributed power sources;

[0127] Step S520: According to the parameters, the first stage of the two-stage random programming algorithm is solved: the first stage is the normal operation stage of the regional power grid, at this time, the power flow calculation is performed in the CPLEX solver to find the minimum economic cost, and the dispatching operation status at this time is reflected through the power grid power flow and node power level;

[0128] Step S530: Input the fault scenario set into the scheduling model and perform the second stage solution of the two-stage random programming algorithm: the second stage is the power grid fault operation stage, in which all situations in the fault scenario set are calculated in the CPLEX solver, and the power grid flow under each fault situation is solved. The weighted load loss is solved by the node load level and the node weight, and the distributed power generation scheduling situation is reflected by the working conditions of the energy storage device and the solar panel;

[0129] Step S540: Calculate the minimum value of the first-stage economic cost plus the inverse of the weighted load loss mathematical expectation of the second-stage, and display the first-stage scheduling process through the power grid flow situation, and display the second-stage scheduling process through the working status of the energy storage device and the solar panel; the scheduling process obtained at this time represents: in the first stage, the lowest economic cost can be obtained when the power grid is operating normally, and at the same time, in the second stage, the maximum value of the mathematical expectation of the weighted load loss can be obtained in all fault scenarios, that is, the scheduling process can achieve the best economic benefits while protecting the power grid load and improving the flexibility of the power grid.

[0130] In this embodiment, the CPLEX solver built into the Gams software is used to solve the above model, solve the minimum economic cost of the regional power grid, the optimal elasticity index, and display the dispatching process of distributed power sources.

[0131] A specific embodiment is given below:

[0132] The IEEE 33-node distribution network model is used as an example, and its schematic diagram is shown in Figure 3 The rated voltage of the system is 12.66 kV, and node 1 is connected to the upper grid. Two solar power generation devices, namely solar panels PV1 and PV2, are connected to nodes 18 and 31 respectively, with rated capacities of 500 kW and 300 kW respectively. The parameters of the photovoltaic inverter are shown in Table 1.

[0133] The two energy storage devices ESS1 and ESS2 are connected to nodes 16 and 31 respectively, with the maximum and minimum power being 10% and 90%, and the other parameters are shown in Table 2. The 24-hour photovoltaic output and the 24-hour power required by the load are shown in Table 2. Figure 4 , 5 In order to distinguish the importance of loads, the loads are divided into level I, II, and III, and the weight division is shown in Table 3. Three fault scenarios are randomly generated as shown in Table 4.

[0134] Table 1 PV inverter parameters

[0135] serial number Connection location Reactive capacity (kVar) Rated capacity(kVA) 1 18 400 800 2 31 240 500

[0136] Table 2 Energy storage parameters

[0137]

[0138] Table 3 Classification of load importance

[0139]

[0140] Table 4 Fault scenarios

[0141] Scene Number Fault line Probability 1 3-23,20-21,14-15 33% 2 16-17,2-19,31-32 33% 3 6-26,17-18,24-25 33%

[0142] In this embodiment, Gams software is used to solve the regional power grid with distributed power sources and the regional power grid without distributed power sources, and a schematic diagram of the change of power grid elasticity within 24 hours is obtained as follows: Figure 6 As shown. It can be seen that under the solution of the optimization program, the regional power grid containing distributed power sources has higher elasticity, and the distributed power sources are utilized to alleviate the peak power consumption and meet part of the power demand of users. It shows that the method proposed in the present invention can better use distributed power sources to improve the elasticity of the power grid.

[0143] In other embodiments, the present invention also provides a regional power grid elasticity optimization and scheduling system supported by distributed power sources, comprising a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, it can implement the above-mentioned regional power grid elasticity optimization and scheduling method supported by distributed power sources.

[0144] In other embodiments, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned regional power grid elastic optimization scheduling method supported by distributed power sources is implemented.

[0145] The parts not involved in the present invention are the same as the prior art or are implemented by using the prior art.

[0146] The above contents are further detailed descriptions of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A method for optimizing the elasticity of a regional power grid supported by distributed power sources, characterized in that: include Step S100: establishing a distributed power supply model; Step S200: Establishing a resilience index for evaluating regional power grid resilience; Step S300: Establishing a regional power grid power flow model; Step S400: constructing a scheduling model by a two-stage stochastic programming method, taking the distributed power model and the regional power grid power flow model as constraints and taking the elasticity index as the optimization target; Step S500: solving the scheduling model to obtain a scheduling strategy for distributed power sources; In step S200, the elasticity index includes: weighted loss load L t q and economic cost C; Among them, the weighted loss load L t q : In the above formula, q j represents the weight of node j; represents the power system load at node j at time t; R0 represents the load level when the system is operating normally; Ω j represents the set of all load nodes; T represents the program running time after the power grid fails; Among them, the economic cost C is: my C=C INV +C OPT C OPT =C OPT-PUR +C OPT-VOLL In the above formula, C OPT is the electricity purchase cost; C INV is the annualized coefficient; C OPT-PUR The cost of purchasing electricity from the upper grid; C OPT-VOLL is the compensation cost caused by power outage; s represents the scenario; Ω S represents a set of possible scenarios; j represents a node in the power grid; Ω j represents the set of all power grid nodes; c PUR represents the electricity purchase cost per unit; ρ s is the probability of scene s appearing; θ is the annualized coefficient; Δt is the time change value; c VOLL The compensation cost for each watt of load loss; is the load loss power at time t for node j in scenario s; is the power provided by the distributed generation to the grid at time t in the scenario of node j s; In the above formula, C INV is the annualized coefficient; Ω j represents the set of all load nodes; c ES is the energy storage charging and discharging cost coefficient; P dis,j,t is the energy storage discharge power; P ch,j,t is the energy storage charging power; c V is the cost factor for solar panel operation; is the discharge power of the solar panel; T is the operating time before the system fails.

2. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 1 is characterized in that: In step S100, the distributed power source includes a solar panel and an energy storage device.

3. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 2 is characterized in that: In step S100, the distributed power supply model includes: energy storage device constraints and solar panel constraints; Among them, the energy storage device constraints are: in dis,t +in ch,t ≤1 A t+1 =KE t +P ch,t η ch Δt-P dis,t Δt / η dis AND min ≤E t ≤E max In the above formula, P ch,t is the charging power of the energy storage at time t; P ch,max is the maximum charging power of energy storage; P dis,t is the discharge power of the energy storage at time t; P dis,max is the maximum discharge power of energy storage; u dis,t ,u ch,t are the discharge state and charge state of the energy storage at time t, respectively. A value of 1 indicates that the energy storage is in the corresponding state, and a value of 0 indicates that it is not in the corresponding state. t is the power level of the energy storage at time t; E min is the minimum power level of energy storage; E max is the maximum power level of energy storage; K is the energy storage self-discharge coefficient; Δt is the time change value; η dis is the energy storage discharge efficiency; η ch Charging efficiency for energy storage; Among them, the solar panel constraints are: In the above formula, is the active power injected by the photovoltaic inverter at time t; Q max The maximum reactive power that can be injected into the PV inverter; is the reactive power injected by the PV inverter at time t; It is the maximum apparent power that can be injected into the PV inverter.

4. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 1 is characterized in that: In step S300, a regional power grid power flow model is established, including: To establish a power flow balance constraint: In the above formula, P i,t Inject active power into node i at time t; Q i,t Inject reactive power into node i at time t; U i,t is the voltage amplitude of node i at time t; G ij is the conductance on branch ij; B ij is the susceptance on branch ij; δ ij,t is the voltage phase difference between node i and node j at time t; P ij,t is the active power on branch ij at time t; Q ij,t is the reactive power on branch ij at time t; l ij,t is the square of the current amplitude on branch ij; V i,t is the square of the voltage amplitude at node i; r ij is the resistance of branch ij; x ij is the reactance on branch ij; N S is the set of all nodes in the system; B S is the set of all branches in the system; T(i) is the set of head nodes of the branch with node i as the end node; F(i) is the set of end nodes of the branch with node i as the head end node; Establish system security constraints: In i,min ≤V i,t ≤V i,max l ij,t ≤l ij,max or In the above formula, V i,min and V i,max are the minimum and maximum voltages of node i, respectively; l ij,max is the maximum value of the square of the current amplitude on branch ij; l ij,t is the square of the current amplitude on branch ij; P ij,t is the active power on branch ij; Q ij,t is the reactive power on branch ij; S ij,max is the maximum apparent power on branch ij.

5. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 1 is characterized in that: In step S400, the energy storage device constraint and solar panel constraint of step S100 are used as additional conditions, the weighted load loss and economic cost of step S200 are used as optimization targets, and a mathematical model is established based on the power flow balance constraint and system safety constraint of step S300; a two-stage stochastic programming method is used to process the mathematical model to construct a scheduling model; The two-stage stochastic programming method is expressed as: min{C T x+E ξ [f(y s ,ξ)]} Ax≤b x≥0,y s ≥0 In the above formula, x is a first-stage decision variable; y s is the two-stage decision variable; E ξ [ξ] is the mathematical expectation of ξ; ξ is a random variable; C T x is a one-stage objective function that is independent of the random variable; f(y s ,ξ) is the second-stage objective function that can only be solved after the random variable ξ is determined; Ω s is a random scene set; s represents the scene; C in the formula T ,A,b,T s ,W s ,e s is a constant.

6. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 5 is characterized in that: In step S500, based on the dispatch model, the states of the regional power grid during normal operation and fault operation are respectively input and solved. The method for solving the dispatch model is: Step S510: Initialize various parameters of the regional power grid and distributed power sources; Step S520: According to the parameters, the first stage of the two-stage random programming algorithm is solved: the first stage is the normal operation stage of the regional power grid, at this time, the power flow calculation is performed to find the minimum economic cost, and the dispatching operation status at this time is reflected through the power grid power flow and node power level; Step S530: Input the fault scenario set into the scheduling model and perform the second stage solution of the two-stage random programming algorithm: the second stage is the power grid fault operation stage, calculates all situations in the fault scenario set, solves the power grid flow under each fault situation, solves the weighted load loss by the node load level and the node weight, and reflects the distributed power generation scheduling situation through the working conditions of the energy storage device and the solar panel; Step S540: Calculate the minimum value of the first-stage economic cost plus the inverse of the weighted load loss mathematical expectation of the second-stage, and display the first-stage scheduling process through the power grid flow situation, and display the second-stage scheduling process through the working status of the energy storage device and the solar panel; the scheduling process obtained at this time represents: in the first stage, the lowest economic cost can be obtained when the power grid is operating normally, and at the same time, in the second stage, the maximum value of the weighted load loss mathematical expectation can be obtained in all fault scenarios, that is, the optimal economic benefit is achieved while protecting the power grid load.

7. The method for optimizing the elasticity of regional power grids supported by distributed power sources according to claim 6 is characterized in that: The CPLEX solver is used to solve the scheduling model.

8. A regional power grid elastic optimization dispatching system supported by distributed power sources, characterized by: including memory and processor; Wherein, the memory stores a computer program, and when the program is executed by the processor, it can implement the regional power grid elastic optimization scheduling method supported by distributed power sources as described in any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for optimizing the elasticity and scheduling of a regional power grid supported by distributed power sources as described in any one of claims 1 to 7 is implemented.