A risk assessment method for accessing distributed energy to distribution networks

The correlation sample data is generated through Nataf inverse transformation and Chlosky decomposition, and combined with K-means clustering and piecewise linearization methods, which simplifies the risk assessment of distributed energy access to the distribution network and solves the computational complexity and complexity in the existing technology. Time-consuming questions improve the accuracy and efficiency of assessment and provide support for system planning.

CN113312833BActive Publication Date: 2024-09-13BEIJING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110409935.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-16
Publication Date
2024-09-13
Estimated Expiration
2041-04-16

AI Technical Summary

Technical Problem

The existing distributed energy access distribution network risk assessment methods are complex and time-consuming to calculate. It is difficult to effectively consider the correlation and randomness between new energy power generation outputs, which affects system planning and decision-making.

Method used

The Nataf inverse transformation and Chlosky decomposition methods are used to generate correlated photovoltaic and wind power random output sample data, and the K-means clustering and piecewise linearization methods are used to simplify the calculation and calculate the system risk index.

Benefits of technology

It improves the accuracy and efficiency of the risk assessment of distributed energy access to the distribution network, provides more practical input variables and higher calculation speed, supports the operational risk assessment of distributed energy access to the distribution network, and provides information for dispatching decisions. in accordance with.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113312833B
    Figure CN113312833B
Patent Text Reader

Abstract

The present invention relates to a risk assessment method for the access of distributed energy to a distribution network, comprising the following steps: Step 1: Input historical data of new energy output. Step 2: According to the correlation of the historical output data of new energy, an analytical method is used to calculate the input random variables with correlation. Step 3: The input new energy output variables are clustered using the K-means clustering algorithm to obtain multiple cluster sample clusters. Step 4: Deterministic power flow calculation is performed on the cluster center sample, and linearized power flow is solved for other sample points in the same cluster according to the cluster center state variables and the Jacobian matrix, and the state variables corresponding to all new energy output samples are calculated using a piecewise linearization method. Step 5: Calculate the risk index corresponding to the calculated system state variables. Step 6: Calculate the probability density function of all risk index calculation results using a statistical method in combination with the input new energy output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of power system research, and in particular to a risk assessment method for accessing a distributed energy source to a distribution network. Background Art

[0002] Renewable energy such as wind and solar energy can be connected to the distribution network to effectively replace traditional power generation. With the connection of a large number of distributed renewable energy generation, the distribution network has changed from a traditional passive network to an active network with bidirectional power flow. Although it has brought benefits to the reliability of the distribution network, the randomness of the output of these distributed power sources may bring risks to the safety of the distribution system. The risk assessment method proposed in this invention can be used to analyze the reliability of the power system.

[0003] Regarding risk assessment methods, the Monte Carlo simulation method is a widely used method. This method generates a large number of probability distributions of related indicators to obtain simulation results, but the amount of calculation is large and the calculation time is long. In addition, there are literatures that use analytical methods, such as cumulative analysis methods, to calculate the distribution of related indicators based on sensitivity and series expansion. The existing methods have the problem that the calculation process is very complicated and difficult to implement. The present invention considers the risk assessment of time severity and probability of occurrence, which is more conducive to decision-making during system planning.

[0004] The uncertainties in the access of distributed renewable energy to the distribution network are complex and diverse. In this paper, we mainly consider the randomness of the output of various renewable energy sources, such as the fluctuation and intermittent characteristics of wind speed. Different wind farms have different wind speed characteristics in different time periods; as well as the correlation between the output of distributed renewable energy sources. Wind farms usually reach their maximum output power at night, while photovoltaic farms generate electricity during the day when there is sunshine. Wind power and photovoltaic power generation have internal correlation in output, but there is no correlation between each other. The photovoltaic and wind power outputs in the same area are also internally correlated with each other; for different outputs of renewable energy sources, the uncertainties are used as input random variables of the system. Summary of the invention

