A new energy power system frequency stability control method and device

By constructing a short-time frequency response prediction model and risk level determination, the resource support power in the new energy power system is rationally allocated, which solves the problem of timeliness and rationality of frequency stability control in high-proportion new energy systems, realizes coordinated control among multiple resources, and improves the stability and efficiency of the system.

CN123183994APending Publication Date: 2026-11-27YUNNAN POWER GRID CO LTD ELECTRIC POWER RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611688964.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In high-proportion renewable energy power systems, frequency stabilization control methods struggle to respond promptly to rapid changes in inertia levels and resource status, leading to insufficient or excessive support. Furthermore, existing methods fail to effectively coordinate the differences between various resources, resulting in an irrational power allocation.

Method used

By acquiring multi-source operating status data of the power system, a state input vector is constructed, a short-time frequency response prediction model is established, the frequency trajectory after disturbance is predicted, the frequency safety margin is calculated, the risk level is determined, and the available support capacity of various resources is calculated. The target support power is then rationally allocated to achieve coordinated control among multiple resources.

Benefits of technology

It improves the timeliness of frequency stability control and the rationality of supporting power allocation, ensures that the control triggering time is advanced in advance, and matches the resource allocation scope with system risk, avoiding the problems of response lag and unreasonable power allocation, and improving the overall stability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183994A_ABST
    Figure CN123183994A_ABST
Patent Text Reader

Abstract

The application discloses a new energy power system frequency stability control method and device, the application constructs a short-time frequency response prediction model, and predicts a frequency trajectory after disturbance and calculates a frequency safety margin based on the model, so that the future safety situation of the system can be predicted before the frequency actually exceeds the limit, and the control trigger time is advanced from after the event to before the event; then, the risk level is determined according to the frequency safety margin, the available support capacity is calculated based on the risk level, the calling range of the control resource is matched with the actual risk degree of the system; the target support power of each resource is calculated by taking the comprehensive capacity value as the distribution weight and taking the available support capacity as the hard constraint, and the control instruction is issued, so that the technical problems of response lag and lack of reasonable basis in power distribution of the traditional method are solved as a whole, and the timeliness of the frequency stability control of the high-proportion new energy power system and the rationality of the support power distribution are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system stability control technology, and in particular to a method and apparatus for frequency stability control of a new energy power system. Background Technology

[0002] Frequency is a core operational indicator for measuring the balance between active power supply and demand in a power system. Maintaining the system frequency near its rated value is a fundamental requirement for the safe and stable operation of a power system. When a large power deficit disturbance occurs in the system, such as unit tripping, DC blocking, tie-line disconnection, or a sudden increase in load, the system frequency will experience four stages: decline, minimum point, rise, and recovery. Whether the minimum frequency point reaches the safe lower limit determines whether the system will experience low-frequency load shedding or even frequency collapse. The rate of frequency change reflects the system's inertia level and the intensity of the disturbance. In traditional power systems, the rotating inertia and frequency regulation reserve capacity of synchronous generator units are sufficient, and the frequency response characteristics are clear and controllable. Frequency stability control mainly relies on the primary and secondary frequency regulation of the generator units to meet the requirements.

[0003] As the proportion of new energy sources such as wind power and photovoltaics in the power system continues to increase, existing frequency stabilization control methods typically rely on primary frequency regulation triggered by fixed thresholds, low-frequency load shedding, or rapid power support from energy storage. While these methods are simple to implement, most are reactive, initiating control only after the frequency has approached or exceeded a preset threshold. This makes it difficult to reflect rapid changes in inertia levels, operating modes, and adjustable resource status in high-proportion new energy systems, potentially leading to insufficient or excessive support. On the other hand, energy storage devices, new energy power plants, conventional frequency regulating units, and flexible loads can all participate in frequency support. However, existing methods often target single resources or fixed resource combinations, failing to fully consider the significant differences in response speed, duration of support, adjustability margin, energy constraints, and operating costs among different resources, making it difficult to achieve coordinated operation of multiple heterogeneous resources. Summary of the Invention

[0004] This invention provides a frequency stability control method and apparatus for a new energy power system, so as to improve the timeliness of frequency stability control for a high proportion of new energy power systems and support the rationality of power allocation.

[0005] To address the aforementioned technical problems, this invention provides a frequency stability control method for a new energy power system, comprising: Acquire multi-source operating status data of the power system, and construct a state input vector based on the multi-source operating status data; A short-time frequency response prediction model is constructed based on the state input vector. The frequency trajectory of the power system after disturbance is predicted based on the short-time frequency response prediction model. The frequency safety margin is calculated based on the frequency trajectory after disturbance. The risk level of the power system is determined based on the frequency security margin, and the available support capacity of various resources in the power system is calculated based on the risk level. The comprehensive capability value of each type of resource is calculated based on its response speed, continuous support time, and operating status. Based on the comprehensive capability value, available support capability, and pre-acquired total support power of various resources, the target support power of each resource is calculated, and the resources are controlled based on the target support power to achieve frequency stability control.

[0006] This invention acquires multi-source operating status data and constructs a state input vector. Based on this state input vector, it builds a short-time frequency response prediction model and predicts the frequency trajectory after disturbance. The frequency safety margin is then calculated from the post-disturbance frequency trajectory, allowing for the prediction of the system's future safety status before the frequency actually exceeds its limits. This shifts the control triggering time from reactive to proactive. Subsequently, the risk level is determined based on this frequency safety margin, and target resources are selected based on the risk level to calculate available support capabilities, ensuring that the scope of control resource allocation matches the actual risk level of the system. A comprehensive capability value is then calculated using three dimensions: response speed, continuous support time, and operating status, incorporating energy storage, new energy sources, conventional units, and flexible loads with different response characteristics into a comparable range. Finally, the comprehensive capability value is used as the allocation weight, and available support capabilities are used as a hard constraint to jointly calculate the target support power of each resource and issue control commands. This achieves reasonable task sharing among multiple resources while ensuring that the allocation results do not exceed the physical limits of each resource. Overall, this solves the technical problems of response lag and lack of reasonable basis for power allocation in traditional methods, effectively improving the timeliness of frequency stability control and the rationality of support power allocation in high-proportion new energy power systems.

[0007] Furthermore, the step of predicting the post-disturbance frequency trajectory of the power system based on the state input vector and a preset short-time frequency response prediction model, and calculating the frequency safety margin based on the post-disturbance frequency trajectory, includes: Calculate the system power loss and system equivalent inertia of the power system at the current moment based on the state input vector; Using the system power loss as the driving input for frequency change, and the system frequency in the state input vector as the prediction starting value, a short-time frequency response prediction model is constructed by combining the system equivalent inertia constant and the preset system equivalent damping coefficient. The short-time frequency response prediction model is used to predict the post-disturbance frequency trajectory of the power system, and the frequency safety margin is calculated based on the post-disturbance frequency trajectory.

[0008] This invention first extracts the system power offset and equivalent inertia from the state input vector. The power offset is used as the driving input for frequency changes, and the system frequency in the state input vector is used as the initial prediction value, ensuring precise alignment between the initial state of the prediction model and the current actual operating conditions of the system. Then, a short-time frequency response prediction model is constructed by combining the system equivalent inertia constant and a preset equivalent damping coefficient. The equivalent inertia constant directly reflects the system's rotational kinetic energy level under the current renewable energy penetration rate, while the damping coefficient characterizes the system's inherent ability to suppress frequency deviations. The prediction model thus constructed can adaptively adjust to changes in the system's operating mode. Based on this model, the frequency trajectory after disturbance is predicted, and the frequency safety margin is calculated accordingly. This allows the frequency safety margin to track real-time fluctuations in renewable energy output and changes in system inertia, avoiding the problem of inaccurate predictions in low-inertia scenarios caused by fixed-parameter models, thereby further improving the timeliness and reliability of frequency stability control and prediction.

[0009] Furthermore, the calculation of the frequency safety margin based on the frequency trajectory after the disturbance includes: Based on the frequency trajectory after the disturbance, the predicted minimum frequency point of the power system is obtained, and the minimum frequency value of the predicted minimum frequency point is obtained. The frequency safety margin of the power system is calculated using the minimum frequency value and the preset safety frequency lower limit.

[0010] This invention first extracts the predicted minimum frequency point from the complete post-disturbance frequency trajectory and obtains its minimum frequency value. This predicted minimum frequency point represents the frequency state of the system at the worst moment during future disturbances and is the most dangerous characteristic quantity in the entire frequency dynamic process. Then, the difference between this minimum frequency value and the preset safe frequency lower limit is calculated, compressing the complex frequency trajectory information into a margin index with clear physical meaning. This index intuitively represents how much safety margin the system has from the frequency collapse boundary at the current operating point, so that the subsequent risk level determination can be completed in a very short time. Thus, while ensuring the validity of the criteria, it also takes into account the stringent requirements of online control for calculation speed.

