Flywheel energy storage participated power grid frequency control system, method and device and storage medium

By using cascade PI-(1+PD) control in the power grid frequency control system where flywheel energy storage participates, the problems of slow response speed and frequent oscillation of traditional PID control in systems containing flywheel energy storage are solved, and faster dynamics are achieved. Response and better anti-interference ability ensure the stable operation of the system.

CN118554485AInactive Publication Date: 2024-08-27EAST CHINA BRANCH OF STATE GRID CORP

Patent Information

Application Number
CN202410774611.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional PID control is difficult to obtain superior closed-loop control performance in power grid frequency control systems containing flywheel energy storage, resulting in slow response speed, large overshoot and frequent oscillation dynamic response, which affects the safe and stable operation of the system.

Method used

Using cascade PI-(1+PD) control, the dynamic response speed is improved by using (1+PD) control with filter coefficients in the inner control loop part as a secondary controller, and PI control is used in the outer control loop part to eliminate Steady-state error enables coarse adjustment and fine adjustment of the system to ensure steady-state performance of the system.

Benefits of technology

It improves the dynamic response speed and anti-interference ability of the system, can quickly and stably complete the power grid frequency control, reduces the frequency deviation and overshoot, and improves the control performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554485A
    Figure CN118554485A
Patent Text Reader

Abstract

The invention discloses a flywheel energy storage participated power grid frequency control system, method and device and a storage medium, and relates to the technical field of flywheel energy storage participated system frequency modulation control. The technical problems that a traditional PID-controlled power grid frequency control system containing flywheel energy storage is difficult to obtain excellent closed-loop control performance, dynamic responses of low response speed, large overshoot and frequent oscillation can be caused, and grid-connected safe and stable operation of a flywheel energy storage system cannot be guaranteed can be solved. The flywheel energy storage participated power grid frequency control system comprises a frequency deviation calculation module used for calculating frequency deviation; the cascade control module is used for calculating a total power adjustment demand according to the optimized cascade control transfer function, and distributing the total power adjustment demand to the thermal power generating unit frequency modulation module and the flywheel energy storage system frequency modulation module according to a preset frequency modulation instruction distribution coefficient; the thermal power generating unit frequency modulation module is used for calculating thermal power generating unit output power; the flywheel energy storage system frequency modulation module is used for calculating output power of the flywheel energy storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of flywheel energy storage participating in system frequency regulation control, and in particular to a flywheel energy storage participating in power grid frequency control system, method, device and storage medium. Background Art

[0002] As the scale of intermittent renewable energy such as wind power and photovoltaic power continues to expand, the volatility and randomness of their output power pose a huge challenge to the frequency stability of the power system. Flywheel energy storage has attracted much attention due to its characteristics of bidirectional output, instantaneous response and precise tracking of power generation instructions. Incorporating flywheel energy storage into grid operation has become one of the effective ways to provide frequency regulation auxiliary services. Designing advanced and efficient frequency controllers containing flywheel energy storage systems can significantly improve the quality of grid frequency regulation, which is of great significance to improving the safety and reliability of grid operation and improving the grid's ability to absorb new energy.

[0003] Traditional proportional-integral-derivative (PID) control is the most widely used in system frequency control because of its simplicity and high efficiency. However, in practical applications, due to the complex characteristics of the power grid frequency control system containing flywheel energy storage, such as large inertia, strong nonlinearity and uncertainty, it is difficult to obtain superior closed-loop control performance when using traditional PID control to deal with this complex system, which will lead to slow response speed, large overshoot and frequent oscillation dynamic response, which is not conducive to ensuring the safe and stable operation of the flywheel energy storage system connected to the grid. Summary of the invention

[0004] In view of this, the present application provides a flywheel energy storage participating in a power grid frequency control system, method, device and storage medium, which can solve the technical problem that the traditional PID-controlled power grid frequency control system containing flywheel energy storage is difficult to obtain excellent closed-loop control performance, which will lead to a slow response speed, large overshoot and frequent oscillation dynamic response, which is not conducive to ensuring the safe and stable operation of the flywheel energy storage system connected to the grid.

[0005] According to one aspect of the present application, a flywheel energy storage participating in a power grid frequency control system is provided, wherein the flywheel energy storage participating in a power grid frequency control system comprises: a frequency deviation calculation module, a cascade control module, a thermal power unit frequency regulation module, and a flywheel energy storage system frequency regulation module;

[0006] The frequency deviation calculation module is used to calculate the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency modulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency modulation module;

[0007] The cascade control module is used to obtain the optimized cascade control transfer function, calculate the total power regulation demand according to the cascade control transfer function, and distribute the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, multiplying the first product by 1 and the optimal proportional term coefficient corresponding to the control inner loop The outer loop transfer function is obtained by adding the outer loop coefficient term according to the Laplace operator, calculating the second product of the outer loop coefficient term and the optimal integral term coefficient, and adding the second product to the optimal proportional term coefficient corresponding to the control outer loop to obtain the outer loop transfer function; calculating the regional control error according to the frequency deviation coefficient and the frequency deviation, calculating the third product of the regional control error and the outer loop transfer function, and calculating the fourth product of the frequency deviation coefficient and the frequency deviation; multiplying the difference between the third product and the fourth product by the inner loop transfer function to obtain the total power regulation demand;

[0008] The thermal power unit frequency regulation module is used to calculate the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit;

[0009] The flywheel energy storage system frequency regulation module is used to calculate the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand.

[0010] According to another aspect of the present application, a method for flywheel energy storage to participate in grid frequency control is provided, the method comprising:

[0011] The frequency deviation calculation module calculates the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency regulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency regulation module;

[0012] The cascade control module obtains the optimized cascade control transfer function, calculates the total power regulation demand according to the cascade control transfer function, and distributes the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, adding the first product to 1 and the optimal proportional term coefficient corresponding to the control inner loop , obtaining an inner loop transfer function; constructing an outer loop coefficient term according to the Laplace operator, calculating a second product of the outer loop coefficient term and the optimal integral term coefficient, adding the second product to the optimal proportional term coefficient corresponding to the control outer loop, to obtain an outer loop transfer function; calculating a regional control error according to the frequency deviation coefficient and the frequency deviation, calculating a third product of the regional control error and the outer loop transfer function, and calculating a fourth product of the frequency deviation coefficient and the frequency deviation; multiplying the difference between the third product and the fourth product by the inner loop transfer function to obtain the total power regulation demand;

[0013] The thermal power unit frequency regulation module calculates the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit;

[0014] The flywheel energy storage system frequency regulation module calculates the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand.

[0015] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned flywheel energy storage participates in the grid frequency control method.

[0016] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the program, the above-mentioned method of flywheel energy storage participating in grid frequency control is implemented.

