Unit Combination Scheduling Method Considering System Frequency Dynamic Constraints under High Wind Power Share

: Power systems with a high wind power share are characterized by low rotational inertia and weak frequency regulation, which can easily lead to frequency safety problems. Providing virtual inertia for large-scale wind turbines to participate in frequency regulation is a solution, but virtual inertia is related to wind power output prediction. Due to wind power prediction errors, the system inertia is reduced and there is even a risk of instability. In this regard, this article proposes a unit commitment model that takes into account the constraints of sharp changes in frequency caused by wind power prediction errors. First, the expressions of the equivalent inertia, adjustment coefﬁcient, and other frequency inﬂuence parameters of the frequency aggregation model for a high proportion wind power system are derived, revealing the mechanism of the inﬂuence of wind power prediction power and synchronous machine start stop status on the frequency modulation characteristics of the system. Second, the time domain expression of the system frequency after the disturbance is calculated by the segment linearization method, and the linear expressions of “frequency drop speed and frequency nadir” constraints are derived to meet the demand of frequency regulation in each stage of the system. Finally, a two-stage robust optimization model based on a wind power fuzzy set is constructed by combining the effects of wind power errors on power ﬂuctuation and frequency regulation capability. The proposed model is solved through afﬁne decision rules to reduce its complexity. The simulation results show that the proposed model and method can effectively improve the frequency response characteristics and increase the operational reliability of high-share wind power systems.


Introduction 1.Motivation
In recent years, with the increasing demand for electricity, wind power, as an important renewable resource to replace fossil fuels, has developed rapidly.The cumulative installed capacity of global wind power has rapidly increased from 540 GW in 2017 to 906 GW in 2022, with a compound annual growth rate of 7.7%.The new grid connected capacity of global wind power will reach 680 GW in the next five years [1].Wind power and other new energy sources have gradually become the main power sources for building new energy systems, and the power system is rapidly advancing towards power electronics and new energy subjectivity.
However, with the increase in the proportion of wind power, wind power has alleviated the energy crisis but also brought a series of challenges to the security and stability of the system [2].On the one hand, the increase in the proportion of wind power has led to a reduction in the number of traditional synchronous generators, making the system's inertia response and frequency modulation resources scarce.In response to high power shocks, the frequency dynamic support capacity is insufficient, which is likely to lead to rapid changes in the system frequency and trigger shut-down protection.On the other hand, although some literature have provided wind turbines with frequency regulation capability through virtual inertia control of converters, as the proportion of wind power increases, wind power exhibits strong randomness and large fluctuations, which not only affects the power balance of the system but also leads to fluctuations in the virtual inertia of wind power, further affecting the frequency regulation capability of the system [3,4].Most traditional unit combination schemes only consider the steady-state constraints of system frequency [5], while in power systems with a high proportion of wind power, the dynamic safety problem of system frequency urgently needs to be solved.

Literature Review
There are now many papers dedicated to the study of unit combinations considering frequency safety.To improve the system frequency response, Restrepo et al. were the first to include frequency regulation as a constraint in the unit combination model to ensure frequency stability [6]; however, the study only considered the steady-state frequency error and did not consider the frequency transient drop speed.In [7], a unit scheduling method considering the synchronous inertia constraint was proposed to ensure system frequency safety and stability, but only the system inertia demand was considered, and whether the frequency nadir in the system dynamic response exceeded the bound was not considered.In [8], a joint day-ahead-intraday scheduling framework was constructed by introducing constraints on the system dynamic frequency response under the expected small power disturbance and large power disturbance.In [9], a frequency safety model was established by considering multispeed frequency constraints and inertia allocation in unit scheduling but did not consider the participation of wind turbines in primary frequency regulation.In summary, the existing studies can effectively mitigate the frequency deterioration caused by accidents by incorporating frequency safety constraints in the scheduling model, but the construction of constraints in the literature is often limited to local indicators of frequency changes, which can hardly reflect the dynamic safety of the system frequency.
With the increase in the grid-connected proportion of new energy, many papers have studied how new energy can provide frequency support in view of the low inertia characteristics of wind turbines, which lead to an insufficient frequency modulation capability of the system.In [10], by decoupling the active power control of wind power when a disturbance occurs, the kinetic energy of the wind turbine is released to participate in frequency modulation.Refs.[11][12][13] use the converter virtual synchronization algorithm to control and use the kinetic energy of the wind turbine rotor to provide the inertia response.However, the rotor speed and stored kinetic energy of the turbine are different under different operating conditions, and the virtual moment of inertia provided by the wind turbine is not fixed.Ref. [14] notes that the synthesis of virtual inertia based on the converter is limited by the energy source of the power generation side; [15][16][17] provided a unit combination scheduling model considering wind power uncertainty; and [18,19] provided a unit combination optimization model considering dynamic frequency constraints for wind power grid-connected systems.However, the above literature do not consider the influence of wind power uncertainty on the frequency modulation capability of the system.In view of the intermittence, fluctuation, and randomness of wind power output, the virtual inertia supply in a high proportion of wind power systems is affected by wind power prediction errors, which leads to potential security risks in the system frequency stability.
In response to the uncertainty of wind power prediction, Refs.[20,21] adopted a stochastic optimization method to establish a scheduling model that can consider multiple units providing frequency modulation services.However, the proposed model often fails to accurately obtain the specific distribution information of local wind power, resulting in insufficient robustness of stochastic optimization.Ref. [22] describes uncertain variables in the system by constructing a box-type uncertainty set; however, using a boxed uncertainty set may result in the scheduling model being too conservative when considering the worstcase scenario.Ref. [23] considers scenarios such as generator unit disconnection and wind power prediction errors by establishing scenario trees, but enumerating typical scenarios does not include consideration of the true distribution of uncertain variables.Although the above research takes into account wind power prediction errors in unit combinations, the consideration of errors focuses on setting aside a sufficient reserve power to maintain energy balance between the generation side and the load side, without giving attention to the risk of instability caused by wind power prediction errors.

