Typical source load scene generation method and device, equipment and medium

By constructing a joint distribution probability density function and a demand power probability density function, combined with Nataf transformation and an improved K-means clustering method, a typical output scenario that considers the spatiotemporal correlation of multiple wind farms and the source-load cross-correlation is generated, solving the existing problems The problem of low scene accuracy in technology improves the accuracy of source-load scenes and provides a more reliable basis for power system analysis.

CN118733949APending Publication Date: 2024-10-01GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410694352.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing source-load scenario generation methods ignore the spatio-temporal correlation of wind power output and source-charge coupling characteristics, resulting in low accuracy of generated scenarios. Moreover, traditional methods only target independent random variables and cannot effectively consider the spatio-temporal correlation and source-load correlation of multiple wind farms. Charge correlation.

Method used

By collecting historical wind power output data, we construct a joint distribution probability density function and a demand power probability density function, calculate the correlation coefficient matrix, and use Nataf transformation and improved K-means clustering method to generate a source-load timing series that considers the spatiotemporal correlation of multiple wind farms. Typical output scenarios of mutual correlation.

Benefits of technology

It improves the accuracy of the source-load scenario, provides a more reliable basis for the power balance analysis of the power system, and enhances the understanding and simulation capabilities of the spatio-temporal correlation between wind power output and load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733949A_ABST
    Figure CN118733949A_ABST
Patent Text Reader

Abstract

The invention discloses a typical source load scene generation method and device, equipment and a medium, and the method comprises the steps: collecting historical wind power output data, constructing a joint distribution probability density function through the historical wind power output data, constructing a demand power probability density function of an electric load, a thermal load and a gas load, and obtaining a typical source load scene; based on a joint distribution probability density function and a demand power probability density function, an LHS method is improved by using Nataf transformation and Cholesky decomposition to obtain a final sample matrix, and the final sample matrix is clustered by using an improved K-means clustering method to obtain a typical operation scene. According to the method, the typical output scene considering the source load correlation is constructed by considering the space-time correlation of the multiple wind power plants and the cross correlation of the source load time sequence, so that the accuracy of the generated source load scene is improved, and a basis is provided for electric power and electric quantity balance analysis of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of source-load output scenario generation, and in particular to a typical source-load scenario generation method, device, equipment and medium. Background Art

[0002] Wind power output and electricity and gas loads are closely related to ambient temperature, wind speed, and weather, and have characteristics such as randomness, volatility, and seasonality. The randomness and volatility of wind power output pose great challenges to power system planning. In geographically close regions, the weather has certain similarities, and there is also a certain correlation between sources and sources and between sources and loads in the same region, and the degree of this correlation varies with the geographical location and regional energy consumption characteristics.

[0003] Most of the existing source-load joint scenario generation methods only consider the probability distribution characteristics of a single wind power and construct a wind power output probability distribution model. The model constructed using this method ignores the temporal and spatial correlation of wind power output, and does not consider the autocorrelation of wind power time series and the dependence of output between multiple wind farms in the same region, resulting in a large difference in wind power at adjacent moments of a single wind farm or at a certain moment of multiple wind farms, and the output curve trend is inconsistent with the historical scenario; on the other hand, it ignores the mutual correlation between the multivariate wind power sequence and the load sequence, and does not consider the impact of source-load coupling characteristics on the generation of source-load temporal and spatial correlation scenarios. At the same time, the traditional Latin hypercube sampling (LHS) method used in existing studies only targets the case where random variables are independent of each other, resulting in low accuracy of the source-load scenario. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present invention provide a typical source-load scenario generation method, device, equipment and medium. By considering the spatiotemporal correlation of multiple wind farms and the cross-correlation of source-load time series, a typical output scenario taking into account the source-load correlation is constructed, thereby improving the accuracy of the generated source-load scenario, thereby providing a basis for the system to perform power and electricity balance analysis.

[0005] A first aspect of an embodiment of the present invention provides a method for generating a typical source-load scenario, the method comprising:

[0006] Collect historical wind power output data, use the historical wind power output data to construct a joint distribution probability density function, and construct the power demand probability density function of the electric load, thermal load and gas load;

[0007] Calculate the correlation coefficient of the historical wind power output data to obtain the first correlation coefficient matrix, and based on the joint distribution probability density function and the demand power probability density function, use the Nataf transformation to transform the historical wind power output data and the first correlation coefficient matrix respectively to obtain the standard normal vector and the second correlation coefficient matrix;