[0011] Furthermore, the step of determining the risk level of the power system based on the frequency security margin, and calculating the available support capacity of various resources in the power system based on the risk level, includes: The risk level of the current power system is determined based on the frequency safety margin and the preset frequency safety margin threshold set. Based on the risk level, target resources are determined, and the available support capacity of each type of target resource is calculated.

[0012] This invention first compares the continuously changing frequency safety margin with a preset threshold group, mapping the infinitely continuous margin value to a finite discrete risk level, quantifying the safety status of the power system into different levels, which facilitates the control system to make clear hierarchical decisions accordingly. Then, based on the risk level, it selects the target resources to be invested and calculates the available support capacity only for the target resources. This ensures that the higher the risk level, the more resources are activated, so that the system can maintain basic operation under low risk and quickly gather all available adjustment capabilities under high risk. This avoids the communication burden and computational waste caused by calling all resources under all operating conditions, thereby optimizing the system's computational efficiency and resource utilization economy while ensuring control effectiveness.

[0013] Furthermore, the frequency safety margin threshold set includes a first threshold, a second threshold, and a third threshold; determining the current power system risk level based on the frequency safety margin and the preset frequency safety margin threshold set includes: When the frequency safety margin is greater than or equal to the first threshold, the risk level is determined to be normal; When the frequency safety margin is less than the first threshold and greater than or equal to the second threshold, the risk level is determined to be mild risk. When the frequency safety margin is less than the second threshold and greater than or equal to the third threshold, the risk level is determined to be medium risk. When the frequency safety margin is less than the third threshold, the risk level is determined to be severe risk.

[0014] This invention divides the frequency safety margin into four levels from high to low, corresponding to four operating states: normal, low risk, medium risk, and high risk. When the frequency safety margin is large, the system is judged to be normal and no additional control action is required. As the margin gradually narrows, low, medium, and high risk levels are triggered in sequence, forming a gradient decision chain that responds step by step as the risk level increases. Each level of risk has a clear numerical boundary condition, ensuring the uniqueness and reproducibility of the judgment.

[0015] Furthermore, determining the target resource based on the risk level includes: When the risk level is mild, new energy power plants and conventional frequency regulation units are identified as target resources, and energy storage resources and flexible load resources are identified as backup resources. When the risk level is medium risk, energy storage resources, new energy power stations and conventional frequency regulation units are identified as target resources, and flexible loads are kept as backup resources. When the risk level is severe, energy storage resources, new energy power plants, conventional frequency regulation units, and flexible load resources are identified as target resources.

[0016] This invention prioritizes renewable energy power plants and conventional frequency-regulating units as target resources under mild risk conditions, and energy storage and flexible loads as backup resources. It prioritizes the use of resources with long duration and low operating costs to handle small power fluctuations, avoiding frequent use of fast but cycle-life-limited resources such as energy storage. Under moderate risk conditions, energy storage resources are included as target resources, utilizing their millisecond-level response speed to compensate for insufficient inertia support of renewable energy and conventional units in the early stages of disturbances. This allows renewable energy to provide continuous backup, conventional units to provide basic frequency regulation, and energy storage to provide rapid backup. Under severe risk conditions, flexible loads are further included as target resources, with user-side regulation as the last power supplement to prevent the frequency from falling below the safe lower limit. This achieves precise matching between the response characteristics of each resource type and the control requirements corresponding to the risk level. The fast-responding energy storage copes with high-frequency impacts, the continuous and durable conventional units provide long-term support, the economical renewable energy provides reserve capacity, and the flexible loads provide backup protection in extreme cases.

[0017] Furthermore, the calculation of the available support capabilities of various target resources includes: When the energy storage resource is the target resource, the energy storage output power, energy storage state of charge and frequency change rate are obtained based on the state input vector, and the available support capacity of the energy storage resource is calculated in combination with the preset minimum allowable output power and maximum allowable output power of the energy storage. When the new energy power station is the target resource, the photovoltaic active power is obtained based on the state input vector, and the available support capacity of the photovoltaic power station is calculated based on the photovoltaic active power and the preset maximum active power. The current speed and the lower limit of safe operation of the wind turbine are obtained, and the available support capacity of the wind farm is calculated based on the current speed and the lower limit of safe operation. The available support capacity of the new energy power station is the sum of the available support capacity of the photovoltaic power station and the available support capacity of the wind farm. When the conventional frequency regulation unit is the target resource, the available frequency regulation reserve capacity of the conventional frequency regulation unit in the power system is obtained, and the available frequency regulation reserve capacity is used as the available support capacity of the conventional frequency regulation unit. When the flexible load resource is the target resource, the real-time frequency and frequency change rate of the system are obtained based on the state input vector, and the load adjustability is calculated based on the real-time frequency and the current frequency change rate. The load adjustability is used as the available support capacity of the flexible load resource.

[0018] For energy storage resources, this invention obtains the current output power, state of charge, and frequency change rate from the state input vector, and performs dual boundary checks based on the minimum and maximum allowable output power. This ensures that the calculated results of the energy storage resources are within both the power limit and the safe charge range, preventing damage from overcharging and over-discharging. For photovoltaic (PV) stations, the difference between the current active power and the maximum available active power is used to obtain the reserve capacity, quantifying the incremental active power that the PV station can release without adding power generation equipment. For wind farms, the additional power corresponding to the release of rotor kinetic energy is calculated after obtaining the current rotational speed and the lower limit of safe operation of the rotational speed. This converts the rotational kinetic energy of the wind turbine into quantifiable active power support capacity, while the lower limit of rotational speed ensures that the unit does not disconnect from the grid due to excessive energy release. The available frequency regulation reserve capacity of conventional units is directly obtained from the power system, ensuring its reliability as a basic frequency regulation resource. Flexible load resources have their adjustable capacity calculated based on real-time frequency and rate of change, dynamically linking their response to the system's urgency.

[0019] Furthermore, the step of calculating the target support power of each resource based on its comprehensive capability value, available support capability, and pre-acquired total support power, and controlling each resource based on its target support power to achieve frequency stabilization control, includes: The power allocation coefficient of each type of target resource is calculated based on the comprehensive capability value of each type of target resource and the sum of the comprehensive capability values ​​of all target resources. The initial support power of various target resources is calculated based on the power allocation coefficient and the total support power of the power system; Based on the available support capabilities of various target resources and the initial support power, the target support power of each type of resource is determined, and the various resources are controlled based on the target support power of each type of resource to achieve frequency stability control.

[0020] This invention first sums the comprehensive capability values ​​of all target resources to obtain a total value. This total value is then used as a normalization benchmark. The comprehensive capability value of each type of resource is divided by this benchmark to obtain its respective power allocation coefficient. Resources with fast response speed, long continuous support time, and good operating status receive higher allocation coefficients, while those with lower performance receive lower allocation coefficients, thus achieving differentiated allocation guided by comprehensive capability. Next, this allocation coefficient is multiplied by the total support power to obtain the initial support power, transforming the relative capability advantages between resources into specific power values, completing the transformation from qualitative evaluation to quantitative allocation. Finally, the initial support power is boundary-checked using available support capabilities as a physical hard constraint to conduct a security review of the allocation results. The final target support power reflects the relative strength of the comprehensive capabilities of each resource without exceeding their respective physical limits.

[0021] Furthermore, the step of determining the target support power of each type of resource based on its available support capacity and the initial support power, and controlling each type of resource based on its target support power to achieve frequency stabilization control, includes: For any type of target resource, when the initial support power is less than or equal to the available support capacity of the target resource, the initial support power is determined as the target support power of the target resource. When the initial support power is greater than the available support capacity of the target resource, the available support capacity is determined as the target support power of the target resource; Based on the target support power of various resources, control commands are generated, and based on the control commands, various resources are controlled to achieve frequency stabilization control.

[0022] For any type of target resource, this invention first determines whether its initial support power exceeds the available support capacity of that type of resource. When the initial support power does not exceed the limit, it is directly determined as the target support power, preserving the allocation result guided by comprehensive capacity. When the initial support power exceeds the limit, the available support capacity is determined as the target support power, and the allocation result is safely truncated at the capacity boundary, ensuring that the final issued power command does not exceed the physical limit of the resource under any circumstances. This gives the target support power generation process an active boundary protection capability, eliminating the need for secondary limiting at the execution layer. It ensures that the rationality of the allocation scheme is not affected by the insufficient capacity of individual resources, and maximizes the output of resources with insufficient capacity at the limit point by directly transmitting boundary values, avoiding execution failure due to over-limit commands. Thus, it simultaneously ensures the engineering usability of the final power allocation scheme at both the safety and executability levels.