[0005] The randomness of renewable energy generation brings operational risks to the distribution network system. This paper proposes a distribution network risk assessment method that considers the correlation and randomness of renewable energy generation output. First, the correlation of multiple renewable energy generation is obtained based on the historical data of real solar photovoltaic power generation systems and wind farms, and the Nataf inverse transform and Chlosky decomposition methods are used to generate correlated photovoltaic and wind power random output sample data respectively. Secondly, the distribution system flow under different operating states is calculated based on the renewable energy generation output, and the piecewise linearization method is used to simplify the calculation of the uncertainty of the distribution network containing distributed renewable energy access. Then the system risk index is calculated by multiplying the probability by the severity.

[0006] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0007] A method for risk assessment of distributed energy access to a distribution network comprises the following steps:

[0008] Step 1: Input the historical data of the new energy output of the new energy device to be connected to the power distribution network system;

[0009] Step 2: Based on the historical data of renewable energy output input in step 1, correlation modeling is performed, and the sample data of renewable energy output with correlation is calculated by analytical method as the input random variable of the distribution network system;

[0010] Step 3: Use the K-means clustering algorithm to cluster the new energy output samples obtained in step 2 as variables to obtain multiple cluster sample clusters;

[0011] Step 4: Select a cluster sample cluster, perform deterministic power flow calculation on the cluster center sample, and perform linearized power flow solution on other sample points in the same cluster according to the cluster center state variables and Jacobian matrix. Use piecewise linearization method to calculate the distribution network system state variables corresponding to all new energy output samples until all cluster clusters are selected, and then go to step 5;

[0012] Step 5: Calculate the risk index corresponding to the distribution network system state variables calculated in step 4;

[0013] Step 6: Combine the new energy output sample data obtained in step 2 to calculate the probability density function of all risk index calculation results using statistical methods;

[0014] On the basis of the above scheme, the new energy device includes: a wind turbine and a solar photovoltaic power generation system; the new energy output historical data includes at least two sets of wind turbine data and at least two sets of solar photovoltaic power generation system data; the installed capacity of the wind turbine is 1MW; the installed capacity of the solar photovoltaic power generation system is 1.5MW;

[0015] On the basis of the above scheme, step 2 performs correlation modeling based on the historical data of renewable energy output input in step 1, including establishing a probability distribution model of wind speed and establishing a photovoltaic sample model.

[0016] Based on the above scheme, the probability distribution model of wind speed is established, which specifically includes the following steps:

[0017] The probability distribution model of wind speed can reflect the characteristics of wind speed in wind farms, and the two-parameter Weibull distribution can reflect the actual wind speed in wind farms;

[0018] The probability density function of the two-parameter Weibull distribution is as follows:

[0019]

[0020] Where: v is wind speed, unit is m / s; k is shape parameter, which can reflect the shape of wind speed; c is scale parameter, which can reflect the average wind speed.

[0021] The power of wind turbines is affected by wind speed. After the relevant wind speed data is known, the relevant wind turbine output sample data can be obtained as the input random variable of the distribution network system.

[0022] The function between the output power of the wind turbine and the wind speed is as follows:

[0023]

[0024]

[0025] B=-Av ci (4)

[0026] Where P wind is the output power of the wind turbine; P r is the rated output power of the wind turbine; v is the wind speed; v ci is the cut-in wind speed of the wind turbine; v r is the rated wind speed of the wind turbine; v co is the cut-out wind speed of the wind turbine; A and B are parameters;

[0027] Based on the above scheme, the establishment of a photovoltaic sample model specifically includes the following steps:

[0028] Taking the photovoltaic output power variable as an example, assuming that there are n solar photovoltaic power generation systems in a certain area, w is a photovoltaic historical data vector with correlation, and for each vector w i Standardize as follows:

[0029]

[0030] Where: w i ′ is the pair w i The normalized vector, E wi w i The mean of the vector, w i The standard deviation of a vector;

