Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method and a system for solving a power system scheduling model containing renewable energy, and aims to solve the problems that the existing joint opportunity constraint method is long in time consumption when solving a nonlinear mixed integer model with more dimensions, and brings inconvenience to scheduling personnel when being applied to actual power system scheduling.
In order to achieve the above object, in a first aspect, the present invention provides a method for solving a scheduling model of a power system including renewable energy, including the following steps:
the output of renewable energy sources is taken as a random variable, and joint opportunity constraint of the power system is established; the power system comprises a plurality of renewable energy sources, the random variable is multidimensional, and each dimension of data corresponds to the output of one renewable energy source; the joint opportunity constraint is a constraint relation in a multi-region power system scheduling model, and the power system scheduling model determines scheduling schemes of thermal power generating units and tie lines in each time period by taking the minimum total operating cost of a power system as a target;
determining historical data of corresponding random variables according to historical data of renewable energy output; the renewable energy output corresponding to one historical data of the random variable is used as a scene, the probability of each scene is determined according to the repeated condition of each scene in all the scenes, and the set of different scenes is used as the scene set of the random variable;
taking historical data of the random variable as a sample, and determining the cumulative distribution function of the random variable by adopting self-adaptive kernel density estimation based on the sample of the random variable;
determining an inverse function of the corresponding accumulative distribution function based on the accumulative distribution function of the renewable energy output, and substituting the single-opportunity constraint confidence coefficient into the inverse function to determine a confidence coefficient quantile point; the single opportunity constraint confidence is determined from a risk level of the joint opportunity constraint;
based on the confidence quantile, dividing an approximate scene which does not influence the final result of the mixed integer programming solution in the scene set and an effective scene to obtain the scene set of which each dimension of random variables is subjected to bundle processing; synthesizing the approximate scenes in the processed scene set into a bundle, so that the bundle and the effective scenes in the processed scene set jointly form a bundle scene set of random variables;
solving to obtain a target effective scene value meeting the confidence coefficient requirement by taking the minimum sum of all dimensional scene values of a bundle scene set generated by the output of renewable energy as a target function;
and converting the joint opportunity constraint of the power system into a deterministic constraint by using the target effective scene value, and solving a power system scheduling model corresponding to the deterministic constraint.
Further, the method for establishing the joint opportunity constraint of the power system by using the output of the renewable energy as a random variable specifically comprises the following steps:
the general expression of the joint opportunity constraint is:
P G a vector representing the output of the thermal power generating unit, y represents a vector corresponding to a parameter other than the renewable energy output and the thermal power generating unit output, P R Is an uncertain renewable energy output variable, which is a K-dimensional random variable, g k (P G Y) is a constraint equation containing the output of the thermal power generating unit, g k (P G ,y)≥-P R To constrain events, (1- α) JCC ) Is the joint opportunity constraint confidence, α JCC Is the risk level of the joint opportunity constraint, Pr {. represents the probability of satisfaction of the constraint event, and the joint opportunity constraint requires that the probability of satisfaction of K inequalities inside Pr {. is greater than or equal to (1-alpha) JCC )。
Further, the scene set of the random variables is determined by the following steps:
acquiring or updating the historical data of the output of the renewable energy sources, and acquiring a scene set capable of representing the randomness of the output of the renewable energy sources according to the historical data; let K dimension random variable history data
The resulting limited set of scenes is C,
the method is a scene in the historical data of the output of the renewable energy, wherein si belongs to C,
performing statistical clustering on the same scene in the scene set for the output scene value of the kth-dimension renewable energy in the sih scene to obtain a new scene set S, wherein S belongs to S,
for a new scenario in the renewable energy contribution history, wherein
The output scene value of the kth dimension renewable energy source of the S scene in the new scene set S, wherein the S scene comprises an initial scene d
si Is M
s ;
If the total number of scenes in C is Sn, then scene d in S
s Probability P of
s Comprises the following steps: p
s =M
s /Sn s∈S;
And acquiring a scene set S generated by the renewable energy output historical data and the corresponding probability of each scene in the scene set S.
Further, the sample based on the random variable determines the cumulative distribution function of the random variable by adopting adaptive kernel density estimation, specifically:
calculating the fixed bandwidth of the adaptive kernel density estimation by adopting the principle of minimum mean integral square error;
calculating cumulative distribution function of renewable energy output based on the fixed bandwidth
Wherein, N is the number of samples,
is the kernel function, H is the fixed bandwidth under the kernel function,
cumulative distribution function for fixed bandwidth, x is an independent variable representing renewable energy output, x
i The ith sample value of the renewable energy output is obtained;
dividing N samples into M intervals, continuously iterating the intervals in an increasing mode from small to large, and determining the number of the intervals by judging whether the fitting error is smaller than an error threshold value;
calculating a position parameter for each interval
Wherein, the j, l interval is numbered,
an abscissa corresponding to the median of the sample cumulative distribution of the interval l; the sample bandwidth of each interval becomes H × H
j Beta is the sensitivity coefficient, 0<β<1;
Self-adaptive bandwidth kernel density estimation is carried out by utilizing the position parameter of each interval, and the probability density function of the output of the renewable energy is calculated
Wherein, N
j I is the number of samples in the interval j, i is the number of sample points in the interval j,
computing probability density functions for kernel estimation
With the true distribution f (x)
i ) Mean square error MSE of (a):
the larger the partition number M is, the finer the bandwidth correction is, and the lower the error of the overall fitting is; by setting the error threshold MSE
T When MSE>MSE
R Then, the number M of the intervals is continuously increased, the step length of the intervals is increased, and the position parameters and the probability density function are repeatedly calculated until MSE<MSE
T Up to or up to the maximumThe number of partitions is the maximum number of partitions is the number of samples, and the number of intervals obtained at the moment is used as the number of intervals which are determined finally;
after the interval number is finally determined, the renewable energy output P is calculated by utilizing interval self-adaptive bandwidth kernel density estimation
R The cumulative distribution function of (1) is written as
x
k And outputting the k-dimension renewable energy.
Further, the bundle scene set of the random variable is determined by the following steps:
calculating the inverse function of the cumulative distribution function of the renewable energy output of each dimension, and recording as
Constraining each single opportunity to confidence 1-alpha
ICC Substituting into the inverse function of the cumulative distribution function to obtain confidence quantile points
Quantile based on confidence
Dividing an approximate scene which does not influence the final result of the mixed integer programming solution in the original scene set and an effective scene, and respectively processing each dimension random variable, wherein the processing method comprises the following steps:
thus, the s-th scene of each dimension of random variable after bundle preprocessing is obtained;
after the scenes of all the dimensional random variables are divided, a plurality of approximate scenes before a confidence quantile point and an effective scene set after the confidence quantile point are formed, and the approximate scenes are gathered into a new bundle, wherein the method comprises the following steps:
wherein s is
b Representing bundle of renewable energy output scenes, wherein Sn is the total number of scenes of the original scene set, s
e Representing the effective scene set of renewable energy output, and the two jointly form a new bundle scene set s
B Each scene having a probability of
Wherein,
representing an ith scene of the bundle scene set, wherein each scene comprises k-dimensional renewable energy output scene values; bn represents the number of scenes constituting a bundle; bn represents the number of scenes that will newly generate the bundle scene set, and Sn is Bn + Bn-1.
Further, the solving to obtain a target effective scene set meeting the confidence requirement specifically includes:
the objective function is set up as follows:
the objective function requires that the sum of the dimensions of the scene generated by the renewable energy output is minimal,
is the k-dimension target scene value;
the constraints of the above objective function are as follows:
representing a kth dimension scene value in the ith scene of the Bundle scene set, and requiring that a target scene value is larger than any Bundle scene value meeting the condition;
the sum of the corresponding probabilities of all scenes in the scene set is required to be 1;
is a binary variable, and
with historical scenes
Correspondingly, each history scene
All have corresponding thereto
Requiring the ith target value to be greater than the product of the binary variable and the historical scene;
substituting the target function into a solver to solve based on the constraint condition to obtain a target effective scene value meeting the confidence coefficient requirement
Further, the solving of the power system model specifically includes:
the target effective scene value can satisfy the condition that the joint opportunity constraint is established under a certain confidence coefficient condition, so that an uncertain model corresponding to the original joint opportunity constraint is converted into a deterministic model, wherein the obtained target scene value is utilized
The resulting transformation opportunity constraints are:
and solving the deterministic model by using a solver to obtain the optimal value of each decision variable.
In a second aspect, the present invention provides a power system scheduling model solving system including renewable energy, including:
the joint opportunity constraint model establishing unit is used for establishing joint opportunity constraint of the power system by taking the output of the renewable energy as a random variable; the power system comprises a plurality of renewable energy sources, the random variable is multidimensional, and each dimension of data corresponds to the output of one renewable energy source; the joint opportunity constraint is a constraint relation in a multi-region power system scheduling model, and the power system scheduling model determines scheduling schemes of thermal power generating units and tie lines in each time period by taking the minimum total operating cost of a power system as a target;
the random variable scene set determining unit is used for determining historical data of corresponding random variables according to historical data of renewable energy output; the renewable energy output corresponding to one historical data of the random variable is used as a scene, the probability of each scene is determined according to the repeated condition of each scene in all the scenes, and the set of different scenes is used as the scene set of the random variable;
the cumulative distribution function determining unit is used for taking historical data of the random variable as a sample and determining the cumulative distribution function of the random variable by adopting self-adaptive kernel density estimation based on the sample of the random variable;
the confidence quantile determining unit is used for determining an inverse function of the corresponding accumulative distribution function based on the accumulative distribution function of the renewable energy output and substituting the single-opportunity constraint confidence into the inverse function to determine a confidence quantile; the single opportunity constraint confidence is determined from a risk level of the joint opportunity constraint;
a bundle scene set determining unit, configured to divide an approximate scene that does not affect a final result of mixed integer programming solution from an effective scene in the scene set based on the confidence quantile, to obtain a scene set in which the random variables of each dimension are subjected to bundle processing; synthesizing the approximate scenes in the processed scene set into a bundle, so that the bundle and the effective scenes in the processed scene set jointly form a bundle scene set of random variables;
the effective scene set determining unit is used for solving to obtain a target effective scene value meeting the confidence coefficient requirement by taking the minimum sum of all dimensional scene values of the bundle scene set generated by the renewable energy output as a target function;
and the deterministic model solving unit is used for converting the joint opportunity constraint of the power system into a deterministic constraint by using the target effective scene value and solving the power system scheduling model corresponding to the deterministic constraint.
Further, the bundle scene set determining unit determines a bundle scene set of the random variable by: calculating the inverse function of the cumulative distribution function of the renewable energy output of each dimension, and recording as
Constraining each single opportunity to confidence 1-alpha
ICC Substituting into the inverse function of the cumulative distribution function to obtain confidence quantile points
Quantile based on confidence
Dividing an approximate scene which does not influence the final result of the mixed integer programming solution in the original scene set and an effective scene, and respectively processing each dimension random variable, wherein the processing method comprises the following steps:
thus, s scenes of random variables of each dimension after bundle preprocessing are obtained; after the scenes of the random variables of each dimension are divided, a plurality of approximate scenes before the confidence quantile and an effective scene set after the confidence quantile are formed, and the approximate scenes are gathered into a new bundle, wherein the method comprises the following steps:
wherein s is
b Representing bundle of renewable energy output scenes, wherein Sn is the total number of scenes of the original scene set, s
e Representing the effective scene set of renewable energy output, and the two jointly form a new bundle scene set s
B Each scene having a probability of
Wherein,
representing an ith scene of the bundle scene set, wherein each scene comprises k-dimensional renewable energy output scene values; bn represents the number of scenes constituting a bundle; bn represents the number of scenes that will newly generate the bundle scene set, and Sn is Bn + Bn-1.
Further, the effective scene set determining unit solves to obtain a target effective scene set meeting the confidence requirement, specifically: the objective function is set up as follows:
the objective function requires that the sum of the dimensions of the scenario generated by the renewable energy output is minimal,
is the k-dimension target scene value; the constraints of the above objective function are as follows:
representing a kth dimension scene value in the ith scene of the Bundle scene set, and requiring that a target scene value is larger than any Bundle scene value meeting the condition;
the sum of the corresponding probabilities of all scenes in the scene set is required to be 1;
is a binary variable, and
with historical scenes
Correspondingly, each history scene
All have corresponding thereto
Requiring the ith target value to be greater than the product of the binary variable and the historical scene; substituting the target function into a solver to solve based on the constraint condition to obtain a target effective scene value meeting the confidence coefficient requirement
Generally, compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:
the invention provides a method and a system for solving a power system dispatching model containing renewable energy sources.
The invention provides a method and a system for solving a scheduling model of a power system containing renewable energy, wherein the existing joint opportunity constraint method is long in time consumption when solving a nonlinear mixed integer model with more dimensions and brings great inconvenience to scheduling personnel when being applied to actual power system scheduling.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The proposal of the double-carbon target puts higher requirements on the scheduling problem of large-proportion renewable energy grid connection, new energy such as wind power, photovoltaic and small hydropower stations have the characteristics of volatility and intermittency, and the problem to be solved is urgent to deal with the characteristic of good randomness in the scheduling problem of the power system without losing timeliness and accuracy.
The existing method for processing the randomness of the renewable energy sources is long in time consumption or poor in accuracy. Aiming at the characteristic, the invention provides a method for improving settlement efficiency of a joint opportunity constraint scheduling model, and the method is used for improving the traditional joint opportunity constraint scheduling model. The method comprises the steps of firstly establishing a joint opportunity constraint solving model based on a renewable energy output scene, then preprocessing an original scene by adopting a bundle method to obtain a bundle scene set with greatly reduced computational complexity, and finally establishing a solving model for converting joint opportunity constraint into deterministic constraint according to the obtained bundle scene, so that the scheduling model containing the renewable energy is rapidly and accurately solved. The method is simple and practical, and can quickly and effectively process the scheduling problem of the power system.
The invention aims to provide a method for improving settlement efficiency of scheduling problems of a power system containing renewable energy sources based on joint opportunity constraint, aiming at the problem that the scheduling problems of the power system containing the renewable energy sources are long in solving time.
Fig. 1 is a flowchart of a method for solving a scheduling model of a power system including renewable energy according to an embodiment of the present invention; as shown in fig. 1, the method comprises the following steps:
s101, establishing joint opportunity constraint of a power system by taking the output of renewable energy as a random variable; the power system comprises a plurality of renewable energy sources, the random variable is multidimensional, and each dimension of data corresponds to the output of one renewable energy source;
s102, determining historical data of corresponding random variables according to historical data of renewable energy output; the renewable energy output corresponding to one historical data of the random variable is used as a scene, the probability of each scene is determined according to the repeated condition of each scene in all the scenes, and the set of different scenes is used as the scene set of the random variable;
s103, taking historical data of the random variable as a sample, and determining the cumulative distribution function of the random variable by adopting self-adaptive kernel density estimation based on the sample of the random variable;
s104, determining an inverse function of the corresponding accumulative distribution function based on the accumulative distribution function of the renewable energy output, and substituting the single-opportunity constraint confidence coefficient into the inverse function to determine a confidence coefficient quantile point; the single opportunity constraint confidence is determined from a risk level of the joint opportunity constraint;
s105, based on the confidence quantile, dividing an approximate scene which does not influence the final result of the mixed integer programming solution in the scene set and an effective scene to obtain the scene set of which each dimension random variable is subjected to bundle processing; synthesizing the approximate scenes in the processed scene set into a bundle so that the bundle and the effective scenes in the processed scene set jointly form a bundle scene set of random variables;
s106, solving to obtain a target effective scene value meeting the confidence coefficient requirement by taking the minimum sum of all dimensional scene values of the bundle scene set generated by the output of the renewable energy as a target function;
s107, converting the joint opportunity constraint of the power system into a deterministic constraint by using the target effective scene value, and solving the deterministic model to realize the solution of the power system scheduling model.
Specifically, the power system scheduling model is composed of three parts, namely an objective function, a conventional constraint and a joint opportunity constraint.
Firstly, establishing an objective function of a power system scheduling model:
f=min(f G +f S +f R +f L ) (1)
in the formula (f)
G 、f
S 、f
R 、f
L The method comprises the following steps of respectively representing the power generation cost, the starting and stopping cost, the standby cost and the tie line cost of the thermal power generating unit, wherein f represents the total running cost of a power system;
respectively representing secondary, primary and constant power generation cost coefficients of the thermoelectric generator group g in the region k;
the generated power of the thermoelectric generator group g in the area k at the moment t is shown;
representing the starting and stopping states of the thermoelectric generator group g in the area k at the moment t,
representing the starting and stopping states of the fire motor group g in the area k at the moment t-1;
starting and stopping cost of the thermoelectric generator group g in the region k;
spare capacity for region k at time t, C
k Unit spare cost for region k, C
R Total standby cost; lambda [ alpha ]
l,k A cost factor representing the power transmitted by zone i to zone k,
the power transmitted from the tie line region to the region k through the link line at the moment t; lambda [ alpha ]
k,l A cost factor representing the power transmitted by zone k to zone i,
the power transmitted to the region l through the region k via the tie line at the time t; t is the total time period, and the invention takes 24 hours a day; k is the total number of regions, G
k For a collection of thermal power generating units in region k, A
k Is the set of links associated with region k.
Secondly, solving conventional constraints of the model, wherein the conventional constraints comprise power balance constraints, thermal power unit output upper and lower limit constraints, thermal power unit start-stop time constraints, thermal power unit climbing power constraints, reserve capacity constraints and tie line exchange power constraints, and accordingly, establishing conventional constraint conditions as shown in the following formula:
(1) power balance constraint
In the formula,
for the total load of the region k at the time t,
the effort is predicted for the renewable energy source of region k at time t.
(2) Thermal power generating unit output upper and lower limit restraint
In the formula,
and
respectively representing the lower limit and the upper limit of the output of the k thermal power generating unit g in the region;
(3) thermal power unit start-stop time constraint
In the formula,
and
respectively representing the switched-on time and the switched-off time of the unit g of the zone k,
and
respectively the minimum start-up and shut-down time of the unit g of the region k.
(4) Ramp power constraint of thermal power generating unit
In the formula,
and
the maximum upward and downward climbing power of the unit g in the region k respectively.
(5) Spare capacity constraint
In the formula,
the reserve capacity of the unit g in the area k at the time t.
(6) Junctor exchange power constraint
In the formula,
p l,k and
respectively an upper limit and a lower limit of the transmission power from the area l to the area k,
the power flowing from zone i to zone k for time t,
and
represents the transmission state of the connecting line from l to k direction and from k to l direction (taking 1 represents flowing, and 0 represents not flowing).
Third, establish a joint opportunity constraint including spinning reserve as follows:
in the formula, eta is the standby rate; epsilon is the degree of confidence that,
indicating the rotational reserve capacity of region k at time t.
In a specific embodiment, the method for achieving the above object comprises the following steps:
step 1: establishing joint opportunity constraints containing multidimensional random variables
Establishing a joint opportunity constraint general expression as shown in formula (1-1):
P
G vector representing power of thermal power generating unit, and of formula (15)
Corresponding to y representing the vector of the other parameter variable, and in equation (15)
η, etc. corresponds to P
R For uncertain renewable energy output variables, as k-dimensional random variables, and in equation (15)
Corresponds to, g
k (P
G ,y)≥-P
R To constrain events, α
JCC Is the risk level of joint opportunity constraint, 1-alpha
JCC Is the joint opportunity constraint confidence, corresponding to ε in equation (15), and Pr {. cndot.) represents the probability of satisfaction of the constraint event, equation (1-1) requires PrThe probability that K inequalities in {. is simultaneously satisfied is greater than or equal to 1-alpha
JCC . Wherein y includes the magnitude of the load power
Rotating stand-by power
The utilization rate eta, etc.
Step 2: establishing scene set based on random variable historical data
Step 2.1 obtaining K-dimensional initial scene set
And acquiring or updating the historical data of the output of the renewable energy sources, and acquiring a scene set capable of representing the randomness of the output of the renewable energy sources according to the historical data. Let K dimension random variable history data
The resulting limited set of scenes is C,
for a scene in the renewable energy output historical data, wherein si belongs to C, the same scene in the scene set is subjected to statistical clustering to obtain a new scene set S, S belongs to S,
is one scene in the new renewable energy output historical data, wherein the s scene comprises an initial scene d
si Is M
s 。
Step 2.2 calculate the probability of each scene in S from 2.1
If the total number of scenes in C is Sn, then scene d in S s Probability P of s Comprises the following steps:
P s =M s /Sn s∈S (2-1)
the original scene generated from the renewable energy output historical data and its corresponding probability are thus obtained.
And step 3: and calculating the cumulative distribution function of the renewable energy output by using the historical data sample of the renewable energy output.
Step 3.1 computing the fixed Bandwidth of the Kernel Density estimate
The fixed bandwidth H is selected by using the principle of minimum mean-integral-square error, and when the kernel function selects the Gaussian function, the computational expression of the fixed bandwidth H is expressed by an expression (3-1), wherein
Is the standard deviation of the samples, and N is the number of samples of the random variable.
Step 3.2 calculate the cumulative distribution function of the renewable energy output by using the kernel density estimation of the fixed bandwidth
Calculating cumulative distribution function of renewable energy output by using formula (3-2)
Wherein, N is the number of samples,
for the kernel function, a gaussian function is generally selected as the kernel function, H is a fixed bandwidth under the gaussian kernel function,
a cumulative distribution function of a fixed bandwidth.
Step 3.3 determining number of intervals
And continuously iterating the interval number from small to large in an increasing mode, determining the interval number by judging whether the fitting error is smaller than an error threshold value, firstly setting the interval number M to be 5 for the first time, evenly distributing the samples to each interval if the N/M can be divided completely, and placing the samples of the remainder part which cannot be divided completely to the last interval if the N/M cannot be divided completely.
Calculating the position parameter h of each interval by using the formula (3-3) j :
Wherein j, l is the number of the interval, M is the total number of the divided intervals,
a cumulative distribution function for a fixed bandwidth,
the abscissa corresponds to the median of the cumulative distribution of samples in the interval l. The sample bandwidth of each interval becomes H × H
j Beta is the sensitivity coefficient, 0<β<1, when β is larger, h
j The more sensitive, when β is equal to 0, the interval sample bandwidth becomes a fixed bandwidth H.
And calculating the probability density function of the output of the renewable energy source by using the position parameters and the interval adaptive bandwidth kernel density estimation of the formula (3-4).
Wherein N is
j Is the number of samples in interval j, i is the number of sample points in interval j, N is the total number of samples in all intervals,
and (4) calculating the average square error of the probability density function of the kernel estimation and the real distribution, as shown in the formula (3-5).
The larger the number of partitions M, the finer the bandwidth correction,the lower the error of the global fit. By setting the error threshold MSE T It is possible to take the MSE T 60% -80% of the average square error at fixed bandwidth. When MSE>MSE T Then, the number M of the intervals is continuously increased, the step length of the intervals is increased to 5, and the probability density functions of the position parameters and the random variables are repeatedly calculated until MSE<MSE T Up to or up to a maximum number of partitions, which is the number of samples.
Step 3.4 calculating the cumulative distribution function of the random variables by using interval adaptive bandwidth kernel density estimation
After the interval number is determined, calculating the renewable energy output P by utilizing the interval adaptive bandwidth kernel density estimation of the formula (3-6)
R Is recorded as the cumulative distribution function of
Wherein x is k And outputting the k-dimension renewable energy.
And 4, step 4: and generating a new bundle scene.
Step 4.1 of calculating confidence quantile points of renewable energy output
Calculating the inverse function of the cumulative distribution function of the renewable energy output of each dimension in the step 3.4, and recording the inverse function as
Constraining each single opportunity to confidence 1-alpha
ICC Substituting into the inverse function of the cumulative distribution function to obtain confidence quantile points
Namely:
step 4.2, the original scene set is divided
Random variable confidence quantile obtained from step 4.1
Dividing an approximate scene which does not influence the final result of the mixed integer programming solution in the original scene set and an effective scene, and respectively processing each dimension random variable, wherein the processing method comprises the following steps:
therefore, s scenes of random variables of each dimension after bundle preprocessing are obtained.
Step 4.3, synthesizing the divided similar scenes into a bundle beam
After the scenes of the random variables of each dimension are divided, a plurality of approximate scenes before the quantile are formed and an effective scene set after the quantile are shown as a formula (4-3), and the approximate scenes are gathered into a new bundle, wherein the method comprises the following steps:
wherein s is b Bundle, s representing renewable energy output scenario e Representing the effective scene set of renewable energy output, and the two jointly form a new bundle scene set s B The probability calculation formula of each scene is as shown in formula (4-4)
Wherein,
representing the jth scene of the bundle scene set; bn represents the number of scenes constituting a bundle; bn represents the number of scenes that will newly generate the bundle scene set, and Sn is Bn + Bn-1.
And 5: and establishing a target scene solving model.
Step 5.1 objective function
The objective function is set up as follows:
the objective function requires a minimum sum of dimensions of the scene generated by the renewable energy output, wherein
Is the k-th dimension target scene value.
Step 5.2 constraint equation
The constraints for solving the model are as follows:
the constraint condition (5-2) requires that the target scene value is larger than any eligible Bundle scene value, wherein
Representing a k-dimension scene value in an ith scene of the bundle scene set.
And the constraint condition (5-3) requires that the sum of the corresponding probabilities of all scenes in the scene set is 1.
The constraint (5-4) indicates
Is a binary variable, and
with historical scenes
Correspondingly, each history scene
All have corresponding thereto
The constraint (5-5) requires that the jth target value be greater than the product of the binary variable and the historical scenario.
Step 5.3 solving the target scene model
Compared with the original scene, the number of scenes and the complexity of solution of the bundle scene set processed by the steps 4 and 5 are greatly reduced. Substituting the model established in the step 5 into a solver to solve to obtain a target effective scene value meeting the confidence coefficient requirement
Step 6 solution of deterministic model
The target scene value obtained in the step 5 can satisfy the condition that the joint opportunity constraint (1-1) is established under the condition of certain confidence coefficient, so that the original uncertain model is converted into a deterministic model, and the obtained target scene value is utilized
The transformation opportunity constraint obtained is shown as the formula (6-1).
Through the steps, the solving model with greatly improved solving efficiency is obtained. And finally, solving a model corresponding to the deterministic constraint by using a mature solver to obtain the optimal value of each decision variable.
In order to make the purpose and technical solution of the present invention more clear, the present invention is further described in detail below with reference to tables, data and simulation cases. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
The effectiveness of the invention is verified by specific simulation cases, and the simulation schemes of the invention are all carried out based on Matlab. The unit combination scheduling problem of the multi-region wind power system considering the correlation of renewable energy sources is taken as an example in the simulation, but the method is also suitable for joint opportunity constraint of other types of problems. The unit combination scheduling problem takes the minimum running cost of the thermal power unit as an objective function, inequality constraints comprise output constraints, climbing constraints, minimum startup and shutdown time constraints and the like, and positive rotation standby constraints of a region are joint opportunity constraints.
The attached table 1 shows the specific parameters of two specific simulation schemes of the present invention. The specific simulation scheme is shown in the attached table 1, and for each scheme, the invention sets the comparison of the solving time and the solving accuracy by adopting the traditional joint opportunity constraint solving method and the method adopted by the invention.
Attached Table 1
The number of the wind power output historical samples of the two simulation schemes is set to 730, and the minimum rotation standby rate required by the system is 10%. The unit parameters of the two schemes are as follows:
(1) scheme 1: the scheme is that 3 regional power systems of 33 thermal power generating units, every region all contain 1 wind-powered electricity generation field, and 3 regions are connected together through the tie line. Regional 1 electric power system contains 10 thermal power generating units, wind-powered electricity generation installed capacity 850MW, and regional 2 electric power system contains 10 thermal power generating units, and wind-powered electricity generation installed capacity 1050MW, regional 3 electric power system contain 13 thermal power generating units, and wind-powered electricity generation installed capacity 1350MW, the scheduling cycle is 1 hour, and the confidence level that sets up is 90%.
(2) Scheme 2: to compare the effect of different confidence levels on the results, the confidence level was adjusted to 95% based on protocol 1.
Step 1 is implemented: establishing joint opportunity constraints containing multidimensional random variables
Implementation of step 1.1 establishing Positive rotation Standby Joint opportunity constraints
The positive rotation reserve constraint of the multi-region power system requires that the positive rotation reserve of a region k at a time t should be greater than or equal to the positive rotation reserve capacity requirement, and the positive rotation reserve joint opportunity constraint of the region k at the time t is represented as:
wherein,
and
output and rotation reserve of the unit G in the zone k at the moment t, G
K The method comprises the following steps of (1) being a set of thermal power generating units;
the actual wind power output of the region k at the moment t is a random variable;
load power for region k at time t; eta is the rotation reserve rate, the above formula is required to be satisfied under a certain confidence coefficient due to the uncertainty of the random variable, alpha is the confidence coefficient level of the joint opportunity constraint, Pr {. is used for representing the satisfied probability of the constraint event, and the formula (7-1) is required to be Pr {. isThe probability that the positive rotation standby constraints (i.e., K inequalities) of the inner K regions are simultaneously satisfied is greater than or equal to α.
Implementing step 1.2 to convert Joint opportunity constraints into a Standard form
Random variables in the formula (7-1)
Move term to the right of the internal inequality, will
Moving the term to the left of the internal inequality, we can get:
step 2 is implemented: establishing scene set based on random variable historical data
And establishing a multi-dimensional wind power output scene set according to historical wind power data of the multi-region wind power plant, and if each region of the model has one wind power plant, the joint opportunity constraint requires that the positive rotation standby of the n regions simultaneously meet the confidence coefficient requirement, namely the wind power output scene at each moment is n-dimensional.
Step 3 is implemented: and calculating a cumulative distribution function of the random variables by using the historical data samples of the random variables.
Calculating the cumulative distribution function of the wind power random variable of each region according to the step 3, and recording the cumulative distribution function as
And (4) implementing the step: and generating a new bundle scene.
And (3) processing the scene generated in the step (2) by adopting a bundle method to obtain a bundle scene set with greatly reduced computational complexity.
And 5, implementation step: and establishing a target scene solving model.
Establishing a target scene solving model by using the bundle scene set obtained in the step 4
And 6, implementation step: and (5) solving a deterministic model.
Using the object scene obtained in step 5
And (4) converting the joint opportunity constraint into the deterministic constraint which is easy to solve as shown in the formula (7-3), thereby converting the joint opportunity constraint into the deterministic constraint.
And finally, solving the deterministic constraint by using a mature solver to obtain a scheduling result. The advantages of the present invention are further detailed below by comparing the differences between the conventional method and the method of the present invention for processing the two protocols.
The attached table 1 shows the specific contents of the two schemes, and the joint opportunity constraints adopting two different confidence levels of 90% and 95% are solved by respectively adopting the traditional method and the method adopted by the invention, so that the influence of the performance and the confidence difference of the method on the result is verified.
The accompanying tables 2 and 3 show the solving results of the two methods, respectively.
The attached table 2 shows the solution time and the scheduling result cost of the target scene in the first solution scheme of the traditional method and the method of the invention. The attached table 2 shows the solution time for solving the target scene value and the final scheduled cost result when the confidence is 90%. The time spent in solving by adopting the traditional method is 60.05s, while the time spent in solving by adopting the method of the invention is only 31.38s, the solving time is reduced by 47 percent compared with the original time, and for the final scheduling solving result, the cost of the method of the invention is slightly less than that of the traditional method.
Attached table 2
The attached table 3 shows the target scene solving time and the scheduling result cost of the second solving scheme by respectively adopting the traditional method and the method of the invention. The attached table 3 shows the solution time for solving the target scene value and the final scheduled cost result when the confidence is 95%. Compared with the traditional method, the method provided by the invention has the advantages that the solving efficiency is greatly improved, and the final scheduling result cost is basically consistent as the case when the confidence coefficient is 90%.
Attached table 3
The method improves the solving efficiency on the premise of not losing the solving effectiveness, and realizes the coordination of the solving rapidity and the solving reliability of the scheduling model.
It is noted that when the confidence is 95%, the solving time of both the traditional method and the method of the present invention is less than the solving time when the confidence is 90%, and the improvement of the solving efficiency by using the method of the present invention is also greater than the case when the confidence is 90%, because the uncertainty of the model is reduced along with the improvement of the set joint opportunity constraint confidence, the solving time is reduced; and because the scene number of the generated bundle scene set is also improved along with the improvement of the confidence, the model calculation complexity after the bundle method processing is also greatly reduced.
From the calculation results, the scheduling strategy obtained by the method can improve the solving efficiency without losing the solving accuracy, and the method is proved to be correct and effective.
Fig. 2 is a system architecture diagram for solving a scheduling model of a power system including renewable energy according to an embodiment of the present invention, as shown in fig. 2, including:
a joint opportunity constraint model establishing unit 210, configured to establish a joint opportunity constraint of the power system by using the output of the renewable energy as a random variable; the power system comprises a plurality of renewable energy sources, the random variable is multidimensional, and each dimension of data corresponds to the output of one renewable energy source; the joint opportunity constraint is a constraint relation in a multi-region power system scheduling model, and the power system scheduling model determines scheduling schemes of thermal power generating units and tie lines in each time period by taking the minimum total operating cost of a power system as a target;
a random variable scene set determining unit 220, configured to determine historical data of a corresponding random variable according to historical data of renewable energy output; the renewable energy output corresponding to one historical data of the random variable is used as a scene, the probability of each scene is determined according to the repeated condition of each scene in all the scenes, and the set of different scenes is used as the scene set of the random variable;
an accumulative distribution function determining unit 230, configured to use a historical data of the random variable as a sample, and determine an accumulative distribution function of the random variable by using adaptive kernel density estimation based on the sample of the random variable;
a confidence quantile determining unit 240, configured to determine an inverse function of the corresponding cumulative distribution function based on the cumulative distribution function of the renewable energy output, and substitute a single-opportunity constraint confidence into the inverse function to determine a confidence quantile; the single opportunity constraint confidence is determined from a risk level of the joint opportunity constraint;
a bundle scene set determining unit 250, configured to divide, based on the confidence quantile, an approximate scene that does not affect a final result of the mixed integer programming solution in the scene set from an effective scene to obtain a scene set in which each dimensional random variable is bundle-processed; synthesizing the approximate scenes in the processed scene set into a bundle, so that the bundle and the effective scenes in the processed scene set jointly form a bundle scene set of random variables;
the effective scene set determining unit 260 is configured to solve the minimum sum of the scene values of the dimensions of the bundle scene set generated by the renewable energy output to obtain a target effective scene value meeting the confidence requirement;
and a deterministic model solving unit 270, configured to convert the joint opportunity constraint of the power system into a deterministic constraint by using the target effective scene value, and solve a power system scheduling model corresponding to the deterministic constraint.
It is understood that detailed functional implementation of each unit described above can refer to the description in the foregoing method embodiment, and is not described herein again.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.