[0023] In a second aspect, the present invention provides a frequency stability control device for a new energy power system, comprising: a data acquisition module, a safety margin calculation module, a risk classification module, a comprehensive capability calculation module, and a control module; The data acquisition module is used to acquire multi-source operating status data of the power system and construct a status input vector based on the multi-source operating status data. The safety margin calculation module is used to construct a short-time frequency response prediction model based on the state input vector, predict the post-disturbance frequency trajectory of the power system based on the short-time frequency response prediction model, and calculate the frequency safety margin based on the post-disturbance frequency trajectory. The risk rating module is used to determine the risk level of the power system based on the frequency security margin, and to calculate the available support capacity of various resources in the power system based on the risk level. The comprehensive capability calculation module is used to calculate the comprehensive capability value of various resources based on their response speed, continuous support time, and operating status. The control module is used to calculate the target support power of various resources based on the comprehensive capability value, available support capability and pre-acquired total support power of various resources, and to control various resources based on the target support power of various resources to complete frequency stabilization control. Attached Figure Description

[0024] Figure 1 A flowchart illustrating a frequency stability control method for a new energy power system provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a frequency stabilization control device for a new energy power system provided in an embodiment of the present invention. Detailed Implementation

[0025] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.

[0026] The terms "first" and "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] Example 1 See Figure 1 , Figure 1 This is a flowchart illustrating a frequency stability control method for a new energy power system according to an embodiment of the present invention. The embodiment of the present invention provides a frequency stability control method for a new energy power system, including steps 101 to 105, as detailed below: Step 101: Obtain multi-source operating status data of the power system, and construct a state input vector based on the multi-source operating status data; In this embodiment, multi-source operational status data during grid operation are synchronously collected using a synchronous phasor measurement unit (PMU), an energy management system (EMS), an energy storage management system (BMS), and a new energy power plant monitoring system. The collected data items include system frequency, rate of frequency change, wind power active power output, photovoltaic active power output, energy storage output power, energy storage state of charge (SBC), tie-line power, total system load, conventional unit output, and system equivalent inertia constant. These data originate from different time scales and communication protocols. The PMU provides high-resolution time-series data, the EMS provides steady-state power flow and unit status, the BMS provides the SBC and power boundaries for energy storage, and the new energy monitoring system provides feedback on the power plant-level active power output and available power limits.

[0029] In this embodiment, the collected raw data needs to be preprocessed. Specifically, a moving average filter is performed on each data source to suppress measurement noise, outliers exceeding the statistical range are removed based on the Laida criterion, and then all data are aligned to the same time segment through unified clock synchronization. The filtered and synchronized data then enters the normalization process, where each physical quantity is compressed to a uniform numerical range, eliminating the impact of dimensional differences on subsequent weight calculations. Finally, the preprocessed physical quantities form a system state input vector at a unified time scale. (1) in, for The system state input vector at any given time; This refers to the system's real-time frequency. The rate of change of frequency; , , These are the active power of wind power, photovoltaic power, and energy storage, respectively. It is in a state of energy storage charge; For tie line power; This represents the total system load. To provide power to conventional generating units; The system's equivalent inertia constant.

[0030] In this embodiment, the state input vector serves as the unified data entry point for all subsequent computational steps, carrying two different types of input requirements. In , , , , , , , and Used to construct short-time frequency response models to predict the trajectory of disturbed product categories; and The output of new energy sources, energy storage power, energy storage state of charge, output of conventional units, and load power are used to calibrate the available boundaries of various frequency regulation resources.

[0031] In this embodiment, the control system completes the construction and distribution of the aforementioned vectors within each sampling cycle. After the control command is executed, the actual response status of each resource is fed back to the next sampling moment, forming a continuously rolling data closed loop. The system's equivalent inertia constant and equivalent damping coefficient are provided by online identification by the EMS. They are not fixed values ​​but change in real time with the penetration rate of new energy sources and the operating mode.

[0032] Step 102: Construct a short-time frequency response prediction model based on the state input vector, predict the post-disturbance frequency trajectory of the power system based on the short-time frequency response prediction model, and calculate the frequency safety margin based on the post-disturbance frequency trajectory. In this embodiment, the step of predicting the post-disturbance frequency trajectory of the power system based on the state input vector and a preset short-time frequency response prediction model, and calculating the frequency safety margin based on the post-disturbance frequency trajectory, includes: Calculate the system power loss and system equivalent inertia of the power system at the current moment based on the state input vector; Using the system power loss as the driving input for frequency change, and the system frequency in the state input vector as the prediction starting value, a short-time frequency response prediction model is constructed by combining the system equivalent inertia constant and the preset system equivalent damping coefficient. The short-time frequency response prediction model is used to predict the post-disturbance frequency trajectory of the power system, and the frequency safety margin is calculated based on the post-disturbance frequency trajectory.

[0033] In this embodiment, the control system needs to extract three key quantities from the state input vector: the system power loss, the system equivalent inertia constant, and the current value of the system frequency.

[0034] In this embodiment, after the state input vector is constructed, frequency prediction is performed. The root cause of frequency disturbance lies in power imbalance. Therefore, this embodiment obtains the output of conventional units, wind power, photovoltaic power, energy storage power, total system load, and grid loss power from the state input vector. The system power deficit at the current moment is calculated based on the instantaneous difference between the power supply side and the load side. If this difference is negative, it indicates a power deficit in the system, and the frequency faces the risk of decline; the larger the deficit, the more severe the frequency drop. The system power deficit is specifically as follows: (2) in, The system power loss is measured in megawatts. To provide power to conventional units, and The active power outputs are respectively from wind power and solar power. For energy storage output power, The total system load, This represents the power loss due to network loss.

[0035] Having power loss measurement alone is not enough; the control system also needs to know the system's current inertia level. The state input vector already contains the system's equivalent inertia constant. This is identified online by the energy management system and reflects the total rotational kinetic energy of all grid-connected synchronous machines and virtual inertia resources at the current moment. Therefore, this embodiment uses this equivalent inertia constant and a preset equivalent damping coefficient. As model parameters, the system frequency in the state input vector As the starting point for prediction, power loss is used as the metric. As driving inputs, they jointly construct a short-time frequency response prediction model, specifically: (3) in, The system's rated frequency, This represents the frequency deviation. The short-time frequency response prediction model describes the physical relationship between inertia, power deficit, and the rate of frequency change. The larger the system inertia, the slower the frequency decrease rate under the same power deficit; the larger the power deficit, the faster the frequency drops. The control system operates at an discrete step length within the prediction time window. Numerical integration of this equation, starting from the current frequency, is performed recursively: (4) in, Let k be the predicted frequency value at step k. For the frequency deviation at step k, Let be the power miscalculation at step k. Each iteration calculates the frequency value for the next step based on the power miscalculation at the current step and the current frequency deviation. This process is repeated until the entire prediction time window is covered, ultimately resulting in a perturbed frequency trajectory composed of predicted frequencies at multiple discrete moments.

[0036] In this embodiment, the system power loss and equivalent inertia are first extracted from the state input vector. The power loss is used as the driving input for frequency change, and the system frequency in the state input vector is used as the prediction starting value, so that the initial state of the prediction model is accurately aligned with the current actual operating conditions of the system. Then, a short-time frequency response prediction model is constructed by combining the equivalent inertia constant and the preset equivalent damping coefficient. The equivalent inertia constant directly reflects the system's rotational kinetic energy level under the current new energy penetration rate, while the damping coefficient characterizes the system's inherent ability to suppress frequency deviation. The prediction model constructed in this way can adaptively adjust with changes in the system's operating mode. Based on this model, the frequency trajectory after disturbance is predicted, and the frequency safety margin is calculated accordingly. This allows the frequency safety margin to track the fluctuation of new energy output and the change of system inertia in real time, avoiding the problem of inaccurate prediction in low-inertia scenarios caused by fixed parameter models, thereby further improving the timeliness and reliability of frequency stability control and prediction.

[0037] In this embodiment, calculating the frequency safety margin based on the perturbed frequency trajectory includes: Based on the frequency trajectory after the disturbance, the predicted minimum frequency point of the power system is obtained, and the minimum frequency value of the predicted minimum frequency point is obtained. The frequency safety margin of the power system is calculated using the minimum frequency value and the preset safety frequency lower limit.

[0038] In this embodiment, the point with the lowest predicted frequency is obtained from this trajectory: (5) in, To predict the number of steps, The predicted minimum frequency represents the lowest frequency value that the system is most likely to reach under future disturbances; it is a core indicator for measuring frequency security. With the preset safety frequency lower limit Subtracting these two values ​​gives us the frequency safety margin: (6) in, For frequency safety margin indicators; This is a preset safety frequency lower limit. Determined by power grid operation procedures A positive value indicates that the system still has a safety margin in its current operating state; the larger the positive value, the safer it is. A value approaching zero or even turning negative indicates that the system faces the risk of exceeding frequency limits, requiring immediate initiation of the resource allocation process. This margin indicator then enters the risk level assessment stage, becoming the triggering basis for all subsequent decisions.