Contributions
To solve the above problems, a unit scheduling model that jointly considers wind power prediction errors and frequency dynamic safety constraints is established in this paper, the model is solved utilizing an affine decision rule.The contributions of this paper are summarized below: 1.
For power systems with a high proportion of wind power, this paper considers the change in the inertia composition of a high proportion of wind power systems, constructs a model for the frequency response of the aggregated system considering wind power inertia and damping, and derives a time-domain expression for the system frequency response through Laplace inverse variation.

2.
In this paper, a linear constraint on the rate of frequency dip and frequency nadir after a frequency disturbance is constructed using a segmented linearization method.The effect of the low inertia characteristics of a high proportion of wind power systems on frequency stability under impact power is analyzed, and the interference of wind power prediction errors on the ability of the system to handle frequency fluctuations such as inertia response is investigated.The numerical results show that the power system with a high proportion of wind consists of both wind power and synchronous machines participating in frequency support and that the frequency regulation capability is influenced by the actual wind power output size.

3.
A two-stage robust optimization model is established to consider the impact of wind power prediction errors on the frequency safety of power systems with a high proportion of wind power.The model simultaneously considers the low inertia characteristics of wind power and prediction uncertainty.The numerical results show that the unit scheduling scheme considering frequency safety effectively improves the lowest point of the system frequency and reduces the maximum frequency drop speed, providing sufficient adjustment time for the system in accidents.

Paper Organization
The remainder of the paper is structured as follows: Section 2 introduces the frequency characteristics of highly proportional wind power systems and the method for linearizing the frequency safety constraints.Section 3 establishes a two-stage robust optimization model that considers wind power prediction errors.Section 4 shows the solution method for solving the model.Section 5 presents a case validation in the IEEE RTS-79 system.Lastly, Section 6 summarizes the conclusions and outlook.

