A smart soft switch planning method for active distribution network based on generative adversarial network

Through the generative adversarial network and the second-order cone planning algorithm, the problem of inaccurate modeling of distributed power output intermittency in the distribution network is solved, an accurate intelligent soft switching planning scheme is provided, and the operation and management efficiency of the distribution network is improved.

CN117669370BActive Publication Date: 2024-09-13STATE GRID ANHUI ELECTRIC POWER CO LTD WUHU FANCHANG DISTRICT POWER SUPPLY CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311622505.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-09-13
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing intelligent soft switching planning methods for distribution networks are difficult to accurately model the intermittency and randomness of distributed power output, resulting in challenges in power system operation and management.

Method used

Using a method based on generative adversarial networks, by building a generator and a discriminator, training distributed power generation data sets, defining mathematical models and planning constraints, using a second-order cone programming algorithm for linearization and convex relaxation, the generation reflects the randomness of the force and Solve the intelligent soft switch planning problem of distribution network in volatile scenarios.

Benefits of technology

It provides accurate basic data, effectively solves the problem of uneven power flow caused by distributed power output in the distribution network, and improves the accuracy and efficiency of planning solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117669370B
    Figure CN117669370B
Patent Text Reader

Abstract

The present invention discloses a method for planning an active distribution network intelligent soft switch based on a generative adversarial network, comprising the following steps: Step 1, constructing a generative adversarial network to train a distributed power generation data set; Step 2, proposing a mathematical model, a planning model and a distribution network operation constraint of SOP, linearizing and convexly relaxing the second-order cone programming algorithm, so that the original planning model meets the requirements of the cone search space; Step 3, inputting the generated power generation scenario and distribution network parameters into the planning model, solving under the IEEE-33 node, and obtaining the optimal SOP planning scheme. The present invention can effectively solve the problem of uneven power flow caused by the output of distributed power sources in the distribution network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of flexible interconnected distribution networks, and in particular to an active distribution network intelligent soft switch planning method based on a generative adversarial network. Background Art

[0002] In recent years, the penetration rate of distributed power sources in distribution networks has been increasing. Due to the intermittent and volatile output of renewable energy sources such as wind power and photovoltaic power, which is affected by meteorological conditions, the distribution network faces economic and safety risks such as voltage over-limit, power flow imbalance, and insufficient network regulation capacity. Smart soft switch (soft open point, SOP) is a new type of power electronic device used to replace the tie switch of traditional distribution network. SOP is connected between feeders through back-to-back voltage source converters, which can transmit active power and compensate reactive power. Therefore, people pay more and more attention to the construction of flexible interconnected distribution network based on SOP.

[0003] At present, experts and scholars have conducted research on the planning of SOP in distribution networks. For the scenario generation problem of SOP planning, the algorithms used include K-means method, Latin hypercube sampling and Wasserstein distance. For the site selection and capacity determination problem of distribution networks containing SOP, a two-level planning model for SOP site selection and capacity determination is established with the goal of minimizing the annual comprehensive cost, a multi-terminal SOP optimization configuration method considering the risk of loss of load for important users, and a three-level planning model for intelligent soft switches based on conditional risk value theory considering network reconstruction.

[0004] For example, the public document with the publication number CN115422758A, the publication date December 2, 2022, and the patent name "Active distribution network intelligent soft switch planning method and device based on incremental linearization" discloses an active distribution network intelligent soft switch planning method and device based on incremental linearization. The present invention constructs an intelligent soft switch planning objective function that takes into account the investment cost of intelligent soft switches and the annual cost of distribution network network losses; according to the objective function, a distribution network intelligent soft switch planning model that takes into account multi-stage constraints is constructed; the multi-stage constraints include power balance constraints, branch current constraints, node voltage constraints, intelligent soft switch location and capacity constraints, intelligent soft switch operation constraints, distributed power output constraints and line capacity constraints; the distribution network intelligent soft switch planning model is linearized into a corresponding MILP model using an incremental linearization method, and the corresponding MILP model is solved to obtain a distribution network intelligent soft switch planning scheme.