[0039] In this embodiment, the predicted minimum frequency point is first extracted from the complete post-disturbance frequency trajectory, and its minimum frequency value is obtained. This predicted minimum frequency point represents the frequency state of the system at the worst moment during future disturbances and is the most dangerous characteristic quantity in the entire frequency dynamic process. Then, the difference between this minimum frequency value and the preset safe frequency lower limit is calculated, compressing the complex frequency trajectory information into a margin index with clear physical meaning. This index intuitively represents how much safety margin the system has from the frequency collapse boundary at the current operating point, so that the subsequent risk level determination can be completed in a very short time. Thus, while ensuring the validity of the criteria, it also takes into account the stringent requirements of online control for calculation speed.

[0040] In this embodiment, in addition to the lowest frequency point, the peak value of the frequency change rate and the frequency recovery rate are also statistically analyzed based on the frequency trajectory after the disturbance.

[0041] The peak value of the frequency change rate reflects the severity of the disturbance. It is obtained by iterating through the frequency differences between adjacent moments in the trajectory, dividing by the step length to get the rate of change for each step, and then taking the maximum value. Specifically: (7) The magnitude of the peak frequency change rate is directly related to the adequacy of the system's inertia; a larger rate of change indicates a weaker ability of the system to resist power disturbances. More importantly, the virtual inertial response of energy storage uses the frequency change rate as its input signal. The frequency and amplitude of this prediction determine the amount of supporting power that the energy storage needs to release in the early stages of a disturbance. Therefore, this embodiment uses this predicted value as a feedforward reference for the energy storage response, enabling the output of inertial supporting power matching the predicted rate of change in the first control cycle after the disturbance occurs, at least one to two control steps earlier than simply relying on real-time measurements.

[0042] The frequency recovery rate reflects the system's ability to return to normal operating range after a disturbance. This embodiment records the time when the frequency minimum occurs. And the recovery time when the frequency rises back to the target frequency neighborhood. The frequency recovery rate is obtained by subtracting the lowest frequency from the rated frequency, using the amplitude to be recovered, and dividing by the recovery time. (8) In this embodiment, The magnitude of this value determines the pullback strategy for various support resources during the recovery phase. A faster recovery rate indicates sufficient system self-adjustment capability, allowing support resources to exit quickly; conversely, a slower recovery rate necessitates that support resources maintain output for a longer period to prevent premature exit and subsequent frequency drops. This embodiment will... Store the data in a state cache, and when the frequency recovery phase arrives, use it to set the slope of energy storage pullback, the upper limit of the wind power speed recovery rate, and the timing interval of load recovery.

[0043] In this embodiment, the system power loss is calculated. System equivalent inertia and equivalent damping coefficient The short-time frequency response prediction model is denoted as . Its output includes the frequency trajectory within the predicted time window, the predicted minimum frequency point, the predicted maximum rate of change of frequency, and the frequency recovery trend, namely: The short-time frequency response prediction model can be implemented using a frequency response equation based on the system's equivalent inertia and damping characteristics. Alternatively, an online parameter correction term can be introduced based on this physical model to adapt to different new energy penetration rates, system inertia levels, and resource operating conditions.

[0044] Step 103: Determine the risk level of the power system based on the frequency security margin, and calculate the available support capacity of various resources in the power system based on the risk level; In this embodiment, determining the risk level of the power system based on the frequency security margin, and calculating the available support capacity of various resources in the power system based on the risk level, includes: The risk level of the current power system is determined based on the frequency safety margin and the preset frequency safety margin threshold set. Based on the risk level, target resources are determined, and the available support capacity of each type of target resource is calculated.

[0045] In this embodiment, after the frequency security margin is calculated, the continuously changing margin value needs to be mapped to discrete risk levels, and then the available support capacity of the resources to be activated and how to calculate them is determined based on the risk level.

[0046] In this embodiment, the continuously changing frequency safety margin is first compared with a preset threshold group, mapping the infinitely continuous margin value to a finite discrete risk level. This quantifies the safety status of the power system into different levels, facilitating the control system to make clear hierarchical decisions. Subsequently, based on the risk level, the target resources to be invested are selected, and the available support capacity is calculated only for the target resources. This ensures that the higher the risk level, the more resources are activated, so that the system can maintain basic operation under low risk and quickly gather all available adjustment capabilities under high risk. This avoids the communication burden and computational waste caused by calling all resources under all operating conditions, thereby optimizing the system's computational efficiency and resource utilization economy while ensuring control effectiveness.

[0047] In this embodiment, the frequency safety margin threshold set includes a first threshold, a second threshold, and a third threshold; determining the risk level of the current power system based on the frequency safety margin and the preset frequency safety margin threshold set includes: When the frequency safety margin is greater than or equal to the first threshold, the risk level is determined to be normal; When the frequency safety margin is less than the first threshold and greater than or equal to the second threshold, the risk level is determined to be mild risk. When the frequency safety margin is less than the second threshold and greater than or equal to the third threshold, the risk level is determined to be medium risk. When the frequency safety margin is less than the third threshold, the risk level is determined to be severe risk.

[0048] In this embodiment, the system pre-stores a set of frequency safety margin thresholds, which are listed in descending order as the first threshold. Second threshold and the third threshold ,and The three thresholds divide the risk space into four intervals. The control system uses the calculated... By comparing the system against these three thresholds one by one, we can determine which risk level the current system belongs to. when When the system is in a normal state, the frequency safety margin is sufficient, and the control system does not trigger any support actions. At that time, it was determined to be a minor risk. At that time, it was determined to be a moderate risk. At that time, it was judged to be of severe risk. With... Crossing in sequence , , With three thresholds and progressively increasing risk levels, concerns about frequency security in control systems are growing. , , The specific values ​​are determined by the power grid operation procedures or offline simulation. The values ​​of these thresholds will vary significantly under different power grid structures, load characteristics and new energy penetration rates.

[0049] In this embodiment, the frequency safety margin is divided into four levels from high to low, corresponding to four operating states: normal, low risk, medium risk, and high risk. When the frequency safety margin is large, the system is judged to be normal and no additional control action is required. As the margin gradually narrows, the low, medium, and high risk levels are triggered in sequence, forming a gradient decision chain that responds step by step as the risk level increases. Each level of risk has a clear numerical boundary condition corresponding to it, ensuring the uniqueness and reproducibility of the judgment.

[0050] In this embodiment, determining the target resource based on the risk level includes: When the risk level is mild, new energy power plants and conventional frequency regulation units are identified as target resources, and energy storage resources and flexible load resources are identified as backup resources. When the risk level is medium risk, energy storage resources, new energy power stations and conventional frequency regulation units are identified as target resources, and flexible loads are kept as backup resources. When the risk level is severe, energy storage resources, new energy power plants, conventional frequency regulation units, and flexible load resources are identified as target resources.

[0051] In this embodiment, after the risk level is determined, it is necessary to decide which resources to activate for frequency support and which resources to keep on standby. Different types of frequency regulation resources vary greatly in response speed, continuous support time, operating costs, and energy constraints. If all resources are activated regardless of the risk level, the cycle life of energy storage will be prematurely exhausted, and the impact on the user side of flexible loads will be unnecessarily amplified. Therefore, this embodiment adopts a tiered screening strategy to match the scope of resource activation with the actual risk level of the system.

[0052] When the risk level is determined to be mild, this embodiment marks renewable energy power plants and conventional frequency regulation units as target resources, and energy storage resources and flexible load resources as standby resources. Mild risks typically stem from small power fluctuations, where the frequency drop is limited. Renewable energy power plants can provide effective power support by releasing reserved standby capacity, and conventional frequency regulation units can also meet the demand by increasing their output. The state of charge of energy storage is a scarce resource, and its cycle life should be preserved as much as possible during low-frequency deep charge and discharge cycles, and it should not be frequently invoked during minor disturbances. Flexible loads affect the user's electricity experience and should not be easily disconnected or transferred before the risk reaches an emergency level. At this level, only control commands are issued to renewable energy power plants and conventional units; energy storage resources and flexible load resources remain in their current operating state without action.

[0053] When the risk level rises to medium risk, this embodiment adds energy storage resources as target resources, while renewable energy power plants and conventional frequency regulation units continue to serve as target resources, and flexible loads remain on standby. Medium risk typically corresponds to a significant power deficit, and relying solely on renewable energy reserves and conventional unit frequency regulation may not be enough to bring the lowest frequency point back to a safe range. The energy storage converter outputs virtual inertial power within milliseconds based on the frequency change rate, filling the initial power gap caused by the response delay of renewable energy power plants and the ramp-up constraints of conventional units. The three resource types complement each other under medium risk: energy storage addresses the rapid frequency drop at the beginning of the disturbance, renewable energy reserves provide continuous power generation for several seconds to tens of seconds, and conventional units take over the steady-state frequency regulation task over a longer timescale. Flexible loads are still not involved because the combination of the first three resource types is sufficient to cope with medium risk in most grid structures.