Dynamic Model of Power System Frequency
A set of wind turbogenerators is composed of two opposite rotating torques: the mechanical torque of the turbine and the electromagnetic torque of the generator.The motion equation can be expressed as follows: Equation (1) represents the first-order swing equation, considering the system during steady state ω ro = 1p.u., both sides of the equation can be divided by ω ro simultaneously to obtain the mechanical equations of motion expressed in terms of the active power: Rocof (Rate of Change of Frequency) represents the rate of system frequency variation.At the instant when a power deficit occurs, the system frequency drops rapidly like an approximately straight line.By taking the derivative of the equation at time t, the maximum value of the rate of change of system frequency can be obtained: The frequency characteristic of a power system is related to the real-time active power balance of the system.Figure 1 shows the typical frequency dynamic curve of a power system after a fault disturbance, and the frequency change process can be divided into inertial response, primary frequency control, secondary frequency control, and tertiary frequency control.Some literature divides the time period before the inertial response into the fast response period.( ) Rocof (Rate of Change of Frequency) represents the rate of system frequency variation.At the instant when a power deficit occurs, the system frequency drops rapidly like an approximately straight line.By taking the derivative of the equation at time t, the maximum value of the rate of change of system frequency can be obtained: The frequency characteristic of a power system is related to the real-time active power balance of the system.Figure 1 shows the typical frequency dynamic curve of a power system after a fault disturbance, and the frequency change process can be divided into inertial response, primary frequency control, secondary frequency control, and tertiary frequency control.Some literature divides the time period before the inertial response into the fast response period.The frequency stability of a power system may be challenged by major disturbances such as generator tripping, sudden heavy load changes, or system islanding events caused by breaker trips on interconnecting lines.After such disturbances, the system frequency will drop to a minimum point and then enter a new equilibrium point (  The frequency stability of a power system may be challenged by major disturbances such as generator tripping, sudden heavy load changes, or system islanding events caused by breaker trips on interconnecting lines.After such disturbances, the system frequency will drop to a minimum point and then enter a new equilibrium point ( f nep ) below the nominal value (i.e., 50 Hz).Several indicators are used to describe the dynamic performance of the system during this process, including the minimum frequency point ( f nadir ), the time to reach the minimum frequency point (t nadir ), and the rate of frequency change (Roco f ).
Inertial response takes effect immediately after a power system fault occurs before the governor begins to act.As shown by the yellow dashed line in Figure 1, the initial drop rate of the system frequency is directly proportional to the system inertia level, and the frequency drops in an approximately radial direction.In low-inertia systems, especially in power systems with a high proportion of renewable energy sources after grid connection, insufficient inertia level may lead to a rapid drop in frequency.
When the time exceeds the dead band of the speed controller, the speed controller begins to act, and the frequency drop rate gradually slows down.The speed controller increases the mechanical power output of the unit, thereby reducing the power deviation and suppressing the frequency drop.When the mechanical power is momentarily equal to the electromagnetic power, the lowest frequency drop f nadir appears at time t nadir .The primary frequency control is proportional control, and the frequency rise stops at the steady-state value f err .The duration of this stage t 2 is approximately 5 to 25 s.
The second frequency control stage initiates the AGC control to change the output power of the primary motor and slowly eliminate the frequency control deviation in the slow control region.The goal is to restore power balance at the rated frequency, and the duration is about 30 s to 15 min (t 3 ).Afterward, the third frequency control stage involves the unit's rescheduling to respond to the next frequency safety incident, with a duration of more than 30 min (t 4 ).
It should be noted that, if we normalize both sides of the equation using the value of total load demand, then the damping of the load, represented by D, will be a constant that is independent of the load level.Meanwhile, the parameter H will be determined solely by the characteristics of the thermal generator and will not be affected by its installed capacity.In this article, it is assumed that all frequency equations are normalized by load demand.

Frequency Support Provided by Wind Turbines
Renewable energy is connected to the grid through converters, and its power is decoupled from the grid frequency; therefore, it does not have the inertia and damping characteristics of synchronous generators.With the development of grid-connected inverters and virtual inertia control technology, renewable energy can provide frequency support through control strategies.At this point, the power system with renewable energy includes both Variable Renewable Energy (VRE) and thermal power units to provide equivalent inertia.Figure 2 presents the power system in northern China, which consists mainly of a combination of thermal generators and wind farms based on grid-connected power electronics.and the frequency response model is changed to: The frequency response characteristics of the system usually need to consider the regulating effect of damping, and the change of mechanical power is the co-determination determined by the governor and turbine characteristics.Figure 3 presents the frequency response model of the aggregated system, whereby the time domain expression of the system after power disturbance P Δ can be calculated: China northern power grid with wind farms [24].
H V j represents the virtual inertia of the renewable energy system, and ∆P a (t) represents the adjustment amount of the active power output of the VRE.
The frequency response characteristics of the system usually need to consider the regulating effect of damping, and the change of mechanical power is the co-determination determined by the governor and turbine characteristics.Figure 3 presents the frequency response model of the aggregated system, whereby the time domain expression of the system after power disturbance ∆P can be calculated: Sustainability 2023, 15, x FOR PEER REVIEW 7 of 21 drop, which are key indicators representing the frequency change after system disturbance.More details can be found in [25].

Modeling and Linearization of Safety Constraints for High Ratio Wind Power Frequency
In this section, due to the complexity of the high-order non-linear function

( , , )
H g H F R mapping between the minimum frequency point and the shortage power, when H F is fixed, the g function has a monotonic characteristic in a local range of a single parameter, as shown in Figure 4.However, it is still difficult to handle for establishing a constraint model.Therefore, it is necessary to segment and linearize the function, so that it can be included in the unit dispatch model as a solvable linear programming problem.This subsection uses the piecewise linearization method to linearize the frequency power mapping function.First, a series of sample points ] is selected as the variable for the sub-sample space.By establishing the following optimization model, the cutting plane parameters corresponding to each subspace can be calculated.The frequency security index is represented by the following equation: where and Equation ( 6) represent the time-domain expression of the lowest point of the system frequency, the rate of frequency change, and the time of the lowest point of frequency drop, which are key indicators representing the frequency change after system disturbance.More details can be found in [25].