[0017] By means of the above technical scheme, the present application provides a flywheel energy storage participating in the power grid frequency control system, method, device and storage medium, which uses cascade PI-(1+PD) control instead of traditional PID control through a cascade control module. Specifically, for the control inner loop part of the cascade PI-(1+PD) control, a (1+PD) control with a filter coefficient is used as a sub-controller. Among them, the role of the filter coefficient is to take into account the presence of high-frequency noise in the input signal. Setting the filter coefficient can effectively reduce the adverse effects of high-frequency noise. The control inner loop part can achieve "coarse adjustment" while improving the dynamic response speed of the system. For the control outer loop part of the cascade PI-(1+PD) control, the main controller chooses to use PI control, wherein the proportional link can appropriately amplify or reduce the input signal, but at the same time it may also cause the deviation value to be amplified. After adding the integral link, the steady-state error of the proportional link can be eliminated, while ensuring the control accuracy of the main controlled variable. The outer loop of this control can achieve "fine adjustment" while ensuring the steady-state performance of the system. Through the coarse and fine adjustment of the cascade PI-(1+PD) control, compared with the traditional PID control, the present application improves the dynamic response speed and anti-interference ability while ensuring the steady-state performance of the system, and has better dynamic response performance, so as to quickly obtain the total power regulation demand based on the power calculation frequency deviation. Furthermore, the flywheel energy storage system frequency regulation module and the thermal power unit frequency regulation module both undertake the frequency regulation task (the total power regulation demand is allocated to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction allocation coefficient), and the frequency regulation result (corresponding to the output power of the thermal power unit and the output power of the flywheel energy storage system) is combined with the load power change caused by the grid load disturbance to obtain the power calculation frequency deviation. If the power calculation frequency deviation is not small enough, the cascade control module is further used to adjust on the basis of the power calculation frequency deviation until the power calculation frequency deviation is small enough, thereby quickly and stably completing the grid frequency control involving flywheel energy storage.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 A schematic diagram of the structure of a flywheel energy storage participating in a power grid frequency control system provided by an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of a flow chart of a method for flywheel energy storage to participate in grid frequency control provided by an embodiment of the present application is shown;

[0022] Figure 3 A schematic flow chart of another method for flywheel energy storage to participate in grid frequency control provided by an embodiment of the present application is shown;

[0023] Figure 4 A structural example diagram of a cascade control module provided in an embodiment of the present application is shown;

[0024] Figure 5 An example diagram of a frequency modulation structure of a flywheel energy storage system provided in an embodiment of the present application is shown;

[0025] Figure 6 The minimum fitness value convergence curves of the traditional PID control and the cascade PI-(1+PD) control in the parameter optimization process under a step load disturbance condition provided by an embodiment of the present application are shown;

[0026] Figure 7 The frequency deviation curves of the traditional PID control and the cascade PI-(1+PD) control in the parameter optimization process under a step load disturbance condition provided by an embodiment of the present application are shown;

[0027] Figure 8 A continuous power grid load disturbance provided by an embodiment of the present application is shown;

[0028] Fig. 9 The minimum fitness value convergence curves of the traditional PID control and the cascade PI-(1+PD) control in the parameter optimization process under the continuous grid load disturbance condition provided by the embodiment of the present application are shown;

[0029] Fig.10 The frequency deviation curves of the traditional PID control and the cascade PI-(1+PD) control in the parameter optimization process under the continuous grid load disturbance condition provided by the embodiment of the present application are shown;

[0030] Fig.11 An example diagram of the structure of a frequency modulation module of a flywheel energy storage system provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0032] In this embodiment, a flywheel energy storage system is provided to participate in a power grid frequency control system. Figure 1 and Figure 3 As shown, the flywheel energy storage participating in the power grid frequency control system includes: a frequency deviation calculation module, a cascade control module, a thermal power unit frequency regulation module, and a flywheel energy storage system frequency regulation module;

[0033] The frequency deviation calculation module is used to calculate the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency modulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency modulation module;

[0034]

[0035] Among them, ΔP d (s) is the load power change caused by the grid load disturbance, ΔP g is the output power of the thermal power unit output by the frequency modulation module of the thermal power unit, ΔP FESS is the output power of the flywheel energy storage system output by the frequency modulation module of the flywheel energy storage system, Δf(s) is the frequency deviation of the power grid, referred to as frequency deviation, H is the inertia coefficient, D is the load damping coefficient, and s is the Laplace operator. The flywheel energy storage system (FESS) refers to an energy storage method that uses an electric motor to drive a flywheel to rotate at high speed, and then uses the flywheel to drive a generator to generate electricity when needed.

[0036] In the prior art, the power grid frequency control system is controlled by PID. However, in practical applications, since the power grid frequency control system containing flywheel energy storage has complex characteristics such as large inertia, strong nonlinearity and uncertainty, it will be difficult to obtain superior closed-loop control performance when using traditional PID control to process the complex system, which will lead to a dynamic response with slow response speed, large overshoot and frequent oscillation, which is not conducive to ensuring the safe and stable operation of the flywheel energy storage system connected to the grid. Therefore, this embodiment designs cascade control instead of PID control, wherein cascade control refers to a double closed-loop control composed of two controllers working in series, the purpose of which is to improve the control quality of the main variable by setting the secondary variable. Due to the existence of the secondary loop, the interference entering the secondary loop has a leading control effect, thereby reducing the influence of the interference on the main variable, such as the cascade control module, the cascade control adopted by the cascade control module is specifically cascade PI-(1+PD) control:

[0037] The cascade control module is used to obtain the optimized cascade control transfer function, calculate the total power regulation demand according to the cascade control transfer function, and distribute the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, multiplying the first product by 1 and the optimal proportional term coefficient corresponding to the control inner loop The outer loop transfer function is obtained by adding the outer loop coefficient term according to the Laplace operator, calculating the second product of the outer loop coefficient term and the optimal integral term coefficient, and adding the second product to the optimal proportional term coefficient corresponding to the control outer loop to obtain the outer loop transfer function; calculating the regional control error according to the frequency deviation coefficient and the frequency deviation, calculating the third product of the regional control error and the outer loop transfer function, and calculating the fourth product of the frequency deviation coefficient and the frequency deviation; multiplying the difference between the third product and the fourth product by the inner loop transfer function to obtain the total power regulation demand;

[0038] Among them, the optimized cascade control transfer function is:

[0039] ΔP C (s)=C1(s)×[ACE(s)×C2(s)-Δf(s)×β]

[0040] ΔP C (s) is the total power regulation demand, β is the degree to which the actual value of the grid frequency deviates from the rated frequency, called the frequency deviation coefficient, Δf(s) is the frequency deviation, ACE(s) is the area control error (ACE), C1(s) is the inner loop transfer function, and C2(s) is the outer loop transfer function.