[0031] The photovoltaic historical data vector w is transformed into a random vector w′ after standardization. The correlation coefficient matrix Cw′ of the random vector w′ is a positive definite matrix, and the standardization process is a linear transformation that does not change the correlation between photovoltaic historical data. It is decomposed by the Cholesky decomposition method:

[0032] G w' =G'G' T (6)

[0033] Where: G′ is the lower triangular matrix, and T is the transpose of the corresponding matrix.

[0034] The random vector w′ can be transformed into a linear combination of the standard normal distribution vector Z′ as follows:

[0035] w'=G'Z' (7)

[0036] Where: Z′ represents the standard normal distribution vector, which serves as the initial input variable of the random variable model.

[0037] Define D as a diagonal matrix, its expression is as follows:

[0038]

[0039] Where: Nw is the number of random variables in the photovoltaic historical data vector w.

[0040] According to formulas (5), (7) and (8), the relationship between the photovoltaic historical data vector w and the non-correlated standard normal distribution vector Z′ can be obtained as follows:

[0041]

[0042] Where: N = DG';

[0043] In summary, according to the relationship between the photovoltaic historical data vector w and the non-correlated standard normal distribution vector Z′ and the standard normal distribution random numbers with upper and lower limits determined by the installed capacity, the correlated photovoltaic power generation output power samples can be generated.

[0044] Based on the above solution, step 3 specifically includes the following steps:

[0045] According to step 2, the new energy output sample data is expressed as W(w 1 ,w 2 ,…,w n ), the input random variable is represented by the output vector of multiple renewable energy sources connected to the power distribution network system;

[0046] Step 31: Determine the appropriate value of the number of clusters K

[0047] The weighted average radius R is used to evaluate the clustering effect, and the expression is:

[0048]

[0049] In the formula, p iis the ratio of the number of samples in the i-th cluster to the sample capacity; r i is the cluster radius of the i-th cluster;

[0050] Step 32: Randomly select initial cluster centers

[0051] Randomly select the cluster center, the cluster center is defined as follows

[0052] M 0 =[m 1 ,m 2 ,...m j ,...,m k ,] T (15)

[0053]

[0054] Where: M 0 is the multi-dimensional distributed energy output power variable, representing all cluster centers, m j is the jth cluster center, the center of the jth cluster, K is the pre-set number of clusters, is the average value corresponding to the i-th input random variable in the j-th cluster;

[0055] Step 33: Calculate the Euclidean distance from all sample points to each cluster center

[0056] The Euclidean distance between each sample point and the cluster center is calculated by formula (17):

[0057]

[0058] Where: d(l,j) is the Euclidean distance between the lth point and the jth cluster center; the lth point is represented by [x l1 , x l2 ,...x li ,...x ln ]; x li For X i The lth value;

[0059] Step 34 calculates the mean of samples in each cluster and updates the cluster center;

[0060] Step 35 repeats 33 and 34 until the sample points in the cluster no longer change or the maximum number of repetitions is reached;

[0061] Based on the above solution, step 4 specifically includes the following steps:

[0062] The power flow equation of the distribution network system is in the following form:

[0063] S=f(X)

[0064] Z=g(X) (10)

[0065] Where X is the state variable, S is the active power and reactive power injected by the node, and Z is the active power and reactive power transmitted by the branch.

[0066] Assume that the jth node injects the distributed energy output power, and the jth node injection amount S is calculated according to the distributed energy output power. j Divide evenly into m segments, denoted as S j0 -S j1 , S j1 -S j2 ……S jm-1 -S jm ;

[0067] Calculate the expectation of each segment and record it as E j1 、E j2 ……E jm ; The expectation of non-injection nodes is E 1 、E 2 ……E j-1 、E k 、E j+1 ……E n . Remember A k =(E 1 ,E 2 …E j-1 ,E k ,E j+1 …E n ), where k = 1, 2...m; the flow equation is 1 , A 2 ……A m Linearize it and ignore higher-order terms.