Modeling and Linearization of Safety Constraints for High Ratio Wind Power Frequency
In this section, due to the complexity of the high-order non-linear function g(H, F H , R) mapping between the minimum frequency point and the shortage power, when F H is fixed, the g function has a monotonic characteristic in a local range of a single parameter, as shown in Figure 4.However, it is still difficult to handle for establishing a constraint model.Therefore, it is necessary to segment and linearize the function, so that it can be included in the unit dispatch model as a solvable linear programming problem.
when H F is fixed, the g function has a monotonic characteristic in a local ran single parameter, as shown in Figure 4.However, it is still difficult to hand establishing a constraint model.Therefore, it is necessary to segment and linear function, so that it can be included in the unit dispatch model as a solvable programming problem.This subsection uses the piecewise linearization method to linearize the freq power mapping function.First, a series of sample points ] is selected as the variable for the sub-sample sp establishing the following optimization model, the cutting plane para corresponding to each subspace can be calculated.This subsection uses the piecewise linearization method to linearize the frequency power mapping function.First, a series of sample points g k = g(H k , F Hk , R k ) are generated through equation g(H, F H , R), and the generated sample points are divided into K sample subspaces.In order to enable the resulting approximate function to be linearly represented by decision variables, [H k ] is selected as the variable for the sub-sample space.By establishing the following optimization model, the cutting plane parameters corresponding to each subspace can be calculated.min ∑ k∈S j Err k (10) Since the optimization model specifies that the error between the original function plane and the hyperplane is positive, the resulting linearized function g(H, F H , R) is more conservative than the original high-order function, strictly satisfying the frequency safety constraint.The linearization error can be controlled by the number of subspaces.In this paper, N J is set as 100 and the relative error is less than 3%.
Therefore, the frequency safety margin can be determined by the minimum value of the product of frequency deviation and all approximate hyperplanes, as shown in the following equation:

Considerations about the Frequency Safety Unit Commitment and Dispatch Model with Wind Power Forecasting Errors
Due to the existence of forecasting errors, high-proportion offshore wind power cannot provide the expected synthetic inertia, resulting in difficulty in maintaining the system inertia with a high proportion of synthetic inertia to meet the requirements of unit frequency safety.Therefore, it is necessary to consider the impact of wind power forecasting errors on system frequency safety and total operating costs in the dispatch model with a high proportion of offshore wind power.This article establishes a two-stage day-ahead dispatch model.The first stage determines the start-stop plan for the units, and the second stage considers the impact of wind power forecasting errors on frequency safety under the unit combination determined in the first stage, in order to seek a unit dispatch plan that minimizes the total system cost while tolerating the forecasting errors.

Unit Commitment Model Considering Frequency Safety Constraints
The objective function is to minimize the operating cost over time periods from 1 to N T , including start-up cost, shutdown cost, total output cost, and load shedding cost.The objective function is shown as follows: The Renewable Energy Operational Constraints are as follows: Constraints ( 14) and ( 15) means that the actual wind power and photovoltaic output cannot be greater than the predicted value.
The conventional unit operating constraints are as follows: x G g,t P G,Min g x G,SU g,t x G g,t , x G,SU g,t , x G,SD g,t ∈ {0, 1}, ∀g, ∀t t−1 t−1 Constraint ( 16) restricts the output of thermal power units to be less than the maximum capacity.Constraint (17) represents the state constraint of unit switching on and off, and the state variable is a binary variable.Equations ( 19) and (20) limit the unit's ability to climb up and down per unit time.Equations ( 21) and ( 22) represents the maximum and minimum switching on and off time of the unit, limiting the frequent start and stop of the unit.
Nodal power balance constraint: Sustainability 2023, 15, 11840 Equation ( 23) ensures the power balance between the generation side and the load side of the system at each time period, and Equation ( 24) limits the amount of load abandonment to be less than the predicted load value.
The transmission line power constraints are as follows: Constraint (25) represents the DC power flow equation and Equations ( 26) and ( 27) represent the node phase angle constraint and the maximum capacity constraint of the transmission line.
The system reserve power constraint is as follows: Equation (28) indicates that the power output on the power generation side of the system needs to be greater than the power consumption on the load side to provide backup power for secondary frequency regulation of the system.Typically, a reserved proportional backup capacity is used for scheduling.In this article, a 10% reserve of the power consumption capacity is set as the reserve power.
The frequency safety constraints are as follows: Equations ( 29)-(31) represent the frequency response model parameters of a high proportion wind power aggregation system.Since the frequency regulation capacity of each unit is related to its own capacity, assuming that the total generating capacity of the system is equal to the predicted value of the total load, the system aggregate parameters are determined by the frequency regulation status of each unit and the maximum output power Co-determination.Equation (32) indicates that the frequency regulation status variable composed of binary numbers is limited by the operating status of the unit, and Equation (33) limits that the lowest frequency point in the process of system frequency disturbance is not less than the specification value.Equation (34) limits the initial frequency drop speed.
Based on the objective function (13) and constraints ( 14)-(34), the proposed frequency safety model can be constructed, which can be solved through existing solvers.