[0054] When the risk level reaches severe risk, this embodiment also includes flexible load resources in the target resource set. Severe risk means that the combined available capacity of the first three types of resources is insufficient to prevent the frequency from approaching the safe lower limit, and the system is in an emergency. In this situation, once the frequency falls below the lower limit and triggers the grid's low-frequency load shedding device, the amount of load cut will be larger and uncontrollable. The control system deploys flexible loads as a last line of defense, scheduling orderly load shedding according to user importance level, interruptible capacity, and response time, minimizing load loss to ensure the overall safety of the system frequency.

[0055] In this embodiment, under mild risk, renewable energy power plants and conventional frequency regulation units serve as target resources, while energy storage and flexible loads serve as backup resources. Resources with long durations and low operating costs are prioritized to handle small power fluctuations, avoiding frequent use of fast-responding but cycle-limited resources such as energy storage. Under moderate risk, energy storage resources are included as target resources, utilizing their millisecond-level response speed to compensate for insufficient inertia support from renewable energy and conventional units in the early stages of disturbances. This allows renewable energy to provide continuous backup, conventional units to provide basic frequency regulation, and energy storage to provide rapid backup. Under severe risk, flexible loads are further included as target resources, with user-side regulation serving as the final power supplement to prevent the frequency from falling below the safe lower limit. This ensures a precise match between the response characteristics of each resource type and the control requirements corresponding to the risk level. The fast-responding energy storage copes with high-frequency impacts, the continuous and durable conventional units provide long-term support, the economical renewable energy provides reserve capacity, and the flexible loads provide fallback protection in extreme cases.

[0056] In this embodiment, calculating the available support capabilities of various target resources includes: When the energy storage resource is the target resource, the energy storage output power, energy storage state of charge and frequency change rate are obtained based on the state input vector, and the available support capacity of the energy storage resource is calculated in combination with the preset minimum allowable output power and maximum allowable output power of the energy storage. When the new energy power station is the target resource, the photovoltaic active power is obtained based on the state input vector, and the available support capacity of the photovoltaic power station is calculated based on the photovoltaic active power and the preset maximum active power. The current speed and the lower limit of safe operation of the wind turbine are obtained, and the available support capacity of the wind farm is calculated based on the current speed and the lower limit of safe operation. The available support capacity of the new energy power station is the sum of the available support capacity of the photovoltaic power station and the available support capacity of the wind farm. When the conventional frequency regulation unit is the target resource, the available frequency regulation reserve capacity of the conventional frequency regulation unit in the power system is obtained, and the available frequency regulation reserve capacity is used as the available support capacity of the conventional frequency regulation unit. When the flexible load resource is the target resource, the real-time frequency and frequency change rate of the system are obtained based on the state input vector, and the load adjustability is calculated based on the real-time frequency and the current frequency change rate. The load adjustability is used as the available support capacity of the flexible load resource.

[0057] In this embodiment, after the target resource type is determined, the available support capacity of these resources is calculated for each type. Different types of resources differ greatly in physical characteristics. Energy storage has a response speed in milliseconds but limited energy capacity. The output of photovoltaic and wind power is constrained by natural conditions. Conventional units have a slow ramp-up time but a long duration. Flexible loads affect the user's electricity experience. Therefore, the capacity of each type of resource needs to be calculated based on its unique physical mechanism.

[0058] In this embodiment, for energy storage resources, the control system extracts the current frequency change rate from the state input vector and calculates the inertia support power that the energy storage should output according to the virtual inertia response relationship: (9) in, The virtual inertia coefficient for energy storage is determined by the control parameters of the energy storage converter. This represents the rate of frequency change at the current moment. The inertia-supported power reflects the physical essence of the inertia response of the energy storage simulated synchronous generator; that is, the faster the frequency decreases, the greater the energy storage output power. The calculated... Two constraint checks are required before the output can be considered as usable support capacity. The first constraint comes from the energy storage state of charge (SOC), where the control system checks whether the current SOC is within the safe operating range: (10) , These represent the lower and upper limits of the energy storage's state of charge (SOC). If the SOC is close to the lower limit, the energy storage no longer has the ability to discharge. At this point, even if the rate of frequency change is large, the usable supporting capacity of the energy storage must be zero. The second constraint comes from the physical limits of the power converter: (11) and These are the minimum and maximum allowable output power for energy storage, respectively. When the limit is exceeded, the amplitude is limited. If the value is below the lower limit, it indicates that no energy storage support is currently needed. After the two constraints are verified step by step, the one that passes the verification... Ultimately, it serves as the available supporting capacity output for energy storage.

[0059] The available support capacity of new energy power plants is calculated separately for photovoltaic (PV) plants and wind farms, and then summed. For PV power plants, the control system extracts the current active power output of PV from the state input vector. The maximum renewable energy generation capacity under current weather conditions is obtained from the monitoring system of the renewable energy power station. The available reserve capacity of a photovoltaic power plant is the difference between the two: (12) This represents the active power that a photovoltaic power station can rapidly increase without adding any new power generation equipment, simply by releasing reserved reserves. The actual value depends on the real-time operating point of the photovoltaic system, specifically when operating in maximum power point tracking (MPPT) mode. Approaching zero, there is ample room for upward adjustment during operation in unloaded mode. For wind farms, the control system obtains the wind turbine's moment of inertia J and current speed from the wind farm monitoring system. and the lower limit of safe operating speed Wind turbines release the rotational kinetic energy stored in the rotor by appropriately reducing the rotational speed. The calculation method for this releaseable kinetic energy is as follows: (13) This represents the total rotor kinetic energy that the wind farm can sacrifice to ensure safe operation. The control system also extracts the current frequency deviation from the state input vector. and the preset wind power frequency support coefficient Calculate the additional active power that the wind farm should output under the current frequency deviation: (14) in, The settings are pre-configured by the wind farm controller based on the turbine model and control strategy. When it is negative A positive value indicates that the increased power generation of the wind farm supports the frequency. The upper limit of energy at the physical level is used for verification. Does the corresponding cumulative energy consumption exceed the safety limit? It itself serves as the output of the wind farm's real-time response capability. The photovoltaic portion... With the wind power section In summary, this represents the overall available support capacity of the new energy power station.

[0060] The available support capacity of conventional frequency regulation units comes from their reserved frequency regulation reserve capacity. The control system obtains the current output of each conventional unit from the energy management system. The primary frequency regulation reserve capacity and the automatic generation control adjustable capacity are defined as follows: The primary frequency regulation reserve capacity corresponds to the power regulation range within which the unit can automatically respond via the governor within seconds. The automatic generation control adjustable capacity corresponds to the unit's continuous regulation capability within tens of seconds to several minutes after receiving remote commands. The primary frequency regulation reserve capacity and the automatic generation control adjustable capacity are then added together to obtain the unit's total available frequency regulation reserve capacity. The sum of the frequency regulation reserve capacities of all operating units constitutes the available support capacity of a conventional frequency regulation unit.

[0061] The calculation method for the available support capacity of flexible load resources differs from the aforementioned four types of resources. Its adjustment amount does not originate from increases on the generation side, but rather from temporary reductions on the consumption side. The control system extracts the current frequency deviation from the state input vector. and frequency change rate Calculate the amount of load that should be cut off or transferred under the current frequency conditions: (15) in, This is the frequency deviation adjustment coefficient. This is the frequency change rate adjustment coefficient. When... negative and When the value is negative, the value inside the parentheses is positive. Take this calculated value; in other cases... Taking zero indicates that no load regulation will be performed. This formula means that the deeper and faster the frequency drops, the higher the emergency level of the power grid, and the greater the amount of load that needs to be cut off. This refers to the available support capacity of flexible loads in this event, which only participates in power sharing under the severe risk level.

[0062] In this embodiment, for energy storage resources, after obtaining the current output power, state of charge, and frequency change rate from the state input vector, a dual boundary check is performed using the minimum and maximum allowable output power. This ensures that the calculated results of the energy storage resources are within both the power limit and the safe charge range, preventing damage from overcharging or over-discharging. For photovoltaic (PV) stations, the reserve capacity is obtained by subtracting the current active power from the maximum available active power, quantifying the incremental active power that the PV station can release without adding power generation equipment. For wind farms, the additional power corresponding to the releaseable rotor kinetic energy is calculated after obtaining the current rotational speed and the lower limit of safe rotational speed operation. This converts the rotational kinetic energy of the wind turbine into quantifiable active power support capacity, while the lower limit of rotational speed ensures that the unit does not disconnect from the grid due to excessive energy release. The available frequency regulation reserve capacity of conventional units is directly obtained from the power system, ensuring its reliability as a basic frequency regulation resource. Flexible load resources have their adjustable capacity calculated based on real-time frequency and rate of change, dynamically linking their response to the system's urgency level.