[0068] S=S k +△S=f(X k +△X)=f(X k )+J k △X+......

[0069] Z=Z k +△Z=g(X k +△X)=g(X k )+G k △X+...... (11)

[0070] Where, △S=[△P,△Q] T , △X=[△σ,△U] T is the fluctuation of the corresponding variable; J k is the Jacobian matrix obtained from the last iteration, G kis the derivative of branch power with respect to the state variable.

[0071] The relationship between state variables and active power is obtained:

[0072]

[0073]

[0074] Where, T k and and is the sensitivity coefficient matrix.

[0075] From formula (12), we can get the corresponding injection volume for each segment △S j For △x i The influence coefficient of is obtained, so as to obtain the fluctuation value of the state variable when the photovoltaic output sample fluctuates around the k-th expected value;

[0076]

[0077] In the formula, For the corresponding x i The sensitivity coefficient matrix within each segment;

[0078] Beneficial effects of the present invention:

[0079] This patent considers the output correlation between distributed energy sources for the distribution network connected to distributed energy, and proposes a piecewise linear distribution network operation risk assessment based on clustering improvement. It proposes to add correlation considerations when considering the uncertainty of distributed energy output through the correlation between historical data to ensure that the input variables are more practical. While improving the accuracy of the size and correlation of the input variables of the distribution network, the piecewise linearization method is used to quickly calculate the risk for a large number of input samples, and the number of segments is optimized based on the clustering method, which improves the accuracy of the output variables while quickly calculating the risk. It provides support for the operation risk assessment of the connection of distributed energy to the distribution network and provides a basis for scheduling decision makers. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] The present invention has the following accompanying drawings:

[0081] Figure 1 Flowchart of the present invention. DETAILED DESCRIPTION

[0082] The following is combined with Figure 1 The present invention is described in further detail.

[0083] 1. Correlation modeling of historical data on renewable energy output

[0084] (1) Establishing a probability distribution model for wind speed

[0085] The probability distribution model of wind speed can well reflect the characteristics of wind speed in a certain area, and the two-parameter Weibull distribution can well reflect the actual wind speed in a certain area.

[0086] The probability density function of the two-parameter Weibull distribution is as follows:

[0087]

[0088] Where: v is wind speed, unit is m / s; k is shape parameter, which can reflect the shape of wind speed; c is scale parameter, which can reflect the average wind speed.

[0089] The power of a wind turbine is affected by wind speed. Once the relevant wind speed data is known, the relevant wind turbine output power data can be obtained as an input random variable of the distribution network system.

[0090] The function between the output power of the wind turbine and the wind speed is as follows:

[0091]

[0092]

[0093] B=-Av ci (4)

[0094] Where P wind is the output power of the wind turbine; P r is the rated output power of the wind turbine; v is the wind speed; v ci is the cut-in wind speed of the wind turbine; v r is the rated wind speed of the wind turbine; v co is the cut-out wind speed of the wind turbine; A and B are parameters;

[0095] (2) Establishing a photovoltaic sample model:

[0096] The uncertainties in the access of distributed renewable energy to the distribution network are complex and diverse. In this application, the main consideration is the randomness of the output of various renewable energy sources, such as the fluctuation and intermittent characteristics of wind speed, and the different wind speed characteristics of different wind farms in different time periods; as well as the correlation between the output of distributed renewable energy sources. The photovoltaic and wind power outputs in the same area are also correlated with each other. For different output situations of renewable energy, the uncertainties are used as input random variables of the distribution network system.

[0097] Distributed renewable energy power generation output modeling needs to consider two factors: one is the randomness of renewable energy output, and the other is the strong correlation between renewable energy output in the same region. To accurately and completely describe the correlation between random variables, the present invention considers using analytical methods to analyze historical data, thereby generating correlated renewable energy output input random variables based on the correlation between historical data.