[0041] The optimized cascade control transfer function is used to calculate the total power regulation demand ΔP C (s), the optimized cascade control transfer function includes the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

[0042] Among them, for the control inner loop part, such as Figure 4As shown, considering that the control object has a large lag and more frequent load disturbances may occur externally, at this time, if the frequency deviation Δf(s) changes faster, the overshoot will be larger and the dynamic response time will be longer. In order to be able to act directly according to the changing trend of the frequency deviation Δf(s), improve the dynamic response speed of the controller, and reduce the overshoot, the product of the frequency deviation Δf(s) and the frequency deviation coefficient β is introduced as the secondary controlled variable, and the (1+PD) control with filter coefficient is designed as the secondary controller. Among them, the role of the filter coefficient is to take into account the presence of high-frequency noise in the input signal. Setting the filter coefficient can effectively reduce the adverse effects of high-frequency noise. The inner loop of the control can achieve "coarse adjustment" while improving the dynamic response speed of the system. The inner loop transfer function C1(s) of the (1+PD) control with filter coefficient is:

[0043]

[0044] Where s is the Laplace operator, N C is the optimal filter coefficient, is the inner loop coefficient term, K D is the optimal differential term coefficient, K P1 It is the optimal proportional term coefficient corresponding to the inner control loop.

[0045] Among them, for the control outer loop part, such as Figure 4 As shown, the area control error (ACE) is used as the main controlled variable, and the main controller chooses to use PI control. Among them, the proportional link can appropriately amplify or reduce the input signal, but it may also amplify the deviation value. After adding the integral link, the steady-state error of the proportional link can be eliminated, while ensuring the control accuracy of the main controlled variable. The outer loop of this control can achieve "fine tuning" while ensuring the steady-state performance of the system. The outer loop transfer function C2(s) of the PI control is:

[0046]

[0047] Where s is the Laplace operator, is the outer loop coefficient term, K I is the optimal integral term coefficient, K P It is the optimal proportional term coefficient corresponding to the outer control loop.

[0048] The regional control error is calculated according to the frequency deviation coefficient and the frequency deviation. Taking fixed frequency control as an example, ACE=-10Δf(s)*β.

[0049] It should be noted that Figure 4 Medium ACE i (s), Δf i (s), β i , ΔP Ci(s) i means ACE i (s), Δf i (s), β i , ΔP Ci (s) is taken multiple times. For example, when i is 1, the first value is a group: ACE1(s), Δf1(s), β1, ΔP C1 (s), when i is 2, the second value is another group: ACE2(s), Δf2(s), β2, ΔP C2 (s).

[0050] The preset frequency modulation instruction allocation coefficients include: the frequency modulation instruction allocation coefficient a of the thermal power unit G The frequency modulation command allocation coefficient a of the flywheel energy storage system FESS .

[0051] The total power regulation demand is distributed to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to a preset frequency regulation instruction distribution coefficient, including: a. G ×ΔP C (s) is the power regulation demand of the allocated thermal power units, ΔP ord-FESS =a FESS ×ΔP C (s) is the allocated flywheel energy storage system power regulation demand.

[0052] The thermal power unit frequency regulation module is used to calculate the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit;

[0053] In an embodiment of the present application, the frequency regulation module of the thermal power unit is specifically used to: construct a transfer function of the thermal power unit, calculate the frequency deviation multiplied by the inverse of the unit regulation coefficient to obtain the fifth product, calculate the power regulation demand of the flywheel energy storage system minus the fifth product, and multiply it by the transfer function of the thermal power unit to obtain the output power of the thermal power unit.

[0054] Among them, the thermal power unit is composed of a speed governor and a reheat steam turbine. The transfer function G of the thermal power unit is constructed. g (s):

[0055]

[0056] T g and T t are the time constants of the governor and reheat turbine respectively; K r With T r are the reheater gain and the reheat steam volume time constant, R is the unit adjustment coefficient, ΔP g (s) is the output power of the thermal power unit.

[0057] The flywheel energy storage system frequency modulation module is used to calculate the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand. Figure 2 As shown, ΔP ord-FESS is the allocated flywheel energy storage system power regulation requirement, ΔP FESS (t) is the output power of the flywheel energy storage system.

[0058] like Fig.11 As shown, the frequency regulation module of the flywheel energy storage system includes: a power conversion unit, an electromechanical dynamic unit and a SOE constraint unit;

[0059] The power conversion unit input is ΔP ord-FESS , the output is ΔP req ; The input of the electromechanical dynamic unit is ΔP req , the output is ΔP out ; The input of SOE constraint unit is ΔP out , the output is ΔP FESS . Specifically:

[0060] The detailed structure of the flywheel energy storage system during frequency modulation is as follows: Figure 5 As shown, PMSM represents a permanent magnet synchronous motor (PMSM). It can be seen that the flywheel energy storage device converter consists of two parts: a grid-side converter and a motor-side converter. In this embodiment, considering that the converter response time constant is much smaller than the frequency modulation time, the system dynamic response process related to the converter is ignored and is equivalent to a first-order inertia link, that is, the power conversion unit is used to calculate the sixth product of the converter response time constant and the Laplace operator, calculate the first reciprocal of the sixth product plus 1, and calculate the first reciprocal multiplied by the power regulation demand of the flywheel energy storage system to obtain the power demand ΔP output by the power conversion unit. req ;

[0061]

[0062] T delay is the converter response time constant, for example, the value is 0.02.

[0063] The electromechanical dynamic unit is used to determine the frequency modulation output power according to the power demand output by the power conversion unit;

[0064] Specifically, during the frequency modulation process, the power demand ΔP output by the power conversion unit req After passing through the electromechanical dynamic unit of the flywheel energy storage system frequency modulation module, the flywheel energy storage system can quickly track and respond to the frequency modulation instruction (i.e., ΔP req ), and finally obtain the frequency modulation output power ΔP that meets the frequency modulation requirementsout That is, in this process, the flywheel energy storage system is required to output a certain power value, and the flywheel energy storage system controls its output power by driving the flywheel to accelerate or decelerate, completing the task of storing and releasing electric energy, and finally achieving the purpose of supporting the response to the system frequency change. Therefore, numerically speaking, the power demand ΔP output by the power conversion unit req Equal to the FM output power ΔP out .

[0065] ΔP out (t) = T FESS (t)×ω FESS (t)

[0066] In this process, the flywheel electromagnetic torque T FESS (t) is constantly changing, which in turn causes the flywheel to rotate at an angular velocity ω FESS (t) changes. It is precisely because of this change that the flywheel energy storage system can achieve the frequency modulation instruction (i.e. ΔP req )'s follow.