[0063] Step 104: Calculate the comprehensive capability value of each type of resource based on its response speed, continuous support time, and operating status; In this embodiment, simply comparing the numerical value of available support power is not comprehensive. A conventional generator with a response delay of several seconds but capable of continuous output for half an hour, and an energy storage device with a millisecond response but only lasting for tens of seconds, each have their own value on different control time scales. The control system needs to construct a comprehensive evaluation index that integrates response speed, continuous support time, and operating status into a single value to measure the overall capability of various resources to support frequency.

[0064] Response speed index The response time of resources is determined by their inherent physical characteristics. In this embodiment, resources are sorted and assigned values ​​based on their response time from receiving a control command to reaching the target output power. Energy storage has the fastest response speed, typically completing full power output within tens of milliseconds, and its response speed index is the highest. Conventional frequency regulation units are affected by the governor's action delay and the mechanical inertia of the prime mover, resulting in a response time between hundreds of milliseconds and several seconds, and their index value is the second highest. New energy power plants are connected to the grid through power electronic converters, and their response speed is between that of energy storage and conventional units. Flexible loads involve user-side equipment actions and communication delays, resulting in the slowest response speed and the lowest index value.

[0065] Continuous support time indicator The duration of continuous operation is determined by the energy capacity or fuel reserves of the resources. Conventional frequency regulation units have a continuous fuel supply to their prime movers, allowing them to maintain output for several hours as long as the frequency regulation reserve capacity is not depleted, resulting in the highest continuous support time index. The support time of renewable energy power plants is limited by the total amount of rotor kinetic energy that can be released or the duration of the reserve capacity, generally ranging from tens of seconds to several minutes, with an index value in the middle. Energy storage capacity is constrained by the upper and lower limits of the state of charge; under high power output, usable energy may be depleted within tens of seconds, resulting in the lowest continuous support time index. Flexible load regulation typically only lasts until the user-side equipment restores power; the continuous support time depends on the load type and the user's tolerance level.

[0066] Operational status indicators The operating status is determined by the real-time availability of resources. In this embodiment, the current operating parameters of various resources are extracted from the state input vector. The operating status of energy storage depends on whether the current SOC is in the chargeable / dischargeable range and whether the converter is online. The operating status of new energy power plants depends on whether the current output has an upward adjustment margin. The operating status of conventional units depends on whether they are connected to the grid and whether the frequency regulation reserve is sufficient. When resources are operating normally and have sufficient adjustment margin, the operating status indicators are assigned high values; when resources are under maintenance, faulty, or have insufficient adjustment margin, the indicators are assigned low values ​​or even set to zero.

[0067] The control system integrates the above three indicators into a comprehensive capability value based on various indicators: (16) in, This represents the overall capability value of the i-th type of resource. , , These represent the resource's response speed, sustained support time, and operational status, respectively. α, β, and γ are the corresponding weighting coefficients, pre-tuned by the control system according to power grid operation procedures. All three indicators are normalized to a unified numerical range, ensuring that the weighted sum... It allows for horizontal comparisons across different resource types. The values ​​of the weighting coefficients determine the degree of emphasis the control system places on the three dimensions when evaluating the quality of resources. For example, in a power grid with severely insufficient inertia, α can be appropriately increased to allow resources with faster response times to obtain higher overall capability values.

[0068] In this embodiment, all target resource types are traversed, their comprehensive capability values ​​are calculated one by one, and the results are summarized and output. This comprehensive capability value then enters the power allocation stage, serving as the basis for determining the allocation ratio of each resource, so that resources with higher comprehensive capability values ​​bear a larger proportion of the total support power.

[0069] Step 105: Calculate the target support power of each type of resource based on the comprehensive capability value, available support capability, and pre-acquired total support power, and control each type of resource based on the target support power to complete frequency stabilization control.

[0070] In this embodiment, the step of calculating the target support power of each resource based on its comprehensive capability value, available support capability, and pre-acquired total support power, and controlling each resource based on its target support power to achieve frequency stabilization control, includes: The power allocation coefficient of each type of target resource is calculated based on the comprehensive capability value of each type of target resource and the sum of the comprehensive capability values ​​of all target resources. The initial support power of various target resources is calculated based on the power allocation coefficient and the total support power of the power system; Based on the available support capabilities of various target resources and the initial support power, the target support power of each type of resource is determined, and the various resources are controlled based on the target support power of each type of resource to achieve frequency stability control.

[0071] In this embodiment, the comprehensive capability values ​​of all target resources are first summed to obtain a total comprehensive capability value. This sum is used as the normalized denominator to convert the comprehensive capability value of each resource into a power allocation coefficient. The power allocation coefficient for the i-th type of target... The overall capability value of this type of resource Divide by the sum of the overall capabilities of all target resources: (17) in, It is the sum of the comprehensive capability values ​​of various target resources. The larger, The larger the value, the higher the allocation ratio of that resource in the total support power. This allows resources with fast response speed, long continuous support time, and good operating status to undertake relatively more support tasks, reflecting the allocation principle of matching capability with responsibility.

[0072] In this embodiment, the total supporting power of the power system is obtained. This total support power represents the total active power required by the system to bring the lowest frequency point back to a safe range under the current frequency risk level. The control system multiplies the power allocation coefficient by the total support power to obtain the initial support power for various resources: (18) This represents the theoretical power value allocated to the i-th type of resource according to the proportion of comprehensive capabilities. This is the ideal allocation result without considering the physical limits of each resource.

[0073] In this embodiment, the comprehensive capability values ​​of all target resources are first summed to obtain a total value. This total value is used as a normalization benchmark. The comprehensive capability value of each type of resource is divided by this benchmark to obtain its respective power allocation coefficient. Resources with fast response speed, long continuous support time, and good operating status receive higher allocation coefficients, while those with poor performance receive lower allocation coefficients, thus achieving differentiated allocation guided by comprehensive capability. Next, the allocation coefficient is multiplied by the total support power to obtain the initial support power, transforming the relative capability advantages between resources into specific power values, completing the transformation from qualitative evaluation to quantitative allocation. Finally, the initial support power is boundary-checked using available support capabilities as a physical hard constraint to conduct a security review of the allocation results. The final target support power reflects the relative strength of the comprehensive capabilities of each resource without exceeding their respective physical limits.

[0074] In this embodiment, determining the target support power of each type of resource based on its available support capacity and the initial support power, and controlling each type of resource based on its target support power to achieve frequency stabilization control, includes: For any type of target resource, when the initial support power is less than or equal to the available support capacity of the target resource, the initial support power is determined as the target support power of the target resource. When the initial support power is greater than the available support capacity of the target resource, the available support capacity is determined as the target support power of the target resource; Based on the target support power of various resources, control commands are generated, and based on the control commands, various resources are controlled to achieve frequency stabilization control.

[0075] In this embodiment, for any type of target resource, it is first determined whether its initial support power exceeds the available support capacity of that type of resource. When the initial support power does not exceed the limit, it is directly determined as the target support power, preserving the allocation result guided by comprehensive capabilities. When the initial support power exceeds the limit, the available support capacity is determined as the target support power, and the allocation result is safely truncated at the capability boundary, ensuring that the final issued power command does not exceed the physical limit of the resource under any circumstances. This gives the target support power generation process an active boundary protection capability, without relying on secondary limiting at the execution layer. It ensures that the rationality of the allocation scheme is not affected by the insufficient capability of individual resources, and maximizes the output of resources with insufficient capability at the limit point by directly transmitting boundary values, avoiding execution failure caused by over-limit commands. Thus, it simultaneously ensures the engineering availability of the final power allocation scheme at both the security and executability levels.

[0076] In this embodiment, each type of target resource has available support capacity, which represents the physical limit of the resource under current operating conditions. Therefore, this embodiment compares the initial support power and the corresponding available support capacity of each type of resource, and processes them according to the comparison results.

[0077] For any type of target resource, when the initial support power is less than or equal to the available support capacity, the control system directly determines the initial support power as the target support power. In this case, the allocation result falls within the feasible region of the resource, and the control system does not need to make any corrections. When the initial support power is greater than the available support capacity, the control system determines the available support capacity as the target support power. In this case, the workload allocated according to the comprehensive capacity ratio has exceeded the physical limit of the resource, and the control system can only push the resource to the boundary value, allowing it to operate at full capacity. Initial support power After comparison and judgment, the final target support power of various resources is obtained.