[0098] Taking the photovoltaic output power variable as an example, assuming that there are n solar photovoltaic power generation systems in a certain area, w is a photovoltaic historical data vector with correlation, and for each vector w i Standardize as follows:

[0099]

[0100] Where: w i ′ is the pair w i The normalized vector, E wi is the mean of the wi vector, is the standard deviation of the wi vector.

[0101] The photovoltaic historical data vector w is transformed into a random vector w′ after standardization. The correlation coefficient matrix Cw′ of the random vector w′ is usually a positive definite matrix, and the standardization process is a linear transformation that does not change the correlation between photovoltaic historical data. It can be decomposed by the Cholesky decomposition method:

[0102] G w' =G'G' T (6)

[0103] Where: G′ is the lower triangular matrix, and T is the transpose of the corresponding matrix.

[0104] The random vector w′ can be transformed into a linear combination of the standard normal distribution vector Z′ as follows:

[0105] w'=G'Z' (7)

[0106] Where: Z′ represents the standard normal distribution vector, which serves as the initial input variable of the random variable model.

[0107] Define D as a diagonal matrix, its expression is as follows:

[0108]

[0109] Where: Nw is the number of random variables in the historical data vector w.

[0110] According to formulas (5), (7) and (8), the relationship between historical data w and the non-correlated standard normal distribution vector Z' can be obtained as follows:

[0111]

[0112] Where: N = DG';

[0113] In summary, according to the relationship between historical data and non-correlated standard normal distribution vectors, it can be concluded that for standard normal distribution random numbers with upper and lower limits determined according to the maximum values ​​of historical data, photovoltaic output sample data with correlation can be generated.

[0114] (II) Power flow calculation based on piecewise linearization

[0115] In the risk assessment of distribution networks containing distributed generation, the advantage of piecewise linearization is that for a large number of samples, the input variables can be segmented and a deterministic power flow calculation can be performed for each expected point in the segment. For other sample points in the same segment, it is only necessary to derive the linearization formula based on the injection amount and state variable (voltage) of the distribution network system, thereby reducing the time for power flow calculation for the sample points in the same segment.

[0116] The power flow equation of the distribution network system is in the following form:

[0117] S=f(X)

[0118] Z=g(X) (10)

[0119] Where X is the state variable, S is the active power and reactive power injected by the node, and Z is the active power and reactive power transmitted by the branch.

[0120] Assume that the jth node injects the distributed energy output power, and the jth node injection amount S is calculated according to the distributed energy output power. j Divide evenly into m segments, denoted as S j0 -S j1 , S j1 -S j2 ……S jm-1 -S jm ;

[0121] Calculate the expectation of each segment and record it as E j1 、E j2 ……E jm ; The expectation of non-injection nodes is E 1 、E 2 ……E j-1 、E k 、E j+1 ……E n . Remember A k =(E 1 ,E 2 …E j-1 ,E k ,E j+1 …En ), where k = 1, 2...m; the flow equation is 1 , A 2 ……A m Linearize it and ignore higher-order terms.

[0122] S=S k +△S=f(X k +△X)=f(X k )+J k △X+......

[0123] Z=Z k +△Z=g(X k +△X)=g(X k )+G k △X+...... (11)

[0124] Where, △S=[△P,△Q] T , △X=[△σ,△U] T is the fluctuation of the corresponding variable; J k is the Jacobian matrix obtained from the last iteration, G k is the derivative of branch power with respect to the state variable.

[0125] So the relationship between state variables and active power can be obtained:

[0126]

[0127]

[0128] Where, T k and and is the sensitivity coefficient matrix.

[0129] From the above formula, we can get the corresponding injection volume for each segment △S j For △x i The influence coefficient of , thus obtaining the fluctuation value of the state variable when the photovoltaic output sample fluctuates around the k-th expected value

[0130]

[0131] In the formula, For the corresponding x i The sensitivity coefficient matrix within each segment;

