A deep learning-assisted distributed robust optimization scheduling method for DC distribution networks
Through deep learning-assisted methods, the worst probability distribution of photovoltaic output in the DC distribution network is predicted, which solves the problem of low calculation efficiency in the DC distribution network distribution robust optimization dispatch in the existing technology, and achieves efficient robust optimization dispatch. strategy to meet the needs of large-scale power systems.
Patent Information
- Application Number
- CN202311105297.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-08-30
AI Technical Summary
When existing technologies deal with the uncertainty of distributed power sources in DC distribution networks, stochastic planning has low efficiency and robust optimization is too conservative, resulting in low computational efficiency and difficulty in meeting the optimal dispatch needs of large-scale power systems.
Using a method based on deep learning, the column and constraint generation algorithm is used to construct a robust physical model of DC distribution network distribution, generate training data, and predict the worst probability distribution of photovoltaic output through a deep neural network, converting the original model into a single-layer random Plan models to improve solution efficiency.
It significantly improves the solving efficiency of the distributed robust model, reduces the cost of optimal dispatching, improves the robustness and calculation speed of the model, and meets the optimization needs of large-scale power systems.
Smart Images

Figure CN117394444B
Abstract
Description
Technical Field
[0001] The invention relates to a DC distribution network distributed robust optimization scheduling method based on deep learning assistance, which belongs to the field of DC distribution network operation and scheduling. Background Art
[0002] Under the background of new energy system, the large-scale access of new energy such as wind power and photovoltaic power to the power grid has become an important measure to support its development. However, due to the randomness and intermittency of the output of distributed power sources, the absorption capacity of the distribution network is limited, which poses a huge threat to the safe and stable operation of the power system. The DC distribution network has large transmission capacity, high power quality, good system stability, and is convenient for the access of distributed power sources. Compared with the AC distribution network, the advantages of the DC distribution network in terms of new energy absorption, line loss, flexible control operation, etc. are gradually highlighted, becoming the trend of future distribution network development. Therefore, the research on the optimal dispatching of the DC distribution network is of great significance.
[0003] Accurately characterizing the uncertainty of renewable energy is the key to developing an optimal dispatching strategy. Currently, the methods commonly used to deal with the uncertainty of distributed power sources are mainly stochastic programming and robust optimization. However, stochastic programming assumes that random variables obey a certain distribution and requires a large number of samples for simulation, which leads to low efficiency and lack of robustness in the dispatching results. Robust optimization improves the robustness of the stochastic planning dispatching strategy to a certain extent. However, robust optimization completely ignores the probability distribution information of uncertain variables, makes dispatching decisions under the worst scenario, and the dispatching results are too conservative. In response to the above problems, the distributed robust optimization method combines the characteristics of stochastic programming and robust optimization well, makes optimization decisions under the worst probability distribution, and has been widely used for its excellent characteristics. However, the solution process of the scenario-based distributed robust model is complicated, and it requires repeated iterations to identify the worst probability distribution, which has low computational efficiency. Especially when the scale of the power system is large, with the increase of uncertainty in the output of intermittent renewable energy, it is necessary to provide dispatching strategies more frequently. At the same time, with the increase of integer variables such as unit start-stop, energy storage charging and discharging, the complexity of model solution increases sharply, which is difficult to meet the needs of current distribution network optimization dispatching. Therefore, improving the solution efficiency of the scenario-based distributed robust optimization scheduling model is of great significance to ensure the safe and stable operation of the power system.
[0004] In response to the above problems, the present invention is based on the traditional distributed robust physical model of the DC distribution network, and uses the column and constraint generation algorithm to solve it, thereby generating a large amount of training data. With photovoltaic output, load, and norm confidence as input, and the worst probability distribution of photovoltaic output as output, a deep learning model is established. Based on the trained deep neural network to predict the worst probability distribution of photovoltaic output input in real time, the original distributed robust model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed robust scheduling strategy. Summary of the invention
[0005] Purpose of the invention: The solution process of the scenario-based distributed robust model is complex, requiring repeated iterations to identify the worst probability distribution, and has low computational efficiency. In order to improve the solution efficiency of the distributed robust model while ensuring a certain degree of accuracy, the present invention provides a distributed robust optimization scheduling method for DC distribution networks based on deep learning assistance.
[0006] Technical solution: In order to achieve the above-mentioned invention object, the present invention proposes a DC distribution network distributed robust optimization scheduling method based on deep learning assistance, which includes the following steps:
[0007] Step 1: construct a scenario-based distributed robust optimization dispatch physical model for DC distribution network, repeatedly change the input photovoltaic output, load, and norm confidence, use the column and constraint generation algorithm to iteratively solve and obtain the worst probability distribution of photovoltaic output, and record each input and the corresponding worst probability distribution;
[0008] Step 2, using PV output, load, and norm confidence as input and the worst probability distribution of PV output as output to build a deep neural network model;
[0009] Step 3: Based on the trained neural network, the worst probability distribution of photovoltaic output corresponding to the real-time input photovoltaic output, load, and norm confidence is predicted, and the original distributed robust model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed robust scheduling strategy.
[0010] Furthermore, in step 1, the DC distribution network is divided into a robust physical model and a solution method as follows:
[0011] The goal is to minimize the cost of the DC distribution network under the worst probability distribution of PV output:
[0012]
[0013] In the formula, f 1 (x) is the first stage scheduling cost, f 2 (y k ) is the second-stage scheduling cost under the kth scenario, p k is the probability value of each scenario, K is the number of typical scenarios screened, and the worst probability distribution of photovoltaic output refers to the probability distribution of photovoltaic output that maximizes the scheduling cost of the second stage, where:
[0014]
[0015] Where t is the scheduling time, T is the total scheduling period; i represents the node; Ω subFor the upper power grid collection, represents the time-of-use electricity purchase price of the upper power grid, Δt is the interval between adjacent dispatching periods, The power purchased by the upper power grid; Ω ESS As a collection of energy storage devices, represents the cost coefficient of energy storage charging and discharging, are the charging and discharging power of energy storage respectively; N PV is the number of photovoltaic units, represents the cost coefficient of the abandonment penalty, It represents the abandoned optical power in the kth scenario; N bus is the total number of nodes, η is the load shedding penalty multiple, P i,t,k,cut It represents the load shedding power in the kth scenario; is the first stage scheduling variable, represents the second stage scheduling variable;
[0016] Operation constraints: DC power flow constraints, energy storage device operation constraints, photovoltaic unit operation constraints, upper grid power purchase constraints, system safety constraints, load shedding constraints, and comprehensive norm constraints;
[0017] 1) DC power flow constraints
[0018]
[0019] In the formula, Ω DC is the DC node set, B DC is the DC branch set; P i,t is the active injection power of node i, v i,t is the square of the voltage amplitude at node i; P ij,t is the active power of branch ij, l ij,t is the square of the current flowing through branch ij, r ij is the DC branch resistance; F(i) is the end node set of the branch with node i as the first end node, and T(i) is the first end node set of the branch with node i as the end node; represents the active power injected into node i by photovoltaic, is the abandoned optical power of node i; They represent the charging and discharging power of energy storage at node i respectively; represents the load power of node i itself, P i,t,cut represents the load shedding power of node i;
[0020] 2) Energy storage device operation constraints
[0021] Energy storage includes charge and discharge state constraints, charge and discharge power constraints, storage capacity constraints, and the number of times the charge and discharge state is allowed to change per day. The energy storage model is as follows:
[0022]
[0023]
[0024] In the formula, and is the energy storage charging and discharging state variable, which is a 0-1 variable. or Indicates energy storage charging or discharging, and vice versa. or It means that the energy storage is not charged or discharged. Formula (1-10) shows that charging and discharging cannot be carried out at the same time; is the maximum value of charge and discharge power; is the storage capacity of the energy storage, where are their upper and lower limits respectively; α, β are the charge and discharge efficiencies respectively; λ max The maximum number of status changes allowed per day;
[0025] 3) Constraints on photovoltaic units
[0026]
[0027] In the formula, The maximum output of the photovoltaic unit;
[0028] 4) Constraints on power purchase from the upper-level power grid
[0029]
[0030] In the formula, The maximum power purchased by the upper power grid;
[0031] 5) System security constraints
[0032] The DC power distribution system must ensure that the voltage and current operate within the specified range, with the following constraints:
[0033]
[0034] In the formula, v i,min , v i,max are the minimum and maximum values of the square of the node voltage respectively; l ij,min , l ij,miax are the minimum and maximum values of the square of the current flowing through branch ij respectively;
[0035] 6) Load shedding constraints
[0036]
[0037] 7) Comprehensive norm constraint
[0038] The uncertain probability distribution set centered on the initial probability distribution and with 1-norm and ∞-norm as constraints, the uncertain probability distribution set Ω is shown in formula (1-21);
[0039]
[0040] In the formula, θ 1 ,θ ∞ are the probability deviation limits allowed for the 1-norm and the ∞-norm, respectively, p k0 is the initial probability value, parameter θ 1 ,θ ∞ The calculation method is as follows:
[0041]
[0042] Where M is the total number of historical scenes; α 1 , α ∞ is the 1-norm and ∞-norm uncertainty probability confidence level;
[0043] In summary, the general form of the scenario-based distributed robust model is expressed as follows:
[0044]
[0045] Cy k ≤c (1-26)
[0046] Gx+Hy k =g (1-27)
[0047] ||Qy k +P|| 2 ≤q T y k +p (1-28)
[0048] In the formula, x * is the optimal solution of the scheduling variables in the first stage, s k is a set of uncertain probability distributions constrained by the 1-norm and the ∞-norm, U(x * ,s k ) is the feasible domain consisting of the optimal solution of the scheduling variables in the first stage and the set of uncertain probability distributions under norm constraints; A, B, C, G, H, Q, P, a, b, c, g, q T, p are coefficient matrices corresponding to constraints. Formula (1-25) represents the related constraints of the variables in the first stage, corresponding to formulas (1-8)-(1-14) and (1-17); Formula (1-26) represents the related constraints of the variables in the second stage, corresponding to formulas (1-15), (1-16), (1-18)-(1-20); Formula (1-27) represents the coupling constraints of the variables in the first and second stages, corresponding to formulas (1-4), (1-6) and (1-7); Formula (1-28) represents the second-order cone relaxation constraint of the branch flow, corresponding to formula (1-5);
[0049] The column and constraint generation algorithm is used to solve the distributed robust physical model. The model is decomposed into the main problem and sub-problems for iterative solution. The main problem solves the optimal one-stage scheduling decision that meets all constraints under the worst probability distribution of photovoltaic output identified by the sub-problem, and provides the lower bound value LB of the model. The main problem is as follows:
[0050]
[0051] In the formula, ψ is an auxiliary variable that replaces the second-stage scheduling cost, m is the number of iterations, is the second-stage scheduling variable in the kth scenario after m iterations, is the worst probability distribution for the main problem;
[0052] The sub-problem is to identify the worst probability distribution of photovoltaic output under the one-stage scheduling strategy obtained by solving the main problem, provide it to the main problem for further iterative calculation, and provide the upper bound value UB of the model. The sub-problem is as follows:
[0053]
[0054] Since the first-stage scheduling variables of the inner optimization in subproblems (1-35)-(1-38) and the output of each typical photovoltaic scenario are known, the inner and outer optimization variables are not coupled in the constraints, and are further split into two models of equations (1-39) and (1-40) to be solved separately;
[0055]
[0056] In the formula, is the optimal value of the second-stage scheduling variable obtained by formula (1-39);
[0057] The PV and load data of N months are selected, and the GUROBI solver is called on the GAMS platform to solve the problem. The PV output, load, and norm confidence of the physical model are recorded as inputs and the worst probability distribution of PV output is used as output.
[0058] Furthermore, in step 2, a deep neural network model is constructed with photovoltaic output, load, and norm confidence as input and the worst probability distribution of photovoltaic output as output. The specific process is as follows:
[0059] Taking PV output, load and norm confidence as input, the worst probability distribution of PV output is output as follows:
[0060]
[0061] O=(p k ), k=1,2...K (1-42)
[0062] In the formula, I represents input and O represents output;
[0063] The ReLU function is used as the nonlinear activation function of the deep learning model. The ReLU function is expressed as follows:
[0064] f(x)=max(x,0) (1-43)
[0065] In the formula, x represents the input value, and f(x) represents the output of the activation function;
[0066] The mapping from input to output is expressed as follows:
[0067] I=u 0 (1-44)
[0068]
[0069] O=(ω |Z|+1 ) T u |Z| +ρ |Z|+1 (1-47)
[0070] In the formula, r z and u z are the linear mapping of the hidden layer z and the output of the activation function, u 0 represents the initial output of the activation function; Z represents the hidden layer set, z∈Z; parameter (W z , ρ z ) and (ω |Z|+1 , ρ |Z|+1 ) are the weights and biases that need to be learned through training; T represents transpose;
[0071] The output is a probability distribution with the following restrictions:
[0072] 0≤O≤1 (1-48)
[0073] The Adam algorithm is used to train the deep learning model. The specific process is to calculate the product of the input and the corresponding weight in the forward propagation, use the activation function to act on the sum of these products, and return the relevant errors in the back propagation of the neural network to calculate the loss function and the gradient of each parameter, update the weight parameter W and the bias parameter ρ, and realize the training of the model.
[0074] The mean square error MSE is selected as the loss function, and the formula is as follows:
[0075]
[0076] In the formula, y i Indicates the actual value, represents the predicted value; n represents the total number of samples.
[0077] The weight update formula of the Adam algorithm is as follows:
[0078]
[0079] In the formula, is the parameter variable to be updated; δ is the learning rate; μ is the smoothing parameter, They are the weighted mean value of the gradient and the weighted biased variance of the gradient after error correction;
[0080] Use formulas (1-41)-(1-50) to build a deep learning model.
[0081] Furthermore, in step 3, based on the trained neural network predicting the worst probability distribution of photovoltaic output input in real time, the original distributed blue-rod model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed blue-rod scheduling strategy, which is as follows:
[0082] Substitute the worst probability distribution of photovoltaic output predicted by deep learning into the original distributed robust model, that is, formula (1-24), and transform the model into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output, as follows:
[0083]
[0084] In the formula, The worst probability distribution of photovoltaic output predicted by deep learning;
[0085] The constraints are: DC power flow constraints: formula (1-4)-(1-7), energy storage device operation constraints: formula (1-8)-(1-14), photovoltaic unit operation constraints: formula (1-15), (1-16), upper power grid power purchase constraints: formula (1-17), system safety constraints (1-18), (1-19), load shedding constraints: formula (1-20);
[0086] Solving this model obtains the equivalent distributed-rod model dispatching strategy, that is, the purchased power of the upper power grid and the charging and discharging power of the energy storage. According to this dispatching strategy, reasonable dispatching is carried out to realize the distributed-rod optimal dispatching of the DC distribution network.
[0087] Beneficial effects: Compared with the prior art, the technical solution of the present invention has the following beneficial technical effects:
[0088] 1) The constructed DC distribution network distributed robust optimization model based on deep learning can significantly improve the solution efficiency of the scenario-based distributed robust model while ensuring that the solution accuracy meets the requirements, and obtain an equivalent DC distribution network distributed robust scheduling strategy;
[0089] 2) Energy storage devices can play a good role in adjusting the operating characteristics of the power grid, reducing the cost of optimized scheduling;
[0090] 3) The conservatism of the scenario-based distributed robust optimization method is related to the uncertainty confidence and the number of historical data: the smaller the uncertainty confidence, the larger the number of historical data, and the lower the conservatism of the model, which plays a certain guiding role in the actual optimization and dispatching of power systems.
[0091] 4) This method replaces the iterative solution process of the traditional distributed robust optimization model and directly predicts the worst probability distribution of typical scenarios. It only needs to solve the single-layer stochastic programming model under the worst probability distribution of photovoltaic output, which improves the solution efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0092] Figure 1 Flow chart of the method of the present invention;
[0093] Figure 2 Output and load power forecast values of typical photovoltaic scenarios;
[0094] Figure 3 Comparison of the worst probability distribution predicted value with the true value;
[0095] Figure 4 (a) Energy storage capacity change curve, Figure 4 (b) Load and purchased power variation curves;
[0096] Figure 5 Comparison of results under different historical data. DETAILED DESCRIPTION
[0097] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, modifications of various equivalent forms of the present invention by those skilled in the art all fall within the scope defined by the appended claims of the present application.
[0098] like Figure 1 As shown, the present invention proposes a DC distribution network distributed robust optimization scheduling method based on deep learning assistance, the method comprising the following steps:
[0099] Step 1: construct a scenario-based distributed robust optimization dispatch physical model for DC distribution network, repeatedly change the input photovoltaic output, load, and norm confidence, use the column and constraint generation algorithm to iteratively solve and obtain the worst probability distribution of photovoltaic output, and record each input and the corresponding worst probability distribution;
[0100] Step 2, using PV output, load, and norm confidence as input and the worst probability distribution of PV output as output to build a deep neural network model;
[0101] Step 3: Based on the trained neural network, the worst probability distribution of photovoltaic output corresponding to the real-time input photovoltaic output, load, and norm confidence is predicted, and the original distributed robust model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed robust scheduling strategy.
[0102] Furthermore, in step 1, the DC distribution network is divided into a robust physical model and a solution method as follows:
[0103] The goal is to minimize the cost of the DC distribution network under the worst probability distribution of PV output:
[0104]
[0105] In the formula, f 1 (x) is the first stage scheduling cost, f 2 (y k ) is the second-stage scheduling cost under the kth scenario, p k is the probability value of each scenario, K is the number of typical scenarios screened, and the worst probability distribution of photovoltaic output refers to the probability distribution of photovoltaic output that maximizes the scheduling cost of the second stage, where:
[0106]
[0107] Where t is the scheduling time, T is the total scheduling period; i represents the node; Ω sub For the upper power grid collection, represents the time-of-use electricity purchase price of the upper power grid, Δt is the interval between adjacent dispatching periods, The power purchased by the upper power grid; Ω ESS As a collection of energy storage devices, represents the cost coefficient of energy storage charging and discharging, are the charging and discharging power of energy storage respectively; N PV is the number of photovoltaic units, represents the cost coefficient of the abandonment penalty, It represents the abandoned optical power in the kth scenario; N bus is the total number of nodes, η is the load shedding penalty multiple, P i,t,k,cut It represents the load shedding power in the kth scenario; is the first stage scheduling variable, represents the second stage scheduling variable;
[0108] Operation constraints: DC power flow constraints, energy storage device operation constraints, photovoltaic unit operation constraints, upper grid power purchase constraints, system safety constraints, load shedding constraints, and comprehensive norm constraints;
[0109] 1) DC power flow constraints
[0110]
[0111] In the formula, Ω DC is the DC node set, B DC is the DC branch set; P i,t is the active injection power of node i, v i,t is the square of the voltage amplitude at node i; P ij,t is the active power of branch ij, l ij,t is the square of the current flowing through branch ij, r ij is the DC branch resistance; F(i) is the end node set of the branch with node i as the first end node, and T(i) is the first end node set of the branch with node i as the end node; represents the active power injected into node i by photovoltaic, is the abandoned optical power of node i; They represent the charging and discharging power of energy storage at node i respectively; represents the load power of node i itself, P i,t,cut represents the load shedding power of node i;
[0112] 2) Energy storage device operation constraints
[0113] Energy storage includes charge and discharge state constraints, charge and discharge power constraints, storage capacity constraints, and the number of times the charge and discharge state is allowed to change per day. The energy storage model is as follows:
[0114]
[0115] In the formula, and is the energy storage charging and discharging state variable, which is a 0-1 variable. or Indicates energy storage charging or discharging, and vice versa. or It means that the energy storage is not charged or discharged. Formula (1-10) shows that charging and discharging cannot be carried out at the same time; is the maximum value of charge and discharge power; is the storage capacity of the energy storage, where are their upper and lower limits respectively; α, β are the charge and discharge efficiencies respectively; λ max The maximum number of status changes allowed per day;
[0116] 3) Constraints on photovoltaic units
[0117]
[0118] In the formula, The maximum output of the photovoltaic unit;
[0119] 4) Constraints on power purchase from the upper-level power grid
[0120]
[0121] In the formula, The maximum power purchased by the upper power grid;
[0122] 5) System security constraints
[0123] The DC power distribution system must ensure that the voltage and current operate within the specified range, with the following constraints:
[0124]
[0125] In the formula, v i,min , v i,max are the minimum and maximum values of the square of the node voltage respectively; l ij,min , l ij,miax are the minimum and maximum values of the square of the current flowing through branch ij respectively;
[0126] 6) Load shedding constraints
[0127]
[0128] 7) Comprehensive norm constraint
[0129] The uncertain probability distribution set centered on the initial probability distribution and with 1-norm and ∞-norm as constraints, the uncertain probability distribution set Ω is shown in formula (1-21);
[0130]
[0131] In the formula, θ 1 ,θ ∞ are the probability deviation limits allowed for the 1-norm and the ∞-norm, respectively, p k0 is the initial probability value, parameter θ 1 ,θ ∞ The calculation method is as follows:
[0132]
[0133] Where M is the total number of historical scenes; α 1 , α ∞ is the 1-norm and ∞-norm uncertainty probability confidence level;
[0134] In summary, the general form of the scenario-based distributed robust model is expressed as follows:
[0135]
[0136] Cy k ≤c (1-26)
[0137] Gx+Hy k =g (1-27)
[0138] ||Qy k +P|| 2 ≤q T y k +p (1-28)
[0139] In the formula, x * is the optimal solution of the scheduling variables in the first stage, s k is a set of uncertain probability distributions constrained by the 1-norm and the ∞-norm, U(x * ,s k ) is the feasible domain consisting of the optimal solution of the scheduling variables in the first stage and the set of uncertain probability distributions under norm constraints; A, B, C, G, H, Q, P, a, b, c, g, q T , p are coefficient matrices corresponding to constraints. Formula (1-25) represents the related constraints of the variables in the first stage, corresponding to formulas (1-8)-(1-14) and (1-17); Formula (1-26) represents the related constraints of the variables in the second stage, corresponding to formulas (1-15), (1-16), (1-18)-(1-20); Formula (1-27) represents the coupling constraints of the variables in the first and second stages, corresponding to formulas (1-4), (1-6) and (1-7); Formula (1-28) represents the second-order cone relaxation constraint of the branch flow, corresponding to formula (1-5);
[0140] The column and constraint generation algorithm is used to solve the distributed robust physical model. The model is decomposed into the main problem and sub-problems for iterative solution. The main problem solves the optimal one-stage scheduling decision that meets all constraints under the worst probability distribution of photovoltaic output identified by the sub-problem, and provides the lower bound value LB of the model. The main problem is as follows:
[0141]
[0142] In the formula, ψ is an auxiliary variable that replaces the second-stage scheduling cost, m is the number of iterations, is the second-stage scheduling variable in the kth scenario after m iterations, is the worst probability distribution for the main problem;
[0143] The sub-problem is to identify the worst probability distribution of photovoltaic output under the one-stage scheduling strategy obtained by solving the main problem, provide it to the main problem for further iterative calculation, and provide the upper bound value UB of the model. The sub-problem is as follows:
[0144]
[0145] Since the first-stage scheduling variables of the inner optimization in subproblems (1-35)-(1-38) and the output of each typical photovoltaic scenario are known, the inner and outer optimization variables are not coupled in the constraints, and are further split into two models of equations (1-39) and (1-40) to be solved separately;
[0146]
[0147] In the formula, is the optimal value of the second-stage scheduling variable obtained by formula (1-39);
[0148] The PV and load data of N months are selected, and the GUROBI solver is called on the GAMS platform to solve the problem. The PV output, load, and norm confidence of the physical model are recorded as inputs and the worst probability distribution of PV output is used as output.
[0149] Furthermore, in step 2, a deep neural network model is constructed with photovoltaic output, load, and norm confidence as input and the worst probability distribution of photovoltaic output as output. The specific process is as follows:
[0150] Taking PV output, load and norm confidence as input, the worst probability distribution of PV output is output as follows:
[0151]
[0152] O=(p k ), k=1,2...K (1-42)
[0153] In the formula, I represents input and O represents output;
[0154] The ReLU function is used as the nonlinear activation function of the deep learning model. The ReLU function is expressed as follows:
[0155] f(x)=max(x,0) (1-43)
[0156] In the formula, x represents the input value, and f(x) represents the output of the activation function;
[0157] The mapping from input to output is expressed as follows:
[0158] I=u 0 (1-44)
[0159]
[0160] O=(ω |Z|+1 ) T u |Z| +ρ |Z|+1 (1-47)
[0161] In the formula, r z and u z are the linear mapping of the hidden layer z and the output of the activation function, u 0 represents the initial output of the activation function; Z represents the hidden layer set, z∈Z; parameter (W z , ρ z ) and (ω |Z|+1 , ρ |Z|+1 ) are the weights and biases that need to be learned through training; T represents transpose;
[0162] The output is a probability distribution with the following restrictions:
[0163] 0≤O≤1 (1-48)
[0164] The Adam algorithm is used to train the deep learning model. The specific process is to calculate the product of the input and the corresponding weight in the forward propagation, use the activation function to act on the sum of these products, and return the relevant errors in the back propagation of the neural network to calculate the loss function and the gradient of each parameter, update the weight parameter W and the bias parameter ρ, and realize the training of the model.
[0165] The mean square error MSE is selected as the loss function, and the formula is as follows:
[0166]
[0167] In the formula, y i Indicates the actual value, represents the predicted value; n represents the total number of samples.
[0168] The weight update formula of the Adam algorithm is as follows:
[0169]
[0170] In the formula, is the parameter variable to be updated; δ is the learning rate; μ is the smoothing parameter, They are the weighted mean value of the gradient and the weighted biased variance of the gradient after error correction;
[0171] Use formulas (1-41)-(1-50) to build a deep learning model.
[0172] Furthermore, in step 3, based on the trained neural network predicting the worst probability distribution of photovoltaic output input in real time, the original distributed blue-rod model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed blue-rod scheduling strategy, which is as follows:
[0173] Substitute the worst probability distribution of photovoltaic output predicted by deep learning into the original distributed robust model, that is, formula (1-24), and transform the model into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output, as follows:
[0174]
[0175] In the formula, The worst probability distribution of photovoltaic output predicted by deep learning;
[0176] The constraints are: DC power flow constraints: formula (1-4)-(1-7), energy storage device operation constraints: formula (1-8)-(1-14), photovoltaic unit operation constraints: formula (1-15), (1-16), upper power grid power purchase constraints: formula (1-17), system safety constraints (1-18), (1-19), load shedding constraints: formula (1-20);
[0177] Solving this model obtains the equivalent distributed-rod model dispatching strategy, that is, the purchased power of the upper power grid and the charging and discharging power of the energy storage. According to this dispatching strategy, reasonable dispatching is carried out to realize the distributed-rod optimal dispatching of the DC distribution network.
[0178] Case Analysis
[0179] This paper uses a 33-node DC distribution network as an example. The system power load peak is 4360kW, and the root node voltage is 1.0pu. To simulate the distributed photovoltaic and energy storage access scenario, a total of 5 distributed photovoltaics are connected, with a total installed capacity of 1000kWh; 3 distributed energy storages are connected, with a total installed capacity of 300kWh. The system contains a total of 33 nodes, 32 branches, 9 devices, and a total scheduling period of T = 24.
[0180] The present invention first constructs a scenario-based distributed robust physical model of the traditional DC distribution network, and uses the column and constraint generation algorithm to iteratively solve and generate training data for deep learning. After screening, a total of 10,000 valid training samples were obtained, which were divided into training sets and test sets in a ratio of 8:2. The keras model of the Python platform was called for training, and the calculation results showed that the MSE was 2.0e-5, the MAE was 2.5e-3, and the R2 was 0.989. The comparison between the predicted values and the true values of the 4 randomly selected samples is as follows: Figure 3 And as shown in Table 1.
[0181] Table 1 Error comparison
[0182]
[0183] Depend on Figure 3 As shown in Table 1, the maximum relative error between the predicted value and the true value of the four randomly selected samples is 0.064, and the average relative error is 0.018. This means that the solution obtained by deep learning prediction is similar to the solution obtained by the scenario-based distributed robust model.
[0184] In order to compare the differences between the two in scheduling cost and computing time, the original scenario-based distributed robust model is transformed into a single-layer stochastic programming model under the worst probability distribution. The comparison of scheduling cost and computing time is shown in Table 2.
[0185] Table 2 Comparison of the effects of physical model and deep learning model
[0186]
[0187] As shown in Table 2, the error between the scheduling cost predicted by deep learning and the actual cost is less than 10 -4 The calculation time can be increased by 4-5 times, which greatly speeds up the calculation while ensuring the accuracy of the prediction results, basically meeting the requirements of optimized scheduling.
[0188] Depend on Figure 4It can be seen that during the period t1-t7, since the load first decreases and then increases, the trend of the power purchase of the power grid is basically consistent with it. Since the electricity price is cheap at this time, as much electricity as possible is purchased and the energy storage is charged. However, due to the charging power limit of the energy storage, the purchase amount cannot be too large. t8-t12, the load increases and the electricity price is high. In order to save costs, the energy storage is discharged at this time. With the guarantee of photovoltaic output, the system load is met. t13-t18, the electricity price is cheap and the photovoltaic output is sufficient, and the energy storage is neither charged nor discharged. t19-t22, the load reaches the peak. At this time, the photovoltaic output is insufficient, the power purchase power increases accordingly, and the energy storage is also in the rated discharge power state, reducing the cost as much as possible. t23-t24, the load gradually decreases. At this time, the electricity price is cheap, so it is necessary to increase the purchase amount to supplement the energy storage and prepare for the next load peak.
[0189] Therefore, energy storage devices effectively promote the consumption of photovoltaic power, reduce the amount of load shedding, and reduce the overall operating cost. Energy storage charging and discharging can play a good role in adjusting the operating characteristics of the power grid. However, the configuration cost of the system energy storage capacity will increase with the increase of its capacity, and the specific configuration capacity still needs to be determined through long-term planning.
[0190] Depend on Figure 5 It can be seen that with the increase of historical data, the total costs of various types decrease and gradually approach each other. This is because the increase of historical data reduces the allowable deviation limit of the probability distribution, thereby reducing the conservatism of solving the problem. By comparison, it is found that regardless of the amount of historical data, the total cost is 1-norm, ∞-norm, and comprehensive norm in order. This is because the 1-norm constraint controls the conservatism of the model by limiting the overall deviation degree of all typical scene probabilities, and the ∞-norm constraint controls the conservatism of the model by limiting the maximum deviation degree of each typical scene probability. There are certain one-sided and extreme cases to varying degrees, and the comprehensive norm constraint is more in line with the actual operation data obtained, and ensures that it fluctuates within a reasonable range, so the conservative type is reduced to a certain extent.
[0191] Secondly, by setting different confidence intervals α 1 and α ∞ The total optimization dispatching cost of the DC distribution network is analyzed. The number of historical data M is 1000, and the discrete scenarios K after clustering are 10. The results are shown in Table 3.
[0192] Table 3 Comparison of different confidence intervals
[0193]
[0194] With α 1 , α ∞ The increase of θ 1 and θ ∞The total cost value also increases as the confidence level increases. This is because the confidence interval increases, the uncertainty contained increases, and more effort is required. It is worth noting that when α ∞ =0.2, regardless of α 1 Take 0.2, 0.5, 0.9, the total cost value remains unchanged; similarly, when α ∞ =0.5, regardless of α 1 Take 0.5, 0.9, the total cost value remains unchanged. So we can conclude that when α 1 >α ∞ When 1 =α ∞ The reason is that when α 1 When the value is large, the 1-norm constraint has no effect on the determination of the probability confidence set, and only the ∞-norm plays a constraining role.
[0195] So far, the DC distribution network distributed robust optimization scheduling method based on deep learning assistance proposed by the present invention has been completed. However, the above embodiments are only for illustrating the technical ideas of the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical ideas proposed by the present invention fall within the protection scope of the present invention.
Claims
1. A DC distribution network distributed robust optimization scheduling method based on deep learning, characterized in that: The method comprises the following steps: Step 1: construct a scenario-based distributed robust optimization dispatch physical model for DC distribution network, repeatedly change the input photovoltaic output, load, and norm confidence, use the column and constraint generation algorithm to iteratively solve and obtain the worst probability distribution of photovoltaic output, and record each input and the corresponding worst probability distribution; Step 2, using PV output, load, and norm confidence as input and the worst probability distribution of PV output as output to build a deep neural network model; Step 3: Based on the trained neural network, the worst probability distribution of the photovoltaic output corresponding to the real-time input photovoltaic output, load, and norm confidence is predicted, and the original distributed blue-rod model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed blue-rod scheduling strategy; In step 1, a scenario-based distributed robust optimization dispatch physical model of the DC distribution network is constructed, the input photovoltaic output, load, and norm confidence are repeatedly changed, and the column and constraint generation algorithm is used to iteratively solve and obtain the worst probability distribution of photovoltaic output. Each input and the corresponding worst probability distribution are recorded. The model is as follows: The goal is to minimize the cost of the DC distribution network under the worst probability distribution of PV output: Where f1(x) is the first stage scheduling cost, f2(y k ) is the second-stage scheduling cost under the kth scenario, p k is the probability value of each scenario, K is the number of typical scenarios screened, and the worst probability distribution of photovoltaic output refers to the probability distribution of photovoltaic output that maximizes the scheduling cost of the second stage, where: Where t is the scheduling time, T is the total scheduling period; i represents the node; Ω sub For the upper power grid collection, represents the time-of-use electricity purchase price of the upper power grid, Δt is the interval between adjacent dispatching periods, The power purchased by the upper power grid; Ω ESS As a collection of energy storage devices, represents the cost coefficient of energy storage charging and discharging, are the charging and discharging power of energy storage respectively; N PV is the number of photovoltaic units, represents the cost coefficient of the abandonment penalty, It represents the abandoned optical power in the kth scenario; N bus is the total number of nodes, η is the load shedding penalty multiple, P i,t,k,cut It represents the load shedding power in the kth scenario; is the first stage scheduling variable, represents the second stage scheduling variable; Operation constraints: DC power flow constraints, energy storage device operation constraints, photovoltaic unit operation constraints, upper grid power purchase constraints, system safety constraints, load shedding constraints, and comprehensive norm constraints; 1) DC power flow constraints In the formula, Ω DC is the DC node set, B DC is the DC branch set; P i,t is the active injection power of node i, v i,t is the square of the voltage amplitude at node i; P ij,t is the active power of branch ij, l ij,t is the square of the current flowing through branch ij, r ij is the DC branch resistance; F(i) is the end node set of the branch with node i as the first end node, and T(i) is the first end node set of the branch with node i as the end node; represents the active power injected into node i by photovoltaic, is the abandoned optical power of node i; They represent the charging and discharging power of energy storage at node i respectively; represents the load power of node i itself, P i,t,cut represents the load shedding power of node i; 2) Energy storage device operation constraints Energy storage includes charge and discharge state constraints, charge and discharge power constraints, storage capacity constraints, and the number of times the charge and discharge state is allowed to change per day. The energy storage model is as follows: In the formula, and is the energy storage charging and discharging state variable, which is a 0-1 variable. or Indicates energy storage charging or discharging, and vice versa. or It means that the energy storage is not charged or discharged. Formula (1-10) shows that charging and discharging cannot be carried out at the same time; is the maximum value of charge and discharge power; is the storage capacity of the energy storage, where are their upper and lower limits respectively; α, β are the charge and discharge efficiencies respectively; λ max The maximum number of status changes allowed per day; 3) Constraints on photovoltaic units In the formula, The maximum output of the photovoltaic unit; 4) Constraints on power purchase from the upper-level power grid In the formula, The maximum power purchased by the upper power grid; 5) System security constraints The DC power distribution system must ensure that the voltage and current operate within the specified range, with the following constraints: In the formula, v i,min , v i,max are the minimum and maximum values of the square of the node voltage respectively; l ij,min , l ij,miax are the minimum and maximum values of the square of the current flowing through branch ij respectively; 6) Load shedding constraints 7) Comprehensive norm constraint The uncertain probability distribution set centered on the initial probability distribution and with 1-norm and ∞-norm as constraints, the uncertain probability distribution set Ω is shown in formula (1-21); In the formula, θ1, θ ∞ are the probability deviation limits allowed for the 1-norm and the ∞-norm, respectively, p k0 is the initial probability value, parameters θ1, θ ∞ The calculation method is as follows: Where M is the total number of historical scenes; α1, α ∞ is the 1-norm and ∞-norm uncertainty probability confidence level; In summary, the general form of the scenario-based distributed robust model is expressed as follows: Cy k ≤c (1-26) Gx+Hy k =g (1-27) ||Qy k +P||2≤q T y k +p (1-28) In the formula, x * is the optimal solution of the scheduling variables in the first stage, s k is a set of uncertain probability distributions constrained by the 1-norm and the ∞-norm, U(x * ,s k ) is the feasible domain consisting of the optimal solution of the scheduling variables in the first stage and the set of uncertain probability distributions under norm constraints; A, B, C, G, H, Q, P, a, b, c, g, q T , p are coefficient matrices corresponding to constraints. Formula (1-25) represents the related constraints of the variables in the first stage, corresponding to formulas (1-8)-(1-14) and (1-17); Formula (1-26) represents the related constraints of the variables in the second stage, corresponding to formulas (1-15), (1-16), (1-18)-(1-20); Formula (1-27) represents the coupling constraints of the variables in the first and second stages, corresponding to formulas (1-4), (1-6) and (1-7); Formula (1-28) represents the second-order cone relaxation constraint of the branch flow, corresponding to formula (1-5); The column and constraint generation algorithm is used to solve the distributed robust physical model. The model is decomposed into the main problem and sub-problems for iterative solution. The main problem solves the optimal one-stage scheduling decision that meets all constraints under the worst probability distribution of photovoltaic output identified by the sub-problem, and provides the lower bound value LB of the model. The main problem is as follows: In the formula, ψ is an auxiliary variable that replaces the second-stage scheduling cost, m is the number of iterations, is the second-stage scheduling variable in the kth scenario after m iterations, is the worst probability distribution for the main problem; The sub-problem is to identify the worst probability distribution of photovoltaic output under the one-stage scheduling strategy obtained by solving the main problem, provide it to the main problem for further iterative calculation, and provide the upper bound value UB of the model. The sub-problem is as follows: Since the first-stage scheduling variables of the inner optimization in subproblems (1-35)-(1-38) and the output of each typical photovoltaic scenario are known, the inner and outer optimization variables are not coupled in the constraints, and are further split into two models of equations (1-39) and (1-40) to be solved separately; In the formula, is the optimal value of the second-stage scheduling variable obtained by formula (1-39); Select N months of PV and load data, call the GUROBI solver on the GAMS platform to solve, record the PV output, load, and norm confidence of the physical model as input and the worst probability distribution of PV output as output; In step 2, a deep neural network model is constructed with photovoltaic output, load, and norm confidence as input and the worst probability distribution of photovoltaic output as output. The specific process is as follows: Taking PV output, load and norm confidence as input, the worst probability distribution of PV output is output as follows: O=(p k ), k=1,2...K (1-42) In the formula, I represents input and O represents output; The ReLU function is used as the nonlinear activation function of the deep learning model. The ReLU function is expressed as follows: f(x)=max(x,0) (1-43) In the formula, x represents the input value, and f(x) represents the output of the activation function; The mapping from input to output is expressed as follows: I=u 0 (1-44) O=(ω |Z|+1 ) T you |Z| +r |Z|+1 (1-47) In the formula, r z and u z are the linear mapping of the hidden layer z and the output of the activation function, u 0 represents the initial output of the activation function; Z represents the hidden layer set, z∈Z; parameter (W z , ρ z ) and (ω |Z|+1 , ρ |Z|+1 ) are the weights and biases that need to be learned through training; T represents transpose; The output is a probability distribution with the following restrictions: 0≤O≤1 (1-48) The Adam algorithm is used to train the deep learning model. The specific process is to calculate the product of the input and the corresponding weight in the forward propagation, use the activation function to act on the sum of these products, and return the relevant errors in the back propagation of the neural network to calculate the loss function and the gradient of each parameter, update the weight parameter W and the bias parameter ρ, and realize the training of the model. The mean square error MSE is selected as the loss function, and the formula is as follows: In the formula, y i Indicates the actual value, represents the predicted value; n represents the total number of samples; The weight update formula of the Adam algorithm is as follows: In the formula, is the parameter variable to be updated; δ is the learning rate; μ is the smoothing parameter, They are the weighted mean value of the gradient and the weighted biased variance of the gradient after error correction; Use formulas (1-41)-(1-50) to build a deep learning model.
2. According to claim 1, a DC distribution network distributed robust optimization scheduling method based on deep learning assistance is characterized in that: In step 3, based on the trained neural network prediction of the worst probability distribution of photovoltaic output input in real time, the original distributed blue-rod model is converted into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output and solved to obtain an equivalent distributed blue-rod scheduling strategy, which is as follows: Substitute the worst probability distribution of photovoltaic output predicted by deep learning into the original distributed robust model, that is, formula (1-24), and transform the model into a single-layer stochastic programming model under the worst probability distribution of photovoltaic output, as follows: In the formula, The worst probability distribution of photovoltaic output predicted by deep learning; The constraints are: DC power flow constraints: formula (1-4)-(1-7), energy storage device operation constraints: formula (1-8)-(1-14), photovoltaic unit operation constraints: formula (1-15), (1-16), upper power grid power purchase constraints: formula (1-17), system safety constraints (1-18), (1-19), load shedding constraints: formula (1-20); Solving this model obtains the equivalent distributed-rod model dispatching strategy, that is, the purchased power of the upper power grid and the charging and discharging power of the energy storage. According to this dispatching strategy, reasonable dispatching is carried out to realize the distributed-rod optimal dispatching of the DC distribution network.