[0008] The second correlation coefficient matrix is ​​decomposed by Nataf to obtain a triangular matrix. Based on the triangular matrix, the standard normal vector is sampled and calculated to obtain the final sample matrix. The final sample matrix is ​​clustered using the improved K-means clustering method to obtain a typical operation scenario.

[0009] In a possible implementation of the first aspect, constructing a joint distribution probability density function using historical wind power output data includes:

[0010] The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is:

[0011]

[0012] In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data;

[0013] The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, where the expression of the Copula function equation is:

[0014]

[0015] In the formula, u and v represent the dynamic correlation coefficients of the Copula function equation;

[0016] According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, where the likelihood function is:

[0017] L(θ)=Σlnc(f(x1),f(x2),...,f(x n ))

[0018] In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm;

[0019] Substitute the standardized data into the evolution equation to obtain the dynamic Copula evolution equation, substitute the dynamic Copula evolution equation into the likelihood function, solve it using the maximum likelihood estimation method, and obtain the dynamic correlation coefficient sequence of each vine node;

[0020] The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated using the Copula function of each vine node. The expression of the joint distribution probability density function is:

[0021]

[0022] In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

[0023] In a possible implementation manner of the first aspect, constructing a probability density function of power requirements of an electric load, a thermal load, and a gas load includes:

[0024] Construct the power demand probability density function of the electric load, where the power demand probability density function of the electric load is:

[0025]

[0026]

[0027] Where P L and Q L are the active and reactive power of the electric load, μ P and μ Q are the mean active and reactive power of the load in a certain period of time, σ P and σ Q are the standard deviations of active and reactive power respectively;

[0028] Construct the power demand probability density function of the heat load, where the power demand probability density function of the heat load is:

[0029]

[0030] Where P H is the active power of heat load, μ H is the average active power of heat load in a certain period of time, σ H is the standard deviation of the active power of the heat load;

[0031] Construct the power demand probability density function of the gas load, where the power demand probability density function of the gas load is:

[0032]

[0033] Where P G is the active power of gas load, μ G is the average active power of gas load in a certain period of time, σ Gis the standard deviation of the active power of the gas load.

[0034] In a possible implementation manner of the first aspect, a calculation formula for the first correlation coefficient matrix is:

[0035]

[0036] In the formula, λ i and λ j They are historical wind power output data x i and historical wind power output data x j The standard deviation of cov(x i ,x j ) is the historical wind power output data x i and historical wind power output data x j The covariance of

[0037] The calculation formula for the standard normal vector is:

[0038] y i =F -1 (f i (x i ))i=1,2,...,N

[0039] In the formula, f i (·) is the cumulative distribution function, and F(·) is the cumulative distribution function of the standard normal distribution;

[0040] The second correlation coefficient matrix is:

[0041]

[0042] In the formula, ω i is the expected value of the corresponding variable, f(x i ,x j )dx i dx j and f(y i ,y j )dy i dy j is the first correlation coefficient matrix and the two-dimensional standard normal distribution probability density function of the first correlation coefficient matrix.

[0043] In a possible implementation manner of the first aspect, the second correlation coefficient matrix is ​​subjected to Nataf decomposition to obtain a triangular matrix, and based on the triangular matrix, the standard normal vector is sampled and calculated to obtain a final sample matrix, including:

[0044] Perform Cholesky decomposition on the second correlation coefficient matrix to obtain a triangular matrix, where the Cholesky decomposition process is:

[0045] ρ Y =DD T

[0046] In the formula, ρ Y is the second correlation coefficient matrix, D is a triangular matrix;

[0047] Sampling the standard normal vector, we get the sample matrix, and use the sample matrix to calculate the standard normal random variable, where the expression of the standard normal random variable is:

[0048]

[0049] In the formula, is the sample matrix, D is a triangular matrix, and K is a standard normal random variable;

[0050] According to the standard normal random variable, a sequence matrix is ​​obtained. Based on the sequence matrix, each row element in the sample matrix is ​​rearranged to obtain the final sample matrix.

[0051] In a possible implementation of the first aspect, the final sample matrix is ​​clustered using an improved K-means clustering method to obtain a typical operation scenario, including:

[0052] Select a data point in the final sample matrix as the initial cluster center, calculate the distance between the initial cluster center and each other data point, obtain multiple first distances, and select the corresponding data point whose first distance is greater than the preset distance as the new cluster center;