[0005] Most similar scenario generation algorithms first use historical data to fit the model, and then sample the fitted probability model to generate new scenarios. Traditional statistical models are difficult to model the uncertainty of renewable energy output in a comprehensive manner. Most models are only designed for a certain feature of the output, while the uncertainty of renewable energy output contains complex temporal, spatial and meteorological correlations, and there may be certain unknown correlations. Due to the intermittent and random output characteristics of renewable energy, the operation, management and planning of the power system are facing challenges, so accurately modeling the uncertainty is the key to overcoming these challenges. Summary of the invention

[0006] The present invention solves the problem of inaccurate modeling of intermittent output of distributed power sources in planning problems, and provides accurate basic data for solving the SOP planning problem of distribution networks based on an active distribution network intelligent soft switch planning method of a generative adversarial network.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is: a method for planning intelligent soft switches for active distribution networks based on a generative adversarial network, comprising the following steps:

[0008] Step 1: Build a generative adversarial network and train the distributed power generation data set;

[0009] Step 2: Propose the mathematical model, planning model and distribution network operation constraints of SOP, and perform linearization and convex relaxation through the second-order cone programming algorithm to make the original planning model meet the requirements of the cone search space;

[0010] Step 3: Input the generated power generation scenario and distribution network parameters into the planning model, solve it under the IEEE-33 node, and obtain the optimal SOP planning solution.

[0011] In the step 1, firstly, the power generation data of the wind farm and the photovoltaic power plant are used to construct a training data set, and the time interval of the original data is a preset time interval;

[0012] Define the loss functions of the generator and discriminator:

[0013] The loss function of the generator is: L G =-E Z [D(G(Z))]

[0014] The loss function of the discriminator is: L D =-E X [D(X)]+E Z [D(G(Z))]

[0015] Where: E represents the expected value of the corresponding distribution, G(Z; θ (G) ) represents the generator function, D(x;θ (D)) represents the discriminator function, θ (G) and θ (D) are the weights of two deep neural networks;

[0016] During the training process, the generator is used to improve the discriminator output value of the generated samples, and the discriminator is used to reduce the output value of the generated samples and improve the discriminator output value of the real samples.

[0017] The training goal of the generator and discriminator generative adversarial network is to play a minimax game between the two. The constructed game value function V(G,D) is as follows:

[0018]

[0019] When the generated samples do not overlap with the real sample distribution, the JS divergence will be a constant and cannot accurately measure the distance between the sample distributions;

[0020] Then define Wasserstein as:

[0021] Wasserstein distance is used to measure the distance between two sample distributions, and the Wasserstein distance is used to improve the loss function of the discriminator;

[0022] Where: X and Y are two random variables with marginal distribution f X and f Y , Γ represents the set of all possible joint distributions, and inf means finding the minimum value among all paths;

[0023] The objective function of the generative adversarial network using Wasserstein distance is:

[0024] The preset interval time is 5 minutes.

[0025] In step 2, the mathematical model of SOP is defined:

[0026] The SOP active power constraint is:

[0027] The power loss is:

[0028] The SOP reactive power constraint is:

[0029] The SOP capacity constraint is:

[0030] Where: i, j are the node numbers of the SOP accessing the distribution network; is the active power and reactive power injected by the converter at both ends of SOP at time t; and is the loss coefficient of the two converters; is the power transmission loss of SOP; μ is the absolute value of the sine of the power factor angle; is the capacity of the SOP connected between nodes i and j.

[0031] The SOP planning model takes the minimum annual comprehensive cost f of the distribution system as the objective function, including the SOP annual investment cost, the SOP annual operation and maintenance cost, and the annual loss cost of the distribution network. The mathematical expression is: minf = f I +f O +f L

[0032] The annual investment cost of SOP is:

[0033] Where: d is the discount rate; y is the economic useful life of SOP; N SOP The number of SOPs installed in the distribution network; is the installed capacity of the kth SOP; is the corresponding unit capacity investment cost;

[0034] The annual operation and maintenance cost of SOP is:

[0035] Where: η is the annual operation and maintenance cost coefficient;

[0036] The annual loss cost of the distribution network is:

[0037] Where: δ is the annual power loss cost coefficient of the distribution network; n t is the number of segments of a day; Δt is the time of each segment; P i,t is the active power flowing into node i at time t; is the active power loss of SOP at node i at time t.