[0067] The SOE constraint unit is used to output the frequency modulation power ΔP according to the out , SOE of the flywheel energy storage system at the initial moment (S OE (t0)) and the rated capacity E of the flywheel energy storage system rate Calculate the SOE (S) of the flywheel energy storage system at time t OE (t)), determine whether the SOE of the flywheel energy storage system at the time t is within the upper limit value S of the SOE of the flywheel energy storage system OE,max And the lower limit of SOE of flywheel energy storage system S OE,min If so, the frequency modulation output power is the flywheel energy storage system output power ΔP FESS (t), if not, then the flywheel energy storage system output power ΔP FESS (t) is zero.

[0068]

[0069] Among them: SOE of flywheel energy storage system at time t is:

[0070]

[0071] It should be noted that the specific process of flywheel energy storage participating in the application of power grid frequency control system is based on the optimized cascade control transfer function. Before flywheel energy storage participates in the application of power grid frequency control system, the optimized cascade control transfer function is obtained by the construction module. The following briefly explains how the construction module obtains the optimized cascade control transfer function: the construction module constructs an unoptimized initial cascade control transfer function. The only difference between the unoptimized initial cascade control transfer function and the optimized cascade control transfer function is that the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient variable in the unoptimized initial cascade control transfer function are still uncertain. It is necessary to obtain the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient in the optimized cascade control transfer function through optimization. Therefore, the construction module is respectively connected with the thermal power unit frequency regulation module, The flywheel energy storage system frequency regulation module and the frequency deviation calculation module are connected, so that the power regulation demand variable output by the construction module passes through the thermal power unit frequency regulation module, the flywheel energy storage system frequency regulation module and the frequency deviation calculation module, and the frequency deviation calculation module obtains the frequency deviation variable. In order to find the best, the construction module constructs the objective function on the basis of the frequency deviation variable, as well as the constraints of the upper and lower limits corresponding to the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient variable. In this way, under the constraints, minimizing the objective function is the goal of the optimization. Finally, the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient variable can be correspondingly determined as the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

[0072] Specifically, the flywheel energy storage participating in the power grid frequency control system further includes: a construction module; the construction module is used to:

[0073] Constructing constraint conditions, the constraint conditions include: upper and lower limits of the differential term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the inner control loop, upper and lower limits of the integral term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the outer control loop, and upper and lower limits of the filter coefficient variable;

[0074]

[0075] Among them, K Px is the proportional term coefficient variable corresponding to the outer loop, K Ix is the integral term coefficient variable, K P1xis the proportional term coefficient variable corresponding to the inner loop of the control, K Dx is the coefficient variable of the differential term, N Cx is the filter coefficient variable.

[0076] An inner loop coefficient term variable is constructed according to the Laplace operator and the filter coefficient variable, a first product variable of the inner loop coefficient term variable and the differential term coefficient variable is calculated, the first product variable is added to 1 and the proportional term coefficient variable corresponding to the control inner loop to obtain an initial inner loop transfer function; an initial outer loop coefficient term is constructed according to the Laplace operator, a second product variable of the initial outer loop coefficient term and the integral term coefficient variable is calculated, the second product variable is added to the proportional term coefficient variable corresponding to the control outer loop to obtain an initial outer loop transfer function; a frequency deviation coefficient sample is added to the frequency deviation coefficient sample, and a frequency deviation coefficient sample is added to the frequency deviation coefficient sample. Variable calculation of regional control error variables, calculation of the third product variable of the regional control error variable and the initial outer loop transfer function, and calculation of the initial product variable of the frequency deviation coefficient sample and the frequency deviation variable; multiplying the difference between the third product variable and the initial product variable by the initial inner loop transfer function to obtain an unoptimized initial cascade control transfer function, determining the initial cascade control transfer function as a power regulation demand variable, and distributing the power regulation demand variable to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient;

[0077] Initial inner loop transfer function

[0078] Where s is the Laplace operator, N Cx is the filter coefficient variable, is the inner loop coefficient variable, K Dx is the coefficient variable of the differential term, K P1x It is the proportional term coefficient variable corresponding to the inner control loop.

[0079] Initial outer loop transfer function

[0080] Where s is the Laplace operator, is the initial outer loop coefficient term, K Ix is the integral term coefficient variable, K Px It is the proportional term coefficient variable corresponding to the outer control loop.

[0081] The initial unoptimized cascade control transfer function is:

[0082] ΔP Cx (s) = C 1x (s)×[ACE x (s)×C 2x (s)-Δf x (s)×βm ]

[0083] Among them, ΔP Cx (s) is the power regulation demand variable, β m The degree to which the actual value of the grid frequency deviates from the rated frequency is called the frequency deviation coefficient sample, Δf x (s) is the frequency deviation variable, ACE x (s) is the area control error variable (AreaControl Error, ACE), C 1x (s) is the inner loop transfer function, C 2x (s) is the outer loop transfer function.

[0084] The regional control error variable is calculated based on the frequency deviation coefficient sample and the frequency deviation variable. Taking fixed frequency control as an example, ACE x (s)=-10Δf x (s)*β m .

[0085] The power regulation demand variable is distributed to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to a preset frequency regulation instruction distribution coefficient, including: a. G ×ΔP Cx (s) is the power regulation demand variable of the allocated thermal power units, ΔP ord-FESS-x =a FESS ×ΔP Cx (s) is the allocated flywheel energy storage system power regulation demand variable.

[0086] The thermal power unit frequency regulation module is also used to calculate the thermal power unit output power variable according to the allocated thermal power unit power regulation demand variable;

[0087]

[0088] Among them, R is the unit adjustment coefficient, G g (s) is the transfer function of the thermal power unit, ΔP gx (s) is the output power variable of the thermal power unit.

[0089] The flywheel energy storage system frequency regulation module is also used to calculate the flywheel energy storage system output power variable according to the allocated flywheel energy storage system power regulation demand variable;

[0090] ΔP ord-FESS-x is the allocated flywheel energy storage system power regulation requirement, ΔP FESS-x (t) is the output power of the flywheel energy storage system.

[0091] The frequency deviation calculation module is used to obtain a load power change sample caused by a grid load disturbance, and calculate a frequency deviation variable according to the load power change sample, the output power variable of the thermal power unit, and the output power variable of the flywheel energy storage system;

[0092]

[0093] Among them, ΔP dx (s) is the load power change sample caused by the grid load disturbance, ΔP gx is the output power variable of the thermal power unit output by the frequency modulation module of the thermal power unit, ΔP FESS-x is the output power variable of the flywheel energy storage system output by the frequency modulation module of the flywheel energy storage system, Δf x (s) is the frequency deviation variable, H is the inertia coefficient, D is the load damping coefficient, and s is the Laplace operator.