Set of Uncertainties in Offshore Wind Power Forecasting Errors
In traditional unit commitment, as new energy sources account for a small proportion, a large number of online thermal power units participate in frequency response, and the overall system inertia is sufficient, so the prediction error of new energy only affects the power balance, with little impact on the system frequency response.However, as the scale of offshore wind power increases, its impact on the power system gradually increases, and the influence of wind power prediction errors on system frequency needs to be considered.Wind power units are controlled and connected to the grid by power electronic devices to provide virtual inertia, and wind power forecasts determine the estimated size of the synthetic inertia that can be provided.When the forecast produces errors, it will affect the frequency response of the power system, which is mainly composed of generated synthetic inertia.
The uncertainty of wind power output in the unit combination model can be represented by an error set to indicate the fluctuation range of wind power output forecast.The conventional box-type uncertainty set takes extreme environments that occur with a very low probability as the worst-case scenario to establish unit scheduling plans, which results in excessively high total operating costs.Therefore, this paper adopts a budget-based set to represent the uncertainty interval of new energy.
In the formula, ξ i and ξ i represent the upper and lower bounds of the uncertain parameter i, ξ represents the predicted value of the uncertain parameter, and Γ represents the number of uncertain parameters that can change to the maximum deviation.The size of Γ determines the conservatism of the system.The first to propose this type of uncertainty set were Bertsimas and Sim [26].This type of uncertainty set is constructed based on the relative deviation of uncertain parameters and can accurately reflect the fluctuation of parameters.

Two-Stage Robust Optimization Model Considering Wind Power Forecast Error
This article proposes a two-stage robust optimization model considering wind power forecast uncertainty.In the first stage, the start-stop status of traditional units and whether that participates in frequency regulation are determined.As shown in the equation above, the system's inertia, error correction coefficient, and generator reheating time constant are determined by the online status and whether the unit participates in frequency regulation.Therefore, the scheduling model under the first stage will ensure that the system's frequency does not exceed a predetermined value at the lowest point under a pre-set affordable power shortage.Additionally, to meet the requirement that the initial frequency drop rate does not exceed the set value, the system's inertia will be maintained at a corresponding value or higher.In the second stage, the power balance between generation and load is considered.The second stage seeks to minimize the cost while maintaining power balance under the worst-case scenario of wind power forecast deviation when the unit start-stop status is determined in the first stage.
The operating objective of the proposed model in this paper is to minimize the daily operating cost, as shown in the equation.The objective function includes the costs of unit start-up and shut-down, the costs of power generation from each unit, and the cost of abandoned load.The constraints to be satisfied include equality constraints, inequality constraints, and so on.
Its compact form can be expressed as: C 1 represents the start-up and shut-down cost of the units; C 2 represents the generation cost and the cost of shedding load; x represents the binary decision variables that indicate the start-up and shut-down states of the units; y represents the continuous variables that represent the output of each unit, the output of the new energy, and the load shedding.The proposed UC model can be expressed as a typical two-stage formulation.The first-stage problem is to determine the operating states of the units using binary decision variables x before the future wind power output is realized, after the start-up and shut-down states of the units are determined.The second-stage problem is to consider the output power of each unit under the worst-case scenario when the wind power generation deviates from the predicted value.This problem can be expressed as solving the min max min objective function: min st.
The variables x and y in the equation are optimization variables, and their specific expressions are: A, B, C, and D are the coefficient matrices of the variables under the corresponding constraints, E. F is a constant column vector.In Equation (39), the first line of the constraint condition represents the inequality constraints containing uncertain variables in the robust optimization model, including Equations ( 17), (23), and (25).The second line represents all equation constraints in the model, including the remaining equations in constraints ( 14)-(34).

Solution of the Model
For the conventional solution algorithms, it is generally difficult to solve the two-stage robust optimization model mentioned above, and the modified Bender decomposition method can be used for solution [27].However, when extending to multi-stage robust optimization problems, decision criteria need to be used for approximate solution.The decision criteria methods currently used mainly include affine, piecewise affine, and trigonometric polynomial functions.In this paper, the affine decision criterion is adopted to represent the complex mapping relationship between random variables ξ and decision variables y by a linear feasible domain.The original problem is approximated and transformed into an easy-to-solve problem, and then: Replacing the second-stage variable y in the two-stage problem with the following linear equation with uncertain parameters can effectively reduce the number of iterations in traditional algorithm and obtain optimal solutions in some engineering applications.
where y 0 is the intercept and Y is the coefficient.At this point, the two-stage problem is transformed into: min In this problem, the second stage is to determine the output of each node unit under the worst-case scenario.For any uncertain variable in the model, there exists a corresponding scheduling value of the continuous variable y and the mapping relationship between the uncertain parameters and the continuous decision variables is complex and difficult to solve in the second stage.In the solution process, a large number of nonlinear problems are often encountered.By using the affine decision rule method to establish the linear mapping relationship between the continuous decision variables and the uncertain variables, the two-stage problem can be transformed into a conventional robust problem.At this point, as shown in the equation, the result obtained by exchanging the position of y and the uncertain variable ξ is still the optimal scheduling solution under the affine linear decision approximation.
At this time, the feasible solution set of the second stage y determined by y :≡→ R N 2 converts to ∃Y ∈ R N 2 ×K , y 0 ∈ R N 2 , y(ξ) = Yξ + y 0 , which is defined by finite parameters, and the original two-stage model is transformed into a solvable robust formal model.
In summary, the model is a mixed-integer programming problem and can be effectively solved using existing solvers.