[0053] Calculate the distance between each data point and the initial cluster center and the new cluster center respectively to obtain a second distance, classify the data points whose second distance is less than the second preset value and their corresponding cluster centers into one category to obtain multiple categories, calculate the distance between each data point in each category and its corresponding cluster center to obtain the cluster center of each category, continue to calculate the distance between each data point and the cluster center of each category and divide them until the cluster center of each category no longer changes, and obtain the final cluster center;

[0054] The final cluster centers and the data points corresponding to the final cluster centers are determined as typical operation scenarios.

[0055] A second aspect of an embodiment of the present invention provides a typical source-load scenario generation device, the device comprising:

[0056] A collection module, used to collect historical wind power output data, use the historical wind power output data to construct a joint distribution probability density function, and construct a demand power probability density function of electric load, thermal load and gas load;

[0057] A construction module is used to calculate the correlation coefficient of historical wind power output data to obtain a first correlation coefficient matrix, and based on the joint distribution probability density function and the demand power probability density function, the historical wind power output data and the first correlation coefficient matrix are transformed using Nataf transformation to obtain a standard normal vector and a second correlation coefficient matrix;

[0058] The clustering module is used to perform Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix. Based on the triangular matrix, the standard normal vector is sampled and calculated to obtain the final sample matrix. The final sample matrix is ​​clustered using the improved K-means clustering method to obtain a typical operation scenario.

[0059] In a possible implementation of the second aspect, constructing a joint distribution probability density function using historical wind power output data includes:

[0060] The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is:

[0061]

[0062] In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data;

[0063] The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, where the expression of the Copula function equation is:

[0064]

[0065] In the formula, u and v represent the dynamic correlation coefficients of the Copula function equation;

[0066] According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, where the likelihood function is:

[0067] L(θ)=Σlnc(f(x1),f(x2),...,f(x n ))

[0068] In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm;

[0069] Substitute the standardized data into the evolution equation to obtain the dynamic Copula evolution equation, substitute the dynamic Copula evolution equation into the likelihood function, solve it using the maximum likelihood estimation method, and obtain the dynamic correlation coefficient sequence of each vine node;

[0070] The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated using the Copula function of each vine node. The expression of the joint distribution probability density function is:

[0071]

[0072] In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

[0073] A third aspect of an embodiment of the present invention provides a computing device, including:

[0074] Memory for storing computer programs;

[0075] A processor is used to implement the typical source-load scenario generation method of the first aspect when executing the computer program.

[0076] A fourth aspect of an embodiment of the present invention provides a non-temporary computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the typical source-load scenario generation method of the first aspect are implemented.

[0077] The embodiment of the present invention provides a method for collecting historical wind power output data, constructing a joint distribution probability density function using the historical wind power output data, constructing a demand power probability density function of electric load, heat load and gas load, calculating the correlation coefficient of the historical wind power output data based on the joint distribution probability density function and the demand power probability density function, obtaining a first correlation coefficient matrix, using Nataf transformation to transform the historical wind power output data and the first correlation coefficient matrix respectively, obtaining a standard normal vector and a second correlation coefficient matrix, performing Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix, sampling and calculating the standard normal vector based on the triangular matrix to obtain a final sample matrix, clustering the final sample matrix using an improved K-means clustering method to obtain a typical operation scenario, and the method constructs a typical output scenario taking into account the source-load correlation by considering the spatiotemporal correlation of multiple wind farms and the mutual correlation of source-load time series, thereby improving the accuracy of the generated source-load scenario, thereby providing a basis for the system to perform power and electricity balance analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 : A flow chart of an embodiment of a typical source-load scenario generation method provided by the present invention;

[0079] Figure 2 : A device structure block diagram of an embodiment of a typical source-load scenario generation method provided by the present invention. DETAILED DESCRIPTION

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

[0081] Please refer to Figure 1 , which is a flow chart of an embodiment of a typical source-load scenario generation method provided in an embodiment of the present invention, including steps S101 to S103.

[0082] S101. Collect historical wind power output data, and use the historical wind power output data to construct a joint distribution probability density function.

[0083] In this embodiment, the output data of the wind turbine generator set within a preset time is obtained by using sensor equipment, and then a joint distribution probability density function is constructed according to the historical wind power output data.

[0084] It should be noted that the preset time can be determined according to actual calculation needs.

[0085] In some embodiments, the step S101 of "using the historical wind power output data to construct a joint distribution probability density function" includes but is not limited to the following steps:

[0086] The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is:

[0087]

[0088] In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data;

[0089] The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, where the expression of the Copula function equation is:

[0090]

[0091] In the formula, u and v represent the dynamic correlation coefficients of the Copula function equation;

[0092] According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, where the likelihood function is:

[0093] L(θ)=∑lnc(f(x1),f(x2),…,f(x n ))

[0094] In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm;

[0095] Substitute the standardized data into the evolution equation to obtain the dynamic Copula evolution equation, substitute the dynamic Copula evolution equation into the likelihood function, solve it using the maximum likelihood estimation method, and obtain the dynamic correlation coefficient sequence of each vine node;

[0096] The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated using the Copula function of each vine node. The expression of the joint distribution probability density function is:

[0097]

[0098] In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

[0099] Specifically, a joint distribution probability density function is constructed based on the historical output data of each wind farm, the high-dimensional dynamic vine Copula theory, and the output distribution of each wind farm. First, based on the historical wind power output data x1, x2, …, x n Calculate the kernel density estimation function and obtain the marginal distribution function of each wind farm:

[0100]

[0101] In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data;

[0102] Normalize the original time series data to obtain the input sequence w1,w2,…,w n , the input sequence w1,w2,…,w nSubstitute the Copula function equation of each vine node to establish a mapping relationship between the dynamic correlation coefficient and the Copula function. The expression of the Copula function equation is:

[0103]

[0104] Wherein, u and v represent the dynamic correlation coefficients of the Copula function equation;

[0105] According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, wherein the likelihood function is:

[0106] L(θ)=∑lnc(f(x1),f(x2),…,f(x n ))

[0107] In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm;

[0108] The input sequence w1,w2,…,w n Substituting into the evolution equation, we get the dynamic Copula evolution equation, thus establishing α, β, ω and the correlation coefficient θ C,t The mapping relationship of , the correlation coefficient expression is:

[0109]

[0110] In the formula, u t-j and v t-j is the cumulative probability of the distribution variable at time tj, α, β, ω are the parameters to be estimated for the dynamic Copula evolution equation, is the logistic function.

[0111] The evolution equation is a restricted ARMA (1,10) model, the purpose of which is to ensure that θ C,t ∈(-1,1);θ t-1 is the dynamic correlation coefficient at time t-1.

[0112] Substitute the evolution equation into the likelihood function and use the maximum likelihood estimation method to obtain α, β, and ω to calculate the dynamic correlation coefficient sequence θ of each vine node. C,t , where the solution formula is:

[0113]

[0114] Where L(θ) represents the likelihood function, and argmax(*) is the function for finding the parameters of the function.

[0115] The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated using the Copula function of each vine node. The expression of the joint distribution probability density function is:

[0116]

[0117] In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

[0118] In some embodiments, the step S101 of “constructing the power demand probability density function of the electric load, the heat load and the gas load” includes but is not limited to the following steps:

[0119] Construct a power demand probability density function of the electric load, wherein the power demand probability density function of the electric load is:

[0120]

[0121]

[0122] Where P L and Q L are the active and reactive power of the electric load, μ P and μ Q are the mean active and reactive power of the load in a certain period of time, σ P and σ Q are the standard deviations of active and reactive power respectively;

[0123] Construct a probability density function of the power demand of the heat load, wherein the probability density function of the power demand of the heat load is:

[0124]

[0125] Where P H is the active power of heat load, μ H is the average active power of heat load in a certain period of time, σ H is the standard deviation of the active power of the heat load;

[0126] Construct a probability density function of the power demand of the gas load, wherein the probability density function of the power demand of the gas load is:

[0127]

[0128] Where P G is the active power of gas load, μ G is the average active power of gas load in a certain period of time, σG is the standard deviation of the active power of the gas load.

[0129] Specifically, a probability density function of the power demand of the electric load is constructed, where the probability density function of the power demand of the electric load is:

[0130]

[0131]

[0132] Where P L and Q L are the active and reactive power of the electric load, μ P and μ Q are the mean active and reactive power of the load in a certain period of time, σ P and σ Q are the standard deviations of active and reactive power respectively;

[0133] Construct the power demand probability density function of the heat load, where the power demand probability density function of the heat load is:

[0134]

[0135] Where P H is the active power of heat load, μ H is the average active power of heat load in a certain period of time, σ H is the standard deviation of the active power of the heat load;

[0136] Construct the power demand probability density function of the gas load, where the power demand probability density function of the gas load is:

[0137]

[0138] Where P G is the active power of gas load, μ G is the average active power of gas load in a certain period of time, σ G is the standard deviation of the active power of the gas load.

[0139] S102. Calculate the correlation coefficient of the historical wind power output data to obtain a first correlation coefficient matrix. Based on the joint distribution probability density function and the demand power probability density function, use Nataf transformation to transform the historical wind power output data and the first correlation coefficient matrix respectively to obtain a standard normal vector and a second correlation coefficient matrix.