[0094] The construction module is also used to construct the minimum value of the absolute value of the frequency deviation variable after integration as the objective function; based on the particle swarm optimization algorithm, the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient are optimized according to the objective function and the constraint conditions, and the optimization result is verified under typical working conditions to obtain an optimized cascade control transfer function including the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

[0095] Objective function:

[0096] t sim is the simulation time. It is different under different typical working conditions. Typical working conditions include: continuous grid load disturbance working condition and step load disturbance working condition. The simulation time corresponding to the step load disturbance working condition is 30s, and the simulation time corresponding to the continuous grid load disturbance working condition is 20s.

[0097] Particle Swarm Optimization (PSO), wherein for optimization, the building blocks are specifically used for:

[0098] Under the constraint conditions, M groups of particle swarm search populations are randomly generated, each group of the particle swarm search population corresponds to a group of initial differential term coefficients, initial proportional term coefficients corresponding to the inner control loop, initial integral term coefficients, initial proportional term coefficients corresponding to the outer control loop, and initial filter coefficients;

[0099] x i(i=0, 1, 2, ..., M-1). Each individual corresponds to a set of values ​​of the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient variable. For example, individual x0=[K P0 , K I0 , K P10 , K D0 、N C0 ], individual x1=[K P1 , K I1 , K P11 , K D1 、N C1 ].

[0100] The speed and position of each group of the particle swarm search population are randomly initialized, the fitness value of each group of the particle swarm search population corresponding to the position is calculated according to the objective function, the individual historical optimal position and the group historical optimal position are determined according to the fitness value, the speed of each group of the particle swarm search population is updated according to the position, the speed, the individual historical optimal position and the group historical optimal position to obtain the updated speed, the position of each group of the particle swarm search population is updated according to the position and the speed to obtain the updated position, the updated fitness value of each group of the particle swarm search population corresponding to the updated position is calculated according to the objective function, the individual updated optimal position and the group updated optimal position are determined according to the updated fitness value, until a preset stop condition is reached, and the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the control inner loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the control outer loop and the optimal filter coefficient are obtained according to the group updated optimal position.

[0101] The simulation parameters are shown in Table 1:

[0102] Table 1

[0103]

[0104] The population size of the particle swarm optimization algorithm is 20, and the maximum number of iterations is set to 30.

[0105] Under the step load disturbance condition, the tuning optimization results of the two controller parameters (traditional PID controller and cascade PI-(1+PD) controller) are shown in Table 2.

[0106] Table 2

[0107]

[0108]

[0109] In the process of optimizing the parameters of the traditional PID controller and cascade PI-(1+PD) controller based on the particle swarm optimization algorithm, Figure 6 As shown in the figure, the PSO algorithm can search for the global optimal solution quickly without falling into the local optimum, and has a higher optimization efficiency. Compared with the traditional PID controller and PI-PD controller, in the process of parameter tuning and optimization of the cascade PI-(1+PD) controller, the PSO algorithm can search for a smaller objective function value, indicating that the cascade PI-(1+PD) control has a faster response speed and a more significant regulation effect.

[0110] like Figure 7 As shown in the figure, when a step disturbance occurs in the power grid, both controllers can effectively suppress the frequency fluctuation caused by the disturbance within a certain period of time. When using traditional PID control, the load disturbance has a more obvious impact on the dynamic response performance of the system, a large overshoot occurs in the dynamic response process, the response speed is slow, and the load disturbance suppression ability is limited. When using cascade PI-(1+PD) control, since the product of the frequency deviation Δf(s) and the frequency deviation coefficient β is used as the secondary controlled variable, the action can be directly performed according to the changing trend of the frequency deviation, which shortens the adjustment time, further improves the dynamic response performance of the system, and effectively reduces the adverse effect of the load disturbance on the dynamic response performance of the system.

[0111] Therefore, when a load step disturbance occurs in the system, the cascade PI-(1+PD) control can not only restore the system frequency deviation to a steady state more quickly, but also effectively reduce the system frequency overshoot and significantly improve the dynamic response performance of the system.

[0112] Continuous grid load disturbances such as Figure 8 At this time, the tuning optimization results of the two controller parameters are shown in Table 3.

[0113] Table 3

[0114]

[0115]

[0116] Under continuous load disturbance conditions, in the process of optimizing the parameters of the traditional PID controller and the cascade PI-(1+PD) controller based on the PSO algorithm, Fig. 9 As shown in the figure, in the process of parameter tuning optimization of the two controllers, the PSO algorithm can search for the global optimal solution quickly, and in the process of parameter tuning optimization of the cascade PI-(1+PD) controller, the PSO algorithm can search for a smaller objective function value. Fig.10As shown in the figure, when continuous load disturbance occurs in the power grid, compared with traditional PID control, the cascade PI-(1+PD) control has a better effect on suppressing frequency fluctuations. While effectively reducing the peak value of the power grid frequency deviation, it can significantly reduce the peak-to-valley difference of the frequency fluctuation and limit the frequency change of the power grid within a certain range. It has stronger anti-disturbance ability and ensures that the system can obtain better stability.

[0117] Through the verification under the above-mentioned different typical working conditions, it can be seen that the system frequency controller designed based on the proposed cascade PI-(1+PD) algorithm shows better control performance in suppressing external disturbances, improving response speed and reducing response overshoot, which significantly improves the dynamic response performance of the system.

[0118] Furthermore, an embodiment of the present application provides a method for flywheel energy storage to participate in grid frequency control, and the method is applied to the above-mentioned flywheel energy storage participating in grid frequency control system, such as Figure 2 As shown, the method includes:

[0119] Step 101, the frequency deviation calculation module calculates the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency regulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency regulation module;

[0120] Step 102, the cascade control module obtains the optimized cascade control transfer function, calculates the total power regulation demand according to the cascade control transfer function, and distributes the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, multiplying the first product by 1 and the optimal proportional term coefficient corresponding to the control inner loop; The outer loop transfer function is obtained by adding the numbers together; the outer loop coefficient term is constructed according to the Laplace operator, the second product of the outer loop coefficient term and the optimal integral term coefficient is calculated, and the second product is added to the optimal proportional term coefficient corresponding to the control outer loop to obtain the outer loop transfer function; the regional control error is calculated according to the frequency deviation coefficient and the frequency deviation, the third product of the regional control error and the outer loop transfer function is calculated, and the fourth product of the frequency deviation coefficient and the frequency deviation is calculated; the difference between the third product and the fourth product is multiplied by the inner loop transfer function to obtain the total power regulation demand;