[0132] When calculating system voltage fluctuations for different injected powers, it is only necessary to perform deterministic power flow calculations at the expected value of the segmented renewable energy output to obtain the value of the voltage variable. The fluctuation values ​​of the voltage variables corresponding to the remaining renewable energy output samples in the same segment can be derived according to the above linearization formula, thereby reducing the number of power flow calculations in risk assessment.

[0133] (III) Piecewise Linearization Based on K-means

[0134] In the piecewise linearization solution process, the new energy injection samples are segmented into average segments. The inability to obtain the optimal number of segments will inevitably affect the calculation efficiency and accuracy. The piecewise linearization improved based on K-means clustering technology comprehensively considers the impact of input random variables on output state variables. When clustering, the Euclidean distance between calculated sample points is used to further narrow the sample fluctuation range, and the selection of the division benchmark between uniform partitions is avoided, laying the foundation for high-precision linearization solution of output state variables, thereby improving the accuracy of output state variable solution.

[0135] The present invention obtains a large number of new energy output samples according to the analytical method and is expressed as W(w 1 ,w 2 ,…,w n ), the input random variables are represented as the output vectors of multiple renewable energy sources connected to the system.

[0136] K-means clustering technology is used to divide the distributed energy input random variable samples into multiple clusters. The K-means clustering process is divided into the following five steps.

[0137] Step (1): Determine the number of clusters

[0138] For the K-means clustering algorithm, the larger the value of the number of clusters K, the better the clustering effect. However, the time consumed is proportional to the value of K. Too large a value of K will result in too long calculation time. Therefore, selecting a suitable K value is very important to ensure clustering effect and calculation efficiency. In this paper, the weighted average radius is used to evaluate the clustering effect. The expression is:

[0139]

[0140] In the formula, p i is the ratio of the number of samples in the i-th cluster to the sample capacity; r i is the cluster radius of the ith cluster

[0141] The weighted average radius R will become smaller and smaller as the number of clusters K gradually increases, that is, the clustering effect is better, and when K reaches a certain value, the decreasing trend of R will slow down. Increasing the K value will no longer significantly improve the clustering effect. That is, the value at this time is selected as the K value, which consumes less time while ensuring the clustering effect. However, the selection of K value is not unique, and it can be weighed according to the actual clustering effect and the computational time efficiency requirements.

[0142] Step (2): Randomly select the initial cluster center

[0143] Randomly select the cluster center, the cluster center is defined as follows

[0144] M 0 =[m 1 ,m 2 ,...m j ,...,m k ,] T (15)

[0145]

[0146] Where: M 0 is the variable dimension of multidimensional distributed energy output power, representing all cluster centers, m j is the jth cluster center, i.e., the center of the jth cluster, K is the pre-set number of clusters, is the mean value corresponding to the i-th input random variable in the j-th cluster.

[0147] Step (3): Calculate the Euclidean distance from all points to each cluster center

[0148] The Euclidean distance between each sample point and the cluster center is calculated by formula (17):

[0149]

[0150] Where: d(l,j) is the Euclidean distance between the lth point and the jth cluster center; the lth point is represented by [x l1 , x l2 ,...x li ,...x ln ]; x li For X i The lth value;

[0151] (4) Calculate the mean of samples in each cluster and update the cluster center;

[0152] (5) Repeat (3) and (4) until the points in the cluster no longer change or the maximum number of repetitions is reached;

[0153] (IV) Risk Assessment Process for Distributed Energy Access to Distribution Networks

[0154] According to the above introduction, the flow chart of the optimized piecewise linear risk assessment calculation method based on k-means clustering is as follows. Figure 1 As shown:

[0155] Step 1: Input the historical data of the new energy output of the new energy device to be connected to the power distribution network system;

[0156] Step 2: Based on the historical data of renewable energy output input in step 1, correlation modeling is performed, and the sample data of renewable energy output with correlation is calculated by analytical method as the input random variable of the distribution network system;