Basic Data
This article verifies the calculation examples using the IEEE 24-node 38-bus system.The total load is set to 2850 MW, and the frequency safety constraint is set according to the European grid specification with an initial droop rate not exceeding 0.125 Hz/s [28].It is assumed that the lowest frequency point is not less than 49.6 Hz.The modified generation combination is shown in Table 1.Information on transmission lines and load demand can be found in reference [29].The parameters of thermal generators are listed in Table 2. Table 3 shows the frequency response characteristics of traditional generators and renewable energy devices.The frequency support capability of VRE is based on [30].As the range of the grid-connected inverters installed in VRE is large, we conservatively assume that the frequency support capability is 50% of the conventional thermal power generation capacity.

Analysis of Results
In order to ensure that the lowest frequency point of the system does not exceed the specified value under the set power shortage threshold, the start-stop status of thermal power generation units in each period of the system is shown in Figure 5.It can be seen that, when wind power is high, the number of unit starts will also increase, but the unit output will be lower.At this time, the thermal power generation units can not only meet the low output requirements but also have frequency modulation capabilities.

Analysis of Results
In order to ensure that the lowest frequency point of the system does not exceed the specified value under the set power shortage threshold, the start-stop status of thermal power generation units in each period of the system is shown in Figure 5.It can be seen that, when wind power is high, the number of unit starts will also increase, but the unit output will be lower.At this time, the thermal power generation units can not only meet the low output requirements but also have frequency modulation capabilities.
Figure 6 shows the output of each unit, photovoltaic, and wind turbine during different time periods, meeting the power balance requirements of each node and ensuring the stability of the system frequency.

Unit online
Unit offline   Table 4 shows that the operating cost of the robust model considering freq security constraints is higher than that of the frequency security model that do consider wind power uncertainty.When the total cost is converted into hourly c can be found that the robust model will set more conventional units to remain onlin wind power output is high.This is because, when wind power output is high, the inertia will be lower.Since most of the system inertia is composed of synthetic provided by new energy sources such as wind power, the system will exhibit frequency characteristics in the event of prediction errors.Therefore, more conve units need to be set online to provide more mechanical inertia.Figure 7 analyzes the system inertia composition when the prediction error From Figure 7, it can be seen that, after 9 pm every day until 5 am the next day, new sources such as wind and photovoltaics cannot provide virtual inertia for freq regulation due to their low output.At this time, the system inertia is mainly provi thermal power units.However, when the output of new energy sources is high from to 8 pm, virtual inertia can be provided to participate in frequency regulation, a maximum inertia that can be provided is about 2 s.This ensures that the power g meet the system frequency safety requirements even during periods when the p inertia of thermal power units is insufficient.Table 4 shows that the operating cost of the robust model considering frequency security constraints is higher than that of the frequency security model that does not consider wind power uncertainty.When the total cost is converted into hourly costs, it can be found that the robust model will set more conventional units to remain online when wind power output is high.This is because, when wind power output is high, the system inertia will be lower.Since most of the system inertia is composed of synthetic inertia provided by new energy sources such as wind power, the system will exhibit poorer frequency characteristics in the event of prediction errors.Therefore, more conventional units need to be set online to provide more mechanical inertia.Figure 7 analyzes the system inertia composition when the prediction error is 0.1.From Figure 7, it can be seen that, after 9 pm every day until 5 am the next day, new energy sources such as wind and photovoltaics cannot provide virtual inertia for frequency regulation due to their low output.At this time, the system inertia is mainly provided by thermal power units.However, when the output of new energy sources is high from 6 am to 8 pm, virtual inertia can be provided to participate in frequency regulation, and the maximum inertia that can be provided is about 2 s.This ensures that the power grid can meet the system frequency safety requirements even during periods when the physical inertia of thermal power units is insufficient.From Table 5, it can be seen that, when Gamma is 0, the proposed model is equivalent to a deterministic optimization scheduling problem.As the value of Gamma increases, more parameters are allowed to reach their maximum deviation in the model, and the scheduling cost of the system increases as uncertainty increases.When the increase in operating costs is mainly due to the uncertainty in the prediction of new energy sources such as wind and photovoltaics, prediction errors directly affect the frequency support provided by new energy sources because the relevant parameters affecting frequency, such as system inertia and regulation coefficient, are directly related to the predicted values of new energy sources.At this time, more conventional units need to remain online to provide corresponding frequency support, so as Gamma increases, the frequency support provided by new energy sources becomes unreliable, and more conventional units need to be used, which leads to higher operating costs.In Table 6, it can be seen that the degree of deviation of new energy source prediction errors from the actual values, relative to the reference curve, is multiplied by the prediction error ξ .When ξ = 0, it is equivalent to a deterministic scheduling model considering frequency safety constraints.As the deviation value continues to increase, the wind power output becomes more unstable, and the frequency characteristic parameters such as From Table 5, it can be seen that, when Gamma is 0, the proposed model is equivalent to a deterministic optimization scheduling problem.As the value of Gamma increases, more parameters are allowed to reach their maximum deviation in the model, and the scheduling cost of the system increases as uncertainty increases.When the increase in operating costs is mainly due to the uncertainty in the prediction of new energy sources such as wind and photovoltaics, prediction errors directly affect the frequency support provided by new energy sources because the relevant parameters affecting frequency, such as system inertia and regulation coefficient, are directly related to the predicted values of new energy sources.At this time, more conventional units need to remain online to provide corresponding frequency support, so as Gamma increases, the frequency support provided by new energy sources becomes unreliable, and more conventional units need to be used, which leads to higher operating costs.In Table 6, it can be seen that the degree of deviation of new energy source prediction errors from the actual values, relative to the reference curve, is multiplied by the prediction error ξ.When ξ = 0, it is equivalent to a deterministic scheduling model considering frequency safety constraints.As the deviation value continues to increase, the wind power output becomes more unstable, and the frequency characteristic parameters such as inertia of the power system fluctuate greatly, reducing system safety.At this time, the operating cost continues to increase, and the inertia component of the system mainly consists of traditional units.Figure 8 shows the operating cost and cost difference ratio between the deterministic dispatch plan and the dispatch plan considering wind power prediction errors under different levels of new energy capacity.As the proportion of new energy increases, the uncertainty of wind power prediction has a greater impact.Therefore, as the new energy capacity increases, the cost required for the plan considering prediction errors increases more in order to meet the frequency safety requirements of the system.