[0078] In this embodiment, when the initial support power is greater than the available support capacity of the target resource of that type, the available support capacity is determined as the target support power of the target resource of that type. At the same time, the excess portion is recorded, and the excess portion is redistributed to the remaining target resources that have not exceeded the limit according to the proportion of the comprehensive capacity value of the remaining target resources that have not exceeded the limit, and the target support power of the remaining target resources that have not exceeded the limit is updated.

[0079] In this embodiment, the target support power of each resource is converted into specific control commands that can be recognized by the actuator.

[0080] For energy storage devices, the control command is the setpoint of the active power of the energy storage, which is then superimposed with the target supported power and processed by a comprehensive limiting function based on the state of charge and the upper and lower power limits. (19) This represents the limiting function after considering power upper and lower limits, state of charge, and ramp rate constraints. This is the active power setpoint that is ultimately sent to the energy storage converter.

[0081] For photovoltaic power plants, the control command is to release the active power output setpoint after reserving the reserve, add the current output power of the photovoltaic system to the target supported power, and simultaneously adjust the release reserve capacity. Limitations: (20) This is to issue active power output commands to the inverters of the photovoltaic power station.

[0082] For wind farms, the control command is an additional active power command or a speed release command, which is the wind farm's current output power plus the target support power, and simultaneously the power corresponding to the releaseable kinetic energy. and the rate of climb Dual constraints: (twenty one) To issue active power commands to the wind farm controller. Limitations on the active power gradeability of wind turbines. To control the cycle.

[0083] For conventional frequency regulation units, the control command is the active power output setpoint after frequency regulation standby activation: (twenty two) This is to issue output commands to the unit's speed governor or automatic generation control system. To contribute to the current generating units, For available frequency modulation reserve capacity, This refers to the unit's ramp-up rate.

[0084] For flexible loads, the control command is the amount of load reduction or transfer: (twenty three) The target support power allocated to the flexible load. Adjustable capacity for flexible loads. This is a power reduction command issued to the load control terminal. After receiving the control command, various resources execute corresponding power adjustment actions to complete the frequency stabilization control process.

[0085] In this embodiment, after controlling various resources based on their target support power and completing frequency stabilization control, the method further includes: Once the system frequency recovers to the preset recovery frequency range, the difference between the current system frequency and the target recovery frequency is obtained. Based on the difference and the preset pullback control coefficient, the pullback power of the energy storage is calculated, and the energy storage is controlled to gradually reduce its active power output according to the pullback power. At the same time, the wind turbine is controlled to gradually restore its speed according to the preset safe recovery curve, the photovoltaic power station is controlled to gradually increase its active power output to rebuild the reserve capacity, and the flexible load is controlled to restore power supply in batches and in an orderly manner according to the preset user-side constraints and importance levels. The system collects the actual lowest frequency point, the actual maximum frequency change rate, the actual recovery time, and the deviation between the execution power of various resources and the target support power during the current control process. Based on the actual lowest frequency point, the actual maximum frequency change rate, and the actual recovery time, the correction parameters in the short-time frequency response prediction model are identified and updated. At the same time, based on the execution deviation of various resources, the response speed weight, continuous support time weight, and operating status weight in the comprehensive capability value are identified and updated. The identified updated parameters are weighted and fused with historical parameters according to a preset forgetting factor to form updated prediction model parameters and comprehensive capability value weight coefficients, which are used for frequency prediction and resource allocation at the next moment.

[0086] In this embodiment, after the control commands are executed and the system frequency gradually recovers to the preset recovery frequency range, the control system enters the recovery phase. Since multiple resources simultaneously increase their output during the disturbance, if they exit synchronously after the frequency reaches the target, the system will lose a significant amount of active power support in a short period, potentially triggering a new round of frequency drops, the so-called secondary frequency drop. Therefore, this embodiment avoids the concentrated removal of support power at the same time point by having various resources exit at different time scales and slopes.

[0087] In this embodiment, the system frequency is continuously monitored. and target recovery frequency The deviation between the two frequencies. The most direct energy storage withdrawal strategy is to calculate the energy storage pullback power based on the difference between the current frequency and the target frequency. (twenty four) The control coefficient for pullback is tuned online by the control system based on the current frequency recovery rate. The further the frequency deviates from the target value, the more... The larger the value, the higher the energy storage output; as the frequency gradually approaches the target value... As the frequency gradually decreases, the energy storage output power decreases smoothly. When the frequency enters the dead zone near the target value and the recovery rate tends to stabilize, the energy storage output gradually decreases to zero according to the preset slope.

[0088] As energy storage begins to withdraw, the control system sends a speed recovery command to the wind farm. The wind turbine's speed recovery is not instantaneous; the control system gradually releases the speed command according to a preset safe recovery curve, allowing the rotor speed to slowly rise from its current value to the optimal operating point. During this process, the wind turbine's additional active power decreases, but the rate of decrease is more gradual than with energy storage withdrawal because the rotor's mechanical inertia limits the rate of speed change. The recovery process for photovoltaic power plants differs slightly from that of wind power. During the disturbance, the control system released the photovoltaic's reserved reserve capacity, which now needs to be re-established. The control system gradually reduces the active power output setpoint of the photovoltaic inverter, returning some of the generating capacity to a reduced-load reserve state, reserving adjustment space for the next possible disturbance. The recovery of flexible loads involves the user experience. The control system prioritizes the recovery order according to the importance of users, restoring power to first-priority users first, while interruptible and transferable loads are arranged in the last batch, with sufficient time intervals between batches to ensure the system has ample time to smooth out the power surge caused by load recovery.

[0089] After the aforementioned recovery actions are completed, the control system collects the actual response data for this event. The actual minimum frequency, actual maximum frequency change rate, and actual recovery time are extracted from the PMU records, and the deviation between the actual execution power of various resources and the target support power is calculated. This data is used to drive the online learning mechanism of the control system.

[0090] The control system constructs a set of parameters to be updated: (25) It includes correction parameters in the short-time frequency response prediction model, specifically equivalent damping correction parameters, power imbalance effect correction coefficient, frequency minimum point prediction correction coefficient, frequency change rate prediction correction coefficient, and frequency recovery trend correction coefficient. This includes weighting coefficients in the dynamic allocation process, specifically response speed weight, continuous support time weight, operational status weight, energy margin weight, operating cost weight, and priority allocation coefficients for various resources under different risk levels. These two types of parameters correspond to the two performance dimensions of prediction accuracy and allocation rationality, respectively.

[0091] The control system identifies a new set of parameters based on the deviations between the actual and predicted minimum frequencies, the deviations between the actual and predicted maximum frequency change rates, the deviations between the actual and predicted recovery times, and the execution deviations of various resources. Then, the new parameters are merged with the historical parameters using a weighted recursive method: (26) in, The forgetting factor has a value between zero and one. The control system presets this value to balance the stability of historical experience and the response speed of new information. When the data is large, the control system relies more on historical parameters and updates the data more gradually. When the frequency is lower, the control system pays more attention to feedback from the latest events, and its parameter adjustments are more aggressive. When the actual minimum frequency is lower than the predicted minimum frequency, it indicates that the predictive model underestimated the impact of the power deficit, and the control system updates its parameters accordingly. The power imbalance affects the correction coefficients for the frequency minimum prediction, increasing the sensitivity of the next round of predictions to power deficits. When the actual operating power of a certain type of resource is consistently lower than the target support power, it indicates that the actual available capacity of that resource is lower than the previously assessed expected value. The control system updates the power supply accordingly. The corresponding operating status weight or priority call coefficient is used to reduce the allocation ratio of that resource in subsequent allocations. This closed-loop update mechanism enables the control strategy to continuously evolve in response to fluctuations in new energy output, changes in system inertia, and changes in resource availability, completing parameter adaptation online without manual intervention.

[0092] Please refer to Figure 2 , Figure 2 A schematic diagram of a frequency stability control device for a new energy power system provided in an embodiment of the present invention includes: a data acquisition module 201, a safety margin calculation module 202, a risk classification module 203, a comprehensive capability calculation module 204, and a control module 205; The data acquisition module 201 is used to acquire multi-source operating status data of the power system and construct a status input vector based on the multi-source operating status data. The safety margin calculation module 202 is used to construct a short-time frequency response prediction model based on the state input vector, predict the post-disturbance frequency trajectory of the power system based on the short-time frequency response prediction model, and calculate the frequency safety margin based on the post-disturbance frequency trajectory. The risk rating module 203 is used to determine the risk level of the power system based on the frequency safety margin, and to calculate the available support capacity of various resources in the power system based on the risk level. The comprehensive capability calculation module 204 is used to calculate the comprehensive capability value of various resources based on their response speed, continuous support time, and operating status. The control module 205 is used to calculate the target support power of various resources based on the comprehensive capability value, available support capability and pre-acquired total support power of various resources, and to control various resources based on the target support power of various resources to complete frequency stabilization control.