[0157] Step 3: Use the K-means clustering algorithm to cluster the new energy output samples obtained in step 2 as variables to obtain multiple cluster sample clusters;

[0158] Step 4: Select a cluster sample cluster, perform deterministic power flow calculation on the cluster center sample, and perform linearized power flow solution on other sample points in the same cluster according to the cluster center state variables and Jacobian matrix. Use piecewise linearization method to calculate the distribution network system state variables corresponding to all new energy output samples until all cluster clusters are selected, and then go to step 5;

[0159] Step 5: Calculate the risk index corresponding to the distribution network system state variables calculated in step 4;

[0160] Step 6: Combine the new energy output sample data obtained in step 2 to calculate the probability density function of all risk index calculation results using statistical methods;

[0161] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.

Claims

1. A risk assessment method for distributed energy access to distribution networks. It is characterized in that The steps include: Step 1: Input the historical data of the new energy output of the new energy device to be connected to the power distribution network system; Step 2: Based on the historical data of renewable energy output input in step 1, correlation modeling is performed, and the sample data of renewable energy output with correlation is calculated by analytical method as the input random variable of the distribution network system; Step 3: Use the K-means clustering algorithm to cluster the new energy output samples obtained in step 2 as variables to obtain multiple cluster sample clusters; Step 4: Select a cluster sample cluster, perform deterministic power flow calculation on the cluster center sample, and perform linearized power flow solution on other sample points in the same cluster according to the cluster center state variables and Jacobian matrix. Use piecewise linearization method to calculate the distribution network system state variables corresponding to all new energy output samples until all cluster clusters are selected, and then go to step 5; Step 5: Calculate the risk index corresponding to the distribution network system state variables calculated in step 4; Step 6: Combine the new energy output sample data obtained in step 2 to calculate the probability density function of all risk index calculation results using statistical methods; The new energy device includes: a wind turbine and a solar photovoltaic power generation system; the new energy output historical data includes at least two sets of wind turbine data and at least two sets of solar photovoltaic power generation system data; the installed capacity of the wind turbine is 1MW; the installed capacity of the solar photovoltaic power generation system is 1.5MW; Step 2, performing correlation modeling based on the historical data of renewable energy output input in step 1, including establishing a probability distribution model of wind speed and establishing a photovoltaic sample model; The establishment of the probability distribution model of wind speed specifically includes the following steps: The probability distribution model of wind speed can reflect the characteristics of wind speed in wind farms, and the two-parameter Weibull distribution can reflect the actual wind speed in wind farms; The probability density function of the two-parameter Weibull distribution is as follows: Where: v is the wind speed, in m / s; k is the shape parameter, which can reflect the wind speed shape; c is the scale parameter, which can reflect the average wind speed; The power of wind turbines is affected by wind speed. According to the relevant wind speed data, relevant wind turbine output sample data can be obtained as the input random variable of the distribution network system. The function between the output power of the wind turbine and the wind speed is as follows: B=-Off ci (4) Where P wind is the output power of the wind turbine; P r is the rated output power of the wind turbine; v is the wind speed; v ci is the cut-in wind speed of the wind turbine; v r is the rated wind speed of the wind turbine; v co is the cut-out wind speed of the wind turbine; A and B are parameters; The establishment of a photovoltaic sample model specifically includes the following steps: Assume that there are n solar photovoltaic power generation systems in a certain area, w is a relevant photovoltaic historical data vector, for each vector w i Standardize as follows: Where: w i ′ is the pair w i The normalized vector, E wi w i The mean of the vector, w i The standard deviation of a vector; The photovoltaic historical data vector w is transformed into a random vector w′ after standardization. The correlation coefficient matrix Cw′ of the random vector w′ is a positive definite matrix, and the standardization process is a linear transformation that does not change the correlation between photovoltaic historical data. It is decomposed by the Cholesky decomposition method: G w' =G'G' T (6) Where: G′ is the lower triangular matrix, T is the transpose of the corresponding matrix; The random vector w′ can be transformed into a linear combination of the standard normal distribution vector Z′ as follows: w'=G'Z' (7) Where: Z′ is the standard normal distribution vector, which is the initial input variable of the random variable model; Define D as a diagonal matrix, its expression is as follows: Where: Nw is the number of random variables in the photovoltaic historical data vector w; According to formulas (5), (7) and (8), the relationship between the photovoltaic historical data vector w and the non-correlated standard normal distribution vector Z′ can be obtained as follows: Where: N = DG'; In summary, based on the relationship between the photovoltaic historical data vector w and the non-correlated standard normal distribution vector Z′ and the standard normal distribution random numbers with upper and lower limits determined by the installed capacity, it is possible to generate samples of photovoltaic power output with correlation; Step 3 specifically includes the following steps: According to step 2, the new energy output sample data is expressed as W(w 1 ,w 2 ,…,w n ), the input random variable is represented by the output vector of multiple renewable energy sources connected to the power distribution network system; Step 31: Determine the appropriate value of the number of clusters K The weighted average radius R is used to evaluate the clustering effect, and the expression is: In the formula, p i is the ratio of the number of samples in the i-th cluster to the sample capacity; r i is the cluster radius of the i-th cluster; Step 32: Randomly select initial cluster centers Randomly select the cluster center, the cluster center is defined as follows M 0 =[m 1 ,m 2 ,...m j ,...,m k ,] T (15) Where: M 0 is the multi-dimensional distributed energy output power variable, representing all cluster centers, m j is the jth cluster center, the center of the jth cluster, K is the pre-set number of clusters, is the average value corresponding to the i-th input random variable in the j-th cluster; Step 33: Calculate the Euclidean distance from all sample points to each cluster center The Euclidean distance between each sample point and the cluster center is calculated by formula (17): Where: d(l,j) is the Euclidean distance between the lth point and the jth cluster center; the lth point is represented by [x l1 , x l2 ,...x li ,...x ln ]; x li For X i The lth value; Step 34 calculates the mean of samples in each cluster and updates the cluster center; Step 35 repeats step 33 and step 34 until the sample points in the cluster no longer change or the maximum number of repetitions is reached; Step 4 specifically includes the following steps: The power flow equation of the distribution network system is in the following form: S=f(X) Z=g(X) (10) Where X is the state variable, S is the active power and reactive power injected by the node, and Z is the active power and reactive power transmitted by the branch; Assume that the jth node injects the distributed energy output power, and the jth node injection amount S is calculated according to the distributed energy output power. j Divide evenly into m segments, denoted as S j0 -S j1 , S j1 -S j2 ……S jm-1 -S jm ; Calculate the expectation of each segment and record it as E j1 、E j2 ……E jm ; The expectation of non-injection nodes is E 1 、E 2 ……E j-1 、E k 、E j+1 ……E n ; Remember A k =(E 1 ,E 2 …E j-1 ,E k ,E j+1 …E n ), where k = 1, 2...m; the flow equation is 1 , A 2 ……A m Linearize and ignore higher order terms S=S k +△S=f(X k +△X)=f(X k )+J k △X+...... Z=Z k +△Z=g(X k +△X)=g(X k )+G k △X+...... (11) Where, △S=[△P,△Q] T , △X=[△σ,△U] T is the fluctuation of the corresponding variable; J k is the Jacobian matrix obtained from the last iteration, G k is the derivative of branch power with respect to state variables; The relationship between state variables and active power is obtained: Where, T k and and is the sensitivity coefficient matrix; From formula (12), we can get the corresponding injection volume for each segment △S j For △x i The influence coefficient of is obtained, so as to obtain the fluctuation value of the state variable when the photovoltaic output sample fluctuates around the k-th expected value; In the formula, For the corresponding x i Matrix of sensitivity coefficients within each segment.