[0140] In this embodiment, a multi-wind farm joint output model is constructed based on the vine Copula theory and the dynamic Copula theory, and the demand probability model of electric load, gas load and heat load is constructed at the same time, and the spatiotemporal correlation model between different wind farms and wind farms and loads is obtained. On the basis of the constructed multivariate heterogeneous source-load probability model, the LHS method is improved by using Nataf transformation and Cholesky decomposition to construct a sample matrix that considers the spatiotemporal correlation of multiple wind farms and the source-load mutual correlation, and analyzes the correlation between sources and loads. First, the correlation coefficient of the historical wind power output data is calculated to obtain the correlation coefficient matrix. Then, based on the joint distribution probability density function and the demand power probability density function, the historical wind power output data and the correlation coefficient matrix are transformed using Nataf transformation respectively to obtain the standard normal vector and the transformed correlation coefficient matrix.

[0141] It is worth noting that the first correlation coefficient matrix is ​​a correlation coefficient matrix obtained by calculating the correlation coefficients of historical wind power output data, and the second correlation coefficient matrix is ​​a correlation coefficient matrix obtained by using Nataf transformation.

[0142] In some embodiments, the "first correlation coefficient matrix" in step S102 includes but is not limited to the following steps:

[0143] The calculation formula of the first correlation coefficient matrix is:

[0144]

[0145] In the formula, λ i and λ j They are historical wind power output data x i and historical wind power output data x j The standard deviation of cov(x i ,x j ) is the historical wind power output data x i and historical wind power output data x j The covariance of

[0146] The calculation formula of the standard normal vector is:

[0147] y i =F -1 (f i (x i ))i=1,2,…,N

[0148] In the formula, f i (·) is the cumulative distribution function, and F(·) is the cumulative distribution function of the standard normal distribution;

[0149] The second correlation coefficient matrix is:

[0150]

[0151] In the formula, ω i is the expected value of the corresponding variable, f(x i ,x j )dx i dx j and f(y i ,y j )dy i dy j is the first correlation coefficient matrix and the two-dimensional standard normal distribution probability density function of the first correlation coefficient matrix.

[0152] Specifically, for an N-dimensional input variable X = [x1, x2, ..., x N ] T , where x i (i=1,2,…,N) is the i-th element in X, and its correlation coefficient matrix is ​​ρ X =(ρ x,ij ) N×N , then the correlation coefficient ρ x,ij for:

[0153]

[0154] In the formula, λ i and λ j The variables x i and x j The standard deviation of cov(x i ,x j ) is the variable x i and x j The covariance of .

[0155] Convert X to a standard normal vector Y=[y1,y2,…,y N ] T , where the i-th element y i The calculation formula is:

[0156] y i =F -1 (f i (x i ))i=1,2,…,N

[0157] In the formula, f i (·) is the cumulative distribution function, and F(·) is the cumulative distribution function of the standard normal distribution.

[0158] Let the correlation coefficient matrix of Y be ρ Y =(ρ y,ij ) N×N , the correlation coefficient matrix ρ is transformed by Natafx,ij , and convert it to get ρ y,ij , the correlation matrix of the standard normal vector is:

[0159]

[0160] In the formula, ω i is the expected value of the corresponding variable, f(x i ,x j )dx i dx j and f(y i ,y j )dy i dy j is the first correlation coefficient matrix and the two-dimensional standard normal distribution probability density function of the first correlation coefficient matrix.

[0161] S103. Perform Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix. Based on the triangular matrix, sample and calculate the standard normal vector to obtain a final sample matrix. Use the improved K-means clustering method to cluster the final sample matrix to obtain a typical operation scenario.

[0162] In this embodiment, the correlation matrix of the standard normal vector is subjected to Nataf decomposition to obtain a triangular matrix. Based on the triangular matrix, the standard normal vector is sampled and calculated to obtain a final sample matrix. The final sample matrix is ​​clustered using an improved K-means clustering method to obtain a typical operation scenario.

[0163] In some embodiments, step S103 of "performing Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix, and based on the triangular matrix, sampling and calculating the standard normal vector to obtain a final sample matrix" includes but is not limited to the following steps:

[0164] Perform Cholesky decomposition on the second correlation coefficient matrix to obtain a triangular matrix, where the Cholesky decomposition process is:

[0165] ρ Y =DD T

[0166] In the formula, ρ Y is the second correlation coefficient matrix, D is a triangular matrix;

