The present application relates to the field of power system scheduling and operation, and in particular to a unit commitment method for a power system and associated components.
Power systems are gradually evolving into “double high” power systems with high penetration of renewable energy plus high penetration of power electronics. However, such characteristics pose serious challenges to system frequency security: on the one hand, renewable energy connected to a power grid through power electronics devices does not have spontaneous frequency modulation capability, and against the backdrop of the increasing penetration of renewable energy and the gradual withdrawal of thermal power units from operation, the rotational inertia and frequency modulation capability of power systems are significantly reduced; on the other hand, in the “double high” power systems, the randomness and fluctuation of output power of renewable energy are aggravated, and the types of power system faults are more complex, which lead the power system to more frequent and severe instantaneous power imbalances and frequency dynamic deterioration. Therefore, it is a critical research direction to ensure the frequency security of the power system in the context of a significant decrease in system frequency modulation capability and aggravated active power disturbances.
A unit commitment model is one of the most important models for power system scheduling, which is calculated in the day-ahead stage to determine start-up or shut-down status of each unit during the intraday stage. Due to the fact that thermal power units are important frequency modulation resources in power systems, a day-ahead commitment result of units directly affects the intraday frequency modulation capability of power systems, thereby affecting the economic and safe operation of power systems.
The present application provides a unit commitment method for a power system and associated components. Based on a day-ahead unit commitment scheduling model of the power system, unit commitment of the power system is determined to obtain a unit commitment plan ensuring frequency security and power balance after an N−1 fault has occurred in the power system.
The present application provides a unit commitment method for a power system, applied to a power system, where the power system includes at least a thermal power unit and a renewable energy unit, and the method includes: determining a unit commitment value of the thermal power unit and a unit commitment value of the renewable energy unit obtained based on a pre-scheduling stage optimization model by considering an N−1 fault and frequency security of the power system; verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on a re-scheduling stage optimization model; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes, taking the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit as a final unit commitment value; and when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, updating the pre-scheduling stage optimization model to repeat the determining step and the verifying step based on the updated pre-scheduling stage optimization model until the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained again successes, taking the verified unit commitment value of the thermal power unit and the verified unit commitment value of the renewable energy unit as the final unit commitment value, where the N−1 fault represents a contingency in which a component in the power system exits operation.
In an embodiment, the determining process for the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained based on the pre-scheduling stage optimization model by considering the N−1 fault and frequency security of the power system includes: determining a convex frequency indicator constraint of the power system from parameters of the power system based on a frequency response transfer function model and an outer approximation algorithm, where the convex frequency indicator constraint of the power system includes a maximum frequency change rate constraint, a maximum frequency deviation constraint, and a quasi-steady state frequency deviation constraint; initializing iteration parameters, a renewable energy severe scenario set, and an N−1 fault set; and based on the convex frequency indicator constraint of the power system, the iteration parameters, the renewable energy severe scenario set, and the N−1 fault set, obtaining a decision values of pre-scheduling variables, the unit commitment value of the thermal power unit, and the unit commitment value of the renewable energy unit obtained based on the pre-scheduling stage optimization model by considering the N−1 fault and frequency security of the power system.
In an embodiment, after determining the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained based on the pre-scheduling stage optimization model by considering the N−1 fault and frequency security of the power system, the method further includes: obtaining a decision value of an objective function of the pre-scheduling stage optimization model based on the decision value of the pre-scheduling variables, the unit commitment value of the thermal power unit, and the unit commitment value of the renewable energy unit; and updating a lower bound of the pre-scheduling stage optimization model based on the decision value of the objective function of the pre-scheduling stage optimization model using a first preset formula, where the first preset formula is:
LBCCG=SOTnMP,
where LBCCG is the lower bound of the pre-scheduling stage optimization model, CCG is a column-and-constraint generation algorithm, SOTnMP is the decision value of the objective function of the pre-scheduling stage optimization model, n is the iteration parameters, and MP is the pre-scheduling stage.
In an embodiment, before verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on the re-scheduling stage optimization model, the method further includes: based on the convex frequency indicator constraint of the power system, the iteration parameters, the renewable energy severe scenario set, and the N−1 fault set, obtaining a decision value of an active power output of the renewable energy unit and a decision value of an operating state of an N−1 fault power equipment based on the re-scheduling stage optimization model; determining a decision value of an objective function of the re-scheduling stage optimization model based on the decision value of the active power output of the renewable energy units and the decision value of the operating state of the N−1 fault power equipment; and based on the decision value of the objective function of the re-scheduling stage optimization model, updating an upper bound of the re-scheduling stage optimization model based on a second preset formula, where the second preset formula is:
where UBCCG is the upper bound of the re-scheduling stage optimization model, SOTnMP is the decision value of the objective function of the pre-scheduling stage optimization model, HnMP is the decision value of the pre-scheduling variable, HnMP is the decision value of the objective function of the re-scheduling stage optimization model, CCG is the column-and-constraint generation algorithm, n is the iteration parameters, MP is the pre-scheduling stage, and SP is the re-scheduling stage.
In an embodiment, verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on the re-scheduling stage optimization model includes: when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model satisfy a third preset formula, indicating that verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes; and when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model do not satisfy the third preset formula, indicating that verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, where the third preset formula is:
where LBCCG is the lower bound of the pre-scheduling stage optimization model, UBCCG is the upper bound of the re-scheduling stage optimization model, and δCCG is a preset convergence threshold.
In an embodiment, when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, updating the pre-scheduling stage optimization model includes: when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model do not satisfy the third preset formula, updating the iteration parameters, updating the renewable energy severe scenario set, and the N−1 fault set to update the pre-scheduling stage optimization model based on the updated iteration parameters, the updated renewable energy severe scenario set, and the updated N−1 fault set.
In an embodiment, determining the convex frequency indicator constraint of the power system from the parameters of the power system based on the frequency response transfer function model and an outer approximation algorithm includes: obtaining a non-convex nonlinear frequency indicator constraint of the power system from the parameters of the power system based on the frequency response transfer function model of the power system; and converting the non-convex nonlinear frequency indicator constraint of the power system into the convex frequency indicator constraint applicable to the pre-scheduling stage optimization model and the re-scheduling stage optimization model of the power system based on the outer approximation algorithm.
The present application further provides an electronic device including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the computer program to perform the unit commitment method for the power system as described above.
The present application further provides a non-transient computer-readable storage medium on which a computer program is stored. The computer program, when executed by a processor, performs the unit commitment method for the power system as described above.
The present application further provides a computer program product including a computer program. The computer program, when executed by a processor, performs the unit commitment method for the power system as described above.
The unit commitment method for the power system and associated components provided by the present application are applied to a power system including at least a thermal power unit and a renewable energy unit. The method includes: determining a unit commitment value of the thermal power unit and a unit commitment value of the renewable energy unit obtained based on a pre-scheduling stage optimization model by considering an N−1 fault and frequency security of the power system; verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on a re-scheduling stage optimization model; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes, taking the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit as a final unit commitment value; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, updating the pre-scheduling stage optimization model, and repeating the determining step and the verifying step based on the updated pre-scheduling stage optimization model until the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained again successes, taking the verified unit commitment value of the thermal power unit and the verified unit commitment value of the renewable energy unit as the final unit commitment value, where the N−1 fault represents a contingency in which a component in the power system exits operation. This method may make decisions on the unit commitment of the power system and obtain a unit commitment plan ensuring frequency security and power supply-demand balance after an N−1 fault occurs in the power system.
To illustrate the solutions of the embodiments based on the present application, the accompanying drawings used in the description of the embodiments are briefly introduced below. It should be noted that the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative effort.
To illustrate the objects, solutions, and advantages of the present application, the solutions in present the application will be described clearly and completely below in combination with the drawings in the present application. The described embodiments are part of the embodiments of the present application, not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the scope of the present application.
The following describes a unit commitment method for a power system and associated components of the present application, in conjunction with
Referring to
Referring to
The present application provides a unit commitment method for a power system, applied to a power system, which at least includes a thermal power unit and a renewable energy unit. The method includes following steps.
1, Determining a unit commitment value of the thermal power unit and a unit commitment value of the renewable energy unit obtained based on a pre-scheduling stage optimization model by considering an N−1 fault and frequency security of the power system, where the N−1 fault represents a contingency in which a component (such as a transmission line, a load, a generator, etc.) in the power system exits operation.
In an embodiment, the determining the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained based on the pre-scheduling stage optimization model, considering the N−1 fault and frequency security of the power system includes:
It should be noted that the unit commitment value of the renewable energy unit represents whether renewable energy provides frequency modulation capability. If renewable energy unit j provides frequency modulation capability during time period t, the corresponding unit commitment value of the renewable energy unit is 1; otherwise, the corresponding unit commitment value of the renewable energy unit is 0.
In an embodiment, determining the convex frequency indicator constraint of the power system from the parameters of the power system based on the frequency response transfer function model and the outer approximation algorithm includes: 101, obtaining a non-convex nonlinear frequency indicator constraint of the power system from the parameters of the power system based on the frequency response transfer function model of the power system.
First, the parameters of the power system are obtained.
Thermal power unit parameters. An index of the thermal power unit is denoted as i, and the parameters of the thermal power unit include a power output range [PiG, Pi−G] of unit i, a ramp up speed Ri+, a ramp down speed Ri−, a minimum operating time TiONa minimum off time TiOFF, a start-up cost CiSU, a shut-down cost CiSD, a power generation cost per unit CiG, and a generation shift factor SFl,iG of the thermal power unit i with respect to the transmission line l. The set and number of the thermal power unit are denoted as NG and NG, respectively.
Load parameters. An index of the load is denoted as d, and the load parameters include a forecast value Pd,tD of the load d during the time period t and a generation shift factor SFl,dD of the load d with respect to the transmission line 1. The set and number of the load are denoted as ND and ND, respectively.
Renewable energy station parameters. An index of the renewable energy station is denoted as j, and the renewable energy station parameters include an installed capacity PjRStation of the station j, a center value of forecast power outputs Pj,tR of the station j during the time period t, a forecast power output range [Pj,rR, Pj,t−R], and a generation shift factor SFl,jR of the station j with respect to the transmission line 1. The set and number of the renewable energy station are denoted as NR and NR, respectively. A load shedding power required to be offered by a frequency support capability with an inertia coefficient HjR of the station j is denoted as PjRshed.
Energy storage station parameters. An index of the energy storage station is denoted as k, and parameters of the energy storage station include an upper limit of charging and discharging power ESS and NESS, respectively.
An index of a transmission line is denoted as l, a maximum power transmission capacity of the transmission line l is
The frequency dynamics of the power system may be formulated by a first-order swing equation, as shown in equation (1):
where HG and DL are a power unit inertia time constant and a load equivalent damping coefficient, respectively, Δf(t), ΔPe (t) and ΔPm(t) are a system frequency deviation, a system power imbalance, and a system active power support, respectively.
Referring to
A frequency response transfer function model of the power system is constructed by considering a dynamic frequency support, a load damping support, and a renewable energy virtual inertia support of the thermal power unit. The sets of the thermal power unit, the renewable energy unit, and the load are denoted as G, NR and ND, respectively, and the number of elements in these sets are denoted as NG, NR and ND, respectively. Therefore, the frequency response transfer function model of the power system is shown in
The power unit inertia time constant HG and the load equivalent damping coefficient DL may be calculated based on the physical meaning of the parameters: a reference value of a system frequency modulation coefficient is PBASE, the inertia time constant and installed capacity of the thermal power unit i (i ∈NG) are denoted as HiG and
It should be noted that due to the different parameters of the thermal power unit, it is difficult to directly derive the frequency dynamic equation using the transfer function model in
A frequency modulation power per unit μi and a normalized frequency modulation power per unit λi of the thermal power unit i are defined, and their expressions are shown in detail in equations (4) and (5), where ƒ0 is a rated frequency of the system. Thus, the aggregated droop coefficient RG, the aggregated reheat proportional coefficient FH, and the aggregated reheat time constant TR of the power system are shown in equations (6)-(8), respectively.
Using the frequency response transfer function shown in
Further, the expression shown in equation (9) is converted into a time-domain expression, as shown in equation (12), where the expressions for ωd2 and ϕ are shown in detail in equations (13) and (14).
Frequency dynamic indicators of the power system mainly include a maximum frequency change rate RoCoFmax, a maximum frequency deviation Δfmax, and a quasi-steady state frequency deviation Δƒqss, and correspondingly a maximum frequency change rate constraint, a maximum frequency deviation constraint, and a quasi-steady state frequency deviation constraint, which are non-convex nonlinear frequency indicator constraints of the power system.
The maximum frequency change rate generally occurs at a moment when instantaneous active power deviation ΔPe occurs. At this time, Δƒ(t)=0, and a frequency change rate threshold of the power system is denoted as RoCoFthreshold, then the maximum frequency change rate constraint is shown in equation (15):
The maximum frequency deviation Δfmax occurs at a moment when dΔƒ(t)/dt=0, and the moment is denoted as tnadir, which expression is shown in equation (16):
tnadir is substituted into equation (12) to obtain the expression for the maximum frequency deviation Δƒmax, which is shown in equation (17):
The maximum frequency deviation Δƒmax of the power system cannot exceed a system security threshold ΔFthreshold, then the maximum frequency deviation constraint as shown in equation (18) is derived.
The maximum frequency deviation constraint shown in constraint (18) is a typical non-convex constraint, which will bring significant difficulties to the training of a frequency constrained unit commitment model.
102, Converting the non-convex nonlinear frequency indicator constraints of the power system into the convex frequency indicator constraints applicable to the pre-scheduling stage optimization model and the re-scheduling stage optimization model of the power system based on an outer approximation algorithm.
Different from most approaches of introducing integer variables for a piecewise linearization method, in the present application, an outer approximation method is used to obtain an approximate linearization of the equation (18). The outer approximation method includes determining a certain number of hyperplanes through the idea of convex relaxation, and fitting a given function or constraint in the form of a convex hull. Although this method cannot theoretically guarantee the equivalent conversion of the non-convex constraints, in an actual power system, parameters HG, RG, TR and FH have typical value ranges. Constructing appropriate hyperplanes and reserving reasonable margins may fit the maximum frequency deviation constraint within a small error range, and then the actual needs of a project are met. Moreover, the hyperplane obtained by outer approximation method may avoid introducing integer variables and significantly reduce training complexity of the model. By converting the parameters related to the unit commitment decision variables in equation (18) to one side of the inequality and the constants in equation (18) to the other side of the inequality, the maximum frequency deviation constraint shown in equation (19) may be obtained:
When parameters are aggregated using equations (6)-(8), it may be set that ΔTR=TR(RG)−1, αHG=HG, αRG=(RG)−1 and αFH=FH(RG)−1. (αHG,αRG,αTR,αFH) may be used as coordinate parameters for linearization. The coordinate parameters in this form may be expressed linearly by the unit commitment variables, and the function on the left side of the inequality in equation (19) is denoted as g(αHG,αRG,αTR,αFH).
The range of values for each of the four elements in (αHG,αRG,αTR,αFH) are denoted as ΩHG, ΩRG, ΩTR, ΩFH, respectively. The method for converting the maximum frequency deviation constraints based on outer approximation is described below.
A feasible point h is denoted as (αhHG, αhRG, αhTR, αhFH) then the linearization function of the function g(αHG, αRG, αTR, αGH) at the feasible point h is shown in equation (20), where α and αh are abbreviations of (αHG,αRG,αTR,αFH) and (αhHG, αhRG, αhTR, αhFH), respectively:
The outer approximation algorithm includes the following steps.
Initializing. The number of hyperplanes NHP is initialized to 1, the value of feasible point 1 is initialized as (αhHG, αhRG, αhTR, αhFH), the lower bound LBOA of the initialization function g(αHG αRG αTR αFH) is initialized as −Mbig, the upper bound UBOA of the initialization function g(αHG,αRG,αTR,αFH) is initialized as Mbig, and an allowable error range between the upper and lower bounds is set to be δOA, where Mbig is the number with a larger value.
2) Updating the lower bound LBOA according to equation (21).
3) Training the linear planning model shown in equation (22). This optimization model is based on the idea of outer approximation and provides an approximate upper bound for non-convex function (αN
4) Determining convergence. If UBOA−LBOA is less than the threshold δOA, the calculation is terminated and Lh(αhHG,αhRG,αhTR,αhFH), ∀h=1, . . . , NHP is output according to equation (20), and these linear functions are the outer approximation results of the function g(αHG,αRG,αTR,αFH); otherwise, NHP is set to be NHP+1 and the calculation proceeds to step 2) and the lower bound is updated according to equation (21).
The set composed of hyperplanes for fitting functions g(αHG,αRG,αTR,αFH) is denoted as HP. Considering the potential errors caused by outer approximation algorithm, a deviation correction value δREG (δREG≥0) may be preset to correct the errors caused by outer approximation.
The approximate maximum frequency deviation constraint expressed through the hyperplane is shown in equation (23):
When dă(t)/dt=0, it is necessary to consider the quasi-steady state frequency deviation constraint of the system. The quasi-steady state deviation safety threshold of the power system is denoted as FQSSthreshold, then from equation (1), the quasi-steady state deviation constraint may be expressed by equation (24):
Thus, the maximum frequency change rate constraint, the maximum frequency deviation constraint, and the quasi-steady state frequency deviation constraint have been derived, which are the convex frequency indicator constraints of the power system.
12, Initializing iteration parameters, the renewable energy severe scenario set, and the N−1 fault set.
Robust unit commitment is an important research direction in the field of robust scheduling, which is divided into a day-ahead pre-scheduling stage and an intraday re-scheduling stage. The pre-scheduling stage is used to decide the unit commitment value, and the actual power output value of the renewable energy unit and actual fault occurrence of a power grid in the power system are yet unknown during this stage; in the re-scheduling stage, the actual power output value of the renewable energy unit and the actual fault of a power grid have been observed. Then, the power system makes decisions on intraday operating variables to ensure the real-time and secure operation of the power system. The objective function of robust unit commitment is a minimized scheduling cost in the severest scenario. The pre-scheduling variable and re-scheduling variable of the power system may be denoted as vectors x and y, respectively, and the uncertain scenarios of the power system may be denoted as variable ζ. The uncertain scenarios ζ vary within the uncertainty set Ξ, and ζ ∈ Ξ, then a general model of robust unit commitment may be expressed by equation (25):
In the N−1 secure and robust unit commitment model considering frequency constraints, the instantaneous active power deviation ΔPe of the constraint (23) is caused by N−1 fault and therefore ΔPe belongs to the element of the variable ζ. Both unit commitment decision and unit output decision in the variable x will affect the uncertainty range of ΔPe. Therefore, the uncertainty set Ξ will be affected by the pre-scheduling variable x, which reflects that this model is decision dependent (DD). The uncertainty set and uncertainty variables affected by decision variables are denoted as (x) and y respectively, and the expression of N−1 secure and robust unit commitment considering frequency constraints is shown in equation (26):
Since the unit commitment has the characteristics of day-ahead and intraday stages, in the present application, the idea of an alternative iteration algorithm at the day-ahead pre-scheduling stage and the intraday re-scheduling stage is still used for performing iterative training on the model. Denoting an index of the number of iterations for pre-scheduling and rescheduling as n.
In the n-th iteration, the renewable energy severe scenario set considered in the pre-scheduling stage is denoted as ΩnR, and the scenario e in the set is denoted as Pj,t,eRN∀j, ∀t. The N−1 fault set considered in the pre-scheduling stage is denoted as yΩΛ,nNCut1, where Λ may be taken as G, R, ESS, D, representing the N−1 fault sets of the thermal power unit, the renewable energy station, the energy storage station, and the loads.
The uncertainty set of the present application consists of a union of the renewable energy output uncertainty set ΩnR and the N−1 fault set ΩΛ,nNCut1 (∀Λ). In the number n of iterations, the set ΩnR in the pre-scheduling stage has an equal number of scenarios as the set ΩΛ,nCut1 (∀Λ). At the n-th iteration, the number of scenarios in these sets is denoted as NnIter. In the set ΩΛ,nNCut1 (∀Λ), the elements of the scenario e are denoted as Aq,t,eΛ(∀Λ, ∀q, ∀t), where q may be taken as the index i of the thermal power unit, the index j of the renewable energy unit, the index k of the energy storage station, or the index d of the load, and correspond to the type of Λ. Aq,t,eΛ (∀Λ, ∀q, ∀t,∀e) has a value of 0 or 1, a value of 1 indicates that the power equipment q operates normally in the time period t and scenario e, and a value of 0 indicates a power equipment q is fault.
13, Based on the convex frequency indicator constraint of the power system, the iteration parameters, the renewable energy severe scenario set, and the N−1 fault set, obtaining decision value of pre-scheduling variables, the unit commitment value of the thermal power unit, and the unit commitment value of the renewable energy unit after N−1 fault of the power system based on the pre-scheduling stage optimization model.
In an embodiment, after determining the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit after N−1 fault of the power system obtained based on the pre-scheduling stage optimization model, the method further includes: obtaining a decision value of an objective function of the pre-scheduling stage optimization model based on the decision value of the pre-scheduling variables, the unit commitment value of the thermal power unit, and the unit commitment value of the renewable energy unit; updating a lower bound of the pre-scheduling stage optimization model based on the decision value of the objective function of the pre-scheduling stage optimization model using a first preset formula; the first preset formula is:
LBCCG=PSOTnMP,
where LBCCG is the lower bound of the pre-scheduling stage optimization model, CCG is the column-and-constraint generation algorithm, SOTnMP is the decision value of the objective function of the pre-scheduling stage optimization model, n is the iteration parameter, and MP is the pre-scheduling stage.
In and embodiment, equations (27)-(29) are the constraints of variables having a value of 0 or 1 that the unit commitment needs to satisfy. uiG(t)uiSU(t), uiSD(t) are a status variable, a start-up indicator variable, and a shut-down indicator variable of the thermal power unit, all of which are variables having a value of 0 or 1. XiON (t) and XiOFF(t) are integer variables: XiON(t) is a unit operation duration variable, representing a continuous operation duration of the thermal power unit i during a time period t; and XiOFF (t) is a unit shut-down duration variable, representing a duration of continuous shut-down of the thermal power unit i during the time period t.
For the convenience of expression, defining an index b that characterizes an operating state of the power system: b=1 indicates normal operation of the power system, and b=2 indicates N−1 fault has occurred in the power system.
The pre-scheduling stage optimization model needs to ensure that all renewable energy scenarios in the set ΩnR are feasible for scheduling b=1, and for the b=2 situations caused by all N−1 scenarios in the set ΩΛ,nNCut1 (∀Λ), it is necessary to ensure the frequency security of the system and the safe operation of the power grid after faults.
A coefficient Bq,t,e,bΛ is defined to characterize the operating state of the power equipment, Bq,t,e,1Λ=1 if b=1, and Bq,i,e,bΛ=Aq,t,eΛ(∀q,∀t,∀e) if b=2. Under the above definition, Bq,t,e,1Λ characterizes that when the renewable energy scenario is e, all power equipment operates normally; and Bq,t,e,2Λ characterizes when the renewable energy scenario is e, the operating state of power equipment q under N−1 fault during the time period t and index e. If the power equipment q operates normally, then Bq,t,e,2Λ=1, and if the power equipment q malfunctions, then Bq,t,e,2Λ=0.
The thermal power unit needs to satisfy the upper and lower limits of unit output as well as ramp constraints, as shown in equations (30)-(32). Variable Pi,e,bG(t) represents the active power output of the thermal power unit i during the normal operation of the system (b=1) or the occurrence of an N−1 fault (b=2) with index e in renewable energy scenario e and time period t.
The active power of the renewable energy station needs to satisfy constraints (33) and (34). Variable pj,e,bR(t) represents the active power output of the renewable energy station j during the normal operation of the system (b=1) or the occurrence of an N−1 fault (b=2) with index e in the renewable energy scenario e and time period t. Variable ujR(t) is a frequency support decision variable of the renewable energy station: if the station j participates in frequency support in the time period t, then ujR(t) is 1, and the station j needs to shed the power value of pjRShed; or ujR(t) is 0. Constraint (33) is the active power range constraint for the renewable energy station; and constraint (34) indicates that the lower limit of uncertain output of the renewable energy station providing frequency modulation support must not be less than the power shedding value pjRShed.
Constraints (35)-(40) are energy storage operation constraints. Variables pk,e,bCH(t), pk,e,bDC(t) and Ek,e,bESS(t) respectively represent a charging power, a discharging power, and a stored energy of the energy storage station k during the normal operation of the system (b=1) or the occurrence of an N−1 fault (b=2) with index e in the renewable energy scenario e and time period t. uk,e,bESS(t) is a 0-1 variable, indicating that energy storage station k cannot charge and discharge simultaneously under corresponding conditions.
Constraints (41)-(43) are system power balance constraint, transmission line capacity constraint, and power emergency regulation non-negative constraint, respectively. Variables pe,bS+(t), pe,bS−(t) represent the emergency power regulation value required to maintain system power balance in renewable energy scenario e and time period t, when the system operates normally (b=1) or when an N−1 fault (b=2) with index e occurs; and the variables pi,e,bSL+(t), pi,e,bSL−(t) are the power emergency regulation value that avoids transmission line l capacity congestion under corresponding conditions.
In the unit commitment model considering N−1 fault, the power system needs to deploy unit commitment and unit output decision reasonably to ensure frequency security after N−1 fault. The combination of system frequency modulation aggregated parameters shown in equations (44)-(48) may be linearly represented by decision variables, where He,bG,SYS(t), Dt,e,bG,SYS, Re,bG,SYS(t), Fe,bH,SYS(t), Te,bR,SYS(t) represent, respectively, the aggregated inertia time constant, aggregated damping coefficient, droop coefficient, reheat proportional coefficient, and delay coefficient when the system operates normally (b=1) or an N−1 fault (b=2) with index e occurs in renewable energy scenario e and time period t.
Under the definition of the above aggregated parameters, the maximum frequency change rate constraint shown in equation (15), the maximum frequency deviation constraint shown in equation (23), and the quasi-steady state frequency deviation constraint shown in equation (24) may be equivalently expressed in the form shown in equations (49)-(51), where pe,bDelta(t) represents an active power imbalance value considered by the power system when the system operates normally (b=1) or when an N−1 fault (b=2) with index e occurs in renewable energy scenario e and time period t. It should be noted that when b=1, no actual active power imbalance occurs in the power system, and considering the frequency security of the system is a preventive scheduling measure under normal circumstances.
In equations (49)-(51), variables se,bSHG+(t), se,bSLH+(t) and se,bSQS+(t) are slack variables of the corresponding constraints, respectively. These variables represent the emergency resource values that the power system needs to call to ensure the frequency security of the power grid. These variables have a non-negative limitation, as shown in equation (52).
The constraints that the variable pe,bDelta(t) in equations (49)-(51) needs to satisfy will be explained below.
When the system operates normally (b=1), a potential maximum power disturbance needs to be considered and pe,bDelta(t) needs to satisfy constraint (53); when an N−1 fault (b=2) occurs in the system, pe,bDelta(t) is necessary to consider all fault scenarios e in the set ωΛ,nNCut1 (∀Λ) and pe,bDelta(t) needs to satisfy constraint (54).
It is noted that the coefficient matrix Bq,t,e,2Λ in equation (54) is obtained by training the re-scheduling stage optimization model, but the fault size pe,bDelta(t) may vary with the pre-scheduling variables Pd,tD, pi,e,1G(t),pj,e,1R(t),pk,e,1CH(t),pk,e,1DC(t), which is consistent with the physical reality of N−1 fault size. Constraint (54) characterizes the decision dependency characteristics of N−1 fault size influenced by pre-scheduling variable x.
Constraint (55) is a constraint on obtaining the severest intraday renewable energy output and operating cost for N−1 fault scenario, where η is an auxiliary variable that characterizes the highest operating cost during the day.
Thus, the modeling of power system operation constraints during the pre-scheduling stage is completed.
In the pre-scheduling stage, the objective function of the power system is the minimum scheduling cost, and the objective function is shown in equation (56). For the convenience of expression, equation (56) still partially uses vector x to refer to the pre-scheduling variables mentioned above.
In the pre-scheduling stage, the overall optimization model of the power system is shown in equation (57):
Thus, modeling for the pre-scheduling stage optimization model is completed. The power system makes decisions on the thermal power unit commitment variable uR(t) and the renewable energy station frequency modulation decision variable uR(t) The unit commitment values of these variables are denoted as Ui,tG(∀i) and Uj,tR(∀j), respectively. Pre-scheduling decisions have significant value for the frequency security of the intraday power system.
In an embodiment, before verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on the re-scheduling stage optimization model, the method further includes: based on the convex frequency indicator constraint of the power system, the iteration parameters, the renewable energy severe scenario set, and the N−1 fault set, obtaining a decision value of an active power output of the renewable energy units and a decision value of an operating state of an N−1 fault power equipment based on the re-scheduling stage optimization model; determining a decision value of an objective function of the re-scheduling stage optimization model based on the decision value of the active power output of the renewable energy units and the decision value of the operating state of the N−1 fault power equipment; and based on the decision value of the objective function of the re-scheduling stage optimization model, updating an upper bound of the re-scheduling stage optimization model based on a second preset formula, where the second preset formula is:
where UBCCG is the upper bound of the re-scheduling stage optimization model, SOTnMP is the decision value of the objective function of the pre-scheduling stage optimization model, HnMP is the decision value of the pre-scheduling variable, HnMP is the decision value of the objective function of the re-scheduling stage optimization model, CCG is the column-and-constraint generation algorithm, n is the iteration parameters, MP is the pre-scheduling stage, and SP is the re-scheduling stage.
In an embodiment, during the re-scheduling stage, the power system has already obtained the unit commitment values Ui,tG(∀i) and Uj,tR(∀j) of the pre-scheduling stage. The re-scheduling stage is to minimize the operating cost of the power system in the severest renewable energy output and N−1 fault scenario. Therefore, in the rescheduling stage optimization model, the renewable energy output and N−1 fault scenario that may achieve the highest operating cost of the system need to be found.
In the re-scheduling stage optimization model, the active power output of the renewable energy station j during the time period t is denoted as a variable pjRN(t). The variable pjRN(t) (∀j, ∀t) needs to satisfy the following constraints, i.e., the decision value of the active power output of the renewable energy unit.
In constraints (58)-(61), both the variables ujRDiv+(t) and ujRDiv−(t) are variables having a value of 0 or 1, and the value 1 of the variable ujRDiv+(t) or ujRDiv−(t) respectively indicates that the renewable energy station j has reached the upper bound or lower bound of renewable energy output during the time period t and the value 0 indicates that the renewable energy station output has not reached the bound. Due to the extremely low probability that the renewable energy station reaches the output bound at all time periods, ΓSR is set as a spatial clustering coefficient of the renewable energy station, and ΓTR is set as a time smoothing coefficient of the renewable energy station, and the two coefficients may limit the uncertainty range of renewable energy output and reduce the conservatism of scheduling strategies.
In the re-scheduling stage optimization model, it is also defined that the index b represents the operation state of the power system, b=1 indicates normal operation of the power system, b=2 indicates N−1 fault occurs in the power system. Further, it is also defined that a variable aq,bΛ(∀Λ, ∀q, ∀t) having a value of 0 or 1 represents the operation state of power equipment. If the variable aq,bΛ(t) is 1, it indicates that the power equipment q operates normally during a certain time period t when the power system operation state is b, and if the variable aq,bΛ(t) is 1, it indicates that the power equipment q is fault, where the index q may be the index i of the thermal power unit, the index j of the renewable energy unit, the index k of the energy storage power station, or the index of d the load, and corresponding to the type Λ. When the power system operates normally, i.e., b=1, constraints are as shown in equation (62) regarding aq,bΛ(t); and when an N−1 fault occurs in the power system, i.e., b=2, constraint are shown in equations (63)-(64), i.e., the decision value of the operation state of the N−1 fault power equipment.
Under the above definition, the severest intraday uncertainty scenario may be determined from variables pjRN(t) (∀j, ∀t) and aq,bΛ(t) (∀Λ, ∀q, ∀t). The re-scheduling constraint of the power system considering severe renewable energy scenario and N−1 fault scenario will be explained below.
The thermal power unit needs to satisfy the upper and lower limits of unit output as well as ramp constraints, as shown in equations (65)-(67)., where variable pi,bG,C(t) represents the re-scheduling active power output of the thermal power unit i in the time period t and system state b.
The active power output of the renewable energy station needs to satisfy the constraint (68). The variable pj,bR,C(t) represents the active power output of the renewable energy station j in the time period t and system states b.
It is noted that in equation (68), a product variable of integer variables aj,bR(t) and pjRN(t) are present. Considering that pjRN(t) is defined by equation (68), auxiliary variables zj,bRDiv+(t) and zj,bRDiv−(t) may be defined to replace the product aj,bR(t)ujRDIV+(t) and aj,bR(t)ujRDiv−(t), separately, so zj,bRDiv+(t) and zj,bRDiv−(t) need to satisfy the constraints shown in equations (69)-(72).
After auxiliary variables zj,bRDiv+(t) and zj,bRDiv−(t) are defined, constraint (68) may be converted into a constraint form without integer variable products as shown in equation (73):
Constraints (74)-(79) are energy storage operation constraints. Variables pk,bCH,C(t), pk,bDC,C(t), Ek,bESS,C(t) represent the charging power, discharging power, and stored energy of the energy storage station k, during the time period t and system state b respectively. uk,bESS,C(t) is a variable having a value of 0 or 1, indicating that energy storage k cannot charge and discharge simultaneously.
Constraints (80)-(82) are system power balance constraint, transmission line capacity constraint, and slack variable non-negative constraint, respectively. Variables pbS,C+(t), pbS,C−(t) represent the emergency power regulation value in the event of power imbalance during the time period t and system state b, respectively; and variables pl,bSL,C+(t), pl,bSL,C−(t) represent the emergency power regulation value required to eliminate the capacity congestion of the transmission line l during the time period t and system state b, respectively.
In the re-scheduling stage, the aggregated inertia time constant, aggregated damping coefficient, the droop coefficient, the reheat proportional coefficient, and delay coefficient in the time period t and power system state b are denoted as HbG,S,C(t) Rt,bG,S,C, RbG,S,C(t), FbH,S,C(t) and TbR,S,C(t), respectively. Therefore, the monomial expression on the left side of equations (83)-(87) may be linearly expressed by a polynomial consisting of the pre-scheduling decision value, equipment parameters, and variable ai,bG(t).
Thus, the maximum frequency change rate constraint, maximum frequency deviation constraint, and quasi-steady state frequency deviation constraint in the re-scheduling stage are shown in equations (88)-(91), where PbDelta,C(t) represents the active power imbalance value considered by the power system in the power system state b and time period t. It is noted that when b=1, no actual active power imbalance has occurred in the power system, it is a preventive scheduling measure to consider the frequency security of the system when b=1.
In equations (88)-(90), variables sbSLH,C+(t) SSLH, sbSLH,C+(t) and sbSQS,C+(t) are slack variables of the corresponding constraints, respectively. These variables represent the emergency resource values that the power system needs to call to ensure the frequency security of the power grid. These variables have non-negative constraints, as shown in equation (91).
When b=1, the power system needs to consider the maximum potential power disturbance, constraint (92) is related to pbDelta,C(t); when b=2, pbDelta(t) requires to consider N−1 fault caused by aq,bΛ(t) and constraint (93) is required to be considered.
Thus, the modeling of operation constraints during the re-scheduling stage is completed.
In the re-scheduling stage, the objective function of the power system is to minimize the operating cost of the power system in the severest scenario. Therefore, the objective function in the re-scheduling stage has a “max min” coupling form, as shown in equation (94). For the convenience of expression, equation (94) still partially uses vectors to refer to the re-scheduling variables mentioned above.
Thus, in the re-scheduling stage, the optimization model of the power system is shown in equation (95).
2, Verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on the re-scheduling stage optimization model.
In an embodiment, verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on the re-scheduling stage optimization model includes: when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model satisfy a third preset formula, indicating that the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes; and when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model do not satisfy the third preset formula, indicating that the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, where the third preset formula is:
where LBCCG is the lower bound of the pre-scheduling stage optimization model, UBCCG is the upper bound of the re-scheduling stage optimization model, and δCCG is a preset convergence threshold.
3, When the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes, the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit are taken as final unit commitment values.
4, When the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, the pre-scheduling stage optimization model is updated and the determining step and the verifying step are repeated based on the updated pre-scheduling stage optimization model until the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained again successes, and the verified unit commitment value of the thermal power unit and the verified unit commitment value of the renewable energy unit are taken as the final unit commitment values.
In an embodiment, when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, the updating pre-scheduling stage optimization model includes: when the lower bound of the pre-scheduling stage optimization model and the upper bound of the re-scheduling stage optimization model do not satisfy the third preset formula, updating the iteration parameters, updating the renewable energy severe scenario set, and the N−1 fault set to update the pre-scheduling stage optimization model based on the updated iteration parameters, the renewable energy severe scenario set, and the N−1 fault set.
The process of the algorithm based on column-and-constraint generation (CCG) is as follows.
1) Initializing. An iteration number n is initialized to 1. The lower bound for the optimal value of the pre-scheduling stage optimization model and the upper bound for the re-scheduling stage optimization model are denoted as LBCCG and UBCCG respectively. LBCCG=−Mbig and UBCCG Mbig are initialized, the convergence threshold δCCG is set for the upper and lower bounds, the number of elements NnIter is initialized to 1 in ΩnR and ΩΛ,nNCut1 (∀Λ), the element Pj,t,1RN in ΩnR is set to be the forecast center value Pj,tR (∀j, t) of the renewable energy station, and, the element Aq,t,1Λ in ΩΛ,nNCut1 is 1 (∀Λ, ∀q, ∀t).
2) Updating the lower bound. The pre-scheduling stage optimization model (57) is trained, where the optimal value for the pre-scheduling stage optimization model is denoted as SOTnMP, the decision value for the pre-scheduling variable η, the unit commitment value for thermal power unit uiG(t), and the unit commitment value for renewable energy unit ujR(t) are denoted as HnMP, Ui,t,nG (∀i), Uj,t,nR (∀j), respectively, and the subscript n represents the number of iterations. The lower bound of the pre-scheduling stage optimization model is updated as LBCCG=SOTnMP.
3) Updating upper bound. The re-scheduling stage optimization model (95) is trained, where the optimal values of the re-scheduling stage optimization model is denoted as HnMP, and the decision value of the active power output pjRN(t) of the renewable energy unit and the decision value of the operation state aq,2Λ(t) of the N−1 fault power equipment are denoted as Pj,t,nRN,C (∀i, t) and Aq,t,nΛ,C (∀q, t), respectively. The upper bound of the re-scheduling stage optimization model is updated as UBCCG=SOTnMP−HnSP.
4) Determining convergence. If a convergence criterion of the third preset formula is satisfied, then the iteration process ends, the calculation is terminated, and the Ui,t,nG (∀i) and Uj,t,nR (∀j) in step 2) are output as the unit commitment value for the thermal power unit and the unit commitment value for the renewable energy unit; otherwise, the iteration number n is updated by n+1, pj,t,nRN,C (∀i, t) and Aq,t,nΛ,C (∀q, t) in step 3) are added to the renewable energy severe scenario set ΩnR and N−1 fault set ΩΛ,nNCut1, respectively. The value of the number NnIter in scenarios of ΩnR and ΩΛ,nNCut1 (∀Λ) are updated, and the procedure returns to step 2) to update the lower bound of the re-scheduling stage optimization model.
The above steps may iteratively train the unit commitment model of the present application.
In summary, the present application designs a unit commitment method for the day-ahead unit commitment scheduling model of the power system, considering frequency constraints and N−1 fault decision dependency characteristics. In terms of modeling frequency indicator constraint, the present application uses an outer approximation based method to perform linear conversion; in terms of modeling N−1 fault, the present application characterizes the decision dependency characteristics of N−1 fault; on the basis of frequency indicator constraint based on outer approximation and N−1 fault decision dependency characteristics, the present application constructs an N−1 secure and robust unit commitment method considering frequency constraints. This method may make decisions on the unit commitment in the power system and calculate unit commitment plans that ensure frequency security and power supply-demand balance after N−1 disturbance in the power system.
The beneficial effects of the present application are as follows.
Firstly, in terms of linearization convert of non-convex frequency indicator constraints, the present application utilizes an outer approximation algorithm to approximately convert the frequency indicator constraint for frequency lowest point constraints with non-convex characteristics. This method avoids the introduction of integer variables in the non-convex constraint conversion process, significantly reduces the computational complexity of the model, and may ensure the accuracy of the solution within the typical frequency modulation parameter range of the power system.
Secondly, in the modeling of N−1 active power disturbances in the power system, the present application considers the decision dependency characteristics of the N−1 fault set affected by unit commitment value and unit output value, and constructs constraint equations that characterizes the decision dependency characteristics of N−1 fault size in power systems. The constraint has a higher degree of coincidence with an actual power system and may more accurately reflect the active power disturbance caused by N−1 fault in the actual power system.
Thirdly, by incorporating the maximum frequency deviation constraint based on outer approximation and the constraint equation that characterizes the decision dependency of N−1 fault size in the two-layer robust unit commitment model, the present application has advantages in reducing the complexity of solving the frequency lowest point constraint, ensuring system frequency security after N−1 fault, improving the renewable energy penetration, and reducing system operating costs.
Fourthly, the method proposed in the present application has generality, and for models with decision dependency characteristics in the fields of integrated energy and transportation networks, the present application further provides inspiration and assistance in modeling and training.
In addition, the logical instruction in the memory 403 mentioned above may be implemented in the form of software functional unit and stored in a computer-readable storage medium when sold or used as independent products. Based on such understanding, the solutions of the present application in essence or a part of the solutions that contributes to the related art, or all or part of the solutions, can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in the respective embodiments of the present application. The storage medium described above includes various media that can store program codes, such as USB flash disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
The present application further provides a computer program product including a computer program that may be stored on a non-transient computer-readable storage medium. When the computer program is executed by a processor, the computer may execute a unit commitment method for a power system, applied to the power system, and the power system at least includes a thermal power unit and a renewable energy unit. The method includes: determining a unit commitment value of the thermal power unit and a unit commitment value of the renewable energy unit obtained based on a pre-scheduling stage optimization model by considering an N−1 fault and frequency security of the power system; verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on a re-scheduling stage optimization model; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes, taking the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit as a final unit commitment value; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, updating the pre-scheduling stage optimization model, and repeating the determining step and the verifying step based on the updated pre-scheduling stage optimization model until the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained again successes, taking the verified unit commitment value of the thermal power unit and the verified unit commitment value of the renewable energy unit as the final unit commitment value, where the N−1 fault represents a contingency in which a component in the power system exits operation.
The present application further provides a non-transient computer-readable storage medium on which a computer program is stored. And the computer program implements, when executed by a processor, a unit commitment method for a power system, applied to the power system, and the power system at least includes a thermal power unit and a renewable energy unit. The method includes: determining a unit commitment value of the thermal power unit and a unit commitment value of the renewable energy unit obtained based on a pre-scheduling stage optimization model by considering an N−1 fault and frequency security of the power system; verifying the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit based on a re-scheduling stage optimization model; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit successes, taking the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit as a final unit commitment value; when the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit fails, updating the pre-scheduling stage optimization model to repeat the determining step and the verifying step based on the updated pre-scheduling stage optimization model until the verification of the unit commitment value of the thermal power unit and the unit commitment value of the renewable energy unit obtained again successes, taking the verified unit commitment value of the thermal power unit and the verified unit commitment value of the renewable energy unit as the final unit commitment value, where the N−1 fault represents a contingency in which a component in the power system exits operation.
The device embodiments described above are only illustrative, where the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all modules may be selected according to actual needs to achieve the purpose of this embodiment. Those ordinarily skilled in the art may understand and implement it without creative effort.
Through the description of the above implementation methods, those ordinarily skilled in the art may clearly understand that each implementation method may be achieved through software and necessary general hardware platforms, and may also be achieved through hardware. Based on such understanding, the above-mentioned technical solutions or the parts that contribute to the prior art may be reflected in the form of software products, which may be stored in computer-readable storage media such as ROM/RAM, disks, CDs, etc., including several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.
Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that they can still modify the technical solutions documented in the foregoing embodiments and make equivalent substitutions to a part of the technical features; these modifications and substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of various embodiments of the present application.
Number | Date | Country | Kind |
---|---|---|---|
2023109547446 | Jul 2023 | CN | national |