[0038] Define the constraints in the plan:

[0039] The power flow constraint of the distribution network is:

[0040]

[0041]

[0042]

[0043]

[0044]

[0045]

[0046] Where: r ij and x ij are the resistance and reactance of branch ij respectively; P ij,t and Q ij,t are the active power and reactive power flowing from i to j on branch ij at time t; P i,t and Q i,t are the active power and reactive power injected by node i at time t; U i,t is the voltage amplitude of node i at time t; I ij,t is the current amplitude on branch ij at time t; and are the active power and reactive power injected by node i at time t respectively; and are the active power and reactive power consumed by the load of node i at time t respectively;

[0047] The safe operation constraints are:

[0048] U min ≤U i,t ≤U max ;

[0049]

[0050] Where: U min and U max are the maximum and minimum voltages on node i, respectively; I max is the maximum current value on branch ij;

[0051] The SOP planning constraints are:

[0052]

[0053] Where: is the installation capacity of the kth SOP; m k is a non-zero integer; S SOP Install capacity for the unit of SOP.

[0054] In step 3, based on the second-order cone programming algorithm, the original planning model is made to meet the requirements of the cone search space through linearization, convex relaxation and other technologies.

[0055] The step 3 comprises the following steps:

[0056] The generation data of distributed power sources is learned through the generative adversarial network method to generate scenarios that reflect the randomness and volatility of power generation, and equations are established for SOP and distribution network constraints;

[0057] Taking the minimum annual comprehensive cost of the distribution system as the objective function, the original non-convex nonlinear constraints are relaxed and linearized to transform into a second-order cone programming model;

[0058] Solve the objective function subject to constraints.

[0059] The present invention first uses a generative adversarial network and a model-free, data-driven scenario generation method. This is the first time that a deep generative model has been applied to the site selection and sizing process of SOP. The generated scenario can well capture the diversity of changes in the output of distributed power sources, showing the typical characteristics of its power generation, such as huge peaks, rapid power changes, etc., providing accurate basic data for solving the SOP planning problem of the distribution network, and can effectively solve the problem of uneven power flow caused by the output of distributed power sources in the distribution network. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The following is a brief description of the contents expressed in each figure in the specification of the present invention:

[0061] Figure 1 It is a diagram of the structure of the generative adversarial network;

[0062] Figure 2 It is the access location diagram of SOP in the distribution network;

[0063] Figure 3 It is the SOP planning flow chart;

[0064] Figure 4 It is the structure diagram of the IEEE-33 node example;

[0065] Figure 5 , 6 is the discriminator loss function graph;

[0066] Figure 7 It is the generated wind and solar power generation scene map. DETAILED DESCRIPTION

[0067] The following is a further detailed description of the specific implementation methods of the present invention, such as the shape, structure, relative position and connection relationship between the various components involved, the function and working principle of each part, the manufacturing process and operation method, etc., through the description of the embodiments with reference to the accompanying drawings, so as to help those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention.

[0068] like Figure 1 As described, the invention uses a generative adversarial network structure, and the architecture of the deep convolutional neural network used is inspired by Wasserstein GAN and DCGAN.

[0069] The generator includes 2 deconvolution layers with a stride of 2×2 to first upsample the input noise Z, while the discriminator includes 2 convolution layers with a stride of 2×2 to downsample the scene X.

[0070] The generator starts with a fully connected multilayer perceptron for upsampling, and the discriminator has an inverted architecture with sigmoid output. Both the generator and the discriminator are implemented as deep neural networks.

[0071] All models were trained using the RmsProp optimizer with a mini-batch size of 32 and all weights of the neurons in the neural network were initialized from a central normal distribution with a standard deviation of 0.02.

[0072] In order to stabilize the learning process, batch normalization is used in each layer except the input layer to normalize the input to zero mean and unit variance. Except for the output layer, ReLU activation is used for the generator and Leaky ReLU activation is used for the discriminator. discri is set to 4, so the model is trained alternating between optimizing the discriminator for 4 steps and the generator for 1 step.

[0073] The detailed parameters of the generator and discriminator models are shown in the following table:

[0074]

[0075] MLP stands for Multilayer Perceptron following the number of neurons; Conv and Conv_Transpose stand for convolution / deconvolution layers following the number of filters; Sigmoid is used to constrain the output of the discriminator in [0,1].