[0167] Sampling the standard normal vector, we get the sample matrix, and use the sample matrix to calculate the standard normal random variable, where the expression of the standard normal random variable is:

[0168]

[0169] In the formula, is the sample matrix, D is a triangular matrix, and K is a standard normal random variable;

[0170] According to the standard normal random variable, a sequence matrix is ​​obtained. Based on the sequence matrix, each row element in the sample matrix is ​​rearranged to obtain the final sample matrix.

[0171] Specifically, for the correlation coefficient matrix ρ Y Perform Cholesky decomposition to obtain the lower triangular matrix D. The Cholesky decomposition process is:

[0172] ρ Y =DD T

[0173] In the formula, ρ Y is the second correlation coefficient matrix, D is a triangular matrix;

[0174] Sample Y and get its corresponding sample matrix The standard normal random variable K is calculated from the generated sample matrix, where the expression of the standard normal random variable is:

[0175]

[0176] In the formula, is the sample matrix, D is a triangular matrix, and K is a standard normal random variable;

[0177] From the matrix K, we get the order matrix L s , L s Each row of is a permutation of integers from 1 to M (M is the number of samples), corresponding to the order of the elements in the corresponding row of matrix K. Each row of the matrix is ​​ordered according to L s After rearranging, we can get the final sample matrix O.

[0178] In some embodiments, the step S103 of "clustering the final sample matrix using the improved K-means clustering method to obtain a typical operation scenario" includes but is not limited to the following steps:

[0179] Select a data point in the final sample matrix as the initial cluster center, calculate the distance between the initial cluster center and each other data point, obtain multiple first distances, and select the corresponding data point whose first distance is greater than the preset distance as the new cluster center;

[0180] Calculate the distance between each data point and the initial cluster center and the new cluster center respectively to obtain a second distance, classify the data points whose second distance is less than the second preset value and their corresponding cluster centers into one category to obtain multiple categories, calculate the distance between each data point in each category and its corresponding cluster center to obtain the cluster center of each category, continue to calculate the distance between each data point and the cluster center of each category and divide them until the cluster center of each category no longer changes, and obtain the final cluster center;

[0181] The final cluster centers and the data points corresponding to the final cluster centers are determined as typical operation scenarios.

[0182] Specifically, the K-means clustering method using improved cluster center selection includes the following steps:

[0183] Step 1: Randomly select a point in the sample matrix O as the initial cluster center.

[0184] Step 2: Calculate the distance d between the initial cluster center and the remaining points ij , preferably d ij The larger points serve as new cluster centers.

[0185] Step 3: Calculate the distance between each sample and each cluster center, and classify the sample and the center closest to it into one category. Calculate the distance between the sample and the cluster center again according to the category, and re-determine the cluster center.

[0186] Step 4: Repeat step 3 until the position of the cluster center no longer changes, and obtain a typical operation scenario that considers the correlation between multiple sources and loads.

[0187] This method can be used to generate a typical source-load scenario that takes into account the spatiotemporal correlation and source-load correlation of multiple wind farms. The temporal correlation of the source-load itself and the spatial correlation between the sources and loads in the resulting scenario are better fitted, and the generated source-load scenario has higher accuracy, providing ideas for the complementary and coordinated planning of "source-grid-load" and safe and efficient resource utilization.

[0188] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0189] In one embodiment, Figure 2 As shown, it shows a block diagram of a typical source-load scenario generation device 200 provided in an embodiment of the present application, including a collection module 201, a construction module 202 and a clustering module 203, wherein:

[0190] The acquisition module is used to collect historical wind power output data, use the historical wind power output data to construct a joint distribution probability density function, and construct the power demand probability density function of the electric load, thermal load and gas load;

[0191] A construction module is used to calculate the correlation coefficient of historical wind power output data to obtain a first correlation coefficient matrix, and based on the joint distribution probability density function and the demand power probability density function, the historical wind power output data and the first correlation coefficient matrix are transformed using Nataf transformation to obtain a standard normal vector and a second correlation coefficient matrix;

[0192] The clustering module is used to perform Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix. Based on the triangular matrix, the standard normal vector is sampled and calculated to obtain the final sample matrix. The final sample matrix is ​​clustered using the improved K-means clustering method to obtain a typical operation scenario.

[0193] In one embodiment, the joint distribution probability density function is constructed using historical wind power output data, including:

[0194] The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is:

[0195]

[0196] In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data;

[0197] The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, where the expression of the Copula function equation is:

[0198]