Power(MW)
operating cost continues to increase, and the inertia component of the system ma consists of traditional units.Figure 8 shows the operating cost and cost difference ratio between the determin dispatch plan and the dispatch plan considering wind power prediction errors un different levels of new energy capacity.As the proportion of new energy increases, uncertainty of wind power prediction has a greater impact.Therefore, as the new ene capacity increases, the cost required for the plan considering prediction errors incre more in order to meet the frequency safety requirements of the system.As shown in Figure 9, we compared the frequency response capability of proposed model with Frequency Constrained Unit Commitment Model (FCUC) Traditional Unit Commitment Model (TUC).The unit model without conside frequency safety constraints is more severe than the scheduling scheme that consid frequency safety constraints in terms of both frequency drop rate and lowest freque point when facing the mismatch between load and generator power.When the system in a safe margin, the proposed scheme in this paper can control the frequency safety in well without exceeding the limit.This is because the proposed scheme in this pa As shown in Figure 9, we compared the frequency response capability of the proposed model with Frequency Constrained Unit Commitment Model (FCUC) and Traditional Unit Commitment Model (TUC).The unit model without considering frequency safety constraints is more severe than the scheduling scheme that considers frequency safety constraints in terms of both frequency drop rate and lowest frequency point when facing the mismatch between load and generator power.When the system is in a safe margin, the proposed scheme in this paper can control the frequency safety index well without exceeding the limit.This is because the proposed scheme in this paper considers the Rocof constraint and frequency lowest point constraint in scheduling, which keeps the total system's inertia related to frequency at a certain level to reduce the frequency drop rate.By controlling the frequency regulation capability of new energy sources, all parties involved in scheduling can coordinate to support frequency and ensure that the dynamic characteristics of the system frequency meet the frequency safety settings.When the power shortage amount exceeds the set safety margin, the proposed scheme can still perform better than the conventional unit scheduling scheme.
Sustainability 2023, 15, x FOR PEER REVIEW considers the Rocof constraint and frequency lowest point constraint in scheduling keeps the total system's inertia related to frequency at a certain level to red frequency drop rate.By controlling the frequency regulation capability of new sources, all parties involved in scheduling can coordinate to support frequency and that the dynamic characteristics of the system frequency meet the frequency settings.When the power shortage amount exceeds the set safety margin, the pr scheme can still perform better than the conventional unit scheduling scheme.