[0093] The present invention provides a computer program product, including a computer program or instructions, which, when executed by a communication device, implement the method described therein.

[0094] In this embodiment of the invention, a frequency stabilization control device for a new energy power system is also provided, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the above-mentioned frequency stabilization control method for a new energy power system.

[0095] In this embodiment of the invention, a computer-readable storage medium is also provided, which includes a stored computer program, wherein the computer program controls the device where the computer-readable storage medium is located to execute the above-described new energy power system frequency stabilization control method when it is running.

[0096] For example, a computer program can be divided into one or more modules, one or more of which are stored in memory and executed by a processor to complete the present invention. One or more modules can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in a frequency stabilization control device for a new energy power system.

[0097] The frequency stabilization control device for the new energy power system can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. The frequency stabilization control device for the new energy power system may include, but is not limited to, a processor, memory, and display. Those skilled in the art will understand that the above components are merely examples of the frequency stabilization control device for the new energy power system and do not constitute a limitation on the device. It may include more or fewer components, or a combination of certain components, or different components. For example, the frequency stabilization control device for the new energy power system may also include input / output devices, network access devices, buses, etc.

[0098] The processor referred to can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the frequency stabilization control equipment in the new energy power system, connecting various parts of the equipment through various interfaces and lines.

[0099] The memory can be used to store computer programs and / or modules. The processor, by running or executing the computer programs and / or modules stored in the memory, and by calling the data stored in the memory, realizes various functions of the frequency stabilization control equipment of the new energy power system. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, at least one application program required for a function (such as sound playback function, text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0100] In this invention, the module for frequency stability control of the new energy power system, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. Those skilled in the art can understand and implement this invention without any inventive effort.

[0101] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A frequency stability control method for a new energy power system, characterized in that, include: Acquire multi-source operating status data of the power system, and construct a state input vector based on the multi-source operating status data; A short-time frequency response prediction model is constructed based on the state input vector. The frequency trajectory of the power system after disturbance is predicted based on the short-time frequency response prediction model. The frequency safety margin is calculated based on the frequency trajectory after disturbance. The risk level of the power system is determined based on the frequency security margin, and the available support capacity of various resources in the power system is calculated based on the risk level. The comprehensive capability value of each type of resource is calculated based on its response speed, continuous support time, and operating status. Based on the comprehensive capability value, available support capability, and pre-acquired total support power of various resources, the target support power of each resource is calculated, and the resources are controlled based on the target support power to achieve frequency stability control.

2. The frequency stability control method for a new energy power system as described in claim 1, characterized in that, The method of predicting the post-disturbance frequency trajectory of the power system based on the state input vector and a preset short-time frequency response prediction model, and calculating the frequency safety margin based on the post-disturbance frequency trajectory, includes: Calculate the system power loss and system equivalent inertia of the power system at the current moment based on the state input vector; Using the system power loss as the driving input for frequency change, and the system frequency in the state input vector as the prediction starting value, a short-time frequency response prediction model is constructed by combining the system equivalent inertia constant and the preset system equivalent damping coefficient. The short-time frequency response prediction model is used to predict the post-disturbance frequency trajectory of the power system, and the frequency safety margin is calculated based on the post-disturbance frequency trajectory.

3. The frequency stability control method for a new energy power system as described in claim 2, characterized in that, The calculation of the frequency safety margin based on the frequency trajectory after the disturbance includes: Based on the frequency trajectory after the disturbance, the predicted minimum frequency point of the power system is obtained, and the minimum frequency value of the predicted minimum frequency point is obtained. The frequency safety margin of the power system is calculated using the minimum frequency value and the preset safety frequency lower limit.

4. The frequency stability control method for a new energy power system as described in claim 2, characterized in that, The process of determining the risk level of the power system based on the frequency security margin, and calculating the available support capacity of various resources in the power system based on the risk level, includes: The risk level of the current power system is determined based on the frequency safety margin and the preset frequency safety margin threshold set. Based on the risk level, target resources are determined, and the available support capacity of each type of target resource is calculated.

5. The frequency stability control method for a new energy power system as described in claim 4, characterized in that, The frequency safety margin threshold set includes a first threshold, a second threshold, and a third threshold; determining the risk level of the current power system based on the frequency safety margin and the preset frequency safety margin threshold set includes: When the frequency safety margin is greater than or equal to the first threshold, the risk level is determined to be normal; When the frequency safety margin is less than the first threshold and greater than or equal to the second threshold, the risk level is determined to be mild risk. When the frequency safety margin is less than the second threshold and greater than or equal to the third threshold, the risk level is determined to be medium risk. When the frequency safety margin is less than the third threshold, the risk level is determined to be severe risk.

6. The frequency stability control method for a new energy power system as described in claim 5, characterized in that, The determination of target resources based on the risk level includes: When the risk level is mild, new energy power plants and conventional frequency regulation units are identified as target resources, and energy storage resources and flexible load resources are identified as backup resources. When the risk level is medium risk, energy storage resources, new energy power stations and conventional frequency regulation units are identified as target resources, and flexible loads are kept as backup resources. When the risk level is severe, energy storage resources, new energy power plants, conventional frequency regulation units, and flexible load resources are identified as target resources.

7. The frequency stabilization control method for a new energy power system as described in claim 6, characterized in that, The calculation of the available support capabilities of various target resources includes: When the energy storage resource is the target resource, the energy storage output power, energy storage state of charge and frequency change rate are obtained based on the state input vector, and the available support capacity of the energy storage resource is calculated in combination with the preset minimum allowable output power and maximum allowable output power of the energy storage. When the new energy power station is the target resource, the photovoltaic active power is obtained based on the state input vector, and the available support capacity of the photovoltaic power station is calculated based on the photovoltaic active power and the preset maximum active power. The current speed and the lower limit of safe operation of the wind turbine are obtained, and the available support capacity of the wind farm is calculated based on the current speed and the lower limit of safe operation. The available support capacity of the new energy power station is the sum of the available support capacity of the photovoltaic power station and the available support capacity of the wind farm. When the conventional frequency regulation unit is the target resource, the available frequency regulation reserve capacity of the conventional frequency regulation unit in the power system is obtained, and the available frequency regulation reserve capacity is used as the available support capacity of the conventional frequency regulation unit. When the flexible load resource is the target resource, the real-time frequency and frequency change rate of the system are obtained based on the state input vector, and the load adjustability is calculated based on the real-time frequency and the current frequency change rate. The load adjustability is used as the available support capacity of the flexible load resource.

8. The frequency stabilization control method for a new energy power system as described in claim 7, characterized in that, The process involves calculating the target support power for each resource based on its comprehensive capability value, available support capability, and pre-acquired total support power, and then controlling each resource based on its target support power to achieve frequency stabilization control. This includes: The power allocation coefficient of each type of target resource is calculated based on the comprehensive capability value of each type of target resource and the sum of the comprehensive capability values ​​of all target resources. The initial support power of various target resources is calculated based on the power allocation coefficient and the total support power of the power system; Based on the available support capabilities of various target resources and the initial support power, the target support power of each type of resource is determined, and the various resources are controlled based on the target support power of each type of resource to achieve frequency stability control.

9. The frequency stability control method for a new energy power system as described in claim 8, characterized in that, The process of determining the target support power for each type of resource based on its available support capacity and initial support power, and controlling each type of resource based on its target support power to achieve frequency stabilization control, includes: For any type of target resource, when the initial support power is less than or equal to the available support capacity of the target resource, the initial support power is determined as the target support power of the target resource. When the initial support power is greater than the available support capacity of the target resource, the available support capacity is determined as the target support power of the target resource; Based on the target support power of various resources, control commands are generated, and based on the control commands, various resources are controlled to achieve frequency stabilization control.

10. A frequency stabilization control device for a new energy power system, characterized in that, include: The module includes a data acquisition module, a safety margin calculation module, a risk rating module, a comprehensive capability calculation module, and a control module. The data acquisition module is used to acquire multi-source operating status data of the power system and construct a status input vector based on the multi-source operating status data. The safety margin calculation module is used to construct a short-time frequency response prediction model based on the state input vector, predict the post-disturbance frequency trajectory of the power system based on the short-time frequency response prediction model, and calculate the frequency safety margin based on the post-disturbance frequency trajectory. The risk rating module is used to determine the risk level of the power system based on the frequency security margin, and to calculate the available support capacity of various resources in the power system based on the risk level. The comprehensive capability calculation module is used to calculate the comprehensive capability value of various resources based on their response speed, continuous support time, and operating status. The control module is used to calculate the target support power of various resources based on the comprehensive capability value, available support capability and pre-acquired total support power of various resources, and to control various resources based on the target support power of various resources to complete frequency stabilization control.