A power grid frequency modulation method based on hybrid energy storage
By collecting and analyzing grid frequency and renewable energy power signals in real time, and using a frequency deviation prediction model to dynamically adjust the frequency regulation dead zone, the response problem of hybrid energy storage systems during periods of fluctuating wind and solar power output has been solved, achieving more efficient grid frequency regulation and extended lifespan of energy storage equipment.
Patent Information
- Application Number
- CN202611454199.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing hybrid energy storage systems have a fixed frequency dead zone in grid frequency regulation that cannot be dynamically adjusted, resulting in ineffective response during periods of stable wind and solar power output and difficulty in timely response during periods of drastic fluctuations in wind and solar power output, increasing the risk of frequency exceeding limits.
By collecting grid frequency, photovoltaic and wind power signals in real time, calculating the wind-solar joint fluctuation index and frequency change rate, using a frequency deviation prediction model to predict grid frequency deviation, and dynamically adjusting the frequency regulation dead zone threshold based on the predicted deviation, adaptive frequency regulation of hybrid energy storage is achieved.
It improves the timeliness of frequency regulation response of hybrid energy storage, reduces unnecessary charge and discharge cycles, extends the life of energy storage equipment, and enhances the safety margin of grid frequency.
Smart Images

Figure CN123184029A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power grid frequency regulation technology, and in particular to a power grid frequency regulation method based on hybrid energy storage. Background Technology
[0002] With the continuous growth of installed capacity of solar and wind power in the power system, the power balance and frequency stability of the power grid face increasingly severe challenges. Solar power generation is affected by cloud cover and weather changes, resulting in dramatic fluctuations in output ranging from seconds to minutes; wind power generation is affected by turbulence and gusts, leading to continuous fluctuations in output ranging from minutes to hours. Traditional thermal power units, due to their slow response speed and limited regulation accuracy, can no longer independently meet the grid frequency regulation requirements under high-proportion renewable energy integration. Hybrid energy storage systems, composed of energy-type and power-type energy storage, have become an important means of assisting grid frequency regulation due to their rapid power throughput and flexible charging and discharging characteristics. In the control process of hybrid energy storage participating in grid frequency regulation, the frequency dead zone is a key parameter determining whether the energy storage system initiates frequency regulation response. Its function is to avoid frequent responses from the energy storage system to small fluctuations in grid frequency, thereby reducing unnecessary charging and discharging cycles and extending the service life of the energy storage equipment.
[0003] In existing technologies, when hybrid energy storage participates in grid frequency regulation, a preset fixed frequency regulation dead zone is typically used. Specifically, based on the differences in characteristics between supercapacitors and batteries, a smaller frequency regulation dead zone is set for the supercapacitor, and a larger frequency regulation dead zone is set for the battery; both dead zones are preset fixed values. The current grid frequency is measured in real time and compared with the rated frequency to obtain the absolute value of the frequency deviation. This absolute value of the frequency deviation is compared with the frequency regulation dead zones of both the supercapacitor and the battery. Based on the comparison results, it is determined whether the supercapacitor and the battery should participate in frequency regulation. Specifically, when the absolute value of the frequency deviation exceeds the frequency regulation dead zone of the supercapacitor but does not exceed the frequency regulation dead zone of the battery, only the supercapacitor participates in frequency regulation; when the absolute value of the frequency deviation exceeds the frequency regulation dead zones of both, the supercapacitor and the battery jointly participate in frequency regulation.
[0004] However, once the frequency dead zone of the aforementioned existing technologies is set, it remains unchanged during the operation of the energy storage system. It cannot be dynamically adjusted according to the real-time fluctuation characteristics of solar and wind power output. As a result, during periods of stable wind and solar power output, the hybrid energy storage system cannot respond effectively to a large number of small frequency deviations, increasing unnecessary charge and discharge cycles. During periods of drastic fluctuations in wind and solar power output, the hybrid energy storage system cannot respond in time to the rapid drop in frequency, increasing the risk of frequency exceeding the limit. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this application provides a grid frequency regulation method based on hybrid energy storage.
[0006] This application provides a power grid frequency regulation method based on hybrid energy storage, comprising the following steps: Step S1: Real-time acquisition of grid frequency signal, photovoltaic power plant active power signal, and wind farm active power signal at the grid connection point; sliding truncation of the photovoltaic power plant active power signal and the wind farm active power signal with a preset sampling window length, respectively, to calculate the photovoltaic power output fluctuation variance and the wind power output fluctuation variance, and generate a real-time wind-solar joint fluctuation index; sliding truncation of the grid frequency signal with the preset sampling window length, to calculate the maximum absolute value of the real-time frequency change rate within the sampling window; Step S2: Call the pre-built frequency deviation prediction model, which is pre-trained using historical wind-solar joint fluctuation index, the maximum absolute value of historical frequency change rate, and the maximum deviation of historical actual frequency as training samples; input the real-time wind-solar joint fluctuation index and the maximum absolute value of real-time frequency change rate into the frequency deviation prediction model, and output the predicted maximum frequency deviation; Step S3: Perform a moving average filter on the maximum deviation of the predicted frequency obtained at each sampling time to obtain a smoothed prediction deviation; compare the smoothed prediction deviation with the preset rated frequency deviation safety boundary to generate the amplitude limiting frequency modulation dead zone adjustment coefficient; Step S4: Adjust the preset standard frequency modulation dead zone according to the amplitude limiting frequency modulation dead zone adjustment coefficient, and generate and output the dynamic frequency modulation dead zone threshold. Step S5: Calculate the grid frequency deviation based on the grid frequency signal; compare the absolute value of the frequency deviation with the dynamic frequency regulation dead zone threshold; when the absolute value of the frequency deviation is less than the dynamic frequency regulation dead zone threshold, lock the frequency regulation power output of the hybrid energy storage; otherwise, start the frequency regulation power output of the hybrid energy storage and output frequency regulation power to the grid until the frequency deviation recovers to within the dynamic frequency regulation dead zone threshold.
[0007] Preferably, the active power signals of the photovoltaic power station and the active power signals of the wind farm are truncated using a preset sampling window length to calculate the variance of photovoltaic output fluctuation and the variance of wind power output fluctuation, and to generate a real-time wind-solar joint fluctuation index, including: The active power signals of the photovoltaic power station and the active power signals of the wind farm are trunculated with a preset sampling window length to obtain photovoltaic power output signal segments and wind power output signal segments within each sampling window; The variances of the photovoltaic power output signal segment and the wind power output signal segment within each sampling window are calculated respectively, and used as the photovoltaic power output fluctuation variance and wind power output fluctuation variance for each sampling window. The real-time wind-solar joint fluctuation index for each sampling window is generated by weighted summation of the variances of photovoltaic power output fluctuation and wind power output fluctuation for each sampling window.
[0008] Preferably, the weighting coefficients used in the weighted summation are determined based on the ratio of the installed capacity of photovoltaic power plants and wind farms, and in combination with the fluctuation contribution rates of photovoltaic power output and wind power output within the current sampling window.
[0009] Preferably, the power grid frequency signal is truncately sampled using the preset sampling window length, and the maximum absolute value of the real-time frequency change rate within the sampling window is calculated, including: The power grid frequency signal is truncately sampled using the preset sampling window length to obtain power grid frequency signal segments within each sampling window; Based on the power grid frequency signal segments within each sampling window, calculate the frequency change rate at each sampling time, and take the maximum absolute value of the frequency change rate within each sampling window as the maximum absolute value of the real-time frequency change rate for each sampling window.
[0010] Preferably, the pre-built frequency deviation prediction model includes: The frequency deviation prediction model is a backpropagation neural network model, which includes an input layer, a hidden layer, and an output layer; The input layer contains two input nodes, which are used to input the real-time wind-solar joint fluctuation index and the maximum absolute value of the real-time frequency change rate, respectively. The hidden layer contains a predetermined number of neurons. Each neuron performs a weighted sum of the data input from the input layer, which is then processed by an activation function to generate the hidden layer output. The output layer contains an output node, which generates and outputs the maximum deviation of the predicted frequency based on the output of the hidden layer; The frequency deviation prediction model is trained using the historical wind and solar joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label.
[0011] Preferably, the frequency deviation prediction model is trained using the historical wind-sun joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label. The training process includes: Using the historical weather joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as output label, the input samples are input into the frequency deviation prediction model to obtain the predicted output. The error between the predicted output and the output label is calculated. The error is backpropagated from the output layer to the hidden layer and the input layer, and the weights and thresholds of each layer are adjusted until the error meets the preset requirements or reaches the preset number of training times, thus training the frequency deviation prediction model.
[0012] Preferably, the maximum deviation of the prediction frequency obtained at each sampling time is subjected to moving average filtering to obtain a smoothed prediction deviation, including: Obtain the maximum prediction frequency deviation at the current sampling time and several previous sampling times, and form a sliding window data sequence from the obtained maximum prediction frequency deviations. Calculate the average of the maximum deviations of all prediction frequencies in the sliding window data sequence, and use the average as the smoothed prediction deviation at the current sampling time.
[0013] Preferably, the smoothing prediction deviation is compared with a preset rated frequency deviation safety boundary to generate a limiting frequency modulation dead zone adjustment coefficient, including: When the smoothing prediction deviation is not greater than the rated frequency deviation safety boundary, the first deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated, and the limiting frequency modulation dead zone adjustment coefficient is generated based on the proportion of the first deviation value to the rated frequency deviation safety boundary. The larger the proportion of the first deviation value to the rated frequency deviation safety boundary, the larger the value of the limiting frequency modulation dead zone adjustment coefficient. When the smoothing prediction deviation is greater than the rated frequency deviation safety boundary, the second deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated. Based on the proportion of the second deviation value to the rated frequency deviation safety boundary, the amplitude limiting frequency modulation dead zone adjustment coefficient is calculated. The larger the proportion of the second deviation value to the rated frequency deviation safety boundary, the smaller the value of the amplitude limiting frequency modulation dead zone adjustment coefficient.
[0014] Preferably, adjusting the preset standard frequency modulation dead zone according to the amplitude limiting frequency modulation dead zone adjustment coefficient, and generating and outputting a dynamic frequency modulation dead zone threshold, includes: Based on the numerical range of the amplitude limiting frequency modulation dead zone adjustment coefficient, an initial dynamic dead zone value is generated according to a preset nonlinear mapping rule. Dynamic constraint correction is then performed on the initial dynamic dead zone value to obtain the dynamic frequency modulation dead zone threshold.
[0015] Preferably, the dynamic constraint correction includes: Obtain the positive or negative polarity of the power grid frequency deviation, and perform asymmetric correction on the initial dynamic dead zone value based on the positive or negative polarity of the power grid frequency deviation to obtain the corrected dynamic dead zone value. Based on the dynamic frequency modulation dead zone threshold output at the previous sampling time, the rate of change of the modified dynamic dead zone value is limited, and the limited modified dynamic dead zone value is used as the dynamic frequency modulation dead zone threshold output at the current sampling time.
[0016] In summary, this application includes at least one of the following beneficial technical effects: 1. By real-time acquisition of grid frequency signals, photovoltaic power plant active power signals, and wind farm active power signals, the variance of photovoltaic output fluctuations and wind power output fluctuations are calculated, and a real-time wind-solar joint fluctuation index is generated. Simultaneously, the maximum absolute value of the real-time frequency change rate is calculated, enabling hybrid energy storage to comprehensively perceive the fluctuation intensity on the new energy generation side and the degree of disturbance on the grid frequency side. By inputting the above two features into a pre-constructed frequency deviation prediction model, the maximum predicted frequency deviation is output, achieving a forward-looking judgment on the future trend of grid frequency changes. Compared with the passive mode of existing technologies that only initiates a response after the frequency deviation crosses a fixed dead zone, this invention can detect potential risks before the frequency deviation actually occurs and pre-adjust the frequency regulation dead zone accordingly. This allows hybrid energy storage to initiate frequency regulation power output in a shorter time when wind and solar power output fluctuates drastically, significantly improving the timeliness of frequency regulation response and the frequency deviation suppression effect. 2. A frequency deviation prediction model is constructed using industrial big data. This model uses historical wind-solar joint fluctuation index and the maximum absolute value of historical frequency change rate as input samples, and the maximum deviation of historical actual frequency as the output label for training. This allows the model to fully learn the intrinsic correlation between wind-solar fluctuation characteristics and frequency deviation. The predicted maximum frequency deviation output by the model generates a limiting frequency regulation dead zone adjustment coefficient. When the smoothed prediction deviation does not exceed the rated frequency deviation safety boundary, the frequency regulation dead zone expands, and the hybrid energy storage does not frequently charge and discharge to respond to small fluctuations in grid frequency, significantly reducing unnecessary charge and discharge cycles. When the smoothed prediction deviation exceeds the rated frequency deviation safety boundary, the frequency regulation dead zone shrinks, and the hybrid energy storage intervenes in advance to cope with the risk of frequency exceeding the limit. This data-driven adaptive adjustment mechanism effectively reduces redundant actions of energy storage, slows down the capacity decay of energy storage equipment, and extends the overall service life. 3. By employing piecewise nonlinear mapping rules and dynamic constraint correction in the dynamic frequency regulation dead zone threshold generation step, different mapping sensitivities are used when the adjustment coefficient of the limited-amplitude frequency regulation dead zone is in different numerical ranges. When the adjustment coefficient is in the middle range, the dead zone changes gradually to avoid control oscillations; when the adjustment coefficient is in the two extreme ranges, the dead zone adjustment speed is accelerated to cope with extreme operating conditions. Through asymmetric correction, the initial dynamic dead zone value is adjusted differently according to the positive and negative polarities of the grid frequency deviation, giving energy storage a higher response sensitivity in the direction of frequency drop, and better adapting to the asymmetric characteristics of the grid frequency distribution and the differences in the charging and discharging capabilities of hybrid energy storage. By limiting the rate of change, the change amplitude of the corrected dynamic dead zone value is limited to within the preset maximum change step size to prevent drastic jumps in the dynamic frequency regulation dead zone threshold that could cause frequency regulation power oscillations. Finally, through closed-loop iterative control, the frequency regulation dead zone of hybrid energy storage is adaptively adjusted according to the fluctuations in wind and solar power output and the trend of frequency changes. When wind and solar power output is stable, the dead zone is expanded to reduce ineffective energy storage actions; when wind and solar power output fluctuates drastically, the dead zone is reduced to improve response sensitivity, effectively improving the safety margin of the grid frequency. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a power grid frequency regulation method based on hybrid energy storage, according to an embodiment of this application.
[0019] Figure 2 This is a hierarchical diagram of the power grid frequency regulation method based on hybrid energy storage in the embodiments of this application.
[0020] Figure 3 This is a flowchart illustrating the steps involved in obtaining the real-time wind-solar joint fluctuation index in the grid frequency regulation method based on hybrid energy storage, as described in this application embodiment.
[0021] Figure 4 This is a flowchart illustrating the steps involved in obtaining the frequency deviation prediction model in the power grid frequency regulation method based on hybrid energy storage, as described in this application embodiment. Detailed Implementation
[0022] The following description, in conjunction with the implementation of the present invention, is merely an example and illustration of the concept of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the concept of the invention, and all such modifications and additions should fall within the protection scope of the present invention.
[0023] Example This application discloses a power grid frequency regulation method based on hybrid energy storage.
[0024] Reference Figure 1-4 A grid frequency regulation method based on hybrid energy storage includes the following steps: Step S1: Real-time acquisition of grid frequency signal, photovoltaic power plant active power signal, and wind farm active power signal at the grid connection point; sliding truncation of the photovoltaic power plant active power signal and the wind farm active power signal with a preset sampling window length, respectively, to calculate the photovoltaic power output fluctuation variance and the wind power output fluctuation variance, and generate a real-time wind-solar joint fluctuation index; sliding truncation of the grid frequency signal with the preset sampling window length, to calculate the maximum absolute value of the real-time frequency change rate within the sampling window; Furthermore, the active power signals of the photovoltaic power station and the wind farm are truncated using a preset sampling window length to calculate the variance of photovoltaic output fluctuation and the variance of wind power output fluctuation, and a real-time wind-solar joint fluctuation index is generated, including: The active power signals of the photovoltaic power station and the active power signals of the wind farm are trunculated with a preset sampling window length to obtain photovoltaic power output signal segments and wind power output signal segments within each sampling window; The variances of the photovoltaic power output signal segment and the wind power output signal segment within each sampling window are calculated respectively, and used as the photovoltaic power output fluctuation variance and wind power output fluctuation variance for each sampling window. The real-time wind-solar joint fluctuation index for each sampling window is generated by weighted summation of the variances of photovoltaic power output fluctuation and wind power output fluctuation for each sampling window.
[0025] Furthermore, the weighting coefficients used in the weighted summation are determined based on the ratio of the installed capacity of photovoltaic power plants and wind farms, and in combination with the fluctuation contribution rates of photovoltaic power output and wind power output within the current sampling window.
[0026] Furthermore, the power grid frequency signal is truncately sampled using the preset sampling window length, and the maximum absolute value of the real-time frequency change rate within the sampling window is calculated, including: The power grid frequency signal is truncately sampled using the preset sampling window length to obtain power grid frequency signal segments within each sampling window; Based on the power grid frequency signal segments within each sampling window, calculate the frequency change rate at each sampling time, and take the maximum absolute value of the frequency change rate within each sampling window as the maximum absolute value of the real-time frequency change rate for each sampling window.
[0027] In one specific implementation, when acquiring the grid frequency signal at the grid connection point, the voltage signal is obtained through the voltage transformer at the connection point, and the grid frequency value is extracted via a phase-locked loop or frequency measurement device. When acquiring the active power signal of the photovoltaic power station and the active power signal of the wind farm, the active power value is obtained through the power transmitter or data acquisition and monitoring control system at the grid connection points of the photovoltaic power station and the wind farm, respectively. All acquisition channels sample synchronously at a sampling frequency of not less than 100 Hz to ensure that power fluctuations and frequency changes at the second to millisecond level can be captured.
[0028] The preset sampling window length is denoted as T, and its value ranges from 2 seconds to 10 seconds. When the sampling window length T is less than 2 seconds, there are too few data points within the window, and the calculated statistical features are significantly affected by instantaneous noise. When the sampling window length T is greater than 10 seconds, the data within the window spans multiple fluctuation cycles, the calculated fluctuation variance is smoothed, and the maximum absolute value of the frequency change rate cannot reflect the frequency change trend at the current moment, resulting in increased response delay. Preferably, the sampling window length T is 5 seconds.
[0029] The active power signals from photovoltaic power plants and wind farms are truncated using a sampling window length T to obtain photovoltaic and wind power output signal segments within each sampling window. Within each sampling window, the variance of the photovoltaic active power values corresponding to all sampling points in the photovoltaic output signal segment is calculated as the photovoltaic output fluctuation variance for that sampling window; similarly, the variance of the wind power active power values corresponding to all sampling points in the wind power output signal segment is calculated as the wind power output fluctuation variance for that sampling window. The calculation methods for the photovoltaic and wind power output fluctuation variances are as follows: ; ; in, This is the sequence number of the sampling window; This represents the total number of sampling points within a single sampling window. For the first Within the sampling window, the first The active power values of the photovoltaic power station at each sampling point; For the first The average value of the active power of the photovoltaic power station at all sampling points within a sampling window; For the first Within the sampling window, the first Active power values of wind farms at each sampling point; For the first The average value of the active power of the wind farm at all sampling points within a sampling window; For the first Variance of photovoltaic power output fluctuation in each sampling window; For the first The variance of wind power output fluctuation in each sampling window. The purpose of the formula is to quantify the dispersion of photovoltaic and wind power output in each sampling window, and to serve as a basic physical quantity for subsequently measuring the intensity of wind and solar power output fluctuations.
[0030] After obtaining the variances of photovoltaic (PV) and wind power output fluctuations for each sampling window, a weighted sum of these variances is performed to generate the real-time wind-solar joint fluctuation index for each sampling window. The calculation method for the real-time wind-solar joint fluctuation index is as follows: ; in, For the first Real-time wind-solar joint fluctuation index for each sampling window; For the first The weighted summation coefficients corresponding to the variance of photovoltaic power output fluctuation in each sampling window; For the first The weighted summation weight coefficients corresponding to the variance of wind power output fluctuation in each sampling window, and The weighting coefficients are recalculated based on the data in each sampling window and updated synchronously with the sliding window.
[0031] Weighting coefficient and The determination method consists of three steps. The first step is to calculate the installed capacity scaling factor: ; ; in, For the installed capacity of photovoltaic power plants, Both the installed capacity and the value are fixed parameters inherent to the wind farm and are only updated during power plant expansion and renovation. In routine control procedures, these fixed values are directly used in calculations. This is the photovoltaic installed capacity ratio factor. This is the proportional factor for wind power installed capacity, and The purpose of the formula is to determine the long-term statistical weight of photovoltaic power plants and wind farms in the joint volatility index based on their installed capacity.
[0032] The second step is to calculate the fluctuation contribution rate of the current sampling window.
[0033] ; ; in, For the first The contribution rate of photovoltaic power output fluctuation in each sampling window For the first The contribution rate of wind power output fluctuation in each sampling window, and The purpose of the formula is to determine the real-time fluctuation contribution rate based on the proportion of the fluctuation variance of photovoltaic power output and wind power output in the total fluctuation variance within the current sampling window.
[0034] The third step is to multiply the installed capacity ratio factor and the fluctuation contribution rate, and then normalize the result to obtain the weighting coefficients for each sampling window: ; ; The purpose of this formula is to balance the long-term statistical characteristics of photovoltaic and wind power (i.e., the ratio of installed capacity) with the real-time fluctuation characteristics (i.e., the fluctuation contribution rate of the current sampling window). If only a fixed installed capacity weight is used, it cannot reflect the dynamic changes in the instantaneous fluctuation strength of photovoltaic and wind power output within a single sampling window; if only the real-time fluctuation contribution rate weight is used, the minute power fluctuations of small-capacity power plants will be unduly amplified, leading to a distortion in the assessment of the total disturbance index. By multiplying the two types of factors and then normalizing, the weight coefficients can reflect the differences in power plant size and adaptively adjust according to the changes in the dominant source of fluctuations in different time periods.
[0035] The power grid frequency signal is truncated using a sampling window length T to obtain power grid frequency signal segments within each sampling window. Within each sampling window, the frequency change rate between adjacent sampling points is first calculated by dividing the difference in power grid frequency values between two adjacent sampling points by the time interval between them. Then, the maximum absolute value of all frequency change rates within the sampling window is taken as the maximum absolute value of the real-time frequency change rate for that sampling window. The calculation method for the maximum absolute value of the real-time frequency change rate is as follows: ; in, The sampling point number within the sampling window; For the first Within the sampling window, the first The power grid frequency values at each sampling point; For the first Within the sampling window, the first The power grid frequency values at each sampling point; The time interval between adjacent sampling points. , The sampling frequency; For the first The formula is the maximum absolute value of the real-time frequency change rate within each sampling window. Its purpose is to extract the most drastic instantaneous characteristics of power grid frequency changes within each sampling window, serving as a key indicator for measuring the degree of disturbance to the power grid frequency.
[0036] The maximum absolute values of the real-time wind-solar joint fluctuation index and the real-time frequency change rate within each of the above sampling windows are listed in the sampling window number. (Time base fully synchronized) is used as an index for storage, and is used as input for the frequency deviation prediction model in subsequent step S2. In step S1, each physical quantity is calculated sequentially according to the sliding of the sampling window. After each sampling window is calculated, the sampling window slides forward one step to enter the calculation of the next sampling window. The window sliding step size is denoted as... Its value ranges from 0.1 seconds to 1 second. Window sliding step size. Take 0.5 seconds.
[0037] The real-time wind-solar joint fluctuation index generated in step S1 and the maximum absolute value of the real-time frequency change rate The two input features that constitute the subsequent frequency deviation prediction model are the real-time wind-solar joint fluctuation index. The real-time fluctuation intensity of the new energy power generation side was comprehensively characterized from two dimensions: photovoltaic power output and wind power output. The maximum absolute value of the real-time frequency change rate was also included. The frequency characteristics represent the severity of frequency disturbances from the grid frequency side. These two features are synchronized in the time dimension and are both determined by the same sampling window length. and the same sampling window number The index ensures that the frequency deviation prediction model in subsequent step S2 can perform joint inference on the two input features on the same time base. Both types of features are historical window statistics collected before the current sampling time, used to predict the disturbance risk of the power grid frequency in the future period and provide a feedforward control basis for the forward adjustment of the frequency regulation dead zone.
[0038] Step S2: Call the pre-built frequency deviation prediction model, which is pre-trained using historical wind-solar joint fluctuation index, the maximum absolute value of historical frequency change rate, and the maximum deviation of historical actual frequency as training samples; input the real-time wind-solar joint fluctuation index and the maximum absolute value of real-time frequency change rate into the frequency deviation prediction model, and output the predicted maximum frequency deviation; Furthermore, the pre-built frequency deviation prediction model includes: The frequency deviation prediction model is a backpropagation neural network model, which includes an input layer, a hidden layer, and an output layer; The input layer contains two input nodes, which are used to input the real-time wind-solar joint fluctuation index and the maximum absolute value of the real-time frequency change rate, respectively. The hidden layer contains a predetermined number of neurons. Each neuron performs a weighted sum of the data input from the input layer, which is then processed by an activation function to generate the hidden layer output. The output layer contains an output node, which generates and outputs the maximum deviation of the predicted frequency based on the output of the hidden layer; The frequency deviation prediction model is trained using the historical wind and solar joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label.
[0039] Furthermore, the frequency deviation prediction model is trained using the historical wind-sun joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label. The training process includes: Using the historical weather joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as output label, the input samples are input into the frequency deviation prediction model to obtain the predicted output. The error between the predicted output and the output label is calculated. The error is backpropagated from the output layer to the hidden layer and the input layer, and the weights and thresholds of each layer are adjusted until the error meets the preset requirements or reaches the preset number of training times, thus training the frequency deviation prediction model.
[0040] In one specific implementation, step S2 is a frequency deviation prediction step. This step calls a pre-built frequency deviation prediction model and uses the real-time wind-solar joint fluctuation index generated in step S1. and the maximum absolute value of the real-time frequency change rate Input the frequency deviation prediction model, and the model will output the maximum predicted frequency deviation. This predicted value is based on the first... The characteristics of wind and solar fluctuations and frequency changes in each sampling window are used for future time-domain predictions. A forward-looking estimate of the absolute value of the maximum frequency deviation that the power grid may experience within a second. The dynamic frequency regulation dead zone threshold calculated based on this prediction will be applied in the next control cycle, i.e., the [number]th [second]. The sampling window was officially put into use for frequency modulation judgment.
[0041] The frequency deviation prediction model is built based on the backpropagation neural network algorithm. The core function of this algorithm is to establish a nonlinear mapping relationship between two-dimensional input features and a one-dimensional output target, that is, to learn the inherent correlation between wind and solar fluctuation characteristics, frequency change characteristics, and the maximum future frequency deviation. Based on the data characteristics of a two-dimensional input feature and a one-dimensional output, the frequency deviation prediction model adopts a three-layer fully connected structure, including an input layer, a hidden layer, and an output layer.
[0042] The input layer contains two input nodes, corresponding to the real-time wind-solar joint fluctuation index and the maximum absolute value of the real-time frequency change rate, respectively. These two input nodes are only responsible for receiving external input data and passing it to the next layer as is, without performing weighted summation or activation function processing.
[0043] The hidden layer contains a predetermined number of neurons, and each neuron receives all the data from the input layer. The predetermined number of neurons in the hidden layer is denoted as... Number of neurons in the hidden layer The value of 10 was chosen based on the following criteria: tests were conducted during the model training process. The validation set prediction errors were taken at values of 5, 8, 10, 12, 15, and 20. When the value is increased from 5 to 10, the verification set mean square error changes from... Descending to The decline was significant; when When the value is increased from 10 to 20, the verification set mean square error only increases from... Descending to The rate of decrease tends to saturate, while the number of model parameters increased from 31 to 61, doubling the computational load but improving accuracy by less than 5%. Therefore... Choosing 10 ensures both prediction accuracy and low computational complexity.
[0044] Each hidden layer neuron performs a weighted summation of the data input from the input layer. The weighted sum is then processed by an activation function to generate the hidden layer output features. The activation function for the hidden layer neurons is the hyperbolic tangent function, or tanh function. The output range of the tanh function is -1 to 1, with a mean of zero. Compared to the non-zero mean output of the sigmoid function, the tanh function can more effectively propagate the error gradient during backpropagation, mitigating the gradient vanishing problem. The expression for the tanh function is: ; in, This is the weighted summation result of the neurons in the hidden layer. The purpose of this function is to introduce nonlinear transformation capability into the frequency bias prediction model, enabling the model to fit the nonlinear relationship between input features and output target.
[0045] The output layer contains an output node that receives features output by each neuron in the hidden layer. It linearly weights these features, inputs the weighted result into an activation function, processes it, and generates the prediction frequency with the maximum bias, which is then output. The activation function for the output layer neurons is a linear activation function. ,in This is the linear weighted result of the output layer neurons.
[0046] The frequency deviation prediction model is trained using supervised learning. The specific steps are as follows: First, the historical wind-sun joint fluctuation index and the maximum absolute value of the historical frequency change rate are obtained from historical operational data as input samples. The maximum deviation of the historical actual frequency corresponding to the input sample in time is obtained as the output label. The specific matching method is: take the first... The maximum absolute value of the wind-solar joint fluctuation index and frequency change rate calculated from each historical sampling window is used as the input sample, and the prediction time domain is calculated after the start time of the window. The absolute value of the maximum frequency deviation measured within a second is used as the output label for that sample. The second step involves inputting the input samples into the frequency deviation prediction model. The input samples are passed to the hidden layer, where each neuron in the hidden layer performs a weighted sum of the received data, which is then processed by a hyperbolic tangent activation function to generate the hidden layer output features. These hidden layer output features are then passed to the output layer, where the output layer linearly weights the output features of each neuron in the hidden layer and processes them through a linear activation function to generate the predicted output. The third step involves calculating the error between the predicted output and the output label. This model uses mean squared error (MSE) as the loss function. The expression for the MSE loss function is: ; in, The total number of training samples; The sequence number of the training sample; For the first The maximum deviation of the predicted frequency output after inputting a training sample into the frequency deviation prediction model; For the first The maximum deviation of the measured frequency corresponding to each training sample is the output label. This represents the mean squared error loss value. The purpose of this loss function is to quantify the average deviation between the model's predicted output and the actual output label, providing a basis for gradient calculation for adjusting the weights and thresholds of each layer during backpropagation.
[0047] The fourth step involves backpropagating the error from the output layer to the hidden and input layers, adjusting the weights and thresholds of each layer along the direction of error reduction. The fifth step repeats steps two through four until the loss function meets the preset accuracy requirement or reaches the preset maximum number of training iterations, completing model training and obtaining the trained frequency bias prediction model. In the above training process, the preset accuracy requirement is a mean squared error of less than [a certain value]. The preset maximum number of training iterations is 1000. The accuracy requirements and maximum number of training iterations are determined as follows: cross-validation is used to divide historical data into training and validation sets, with the prediction error on the validation set used as the evaluation metric for model performance. Training is terminated and model parameters are saved when the validation set error no longer decreases after 50 consecutive training iterations to prevent overfitting. Based on the accuracy requirements for frequency deviation prediction, The mean square error corresponds to a frequency deviation prediction error of approximately 0.01 Hz, which meets the engineering requirements for frequency deviation prediction in power grid frequency regulation control. A maximum of 1000 training iterations is sufficient to ensure the model converges to the preset accuracy in most cases, while avoiding the waste of computational resources caused by infinite training.
[0048] After model training is complete, the model application phase begins. In actual use, the real-time wind-solar joint fluctuation index of the current sampling window output in step S1 will be used. and the maximum absolute value of the real-time frequency change rate The input features are combined into a two-dimensional input vector and input into the trained frequency deviation prediction model. The model performs forward propagation calculations according to the trained network parameters: the input layer receives the two-dimensional input feature vector and passes it to the hidden layer as is; each of the 10 neurons in the hidden layer performs a weighted summation of the two received input features, and the weighted summation result is processed by the hyperbolic tangent activation function to generate 10 hidden layer output features; the output layer performs a linear weighted summation of the 10 hidden layer output features, and the linear weighted result is processed by the linear activation function to generate and output the maximum predicted frequency deviation corresponding to the current sampling window. The predicted value is then fed into step S3 for moving average filtering to calculate the current value. The limiting dead zone adjustment coefficient corresponding to each sampling window, after being converted into the dynamic frequency modulation dead zone threshold in step S4, will be officially used in the first sampling window. Frequency modulation decision for each control cycle.
[0049] Step S3: Perform a moving average filter on the maximum deviation of the predicted frequency obtained at each sampling time to obtain a smoothed prediction deviation; compare the smoothed prediction deviation with the preset rated frequency deviation safety boundary to generate the amplitude limiting frequency modulation dead zone adjustment coefficient; Furthermore, a moving average filter is applied to the maximum deviation of the prediction frequency obtained at each sampling time to obtain a smoothed prediction deviation, including: Obtain the maximum prediction frequency deviation at the current sampling time and several previous sampling times, and form a sliding window data sequence from the obtained maximum prediction frequency deviations. Calculate the average of the maximum deviations of all prediction frequencies in the sliding window data sequence, and use the average as the smoothed prediction deviation at the current sampling time.
[0050] Furthermore, the smoothed prediction deviation is compared with a preset rated frequency deviation safety boundary to generate a limiting frequency modulation dead zone adjustment coefficient, including: When the smoothing prediction deviation is not greater than the rated frequency deviation safety boundary, the first deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated, and the limiting frequency modulation dead zone adjustment coefficient is generated based on the proportion of the first deviation value to the rated frequency deviation safety boundary. The larger the proportion of the first deviation value to the rated frequency deviation safety boundary, the larger the value of the limiting frequency modulation dead zone adjustment coefficient. When the smoothing prediction deviation is greater than the rated frequency deviation safety boundary, the second deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated. Based on the proportion of the second deviation value to the rated frequency deviation safety boundary, the amplitude limiting frequency modulation dead zone adjustment coefficient is calculated. The larger the proportion of the second deviation value to the rated frequency deviation safety boundary, the smaller the value of the amplitude limiting frequency modulation dead zone adjustment coefficient.
[0051] In one specific implementation, step S3 is a filtering and coefficient generation step, which improves upon the output of step S2 and characterizes the future prediction time domain. Predicted value of maximum frequency deviation within 10 seconds A moving average filter is applied to obtain a smoothed prediction deviation. This smoothed prediction deviation is then compared with a preset rated frequency deviation safety boundary. The initial frequency modulation dead zone adjustment coefficient is calculated under two operating conditions. ,right After performing upper and lower limit processing, the dead zone adjustment coefficient of the limited frequency modulation is obtained. And output it to step S4. The limiting frequency modulation dead zone adjustment coefficient output in this step Used for calculating the first step in step S4 The dynamic frequency modulation dead zone threshold corresponding to the sampling window will be at the th sampling window. The first control cycle is formally put into frequency modulation judgment.
[0052] The maximum prediction frequency deviations obtained at each sampling time are stored using the sampling window number k as an index, forming a sequence of maximum prediction frequency deviations. Since a single prediction value may be affected by random fluctuations in wind and solar power or model inference errors, resulting in random deviations, directly using the prediction value for subsequent frequency dead zone adjustments may lead to excessively frequent control actions (causing frequent jumps in the frequency dead zone within a short period of time, triggering repeated start-ups and shutdowns of energy storage, and exacerbating equipment wear and tear). Therefore, a moving average filter is applied to the sequence with the largest deviation in the predicted frequency to suppress random fluctuation components.
[0053] The specific process of moving average filtering is as follows. At the current sampling time... Obtain the maximum deviation of the prediction frequency at the current sampling time. The maximum prediction frequency deviations from several sampling times prior to the current sampling time are also collected. These maximum prediction frequency deviations are then arranged chronologically to form a sliding window data sequence. The length of the sliding window is denoted as L, representing the number of maximum prediction frequency deviations contained within it. The value of the sliding window length L was determined experimentally: the filtering effect and response delay were tested when L was 3, 4, 5, 6, 7, 8, 9, and 10. The selection criteria were the minimum standard deviation of the filtered prediction deviation and a response delay not exceeding 1 second. Experiments verified that L of 5 provided the best filtering effect, corresponding to a time span of 2.5 seconds. After obtaining the sliding window data sequence, the arithmetic mean of all maximum prediction frequency deviations in the sliding window data sequence is calculated. This arithmetic mean is used as the smoothed prediction deviation for the current sampling time. The smoothed prediction deviation is denoted as... The calculation method is as follows: ; in, This is the sequence number of the current sampling window. The length of the sliding window. This is the offset index within the sliding window. For the first The maximum deviation of the prediction frequency for each sampling window. For the first The formula aims to smooth the prediction bias of each sampling window by averaging the maximum prediction frequency deviations of the current sampling time and several previous sampling times with equal weights, thereby eliminating the random fluctuation component in a single prediction value and obtaining a smooth estimate that reflects the trend of frequency changes.
[0054] Obtain the smoothed prediction bias at the current sampling time Then, the smoothed prediction deviation is compared with the preset rated frequency deviation safety boundary. The rated frequency deviation safety boundary is denoted as B, and its value is determined according to the power grid frequency quality standard. According to GB / T15945-2008 "Power Quality - Frequency Deviation of Power Systems", the frequency deviation limit under normal operating conditions of the power system is ±0.2 Hz. Considering that frequency regulation response should be initiated before the frequency deviation approaches the limit to reserve a safety margin, the rated frequency deviation safety boundary B is taken as 0.15 Hz.
[0055] Based on the comparison results, initial frequency modulation dead zone adjustment coefficients are generated in two scenarios. The initial frequency modulation dead zone adjustment coefficients are denoted as... .
[0056] The first scenario is smoothing out prediction bias. Not greater than the safety boundary of the rated frequency deviation When the frequency deviation predicted based on the current wind and solar power fluctuation characteristics is within a safe range, the wind and solar power output is relatively stable, and the frequency dead zone can be appropriately expanded to reduce unnecessary charging and discharging operations. In this case, the difference between the smoothed prediction deviation and the safe boundary of the rated frequency deviation is calculated, and this difference is denoted as the first deviation value. Based on the first deviation value Safety boundary of rated frequency deviation proportion The initial frequency modulation dead zone adjustment coefficient is denoted as The larger this ratio is, the better. The larger the value of , the better. A value greater than or equal to 1 indicates that the FM dead zone has expanded or remained unchanged. Initial FM dead zone adjustment factor. The calculation method is as follows: ; in, This is a preset adjustment intensity coefficient used to control the sensitivity of the initial frequency modulation dead zone adjustment coefficient to changes in the degree of deviation. The value of was determined through simulation experiments, in which tests were performed respectively. The dead-zone adjustment and frequency control effects at speeds of 0.3, 0.4, 0.5, 0.6, and 0.7 were evaluated using the minimum frequency deviation overshoot and the fewest energy storage actions as comprehensive evaluation indicators. This was verified through experiments. A value of 0.5 yields the best overall effect. Under this calculation method, when smoothing prediction bias... When equal to 0, The frequency modulation dead zone expands to its maximum; when smoothing prediction bias equal to the safety boundary of the rated frequency deviation hour, The frequency dead zone remains unchanged. The purpose of this formula is to generate an initial frequency dead zone adjustment coefficient greater than or equal to 1 in a linear proportion based on the margin of the predicted frequency deviation from the safety boundary. The larger the margin, the greater the dead zone expansion, so that energy storage can minimize operations and extend its service life when wind and solar power are stable.
[0057] The second scenario involves smoothing out prediction bias. Safety boundary of deviation from rated frequency When this occurs, it indicates that the maximum frequency deviation predicted based on the current wind and solar power fluctuation characteristics has exceeded the safe range. At this point, wind and solar power output fluctuates drastically, and the grid frequency faces the risk of exceeding limits. It is necessary to reduce the frequency regulation dead zone to improve the response sensitivity of energy storage. In this case, the difference between the smoothed prediction deviation and the safe boundary of the rated frequency deviation is calculated, and this difference is denoted as the second deviation value. Based on the second deviation value Safety boundary of rated frequency deviation proportion Generate initial frequency modulation dead zone adjustment coefficient The larger this ratio is, the better. The smaller the value of , the better. A value less than 1 indicates a reduction in the FM dead zone. Initial FM dead zone adjustment coefficient. The calculation method is as follows: ; The meaning of each character is the same as in the first case. Under this calculation method, when smoothing the prediction bias... equal to the safety boundary of the rated frequency deviation hour, The frequency modulation dead zone remains unchanged; when smoothing the prediction bias As it continues to increase, As the frequency dead zone decreases linearly, the dead zone shrinks accordingly, and the greater the deviation from the safety boundary, the greater the reduction in dead zone. The purpose of this formula is to generate an initial frequency dead zone adjustment coefficient less than 1 in a linear proportion based on the severity of the predicted frequency deviation exceeding the safety boundary. The greater the deviation, the greater the reduction in dead zone, allowing energy storage to intervene with higher sensitivity in advance during periods of severe wind and solar fluctuations to ensure frequency safety. The adjustment intensity coefficient λ is set to the same preset value of 0.5 in both scenarios; this value is the globally optimal value obtained from full-condition simulation. The core purpose of unifying λ is to ensure the linear continuity of dead zone adjustment: if different λ values are used in the two scenarios, small fluctuations in the prediction deviation near the neighborhood where the smoothed prediction deviation equals the safety boundary of the rated frequency deviation can cause a jump in the slope of the initial frequency dead zone adjustment coefficient, leading to control oscillations. After unifying λ, the initial frequency dead zone adjustment coefficient exhibits a globally continuous piecewise linear change with the smoothed prediction deviation, with a value of 1 at the boundary point. The absolute values of the slopes on both sides are consistent, and the function curve is smooth without inflection points, thus balancing control stability and response sensitivity.
[0058] The initial frequency modulation dead zone adjustment coefficient obtained from the above calculation Perform upper and lower limit processing, and obtain the limited FM dead zone adjustment coefficient after limiting. In both of the above scenarios, the initial frequency modulation dead zone adjustment coefficient The range of values is limited to a preset minimum and maximum value, with the minimum value denoted as . The maximum value is denoted as ,and The purpose of setting the amplitude limit is to prevent the initial FM deadband adjustment factor from deviating excessively from 1 in extreme cases, which would cause the deadband to be excessively reduced or expanded. The value of 0.5 is chosen because: when the frequency modulation dead zone is reduced to 0.5 times the standard dead zone, the sensitivity of energy storage to small frequency deviations has significantly improved. Further reducing the dead zone will lead to saturation in improving frequency modulation performance, but will drastically increase the lifespan loss of energy storage. Simulation experiments have verified that when... When the value is below 0.5, the number of energy storage actions increases by more than 30%, while the frequency deviation improves by less than 5%. Take 0.5. The value of 1.5 is chosen because: when the frequency modulation dead zone is expanded to 1.5 times the standard dead zone, energy storage becomes essentially unresponsive to small frequency deviations. Further expanding the dead zone provides minimal protection for energy storage lifespan but significantly increases the response delay under moderate disturbances. Simulation experiments have verified that when… When the value is above 1.5, the frequency deviation overshoot increases by more than 20%, while the number of energy storage actions decreases by less than 10%. Take 1.5. The clipping method is as follows: when the calculated value is... season When calculated season ;when season .
[0059] Step S3 output limiting frequency modulation dead zone adjustment coefficient Based on sampling window number The index is stored for subsequent adjustment of the standard frequency modulation dead zone in step S4. When the dynamic frequency modulation dead zone threshold is greater than the standard frequency modulation dead zone, the frequency modulation response sensitivity of the hybrid energy storage decreases, reducing unnecessary charging and discharging actions when wind and solar power output is stable; when The dynamic frequency regulation dead zone threshold is smaller than the standard frequency regulation dead zone, improving the frequency regulation response sensitivity of hybrid energy storage and allowing for early intervention to address the risk of frequency exceeding limits during periods of drastic fluctuations in wind and solar power output; when The dynamic frequency modulation dead zone threshold is equal to the standard frequency modulation dead zone, and the hybrid energy storage maintains the conventional frequency modulation state.
[0060] Step S4: Adjust the preset standard frequency modulation dead zone according to the amplitude limiting frequency modulation dead zone adjustment coefficient, and generate and output the dynamic frequency modulation dead zone threshold. Furthermore, the preset standard frequency modulation dead zone is adjusted according to the amplitude limiting frequency modulation dead zone adjustment coefficient to generate and output a dynamic frequency modulation dead zone threshold, including: Based on the numerical range of the amplitude limiting frequency modulation dead zone adjustment coefficient, an initial dynamic dead zone value is generated according to a preset nonlinear mapping rule. Dynamic constraint correction is then performed on the initial dynamic dead zone value to obtain the dynamic frequency modulation dead zone threshold.
[0061] Furthermore, the dynamic constraint correction includes: Obtain the positive or negative polarity of the power grid frequency deviation, and perform asymmetric correction on the initial dynamic dead zone value based on the positive or negative polarity of the power grid frequency deviation to obtain the corrected dynamic dead zone value. Based on the dynamic frequency modulation dead zone threshold output at the previous sampling time, the rate of change of the modified dynamic dead zone value is limited, and the limited modified dynamic dead zone value is used as the dynamic frequency modulation dead zone threshold output at the current sampling time.
[0062] In one specific implementation, step S4 is a dynamic frequency modulation dead zone threshold generation step. This step adjusts the preset standard frequency modulation dead zone according to the amplitude limiting frequency modulation dead zone adjustment coefficient generated in step S3, and generates and outputs the dynamic frequency modulation dead zone threshold. This step first generates an initial dynamic dead zone value according to the numerical range of the amplitude limiting frequency modulation dead zone adjustment coefficient according to a preset nonlinear mapping rule, and then performs dynamic constraint correction on the initial dynamic dead zone value to obtain the final output dynamic frequency modulation dead zone threshold.
[0063] The preset standard FM dead zone is denoted as , A value of 0.033 Hz is chosen, corresponding to a grid frequency range of 50 Hz ± 0.033 Hz. This value is approximately one-sixth of the frequency deviation limit of 0.2 Hz specified in GB / T15945-2008, ensuring that the energy storage system maintains a moderate response sensitivity to frequency deviations. The dead zone adjustment coefficient for amplitude limiting frequency regulation is denoted as... It is generated by step S3 and input into step S4. When the value is greater than 1, the frequency modulation dead zone expands. When the value is less than 1, the frequency modulation dead zone is reduced. When the value is 1, the frequency modulation dead zone remains unchanged.
[0064] Basic mapping adjustment based on Generate an initial dynamic dead zone value, denoted as . The basic mapping adjustment adopts a piecewise nonlinear mapping rule: when Less than the first threshold hour, Follow It increases rapidly with the increase of; when Between With the second threshold In between, Follow The increase is gradual and slow; when Greater than hour, Follow It increases rapidly as it increases. Pick Taking 1.4, the function is continuous at the boundaries of each subinterval. The mathematical expression of the piecewise nonlinear mapping rule is: ; in, The first threshold; The second threshold and , , , , , These are the mapping coefficients corresponding to each sub-interval; For the first The initial dynamic dead zone value of each sampling window.
[0065] The specific values of the mapping coefficients are determined analytically based on the boundary conditions and the design objective of balancing the intermediate interval and rapidly adjusting the two end intervals. The boundary conditions are: when... hour ;when hour ;when hour After solving, the values of each mapping coefficient are: , ; , ; , The boundary conditions together ensure that the mapping coefficients have a unique solution, and in and The function is continuous. The purpose of this mapping rule is to adjust the coefficient during the follow-mode dead zone. Within a range close to 1, maintain a gradual change in the dead zone to avoid controlling oscillations. To cope with extreme operating conditions, the dead zone adjustment speed is accelerated within the range far from 1. The three-segment design of the piecewise nonlinear mapping corresponds to three typical operating conditions: the left segment, i.e. When the slope is less than 0.6, it corresponds to scenarios where the risk of frequency exceeding limits is high due to drastic fluctuations in new energy output. A high slope allows the dead zone to recover rapidly as the predicted risk decreases, avoiding lifespan loss caused by continuous high-sensitivity operation of energy storage; the middle section is... When the slope is between 0.6 and 1.4, corresponding to a normal fluctuation scenario, a low slope can suppress frequent changes in the dead zone caused by small fluctuations in the adjustment coefficient, thus avoiding control oscillations; the right segment is... When the slope is greater than 1.4, it corresponds to a scenario where the output of new energy sources is extremely flat, resulting in a very low risk of frequency exceeding limits. A high slope can cause the dead zone to expand rapidly as the predicted safety margin increases, avoiding response delays caused by excessively large dead zones when there are sudden disturbances in wind and solar power output. The left and right segments use equal slopes to achieve symmetry in the control rules, while reducing the number of parameters to be tuned on-site.
[0066] After the initial dynamic dead zone value is generated, dynamic constraint correction is performed. This correction includes two stages: asymmetric correction and rate of change limitation. Asymmetric correction differentiates the initial dynamic dead zone value based on the polarity of the grid frequency deviation. The polarity of the grid frequency deviation is determined by comparing the real-time value of the grid frequency signal acquired in step S1 with the rated frequency of 50 Hz. Asymmetric correction uses the measured grid frequency deviation polarity at the end of the kk-th sampling window as the criterion; the grid frequency deviation value at that moment is denoted as... The calculation formula is as follows: ; in, For the first The power grid frequency deviation at the end of each sampling window; a positive deviation indicates that the power grid frequency is higher than the rated frequency, and a negative deviation indicates that the power grid frequency is lower than the rated frequency. For the first Real-time value of the power grid frequency signal within each sampling window; The rated frequency is used as the criterion for judgment. The polarity of the instantaneous frequency deviation at the end of the k-th sampling window is used as the criterion. When the frequency is higher than the rated value, it is a positive deviation, and when it is lower than the rated value, it is a negative deviation.
[0067] When the real-time value of the power grid frequency signal is greater than the rated frequency The value is positive when the real-time value of the power grid frequency signal is less than the rated frequency. The value is negative. When the grid frequency deviation is positive, the dynamic dead zone value is corrected. When the grid frequency deviation is negative, correct the dynamic dead zone value. .in, This is the asymmetric correction coefficient in the positive frequency deviation direction. It is the asymmetric correction coefficient in the direction of negative frequency deviation, and . Take 0.95, A value of 1.05 is chosen to give the energy storage system a slightly higher response sensitivity in the direction of frequency drops. The above... These are historically determined values that have already been collected, used to predict the next... The dead-time sensitivity within the control cycle conforms to the timing logic of feedforward control.
[0068] Take the sum of 0.95 The determination of 1.05 is based on the following: when the grid frequency is lower than the rated frequency, it often corresponds to insufficient power generation or a sudden increase in load. If not intervened in time, it may lead to serious accidents such as cascading trips. Conversely, when the frequency is higher than the rated frequency, it usually corresponds to excess power generation, which can be handled by measures such as generator tripping. Therefore, a higher response sensitivity is required in the negative deviation direction. Simulation experiments have verified that... Take 0.95, When the value is 1.05, the dead zone difference in the positive and negative deviation directions is moderate, and the ratio of the maximum deviation of the positive frequency deviation to the maximum deviation of the negative frequency deviation is about 1.1 to 1. This reflects the asymmetric response characteristics without causing unbalanced control due to excessive difference.
[0069] The rate of change constraint constrains the rate of change of the corrected dynamic dead zone value based on the dynamic frequency modulation dead zone threshold output at the previous sampling time. The dynamic frequency modulation dead zone threshold output at the previous sampling time is denoted as... .like and The absolute value of the difference is not greater than the preset maximum change step size. Then directly This serves as the dynamic frequency modulation dead zone threshold output at the current sampling time; otherwise, it will... 1) Increase or decrease along the direction of the difference Then it is used as the output. Pick That is, 0.0033 Hz. The mathematical expression for the rate of change limit is: ; in, For the first The dynamic frequency modulation dead zone threshold output by each sampling window; For the first Corrected dynamic dead zone value for each sampling window; This is the dynamic frequency modulation dead zone threshold output at the previous sampling time. For the first The sampling window is calculated and generated, and the dynamic frequency modulation dead zone threshold that was effective in the previous control cycle is used as the reference value for this dead zone update. This is the preset maximum step size for change; The sign function is used. The purpose of this formula is to limit the change in the dynamic dead zone value to within a preset maximum change step size, thereby preventing drastic jumps in the dynamic frequency modulation dead zone threshold that could cause frequency modulation power oscillations.
[0070] The dynamic frequency modulation dead zone threshold output in step S4 Based on sampling window number The index is stored and output as the final frequency modulation dead zone threshold at the current sampling time to step S5, while retaining it as a reference value for the rate of change limit at the next sampling time. Dynamic frequency modulation dead zone threshold generated by the sampling window In the It serves as the sole criterion for determining frequency modulation start and stop within the control cycle, remaining constant throughout and not repeatedly switching with real-time frequency polarity.
[0071] Step S5: Calculate the grid frequency deviation based on the grid frequency signal; compare the absolute value of the frequency deviation with the dynamic frequency regulation dead zone threshold; when the absolute value of the frequency deviation is less than the dynamic frequency regulation dead zone threshold, lock the frequency regulation power output of the hybrid energy storage; otherwise, start the frequency regulation power output of the hybrid energy storage and output frequency regulation power to the grid until the frequency deviation recovers to within the dynamic frequency regulation dead zone threshold.
[0072] In one specific implementation, step S5 is a frequency modulation execution step, which calculates the grid frequency deviation based on the grid frequency signal acquired in step S1, and then... The absolute value of the real-time frequency deviation of the control cycle With the Dynamic frequency modulation dead zone threshold generated by sampling period calculation The comparison is made, and the frequency regulation power output of the hybrid energy storage to the grid is controlled based on the comparison results.
[0073] No. The instantaneous value of the power grid frequency collected in real time during the control cycle is denoted as The rated frequency is denoted as , Take 50 Hz. The corresponding grid frequency deviation at that time is denoted as... The calculation method is the difference between the instantaneous value of the real-time power grid frequency and the rated frequency: ; in, For the first The grid frequency deviation during the control cycle: a positive deviation indicates that the grid frequency is higher than the rated frequency, and a negative deviation indicates that the grid frequency is lower than the rated frequency. For the first The instantaneous value of the power grid frequency is collected in real time during the control cycle; The rated frequency is used. The purpose of this formula is to convert the real-time acquired power grid frequency signal into a frequency deviation, which serves as the basis for determining whether to initiate frequency regulation control.
[0074] Obtain the Real-time frequency deviation during control cycle Next, obtain the dynamic frequency modulation dead zone threshold output in step S4. , will the The absolute value of the real-time frequency deviation of the control cycle With dynamic frequency modulation dead zone threshold The comparison is performed, and the frequency regulation power output state of the hybrid energy storage is determined based on the comparison results.
[0075] When the absolute value of the power grid frequency deviation Less than the dynamic frequency tuning dead zone threshold When the frequency deviation is within the allowable range, it indicates that there is no need to initiate frequency regulation response. At this time, the frequency regulation power output of the hybrid energy storage is blocked, and the hybrid energy storage does not output frequency regulation power to the grid, and is in standby mode.
[0076] When the absolute value of the power grid frequency deviation Greater than or equal to the dynamic frequency modulation dead zone threshold When this occurs, it indicates that the grid frequency deviation has reached a level requiring intervention, at which point the frequency regulation power output of the hybrid energy storage system is activated. The hybrid energy storage system determines the power output direction based on the direction of the grid frequency deviation: when... When positive, the grid frequency is higher than the rated frequency, and hybrid energy storage absorbs active power to reduce the frequency; when When the value is negative, the grid frequency is lower than the rated frequency, and the hybrid energy storage releases active power to raise the frequency. The hybrid energy storage continuously outputs frequency-regulating power to the grid until the absolute value of the grid frequency deviation recovers to within the dynamic frequency regulation dead zone threshold. At this point, the hybrid energy storage stops frequency regulation power output and re-enters standby mode.
[0077] When hybrid energy storage outputs frequency-regulated power to the grid, the specific amplitude of the frequency-regulated power is determined based on the magnitude of the grid frequency deviation and the current operating status of the hybrid energy storage. The larger the grid frequency deviation, the larger the amplitude of the frequency-regulated power output; the smaller the grid frequency deviation, the smaller the amplitude of the frequency-regulated power output. Hybrid energy storage consists of supercapacitors and lithium batteries. Supercapacitors have a fast response speed and high power density, used to respond to the high-frequency components of the frequency deviation; lithium batteries have high energy density and long operating time, used to respond to the low-frequency components of the frequency deviation. During the frequency-regulated power output process, the high-frequency components are handled by the supercapacitors, and the low-frequency components are handled by the lithium batteries.
[0078] After step S5 is completed, return to step S1. Update the sliding sampling window based on the end time of the (k+1)th sampling window, and re-execute steps S1 to S4 to calculate the (k+1)th dynamic frequency regulation dead zone threshold. This threshold is then used for frequency regulation judgment in the (k+2)th control cycle, achieving continuous iterative feedforward-feedback closed-loop control. Steps S1 to S5 constitute a complete closed-loop control loop. As the sampling window slides forward, each step is executed sequentially, achieving continuous dynamic adjustment of the hybrid energy storage frequency regulation dead zone and real-time response to grid frequency deviations. Through the above closed-loop iteration, the frequency regulation dead zone of the hybrid energy storage adaptively adjusts with fluctuations in wind and solar power output and frequency change trends. When wind and solar power output is stable, the dead zone is expanded to reduce ineffective energy storage actions; when wind and solar power output fluctuates drastically, the dead zone is reduced to improve response sensitivity.
[0079] The above content is merely an example and illustration of the concept of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described or use similar methods to replace them, as long as they do not deviate from the concept of the invention, they should all fall within the protection scope of the present invention.
[0080] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0081] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention.
Claims
1. A power grid frequency regulation method based on hybrid energy storage, characterized in that, include: Step S1: Real-time acquisition of grid frequency signal, photovoltaic power station active power signal and wind farm active power signal at the grid connection point; The active power signals of the photovoltaic power station and the active power signals of the wind farm are truncately sampled with a preset sampling window length to calculate the variance of photovoltaic power output fluctuation and the variance of wind power output fluctuation, and to generate a real-time wind-solar joint fluctuation index; the grid frequency signal is truncately sampled with the preset sampling window length to calculate the maximum absolute value of the real-time frequency change rate within the sampling window. Step S2: Call the pre-built frequency deviation prediction model, which is pre-trained using historical wind-solar joint fluctuation index, the maximum absolute value of historical frequency change rate, and the maximum deviation of historical actual frequency as training samples; input the real-time wind-solar joint fluctuation index and the maximum absolute value of real-time frequency change rate into the frequency deviation prediction model, and output the predicted maximum frequency deviation; Step S3: Perform a moving average filter on the maximum deviation of the predicted frequency obtained at each sampling time to obtain a smoothed prediction deviation; compare the smoothed prediction deviation with the preset rated frequency deviation safety boundary to generate the amplitude limiting frequency modulation dead zone adjustment coefficient; Step S4: Adjust the preset standard frequency modulation dead zone according to the amplitude limiting frequency modulation dead zone adjustment coefficient, and generate and output the dynamic frequency modulation dead zone threshold. Step S5: Calculate the grid frequency deviation based on the grid frequency signal; compare the absolute value of the frequency deviation with the dynamic frequency regulation dead zone threshold; when the absolute value of the frequency deviation is less than the dynamic frequency regulation dead zone threshold, lock the frequency regulation power output of the hybrid energy storage; otherwise, start the frequency regulation power output of the hybrid energy storage and output frequency regulation power to the grid until the frequency deviation recovers to within the dynamic frequency regulation dead zone threshold.
2. The power grid frequency regulation method based on hybrid energy storage according to claim 1, characterized in that, The active power signals of the photovoltaic power station and the wind farm are trunculated using a preset sampling window length to calculate the variance of photovoltaic power output fluctuation and the variance of wind power output fluctuation, and a real-time wind-solar joint fluctuation index is generated, including: The active power signals of the photovoltaic power station and the active power signals of the wind farm are trunculated with a preset sampling window length to obtain photovoltaic power output signal segments and wind power output signal segments within each sampling window; The variances of the photovoltaic power output signal segment and the wind power output signal segment within each sampling window are calculated respectively, and used as the photovoltaic power output fluctuation variance and wind power output fluctuation variance for each sampling window. The real-time wind-solar joint fluctuation index for each sampling window is generated by weighted summation of the variances of photovoltaic power output fluctuation and wind power output fluctuation for each sampling window.
3. The power grid frequency regulation method based on hybrid energy storage according to claim 2, characterized in that, The weighting coefficients used in the weighted summation are determined based on the ratio of installed capacity of photovoltaic power plants and wind farms, and in combination with the fluctuation contribution rates of photovoltaic power output and wind power output within the current sampling window.
4. The power grid frequency regulation method based on hybrid energy storage according to claim 3, characterized in that, The power grid frequency signal is truncately sampled using the preset sampling window length, and the maximum absolute value of the real-time frequency change rate within the sampling window is calculated, including: The power grid frequency signal is truncately sampled using the preset sampling window length to obtain power grid frequency signal segments within each sampling window; Based on the power grid frequency signal segments within each sampling window, calculate the frequency change rate at each sampling time, and take the maximum absolute value of the frequency change rate within each sampling window as the maximum absolute value of the real-time frequency change rate for each sampling window.
5. A power grid frequency regulation method based on hybrid energy storage according to claim 4, characterized in that, The pre-built frequency deviation prediction model includes: The frequency deviation prediction model is a backpropagation neural network model, which includes an input layer, a hidden layer, and an output layer; The input layer contains two input nodes, which are used to input the real-time wind-solar joint fluctuation index and the maximum absolute value of the real-time frequency change rate, respectively. The hidden layer contains a predetermined number of neurons. Each neuron performs a weighted sum of the data input from the input layer, which is then processed by an activation function to generate the hidden layer output. The output layer contains an output node, which generates and outputs the maximum deviation of the predicted frequency based on the output of the hidden layer; The frequency deviation prediction model is trained using the historical wind and solar joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label.
6. A power grid frequency regulation method based on hybrid energy storage according to claim 5, characterized in that, The frequency deviation prediction model is trained using the historical wind-sun combined fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as the output label. The training process includes: Using the historical weather joint fluctuation index and the maximum absolute value of the historical frequency change rate as input samples, and the maximum deviation of the historical actual frequency as output label, the input samples are input into the frequency deviation prediction model to obtain the predicted output. The error between the predicted output and the output label is calculated. The error is backpropagated from the output layer to the hidden layer and the input layer, and the weights and thresholds of each layer are adjusted until the error meets the preset requirements or reaches the preset number of training times, thus training the frequency deviation prediction model.
7. A power grid frequency regulation method based on hybrid energy storage according to claim 6, characterized in that, A moving average filter is applied to the maximum prediction frequency deviation obtained at each sampling time to obtain a smoothed prediction deviation, including: Obtain the maximum prediction frequency deviation at the current sampling time and several previous sampling times, and form a sliding window data sequence from the obtained maximum prediction frequency deviations. Calculate the average of the maximum deviations of all prediction frequencies in the sliding window data sequence, and use the average as the smoothed prediction deviation at the current sampling time.
8. A power grid frequency regulation method based on hybrid energy storage according to claim 7, characterized in that, The smoothing prediction deviation is compared with a preset rated frequency deviation safety boundary to generate a limiting frequency modulation dead zone adjustment coefficient, including: When the smoothing prediction deviation is not greater than the rated frequency deviation safety boundary, the first deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated, and the limiting frequency modulation dead zone adjustment coefficient is generated based on the proportion of the first deviation value to the rated frequency deviation safety boundary. The larger the proportion of the first deviation value to the rated frequency deviation safety boundary, the larger the value of the limiting frequency modulation dead zone adjustment coefficient. When the smoothing prediction deviation is greater than the rated frequency deviation safety boundary, the second deviation value between the smoothing prediction deviation and the rated frequency deviation safety boundary is calculated. Based on the proportion of the second deviation value to the rated frequency deviation safety boundary, the amplitude limiting frequency modulation dead zone adjustment coefficient is calculated. The larger the proportion of the second deviation value to the rated frequency deviation safety boundary, the smaller the value of the amplitude limiting frequency modulation dead zone adjustment coefficient.
9. A power grid frequency regulation method based on hybrid energy storage according to claim 8, characterized in that, The preset standard frequency modulation dead zone is adjusted according to the amplitude limiting frequency modulation dead zone adjustment coefficient, and a dynamic frequency modulation dead zone threshold is generated and output, including: Based on the numerical range of the amplitude limiting frequency modulation dead zone adjustment coefficient, an initial dynamic dead zone value is generated according to a preset nonlinear mapping rule. Dynamic constraint correction is then performed on the initial dynamic dead zone value to obtain the dynamic frequency modulation dead zone threshold.
10. A grid frequency regulation method based on hybrid energy storage according to claim 9, characterized in that, The dynamic constraint correction includes: Obtain the positive or negative polarity of the power grid frequency deviation, and perform asymmetric correction on the initial dynamic dead zone value based on the positive or negative polarity of the power grid frequency deviation to obtain the corrected dynamic dead zone value. Based on the dynamic frequency modulation dead zone threshold output at the previous sampling time, the rate of change of the modified dynamic dead zone value is limited, and the limited modified dynamic dead zone value is used as the dynamic frequency modulation dead zone threshold output at the current sampling time.