Conclusions
This article establishes a frequency safety unit optimization scheduling mo considers the uncertainty due to the grid connection of new wind power systems problem of inertia deficiency based on a two-stage robust optimization meth analysis results show the following: 1.The model proposed in this paper can effectively solve the frequency pro power systems with large-scale integration of new energy sources.It quant frequency safety index after the occurrence of power disturbances in the syst through the rational scheduling of units, it ensures that there are enough fre support units participating in the frequency regulation response in each peri model can guarantee that the frequency drop rate and the lowest frequency p not exceed the specified values when the system experiences a power shortag 2. This paper fully considers the impact of wind power prediction errors on the frequency characteristics of the system by establishing the relationship betwe energy, system inertia, and regulation coefficients affecting frequency.By solv two-stage model, the obtained unit combination scheme can ensure rapid an system frequency in each period within the prediction error setting range.3. The robust unit scheduling model proposed in this paper, which consid uncertainty of wind power output, can provide a reference for the auxiliary market of wind power units and other units in future power systems, w participating units respond to the frequency regulation with their output be safety margin set in the paper.
In the unit scheduling cost studied in this paper, only the start-stop status and

Conclusions
This article establishes a frequency safety unit optimization scheduling model that considers the uncertainty due to the grid connection of new wind power systems and the problem of inertia deficiency based on a two-stage robust optimization method.The analysis results show the following: 1.
The model proposed in this paper can effectively solve the frequency problem in power systems with large-scale integration of new energy sources.It quantifies the frequency safety index after the occurrence of power disturbances in the system, and through the rational scheduling of units, it ensures that there are enough frequency support units participating in the frequency regulation response in each period.The model can guarantee that the frequency drop rate and the lowest frequency point do not exceed the specified values when the system experiences a power shortage.

2.
This paper fully considers the impact of wind power prediction errors on the overall frequency characteristics of the system by establishing the relationship between new energy, system inertia, and regulation coefficients affecting frequency.By solving the two-stage model, the obtained unit combination scheme can ensure rapid and stable system frequency in each period within the prediction error setting range.

3.
The robust unit scheduling model proposed in this paper, which considers the uncertainty of wind power output, can provide a reference for the auxiliary service market of wind power units and other units in future power systems, where all participating units respond to the frequency regulation with their output below the safety margin set in the paper.
In the unit scheduling cost studied in this paper, only the start-stop status and output cost of conventional units were considered, and the control of the frequency response represents the first-order swing equation, considering the system during steady state ro 1p.u. = , both sides of the equation can be divided by ro  simultaneously to obtain the mechanical equations of motion expressed in terms of the active power:

Figure 1 .
Figure 1.Power system frequency response model.
nominal value (i.e., 50 Hz).Several indicators are used to describe the dynamic performance of the system during this process, including the minimum frequency point ( nadir f ), the time to reach the minimum frequency point ( nadir t ), and the rate of frequency change ( Rocof ).

Figure 1 .
Figure 1.Power system frequency response model.

Figure 4 .
Figure 4. Mapping function g between the lowest point of system frequency and frequency parameters, fixed H F = 0.3.
, and the generated sample points are divided into K sample subspaces.In order to enable the resulting approximate function to be linearly represented by decision variables, [

Figure 4 .
Figure 4. Mapping function g between the lowest point of system frequency and fre parameters, fixed H F = 0.3.
, and the generated sample points are divided into K s subspaces.In order to enable the resulting approximate function to be linearly repre by decision variables, [

Figure 4 .
Figure 4. Mapping function g between the lowest point of system frequency and frequency parameters, fixed F H = 0.3.

Figure 5 .
Figure 5. Unit online and offline status.

Figure 5 .
Figure 5. Unit online and offline status.

Figure 6 Figure 6 .
Figure 6 shows the output of each unit, photovoltaic, and wind turbine during different time periods, meeting the power balance requirements of each node and ensuring the stability of the system frequency.Sustainability 2023, 15, x FOR PEER REVIEW

Figure 6 .
Figure 6.Power generation results of the two-stage frequency safety constraint model.

Figure 8 .
Figure 8. Operation cost of each scheme under different new energy grid connection capacity.

Figure 8 .
Figure 8. Operation cost of each scheme under different new energy grid connection capacity.

Figure 9 .
Figure 9. Frequency dynamic response curve under different schemes.

Figure 9 .
Figure 9. Frequency dynamic curve under different schemes.

Table 1 .
Distribution of Node Units.

Table 2 .
Frequency response characteristics of generators and VRE devices.

Table 3 .
Frequency response characteristics of generators and VRE devices.

Table 3 .
Frequency response characteristics of generators and VRE devices.

Table 4 .
Operation cost of different schemes.

Table 4 .
Operation cost of different schemes.

Table 5 .
Influence of the number of uncertain variables on the operation cost ( i

Table 5 .
Influence of the number of uncertain variables on the operation cost (ξ i = 0.1).

Table 6 .
The impact of different prediction errors on operating costs.

Table 6 .
The impact of different prediction errors on operating costs.