[0076] Theoretically, the power transmission efficiency of SOP is very high, but when the output and load of distributed power sources are unevenly distributed, the large-scale flow of power will cause certain losses.

[0077] The planning model established in the present invention takes the dual-port SOP as an example, considers the SOP loss coefficient, and selects PQ-V dc Q as the control mode.

[0078] Assuming that the power injected by SOP into the grid is in the positive direction, the reactive power output by the two converters does not affect each other due to the isolation of the DC link, and only needs to meet the capacity constraints of their respective converters.

[0079] The access location of SOP in the distribution network is as follows: Figure 2 shown.

[0080] The power flow constraints and SOP constraint equations of the distribution network contain nonlinear terms, which bring a huge burden to the optimization solution of the SOP planning problem. Based on the second-order cone programming algorithm, this paper uses linearization, convex relaxation and other techniques to make the original planning model meet the requirements of the cone search space to improve the solution efficiency.

[0081] The specific process is as follows Figure 3 As shown, the following steps are included:

[0082] Step 1: Build a generative adversarial network and train the distributed power generation data set;

[0083] For step 1: First, use the power generation data of wind farms and photovoltaic power plants to build a training data set, and the time interval of the original data is 5 minutes.

[0084] Define the loss functions of the generator and discriminator:

[0085] The loss function of the generator is: L G =-E Z [D(G(Z))]

[0086] The loss function of the discriminator is: L D =-E X [D(X)]+E Z [D(G(Z))]

[0087] Where: E represents the expected value of the corresponding distribution, G(Z; θ (G) ) represents the generator function, D(x;θ (D) ) represents the discriminator function, θ (G) and θ (D) are the weights of the two deep neural networks respectively.

[0088] During the training process, the generator hopes to improve the discriminator output value of the generated samples, while the discriminator hopes to reduce the output value of the generated samples and improve the discriminator output value of the real samples. Therefore, the training goal of the generative adversarial network is the minimax game between the two, and the constructed game value function V(G,D) is as follows:

[0089]

[0090] When the generated samples do not overlap with the real sample distribution, the JS divergence will be constant and cannot accurately measure the distance between the sample distributions, while the Wasserstein distance can effectively measure the distance between the two sample distributions. Therefore, the Wasserstein distance is used to improve the loss function of the discriminator.

[0091] The Wasserstein distance is defined as:

[0092] Where: X and Y are two random variables with marginal distribution f X and f Y , Γ represents the set of all possible joint distributions, and inf means finding the minimum value among all paths.

[0093] The objective function of the generative adversarial network using Wasserstein distance is:

[0094] Step 2: Propose the mathematical model, planning model and distribution network operation constraints of SOP, and use the second-order cone programming algorithm to linearize and convexly relax the original planning model so that it meets the requirements of the cone search space and improves the solution efficiency;

[0095] For step 2: First define the mathematical model of SOP.

[0096] The SOP active power constraint is:

[0097] The power loss is:

[0098] The SOP reactive power constraint is:

[0099] The SOP capacity constraint is:

[0100] Where: i, j are the node numbers of the SOP accessing the distribution network; is the active power and reactive power injected by the converter at both ends of SOP at time t; and is the loss coefficient of the two converters; is the power transmission loss of SOP; μ is the absolute value of the sine of the power factor angle; is the capacity of the SOP connected between nodes i and j.

[0101] The SOP planning model of the present invention takes the minimum annual comprehensive cost f of the distribution system as the objective function, including the SOP annual investment cost, the SOP annual operation and maintenance cost and the annual loss cost of the distribution network. The mathematical expression is: minf = f I +f O +f L

[0102] The annual investment cost of SOP is:

[0103] Where: d is the discount rate; y is the economic useful life of SOP; N SOP The number of SOPs installed in the distribution network; is the installed capacity of the kth SOP; is the corresponding unit capacity investment cost.

[0104] The annual operation and maintenance cost of SOP is:

[0105] Where: η is the annual operation and maintenance cost coefficient.

[0106] The annual loss cost of the distribution network is:

[0107] Where: δ is the annual power loss cost coefficient of the distribution network; n t is the number of segments of a day; Δt is the time of each segment; P i,t is the active power flowing into node i at time t; is the active power loss of SOP at node i at time t.

[0108] Next, define the constraints in the plan:

[0109] The power flow constraint of the distribution network is:

[0110]

[0111]

[0112]

[0113]

[0114]

[0115]

[0116] Where: r ij and x ij are the resistance and reactance of branch ij respectively; P ij,t and Q ij,t are the active power and reactive power flowing from i to j on branch ij at time t; P i,t and Q i,t are the active power and reactive power injected by node i at time t; U i,t is the voltage amplitude of node i at time t; I ij,t is the current amplitude on branch ij at time t; and are the active power and reactive power injected by node i at time t respectively; and are the active power and reactive power consumed by the load of node i at time t, respectively.

[0117] The safe operation constraints are:

[0118] U min ≤U i,t ≤U max

[0119]

[0120] Where: U min and U max are the maximum and minimum voltages on node i, respectively; I max is the maximum current value on branch ij.

[0121] The SOP planning constraints are:

[0122]

[0123] Where: is the installation capacity of the kth SOP; m k is a non-zero integer; S SOP This is the unit installation capacity of SOP. This article takes 100KVA as the unit capacity.

[0124] Step 3: Input the generated power generation scenario and distribution network parameters into the planning model, solve it under the IEEE-33 node, and obtain the optimal SOP planning scheme.

[0125] For step 3: the power flow constraints of the distribution network and the SOP constraint equation contain nonlinear terms, which bring a huge burden to the optimization solution of the SOP planning problem. The present invention is based on the second-order cone programming algorithm, and through linearization, convex relaxation and other technologies, the original planning model meets the requirements of the cone search space to improve the solution efficiency.

[0126] The specific planning process is as follows: first, the power generation data of distributed power sources is learned through the generative adversarial network method to generate scenarios that can reflect the randomness and volatility of power generation, and at the same time, equations are established for SOP and distribution network constraints; the annual comprehensive cost of the distribution system is minimized as the objective function, and the original non-convex nonlinear constraints are relaxed and linearized to obtain a second-order cone programming model to solve the objective function under the constraints.

[0127] The present invention uses IEEE-33 node example to analyze and verify the proposed SOP planning model. The IEEE-33 node example structure is as follows: Figure 4 shown.

[0128] Considering the geographical limitations, the SOP candidate location is set at the tie switch, and the location and capacity to be installed are optimized. First, the model is trained to verify that the generative adversarial network can generate scenarios that reflect the output characteristics of distributed power sources. The training process is as follows Figure 5 The generated wind and solar power generation scenario is shown in Figure 7 shown.

[0129] The present invention first uses a generative adversarial network and a model-free, data-driven scenario generation method. This is the first time that a deep generative model has been applied to the site selection and sizing process of SOP. The generated scenario can well capture the diversity of changes in the output of distributed power sources, showing the typical characteristics of its power generation, such as huge peaks, rapid power changes, etc., providing accurate basic data for solving the SOP planning problem of the distribution network, and can effectively solve the problem of uneven power flow caused by the output of distributed power sources in the distribution network.

[0130] The present invention is described above by way of example in conjunction with the accompanying drawings. It is obvious that the specific implementation of the present invention is not limited to the above-mentioned method. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention, or the concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.

Claims