[0121] Step 103, the thermal power unit frequency regulation module calculates the output power of the thermal power unit according to the allocated thermal power unit power regulation demand;

[0122] Step 104: the flywheel energy storage system frequency regulation module calculates the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand.

[0123] Before the cascade control module obtains the optimized cascade control transfer function, the method further includes: constructing a constraint condition by a construction module, wherein the constraint condition includes: upper and lower limits of the differential term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the inner control loop, upper and lower limits of the integral term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the outer control loop, and upper and lower limits of the filter coefficient variable; the construction module constructs the inner loop coefficient term variable according to the Laplace operator and the filter coefficient variable, calculates the first product variable of the inner loop coefficient term variable and the differential term coefficient variable, adds the first product variable to 1 and the proportional term coefficient variable corresponding to the inner control loop, and obtains the initial inner loop transfer function ; construct an initial outer loop coefficient term according to the Laplace operator, calculate a second product variable of the initial outer loop coefficient term and the integral term coefficient variable, add the second product variable to the proportional term coefficient variable corresponding to the control outer loop, and obtain an initial outer loop transfer function; calculate a regional control error variable according to the frequency deviation coefficient sample and the frequency deviation variable, calculate a third product variable of the regional control error variable and the initial outer loop transfer function, and calculate an initial product variable of the frequency deviation coefficient sample and the frequency deviation variable; multiply the difference between the third product variable and the initial product variable by the initial inner loop transfer function to obtain an unoptimized initial cascade control transfer function, and add the The initial cascade control transfer function is determined as a power regulation demand variable, and the power regulation demand variable is allocated to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction allocation coefficient; the thermal power unit frequency regulation module calculates the thermal power unit output power variable according to the allocated thermal power unit power regulation demand variable; the flywheel energy storage system frequency regulation module calculates the flywheel energy storage system output power variable according to the allocated flywheel energy storage system power regulation demand variable; the frequency deviation calculation module obtains a load power change sample caused by a grid load disturbance, and calculates the load power change sample, the thermal power unit output power variable and the flywheel energy storage system output power variable according to the load power change sample. The frequency deviation variable is calculated; the construction module constructs the minimum value of the absolute value of the frequency deviation variable after integration as the objective function; based on the particle swarm optimization algorithm, the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient are optimized according to the objective function and the constraint conditions, and the optimization result is verified under typical working conditions to obtain an optimized cascade control transfer function including the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

[0124] The particle swarm optimization algorithm is used to optimize the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient according to the objective function and the constraint condition, including:

[0125] Under the constraint conditions, M groups of particle swarm search populations are randomly generated, each group of the particle swarm search populations corresponds to a group of initial differential term coefficients, initial proportional term coefficients corresponding to the control inner loop, initial integral term coefficients, initial proportional term coefficients corresponding to the control outer loop, and initial filter coefficients; the speed and position of each group of the particle swarm search populations are randomly initialized, the fitness value of each group of the particle swarm search populations corresponding to the position is calculated according to the objective function, the individual historical optimal position and the group historical optimal position are determined according to the fitness value, and the position, the speed, the individual historical optimal position and the group historical optimal position are calculated according to the fitness value. The speed of each group of the particle swarm search population is updated according to the position to obtain an updated speed, the position of each group of the particle swarm search population is updated according to the position and the speed to obtain an updated position, the updated fitness value of each group of the particle swarm search population corresponding to the updated position is calculated according to the objective function, the individual update optimal position and the group update optimal position are determined according to the updated fitness value, until a preset stop condition is reached, and the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the control inner loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the control outer loop, and the optimal filter coefficient are obtained according to the group update optimal position.

[0126] The method of calculating the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit includes: constructing a transfer function of the thermal power unit, calculating the frequency deviation multiplied by the inverse of the unit regulation coefficient to obtain a fifth product, calculating the power regulation demand of the flywheel energy storage system minus the fifth product, and multiplying the result by the transfer function of the thermal power unit to obtain the output power of the thermal power unit.

[0127] The present application provides a flywheel energy storage participating in the power grid frequency control system, method, device and storage medium, which uses a cascade PI-(1+PD) control instead of the traditional PID control through a cascade control module. Specifically, for the control inner loop part of the cascade PI-(1+PD) control, a (1+PD) control with a filter coefficient is used as a sub-controller. Among them, the role of the filter coefficient is to take into account the presence of high-frequency noise in the input signal. Setting the filter coefficient can effectively reduce the adverse effects of high-frequency noise. The control inner loop part can achieve "coarse adjustment" while improving the dynamic response speed of the system. For the control outer loop part of the cascade PI-(1+PD) control, the main controller chooses to use PI control, wherein the proportional link can appropriately amplify or reduce the input signal, but at the same time it may also cause the deviation value to be amplified. After adding the integral link, the steady-state error of the proportional link can be eliminated, while ensuring the control accuracy of the main controlled variable. The outer loop of this control can achieve "fine adjustment" while ensuring the steady-state performance of the system. Through the coarse and fine adjustment of the cascade PI-(1+PD) control, compared with the traditional PID control, the present application improves the dynamic response speed and anti-interference ability while ensuring the steady-state performance of the system, and has better dynamic response performance, so as to quickly obtain the total power regulation demand based on the power calculation frequency deviation. Furthermore, the flywheel energy storage system frequency regulation module and the thermal power unit frequency regulation module both undertake the frequency regulation task (the total power regulation demand is allocated to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction allocation coefficient), and the frequency regulation result (corresponding to the output power of the thermal power unit and the output power of the flywheel energy storage system) is combined with the load power change caused by the grid load disturbance to obtain the power calculation frequency deviation. If the power calculation frequency deviation is not small enough, the cascade control module is further used to adjust on the basis of the power calculation frequency deviation until the power calculation frequency deviation is small enough, thereby quickly and stably completing the grid frequency control involving flywheel energy storage.

[0128] Based on the above Figure 2 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 2 The flywheel energy storage shown participates in the grid frequency control method.

[0129] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0130] Based on the above Figure 2In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 2 The flywheel energy storage shown participates in the grid frequency control method.