[0199] In the formula, u and v represent the dynamic correlation coefficients of the Copula function equation;

[0200] According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, where the likelihood function is:

[0201] L(θ)=∑lnc(f(x1),f(x2),…,f(x n ))

[0202] In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm;

[0203] Substitute the standardized data into the evolution equation to obtain the dynamic Copula evolution equation, substitute the dynamic Copula evolution equation into the likelihood function, solve it using the maximum likelihood estimation method, and obtain the dynamic correlation coefficient sequence of each vine node;

[0204] The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated using the Copula function of each vine node. The expression of the joint distribution probability density function is:

[0205]

[0206] In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

[0207] The specific implementation of the typical source-load scenario generation device is basically the same as the specific implementation of the typical source-load scenario generation method described above, and will not be repeated here.

[0208] In one embodiment of the present application, a computing device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and the above steps are implemented when the processor executes the computer program; the computing device provided in the embodiment of the present application has an implementation principle and technical effects similar to those of the above method embodiment, and will not be repeated here.

[0209] In one embodiment of the present application, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and the above steps are also implemented when the computer program is executed by a processor; the computer-readable storage medium provided in this embodiment has an implementation principle and technical effects similar to those of the above-mentioned method embodiment, and will not be repeated here.

[0210] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0211] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0212] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A typical source-load scenario generation method, characterized in that: include: Collect historical wind power output data, use the historical wind power output data to construct a joint distribution probability density function, and construct a demand power probability density function of electric load, thermal load and gas load; Calculate the correlation coefficient of the historical wind power output data to obtain a first correlation coefficient matrix, and based on the joint distribution probability density function and the demand power probability density function, use Nataf transformation to transform the historical wind power output data and the first correlation coefficient matrix respectively to obtain a standard normal vector and a second correlation coefficient matrix; The second correlation coefficient matrix is ​​subjected to Nataf decomposition to obtain a triangular matrix. Based on the triangular matrix, the standard normal vector is sampled and calculated to obtain a final sample matrix. The final sample matrix is ​​clustered using an improved K-means clustering method to obtain a typical operation scenario.

2. The typical source-load scenario generation method according to claim 1, characterized in that: The method of constructing a joint distribution probability density function using the historical wind power output data includes: The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is: In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data; The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, wherein the expression of the Copula function equation is: Wherein, u and v represent the dynamic correlation coefficients of the Copula function equation; According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, wherein the likelihood function is: L(θ)=Σlnc(f(x1),f(x2),…,f(x n )) In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm; Substituting the standardized data into the evolution equation to obtain a dynamic Copula evolution equation, substituting the dynamic Copula evolution equation into the likelihood function, solving it using the maximum likelihood estimation method, and obtaining a dynamic correlation coefficient sequence of each vine node; The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated by using the Copula function of each vine node, wherein the expression of the joint distribution probability density function is: In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

3. The typical source-load scenario generation method according to claim 1, characterized in that: The method of constructing the power demand probability density function of the electric load, the heat load and the gas load includes: Construct a power demand probability density function of the electric load, wherein the power demand probability density function of the electric load is: Where P L and Q L are the active and reactive power of the electric load, μ P and μ Q are the mean active and reactive power of the load in a certain period of time, σ P and σ Q are the standard deviations of active and reactive power respectively; Construct a probability density function of the power demand of the heat load, wherein the probability density function of the power demand of the heat load is: Where P H is the active power of thermal load, μ H is the average active power of heat load in a certain period of time, σ H is the standard deviation of the active power of the heat load; Construct a probability density function of the power demand of the gas load, wherein the probability density function of the power demand of the gas load is: Where P G is the active power of gas load, μ G is the average active power of gas load in a certain period of time, σ G is the standard deviation of the active power of the gas load.

4. The typical source-load scenario generation method according to claim 1, characterized in that: The calculation formula of the first correlation coefficient matrix is: In the formula, λ i and λ j They are historical wind power output data x i and historical wind power output data x j The standard deviation of cov(x i ,x j ) is the historical wind power output data x i and historical wind power output data x j The covariance of The calculation formula of the standard normal vector is: y i =F -1 (f i (x i )) i=1,2,…,N In the formula, f i (·) is the cumulative distribution function, and F(·) is the cumulative distribution function of the standard normal distribution; The second correlation coefficient matrix is: In the formula, ω i is the expected value of the corresponding variable, f(x i ,x j )dx i dx j and f(y i ,y j )dy i dy j is the first correlation coefficient matrix and the two-dimensional standard normal distribution probability density function of the first correlation coefficient matrix.