1. A method for intelligent soft switch planning of active distribution network based on generative adversarial network, characterized in that: The following steps are involved: Step 1: Build a generative adversarial network and train the distributed power generation data set; Step 2: Propose the mathematical model, planning model and distribution network operation constraints of SOP, and perform linearization and convex relaxation through the second-order cone programming algorithm to make the original planning model meet the requirements of the cone search space; Step 3: Input the generated power generation scenario and distribution network parameters into the planning model, solve it under the IEEE-33 node, and obtain the optimal SOP planning scheme; In step 2, the mathematical model of SOP is defined: The SOP active power constraint is: The power loss is: The SOP reactive power constraint is: The SOP capacity constraint is: Where: i, j are the node numbers of the SOP accessing the distribution network; is the active power and reactive power injected by the converter at both ends of SOP at time t; and is the loss coefficient of the two converters; is the power transmission loss of SOP; μ is the absolute value of the sine of the power factor angle; is the capacity of the SOP connected between nodes i and j; The SOP planning model takes the minimum annual comprehensive cost f of the distribution system as the objective function, including the SOP annual investment cost, the SOP annual operation and maintenance cost, and the annual loss cost of the distribution network. The mathematical expression is: min f = f I +f O +f L The annual investment cost of SOP is: Where: d is the discount rate; y is the economic useful life of SOP; N SOP The number of SOPs installed in the distribution network; is the installed capacity of the kth SOP; is the corresponding unit capacity investment cost; The annual operation and maintenance cost of SOP is: Where: η is the annual operation and maintenance cost coefficient; The annual loss cost of the distribution network is: Where: δ is the annual power loss cost coefficient of the distribution network; n t is the number of segments of a day; Δt is the time of each segment; P i,t is the active power flowing into node i at time t; is the active power loss of SOP at node i at time t; Define the constraints in the plan: The power flow constraint of the distribution network is: Where: r ij and x ij are the resistance and reactance of branch ij respectively; P ij,t and Q ij,t are the active power and reactive power flowing from i to j on branch ij at time t; P i,t and Q i,t are the active power and reactive power injected by node i at time t; U i,t is the voltage amplitude of node i at time t; I ij,t is the current amplitude on branch ij at time t; and are the active power and reactive power injected by node i at time t respectively; and are the active power and reactive power consumed by the load of node i at time t respectively; The safe operation constraints are: IN min ≤U i,t ≤U max ; Where: U min and U max are the maximum and minimum values ​​of the voltage on node i respectively; I max is the maximum current value on branch ij; The SOP planning constraints are: Where: is the installation capacity of the kth SOP; m k is a non-zero integer; S SOP Install capacity for the unit of SOP.

2. The active distribution network intelligent soft switch planning method based on generative adversarial network according to claim 1 is characterized by: In the step 1, firstly, the power generation data of the wind farm and the photovoltaic power plant are used to construct a training data set, and the time interval of the original data is a preset time interval; Define the loss functions of the generator and discriminator: The loss function of the generator is: L G =-E Z [D(G(Z))] The loss function of the discriminator is: L D =-E X [D(X)]+E Z [D(G(Z))] Where: E represents the expected value of the corresponding distribution, G(Z; θ (G) ) represents the generator function, D(x;θ (D) ) represents the discriminator function, θ (G) and θ (D) are the weights of two deep neural networks; During the training process, the generator is used to improve the discriminator output value of the generated samples, and the discriminator is used to reduce the output value of the generated samples and improve the discriminator output value of the real samples.

3. The active distribution network intelligent soft switch planning method based on generative adversarial network according to claim 2 is characterized by: The training goal of the generator and discriminator generative adversarial network is to play a minimax game between the two. The constructed game value function V(G,D) is as follows: When the generated samples do not overlap with the real sample distribution, the JS divergence will be a constant and cannot accurately measure the distance between the sample distributions; Then define Wasserstein as: Wasserstein distance is used to measure the distance between two sample distributions, and the Wasserstein distance is used to improve the loss function of the discriminator; Where: X and Y are two random variables with marginal distribution f X and f Y , Γ represents the set of all possible joint distributions, and inf means finding the minimum value among all paths; The objective function of the generative adversarial network using Wasserstein distance is:

4. The active distribution network intelligent soft switch planning method based on generative adversarial network according to claim 3 is characterized by: The preset interval time is 5 minutes.

5. The active distribution network intelligent soft switch planning method based on generative adversarial network according to claim 1 or 4, characterized in that: In step 3, based on the second-order cone programming algorithm, the original planning model is made to meet the requirements of the cone search space through linearization and convex relaxation technology.

6. The active distribution network intelligent soft switch planning method based on generative adversarial network according to claim 5 is characterized in that: The step 3 comprises the following steps: The generation data of distributed power sources is learned by generative adversarial networks to generate scenarios that reflect the randomness and volatility of power generation, while establishing equations for SOP and distribution network constraints. Taking the minimum annual comprehensive cost of the distribution system as the objective function, the original non-convex nonlinear constraints are relaxed and linearized to transform into a second-order cone programming model; Solve the objective function subject to constraints.