[0131] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0132] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0133] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0134] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware, using the cascade control module to use the cascade PI-(1+PD) control instead of the traditional PID control. Specifically, for the control inner loop part of the cascade PI-(1+PD) control, the (1+PD) control with the filter coefficient is used as the sub-controller. Among them, the role of the filter coefficient is to take into account the presence of high-frequency noise in the input signal. Setting the filter coefficient can effectively reduce the adverse effects of high-frequency noise. The control inner loop part can achieve "coarse adjustment" while improving the dynamic response speed of the system. For the control outer loop part of the cascade PI-(1+PD) control, the main controller chooses to use PI control, wherein the proportional link can appropriately amplify or reduce the input signal, but at the same time it may also cause the deviation value to be amplified. After adding the integral link, the steady-state error of the proportional link can be eliminated, while ensuring the control accuracy of the main controlled variable. The outer loop of this control can achieve "fine adjustment" while ensuring the steady-state performance of the system. Through the coarse and fine adjustment of the cascade PI-(1+PD) control, compared with the traditional PID control, the present application improves the dynamic response speed and anti-interference ability while ensuring the steady-state performance of the system, and has better dynamic response performance, so as to quickly obtain the total power regulation demand based on the power calculation frequency deviation. Furthermore, the flywheel energy storage system frequency regulation module and the thermal power unit frequency regulation module both undertake the frequency regulation task (the total power regulation demand is allocated to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction allocation coefficient), and the frequency regulation result (corresponding to the output power of the thermal power unit and the output power of the flywheel energy storage system) is combined with the load power change caused by the grid load disturbance to obtain the power calculation frequency deviation. If the power calculation frequency deviation is not small enough, the cascade control module is further used to adjust on the basis of the power calculation frequency deviation until the power calculation frequency deviation is small enough, thereby quickly and stably completing the grid frequency control involving flywheel energy storage.

[0135] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0136] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A flywheel energy storage participating in a power grid frequency control system, characterized in that: The power grid frequency control system includes: a frequency deviation calculation module, a cascade control module, a thermal power unit frequency regulation module, and a flywheel energy storage system frequency regulation module; The frequency deviation calculation module is used to calculate the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency modulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency modulation module; The cascade control module is used to obtain the optimized cascade control transfer function, calculate the total power regulation demand according to the cascade control transfer function, and distribute the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, multiplying the first product by 1 and the optimal proportional term coefficient corresponding to the control inner loop The outer loop transfer function is obtained by adding the outer loop coefficient term according to the Laplace operator, calculating the second product of the outer loop coefficient term and the optimal integral term coefficient, and adding the second product to the optimal proportional term coefficient corresponding to the control outer loop to obtain the outer loop transfer function; calculating the regional control error according to the frequency deviation coefficient and the frequency deviation, calculating the third product of the regional control error and the outer loop transfer function, and calculating the fourth product of the frequency deviation coefficient and the frequency deviation; multiplying the difference between the third product and the fourth product by the inner loop transfer function to obtain the total power regulation demand; The thermal power unit frequency regulation module is used to calculate the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit; The flywheel energy storage system frequency regulation module is used to calculate the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand.

2. The flywheel energy storage participating in the power grid frequency control system according to claim 1 is characterized in that: The flywheel energy storage participating in the power grid frequency control system further comprises: a building module; the building module is used for: Constructing constraint conditions, the constraint conditions include: upper and lower limits of the differential term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the inner control loop, upper and lower limits of the integral term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the outer control loop, and upper and lower limits of the filter coefficient variable; An inner loop coefficient term variable is constructed according to the Laplace operator and the filter coefficient variable, a first product variable of the inner loop coefficient term variable and the differential term coefficient variable is calculated, the first product variable is added to 1 and the proportional term coefficient variable corresponding to the control inner loop to obtain an initial inner loop transfer function; an initial outer loop coefficient term is constructed according to the Laplace operator, a second product variable of the initial outer loop coefficient term and the integral term coefficient variable is calculated, the second product variable is added to the proportional term coefficient variable corresponding to the control outer loop to obtain an initial outer loop transfer function; a frequency deviation coefficient sample is added to the frequency deviation coefficient sample, and a frequency deviation coefficient sample is added to the frequency deviation coefficient sample. Variable calculation of regional control error variables, calculation of the third product variable of the regional control error variable and the initial outer loop transfer function, and calculation of the initial product variable of the frequency deviation coefficient sample and the frequency deviation variable; multiplying the difference between the third product variable and the initial product variable by the initial inner loop transfer function to obtain an unoptimized initial cascade control transfer function, determining the initial cascade control transfer function as a power regulation demand variable, and distributing the power regulation demand variable to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient; The thermal power unit frequency regulation module is also used to calculate the thermal power unit output power variable according to the allocated thermal power unit power regulation demand variable; The flywheel energy storage system frequency regulation module is also used to calculate the flywheel energy storage system output power variable according to the allocated flywheel energy storage system power regulation demand variable; The frequency deviation calculation module is used to obtain a load power change sample caused by a grid load disturbance, and calculate a frequency deviation variable according to the load power change sample, the output power variable of the thermal power unit, and the output power variable of the flywheel energy storage system; The construction module is also used to construct the minimum value of the absolute value of the frequency deviation variable after integration as the objective function; based on the particle swarm optimization algorithm, the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient are optimized according to the objective function and the constraint conditions, and the optimization result is verified under typical working conditions to obtain an optimized cascade control transfer function including the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

3. The flywheel energy storage participating in the grid frequency control system according to claim 2 is characterized in that: The building blocks are specifically used for: Under the constraint conditions, M groups of particle swarm search populations are randomly generated, each group of the particle swarm search population corresponds to a group of initial differential term coefficients, initial proportional term coefficients corresponding to the inner control loop, initial integral term coefficients, initial proportional term coefficients corresponding to the outer control loop, and initial filter coefficients; The speed and position of each group of the particle swarm search population are randomly initialized, the fitness value of each group of the particle swarm search population corresponding to the position is calculated according to the objective function, the individual historical optimal position and the group historical optimal position are determined according to the fitness value, the speed of each group of the particle swarm search population is updated according to the position, the speed, the individual historical optimal position and the group historical optimal position to obtain the updated speed, the position of each group of the particle swarm search population is updated according to the position and the speed to obtain the updated position, the updated fitness value of each group of the particle swarm search population corresponding to the updated position is calculated according to the objective function, the individual updated optimal position and the group updated optimal position are determined according to the updated fitness value, until a preset stop condition is reached, and the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop and the optimal filter coefficient are obtained according to the group updated optimal position.

4. The flywheel energy storage participating in the grid frequency control system according to claim 1 is characterized in that: The frequency regulation module of the thermal power unit is specifically used to: construct a transfer function of the thermal power unit, calculate the frequency deviation multiplied by the inverse of the unit regulation coefficient to obtain the fifth product, calculate the power regulation demand of the flywheel energy storage system minus the fifth product, and multiply it by the transfer function of the thermal power unit to obtain the output power of the thermal power unit.