5. The typical source-load scenario generation method according to claim 1, characterized in that: The step of performing Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix, and sampling and calculating the standard normal vector based on the triangular matrix to obtain a final sample matrix includes: Perform Cholesky decomposition on the second correlation coefficient matrix to obtain a triangular matrix, wherein the Cholesky decomposition process is: r Y =DD T In the formula, ρ Y is the second correlation coefficient matrix, D is a triangular matrix; The standard normal vector is sampled to obtain a sample matrix, and a standard normal random variable is calculated using the sample matrix, wherein the expression of the standard normal random variable is: In the formula, is the sample matrix, D is a triangular matrix, and K is a standard normal random variable; A sequence matrix is ​​obtained according to the standard normal random variable, and each row element in the sample matrix is ​​rearranged based on the sequence matrix to obtain a final sample matrix.

6. The typical source-load scenario generation method according to claim 1, characterized in that: The improved K-means clustering method is used to cluster the final sample matrix to obtain a typical operation scenario, including: Selecting a data point in the final sample matrix as an initial cluster center, calculating the distance between the initial cluster center and each other data point to obtain a plurality of first distances, and selecting the corresponding data point whose first distance is greater than a preset distance as a new cluster center; Calculate the distances between each data point and the initial cluster center and the new cluster center respectively to obtain a second distance, classify the data points whose second distance is less than a second preset value and their corresponding cluster centers into one category to obtain multiple categories, calculate the distances between each data point and its corresponding cluster center in each category to obtain the cluster center of each category, continue to calculate the distances between each data point and the cluster center of each category and perform classification until the cluster center of each category no longer changes, and obtain the final cluster center; The final cluster center and the data points corresponding to the final cluster center are determined as typical operation scenarios.

7. A typical source-load scenario generation device, characterized in that: include: A collection module, used to collect historical wind power output data, use the historical wind power output data to construct a joint distribution probability density function, and construct a demand power probability density function of electric load, thermal load and gas load; A construction module is used to calculate the correlation coefficient of the historical wind power output data to obtain a first correlation coefficient matrix, and based on the joint distribution probability density function and the demand power probability density function, the historical wind power output data and the first correlation coefficient matrix are transformed using Nataf transformation to obtain a standard normal vector and a second correlation coefficient matrix; A clustering module is used to perform Nataf decomposition on the second correlation coefficient matrix to obtain a triangular matrix, sample and calculate the standard normal vector based on the triangular matrix to obtain a final sample matrix, and cluster the final sample matrix using an improved K-means clustering method to obtain a typical operation scenario.

8. The typical source-load scene generation device according to claim 7, characterized in that: The method of constructing a joint distribution probability density function using the historical wind power output data includes: The kernel density estimation function is calculated using historical wind power output data to obtain the marginal distribution function of each wind farm, where the marginal distribution function is: In the formula, K h is the kernel function, T is the sequence length, x t The original time series data of historical wind power output data; The time series data is standardized to obtain standardized data, and the standardized data is input into the Copula function of each vine node to obtain the Copula function equation of each vine node, wherein the expression of the Copula function equation is: Wherein, u and v represent the dynamic correlation coefficients of the Copula function equation; According to the Copula function equation of each vine node, a likelihood function based on the dynamic correlation coefficient is constructed, wherein the likelihood function is: L(θ)=Σlnc(f(x1),f(x2),...,f(x n )) In the formula, L(θ) represents the likelihood function, x n Represents historical wind power output data, f(x n ) represents the marginal distribution function of each wind farm; Substituting the standardized data into the evolution equation to obtain a dynamic Copula evolution equation, substituting the dynamic Copula evolution equation into the likelihood function, solving it using the maximum likelihood estimation method, and obtaining a dynamic correlation coefficient sequence of each vine node; The Copula function of each vine node is calculated according to the dynamic correlation coefficient sequence of each vine node, and the joint distribution probability density function is generated by using the Copula function of each vine node, wherein the expression of the joint distribution probability density function is: In the formula, x i Represents historical wind power output data, f(x k ) represents the marginal distribution function of each wind farm.

9. A computing device, characterized in that include: Memory for storing computer programs; A processor, configured to implement the typical source-load scenario generation method as described in any one of claims 1 to 6 when executing the computer program.

10. A non-transitory computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the typical source-load scenario generation method as described in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Source-load time sequence scene construction method, device and equipment

    CN121233984A

  • A source-load time series scenario construction method, device and equipment

    CN121233984B

  • New energy space-time scene generation method and system and computer equipment

    CN122818728A