5. A method for flywheel energy storage to participate in grid frequency control, characterized in that: The method comprises: The frequency deviation calculation module calculates the frequency deviation according to the load power change caused by the grid load disturbance, the output power of the thermal power unit output by the thermal power unit frequency regulation module, and the output power of the flywheel energy storage system output by the flywheel energy storage system frequency regulation module; The cascade control module obtains the optimized cascade control transfer function, calculates the total power regulation demand according to the cascade control transfer function, and distributes the total power regulation demand to the thermal power unit frequency regulation module and the flywheel energy storage system frequency regulation module according to the preset frequency regulation instruction distribution coefficient, wherein the total power regulation demand is calculated according to the cascade control transfer function, including: constructing an inner loop coefficient term according to the Laplace operator and the optimal filter coefficient, calculating the first product of the inner loop coefficient term and the optimal differential term coefficient, adding the first product to 1 and the optimal proportional term coefficient corresponding to the control inner loop , obtaining an inner loop transfer function; constructing an outer loop coefficient term according to the Laplace operator, calculating a second product of the outer loop coefficient term and the optimal integral term coefficient, adding the second product to the optimal proportional term coefficient corresponding to the control outer loop, to obtain an outer loop transfer function; calculating a regional control error according to the frequency deviation coefficient and the frequency deviation, calculating a third product of the regional control error and the outer loop transfer function, and calculating a fourth product of the frequency deviation coefficient and the frequency deviation; multiplying the difference between the third product and the fourth product by the inner loop transfer function to obtain the total power regulation demand; The thermal power unit frequency regulation module calculates the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit; The flywheel energy storage system frequency regulation module calculates the output power of the flywheel energy storage system according to the allocated flywheel energy storage system power regulation demand.

6. The method according to claim 5, characterized in that Before the cascade control module obtains the optimized cascade control transfer function, the method further includes: The construction module constructs constraint conditions, wherein the constraint conditions include: upper and lower limits of the differential term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the inner control loop, upper and lower limits of the integral term coefficient variable, upper and lower limits of the proportional term coefficient variable corresponding to the outer control loop, and upper and lower limits of the filter coefficient variable; The construction module constructs an inner loop coefficient term variable according to the Laplace operator and the filter coefficient variable, calculates a first product variable of the inner loop coefficient term variable and the differential term coefficient variable, adds the first product variable to 1 and the proportional term coefficient variable corresponding to the control inner loop, and obtains an initial inner loop transfer function; constructs an initial outer loop coefficient term according to the Laplace operator, calculates a second product variable of the initial outer loop coefficient term and the integral term coefficient variable, adds the second product variable to the proportional term coefficient variable corresponding to the control outer loop, and obtains an initial outer loop transfer function; and calculates a first product variable of the first outer loop coefficient term and the integral term coefficient variable according to the frequency deviation coefficient sample and the frequency The method comprises the following steps: calculating a regional control error variable based on a rate deviation variable, calculating a third product variable of the regional control error variable and the initial outer loop transfer function, and calculating an initial product variable of the frequency deviation coefficient sample and the frequency deviation variable; multiplying a difference between the third product variable and the initial product variable by the initial inner loop transfer function to obtain an unoptimized initial cascade control transfer function, determining the initial cascade control transfer function as a power regulation demand variable, and distributing the power regulation demand variable to the frequency regulation module of the thermal power unit and the frequency regulation module of the flywheel energy storage system according to the preset frequency regulation instruction distribution coefficient; The thermal power unit frequency regulation module calculates the thermal power unit output power variable according to the allocated thermal power unit power regulation demand variable; The flywheel energy storage system frequency regulation module calculates the flywheel energy storage system output power variable according to the allocated flywheel energy storage system power regulation demand variable; The frequency deviation calculation module obtains a load power change sample caused by a grid load disturbance, and calculates a frequency deviation variable according to the load power change sample, the output power variable of the thermal power unit, and the output power variable of the flywheel energy storage system; The construction module constructs the minimum value of the absolute value of the frequency deviation variable after integration as the objective function; based on the particle swarm optimization algorithm, the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient are optimized according to the objective function and the constraint conditions, and the optimization result is verified under typical working conditions to obtain an optimized cascade control transfer function including the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop, and the optimal filter coefficient.

7. The method according to claim 6, characterized in that The particle swarm optimization algorithm is used to optimize the differential term coefficient variable, the proportional term coefficient variable corresponding to the inner control loop, the integral term coefficient variable, the proportional term coefficient variable corresponding to the outer control loop, and the filter coefficient according to the objective function and the constraint condition, including: Under the constraint conditions, M groups of particle swarm search populations are randomly generated, each group of the particle swarm search population corresponds to a group of initial differential term coefficients, initial proportional term coefficients corresponding to the inner control loop, initial integral term coefficients, initial proportional term coefficients corresponding to the outer control loop, and initial filter coefficients; The speed and position of each group of the particle swarm search population are randomly initialized, the fitness value of each group of the particle swarm search population corresponding to the position is calculated according to the objective function, the individual historical optimal position and the group historical optimal position are determined according to the fitness value, the speed of each group of the particle swarm search population is updated according to the position, the speed, the individual historical optimal position and the group historical optimal position to obtain the updated speed, the position of each group of the particle swarm search population is updated according to the position and the speed to obtain the updated position, the updated fitness value of each group of the particle swarm search population corresponding to the updated position is calculated according to the objective function, the individual updated optimal position and the group updated optimal position are determined according to the updated fitness value, until a preset stop condition is reached, and the optimal differential term coefficient, the optimal proportional term coefficient corresponding to the inner control loop, the optimal integral term coefficient, the optimal proportional term coefficient corresponding to the outer control loop and the optimal filter coefficient are obtained according to the group updated optimal position.

8. The method according to claim 5, characterized in that The step of calculating the output power of the thermal power unit according to the allocated power regulation demand of the thermal power unit comprises: Construct a transfer function of the thermal power unit, calculate the frequency deviation multiplied by the inverse of the unit adjustment coefficient to obtain a fifth product, calculate the power regulation demand of the flywheel energy storage system minus the fifth product, and multiply the result by the transfer function of the thermal power unit to obtain the output power of the thermal power unit.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 5 to 8 is implemented.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 5 to 8 is implemented.

Citation Information

Patent Citations

  • Control method for mechanical energy storage system

    CN103248292A

  • Flywheel energy storage frequency modulation and phase modulation system

    CN116316741A

  • Thermal power unit-flywheel energy storage cooperative frequency regulation control method and system

    US20230411964A1

  • Control method for wind turbine generator system and wind turbine generator system

    WO2023231252A1

Cited By

  • Active power control method, system and device based on reinforcement learning and storage medium

    CN119292054A

  • Flywheel energy storage power grid frequency modulation method and system with energy balance and life protection

    CN121566458A

  • Comprehensive energy base coordination frequency modulation method and device

    CN121566464A

  • Step AGC (Automatic Gain Control) frequency modulation regulation control optimization method

    CN121618598A