A frequency modulation method based on hydropower unit-photovoltaic-hybrid energy storage system

By introducing photovoltaic and hybrid energy storage systems into hydropower units, using the whale optimization algorithm to optimize governor parameters, and combining the collaborative control of photovoltaic and energy storage systems, the problem of power grid frequency fluctuations caused by water hammer effects is solved and the stability of the power grid is achieved. Operational and power supply reliability.

CN118554487BActive Publication Date: 2024-10-11KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411031138.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-11
Estimated Expiration
2044-07-30

Smart Images

  • Figure CN118554487B_ABST
    Figure CN118554487B_ABST
Patent Text Reader

Abstract

The present application relates to the field of power system control technology, and in particular to a frequency regulation method based on a hydropower unit-photovoltaic-hybrid energy storage system. When the water hammer effect is detected, based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the whale optimization algorithm based on model predictive control is used to optimize the speed regulator parameters of the hydropower unit. The whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system; the photovoltaic active power output by the photovoltaic system and the battery state of charge in the hybrid energy storage system are obtained; according to the photovoltaic active power and the battery state of charge, the target collaborative control strategy of the photovoltaic system and the hybrid energy storage is determined; the target collaborative control strategy is called to control the photovoltaic system and / or the hybrid energy storage system to respond to the power reverse regulation of the hydropower unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power system control, and in particular to a frequency modulation method based on a hydropower unit-photovoltaic-hybrid energy storage system. Background Art

[0002] After the power system is disturbed, the power system frequency will drop rapidly to the minimum value in a short period of time. At the same time, the frequency drop will trigger the water hammer effect between the water flow and the pipeline, causing the output of the hydropower unit to drop briefly and then rise again, which is called the power reverse regulation of the hydropower unit. This power reverse regulation phenomenon will cause the frequency of the power grid to fluctuate, and then there may be tripping, power outages, etc., which will have an adverse impact on the stable operation of the power grid. Therefore, how to resist the frequency deterioration caused by unbalanced power in the power system is a practical problem that needs to be solved urgently.

[0003] Among the related technical solutions, there are currently power systems that use wind power and hydropower to adjust the frequency, but wind power generation has high maintenance costs and is not suitable for areas with scarce wind resources and narrow terrain. In contrast, photovoltaic power generation and hybrid energy storage systems that can quickly respond to changes in grid demand are more suitable for use in urban areas with scarce wind resources and narrow spaces. Therefore, a photovoltaic energy storage system that can quickly respond to system frequency and can adjust the frequency is needed to effectively compensate for the power reverse regulation caused by the water hammer effect and ensure the stable operation of the grid.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a frequency regulation method based on a hydropower unit-photovoltaic-hybrid energy storage system, aiming to solve the problem of how to avoid the water hammer effect in the hydropower system and cause unstable power grid operation.

[0006] To achieve the above purpose, the present application provides a frequency modulation method based on a hydropower unit-photovoltaic-hybrid energy storage system, the method comprising:

[0007] When the water hammer effect is detected, based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the whale optimization algorithm based on model predictive control is used to optimize the speed regulator parameters of the hydropower unit, wherein the whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system, and the whale optimization algorithm includes a rolling optimization strategy module for continuously updating the control decision, and a feedback correction module for solving the prediction model according to the system information at the current moment;

[0008] Acquiring the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system;

[0009] Determining a target coordinated control strategy of a photovoltaic system and hybrid energy storage according to the photovoltaic active power and the battery state of charge;

[0010] The target coordinated control strategy is called to control the photovoltaic system and / or the hybrid energy storage system to respond to the power reverse regulation of the hydropower unit.

[0011] Optionally, the battery state of charge includes a lead-carbon battery state of charge and a supercapacitor battery state of charge, and the target coordinated control strategy of the photovoltaic system and the hybrid energy storage includes at least one of the following:

[0012] (1) Determine whether the photovoltaic active power is greater than a preset power threshold. If so, multiply the load reduction factor by the photovoltaic active power to obtain the active power output by the photovoltaic system after load reduction, wherein the load reduction factor is expressed as:

[0013]

[0014] In the formula, K f is the rated load reduction rate, Δf is the grid frequency deviation, and f0 is the grid frequency rated value;

[0015] (2) determining whether the supercapacitor battery state of charge is in a first battery state of charge interval, and if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge interval, and if so, taking the product of the droop coefficient of the lead-carbon battery and the grid frequency deviation as the charge and discharge power of the lead-carbon battery, and taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charge and discharge power of the supercapacitor;

[0016] (3) determining whether the supercapacitor battery state of charge is in a first battery state of charge range; if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge range; if not, taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charging and discharging power of the supercapacitor.

[0017] Optionally, the prediction model is expressed as:

[0018]

[0019] in, F = [ C A C A 2 ⋮ C A N p ] , Φ = [ C B 0 0 ⋯ 0 C A B C B 0 ⋯ 0 C A 2 B C A B C B ⋯ 0 ⋮ ⋮ ⋮ ⋱ ⋮ C A N p − 1 B C A N p − 2 B C A N p − 3 B ⋯ C A N p − N C B ] ,

[0020] Y = [ y ( k + 1 ∣ k ) y ( k + 2 ∣ k ) y ( k + 3 ∣ k ) ⋯ y ( k + N P ∣ k ) ] T ; Δ U = [ Δ u ( k ∣ k ) Δ u ( k + 1 ∣ k ) Δ u ( k + 2 ∣ k ) ⋯ Δ u ( k + N C − 1 ∣ k ) ] T ;

[0021] Where N C To control the time domain and N P is the prediction time domain, N C ≤N P , k is the sampling time, x(k) is the n-dimensional state variable, is the m-dimensional input increment, y(k) is the q-dimensional output variable, A, B, C are constant matrices, and .

[0022] Optionally, the step of optimizing the speed regulator parameters of the hydropower unit by using the whale optimization algorithm based on model predictive control includes:

[0023] The value of each whale's position is regarded as a feasible solution, and the proportional coefficient K of the speed regulator of the hydropower unit is assigned in turn. P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p ;

[0024] The ITAE index is used as the whale position fitness function, and the optimal whale individual is determined based on the whale position fitness function, and the optimal whale individual is used as the current optimal proportional coefficient K P , integral coefficient K I Differential coefficient K D and adjustment coefficient b p ;

[0025] Update the whale position until the maximum number of iterations is reached, and output the K corresponding to the optimal whale individual position after reaching the maximum number of iterations P , K I , K D 、b p , as the optimized proportional coefficient K P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p .

[0026] Optionally, the system model includes a hydropower unit model, and the hydropower unit model includes a rotor motion equation of the generator, a generator transfer function, a PID type speed regulator transfer function and a water diversion system transfer function, and the rotor motion equation of the generator is as follows:

[0027]

[0028] Where M is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP eare the mechanical power and electromagnetic power deviation of the turbine respectively, D is the damping coefficient of the turbine, and Δδ is the rotor angle deviation; the expression of the generator transfer function is:

[0029]

[0030] Among them, T a is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP e are the mechanical power and electromagnetic power deviation of the turbine, e n is the turbine damping coefficient;

[0031] The expression of the PID type speed regulator transfer function is:

[0032]

[0033] Where, Δμ is the turbine guide vane opening deviation; b p K is the adjustment coefficient; P , K I , K D are the proportional coefficient, integral coefficient and differential coefficient of the speed regulator respectively; T y is the actuator time constant;

[0034] The expression of the transfer function of the water diversion system is:

[0035]

[0036] Among them, T w is the water flow inertia time constant.

[0037] Optionally, the system model includes a photovoltaic system model, and the damping torque of the photovoltaic system model is expressed as:

[0038]

[0039] Among them, K pv is the photovoltaic active power droop coefficient, T dc , T ac is the time constant of the DC-DC converter and the DC-AC converter, J is the virtual moment of inertia, D is the virtual damping coefficient, and ω is the rotor angular velocity.

[0040] Optionally, the system model includes a hybrid energy storage system, and the damping torque of the hybrid energy storage system is expressed as:

[0041]

[0042] Among them, K lc is the droop coefficient of the lead-carbon battery, K scis the virtual inertia coefficient of the supercapacitor, T dc , T ac is the time constant of the DC-DC converter and the DC-AC converter, and ω is the rotor angular velocity.

[0043] Optionally, the system model includes a hydroelectric generator set, and the expression of the damping torque of the turbine of the hydroelectric generator set is:

[0044]

[0045] Among them, K P is the proportionality coefficient, K I is the integral coefficient, K D is the differential coefficient, b p is the adjustment coefficient, T y is the actuator time constant, T w is the water flow inertia time constant, and ω is the rotor angular velocity.

[0046] Optionally, before the step of optimizing the speed regulator parameters of the hydropower unit based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system by using the whale optimization algorithm based on model predictive control, the step further includes:

[0047] Obtaining the angular velocity deviation value and mechanical power deviation value of the hydraulic turbine group;

[0048] Determine the positive and negative sign relationship between the turbine angular velocity deviation value and the mechanical power deviation value;

[0049] If the signs of the turbine angular velocity deviation value and the mechanical power deviation value are the same, it is determined that the water hammer effect occurs in the turbine unit.

[0050] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a frequency regulation program based on a hydropower unit-photovoltaic-hybrid energy storage system is stored. When the frequency regulation program based on a hydropower unit-photovoltaic-hybrid energy storage system is executed by a processor, the steps of the frequency regulation method based on a hydropower unit-photovoltaic-hybrid energy storage system as described above are implemented.

[0051] This application has at least the following beneficial effects:

[0052] 1. By adding photovoltaic systems and hybrid energy storage systems to the hydropower system, the power reverse regulation when the water hammer effect occurs in the hydropower unit can be compensated, and the corresponding load reduction control strategy can be formulated according to the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system to accelerate the recovery of the system frequency and quickly smooth out power oscillations, thereby ensuring the stable operation of the power grid and the reliability of power supply;

[0053] 2. Improved the water hammer effect of the hydropower unit and reduced the power reverse regulation in the initial stage of frequency regulation of the hydropower unit;

[0054] 3. The coordinated control of the hybrid energy storage system is realized, which can quickly respond to the system frequency and avoid overcharging or over-discharging of the battery, which is conducive to extending the battery life;

[0055] 4. Use the whale optimization algorithm based on model predictive control to optimize the governor control parameters, so as to optimize the governor performance of the hydropower unit;

[0056] 5. The derived damping torque formula is used to verify the effect of the proposed method on improving the damping torque of the hydropower unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of the architecture of the hardware operating environment based on the hydropower unit-photovoltaic-hybrid energy storage system involved in the embodiment of the present application;

[0058] Figure 2 A schematic diagram of a control framework based on a hydropower unit-photovoltaic-hybrid energy storage system involved in an embodiment of the present application;

[0059] Figure 3 This is a flow chart of the first embodiment of the frequency modulation method based on the hydropower unit-photovoltaic-hybrid energy storage system of the present application;

[0060] Figure 4 A flow chart of a hybrid energy storage system compensating for water hammer effect of a hydropower unit according to an embodiment of the present application;

[0061] Figure 5 A schematic diagram showing the comparison of the damping torque of the hydropower unit before and after optimization involved in the embodiment of the present application;

[0062] Figure 6 A schematic diagram of a system frequency deviation curve before and after optimizing the parameters of a hydropower unit involved in an embodiment of the present application;

[0063] Figure 7 A schematic diagram of a system frequency deviation curve involved in an embodiment of the present application;

[0064] Figure 8 It is a schematic diagram of the system frequency deviation curve before and after the collaborative optimization control involved in the embodiment of the present application.

[0065] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0066] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0067] As an implementation plan, Figure 1 This is a schematic diagram of the architecture of the hardware operating environment based on the hydropower unit-photovoltaic-hybrid energy storage system involved in the embodiment of the present application.

[0068] like Figure 1 As shown, the hydropower unit-photovoltaic-hybrid energy storage system may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0069] Those skilled in the art will understand that Figure 1 The hydropower-photovoltaic-hybrid energy storage system architecture shown in the figure does not constitute a limitation on the hydropower-photovoltaic-hybrid energy storage system, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0070] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a frequency modulation program based on a hydropower generator-photovoltaic-hybrid energy storage system. Among them, the operating system is a program for managing and controlling the hardware and software resources based on the hydropower generator-photovoltaic-hybrid energy storage system, the frequency modulation program based on the hydropower generator-photovoltaic-hybrid energy storage system, and the operation of other software or programs.

[0071] exist Figure 1In the hydropower-photovoltaic-hybrid energy storage system shown, the user interface 1003 is mainly used to connect to the terminal and communicate data with the terminal; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the frequency regulation program based on the hydropower-photovoltaic-hybrid energy storage system stored in the memory 1005.

[0072] In this embodiment, the hydropower-photovoltaic-hybrid energy storage system includes: a memory 1005, a processor 1001, and a frequency modulation program based on the hydropower-photovoltaic-hybrid energy storage system stored in the memory and executable on the processor, wherein:

[0073] When the processor 1001 calls the frequency modulation program based on the hydropower unit-photovoltaic-hybrid energy storage system stored in the memory 1005, the following operations are performed:

[0074] When the water hammer effect is detected, based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the whale optimization algorithm based on model predictive control is used to optimize the speed regulator parameters of the hydropower unit, wherein the whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system, and the whale optimization algorithm includes a rolling optimization strategy module for continuously updating the control decision, and a feedback correction module for solving the prediction model according to the system information at the current moment;

[0075] Acquiring the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system;

[0076] Determining a target coordinated control strategy of a photovoltaic system and hybrid energy storage according to the photovoltaic active power and the battery state of charge;

[0077] The target coordinated control strategy is called to control the photovoltaic system and / or the hybrid energy storage system to respond to the power reverse regulation of the hydropower unit.

[0078] When the processor 1001 calls the frequency modulation program based on the hydropower unit-photovoltaic-hybrid energy storage system stored in the memory 1005, the following operations are performed:

[0079] (1) Determine whether the photovoltaic active power is greater than a preset power threshold. If so, multiply the load reduction factor by the photovoltaic active power to obtain the active power output by the photovoltaic system after load reduction, wherein the load reduction factor is expressed as:

[0080]

[0081] In the formula, K fis the rated load reduction rate, Δf is the grid frequency deviation, and f0 is the grid frequency rated value;

[0082] (2) determining whether the supercapacitor battery state of charge is in a first battery state of charge interval, and if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge interval, and if so, taking the product of the droop coefficient of the lead-carbon battery and the grid frequency deviation as the charge and discharge power of the lead-carbon battery, and taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charge and discharge power of the supercapacitor;

[0083] (3) determining whether the supercapacitor battery state of charge is in a first battery state of charge range; if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge range; if not, taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charging and discharging power of the supercapacitor.

[0084] When the processor 1001 calls the frequency modulation program based on the hydropower unit-photovoltaic-hybrid energy storage system stored in the memory 1005, the following operations are performed:

[0085] The value of each whale's position is regarded as a feasible solution, and the proportional coefficient K of the speed regulator of the hydropower unit is assigned in turn. P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p ;

[0086] The ITAE index is used as the whale position fitness function, and the optimal whale individual is determined based on the whale position fitness function, and the optimal whale individual is used as the current optimal proportional coefficient K P , integral coefficient K I Differential coefficient K D and adjustment coefficient b p ;

[0087] Update the whale position until the maximum number of iterations is reached, and output the K corresponding to the optimal whale individual position after reaching the maximum number of iterations P , K I , K D 、b p , as the optimized proportional coefficient K P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p .

[0088] Based on the hardware architecture of the hydropower system of the above-mentioned power system control technology, an embodiment of the frequency modulation method based on the hydropower unit-photovoltaic-hybrid energy storage system of the present application is proposed.

[0089] First embodiment

[0090] In this embodiment, the control framework based on the hydropower unit-photovoltaic-hybrid energy storage system is as follows: Figure 2 As shown in the figure, the system includes a hydropower unit, a photovoltaic system and a hybrid energy storage system. The photovoltaic module adopts de-load power point tracking (DPPT) control and is connected to the AC bus through DC / DC and DC / AC converters; the hybrid energy storage is composed of lead-carbon batteries and supercapacitors, which adopt droop control and virtual inertia control respectively, complete energy exchange and storage through a bidirectional DC / DC converter, and then connected to the AC bus through DC / AC. The AC side connects the hydropower unit, load and power grid.

[0091] Reference Figure 3 The frequency modulation method based on the hydropower unit-photovoltaic-hybrid energy storage system includes the following steps:

[0092] Step S10, when the water hammer effect is detected, based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the whale optimization algorithm based on model predictive control is used to optimize the speed regulator parameters of the hydropower unit, wherein the whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system, and the whale optimization algorithm includes a rolling optimization strategy module for continuously updating the control decision, and a feedback correction module for solving the prediction model according to the system information at the current moment;

[0093] In this embodiment, when the water hammer effect is detected in the hydropower system, the speed regulator parameters of the hydropower unit are optimized based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, combined with the whale optimization algorithm based on model predictive control.

[0094] Optionally, as to how to detect the water hammer effect of the hydropower system, a water hammer effect detection controller is used to obtain the turbine angular velocity deviation value and the mechanical power deviation value of the turbine group; determine the positive and negative relationship in sign between the turbine angular velocity deviation value and the mechanical power deviation value; if the signs of the turbine angular velocity deviation value and the mechanical power deviation value are the same, the water hammer effect detection controller determines that the water hammer effect occurs in the turbine.

[0095] Specifically, the grid frequency f and the active power P output by the turbine are monitored in real time by sensors. m ; By comparing the turbine angular velocity deviation Δω and the mechanical power deviation ΔP m The sign of Δω and ΔP can be used to identify the water hammer effect and determine the switching state of the power compensation element.m When the signs are the same, the response of the turbine and water diversion system is opposite to the required control, and there is a water hammer effect; Δω and ΔP m When the signs are opposite, there is no water hammer effect. The water hammer effect and the switch status of the controller are shown in Table 1:

[0096] Table 1 Water hammer effect and controller switch status

[0097]

[0098] In this embodiment, the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system includes a hydropower unit model, a photovoltaic system model and a hybrid energy storage system model.

[0099] Optionally, in this embodiment, the mathematical model of the hydroelectric unit is composed of three modules: the speed control system, the turbine and water diversion system, and the generator. Among them, the generator rotor motion equation is as follows:

[0100]

[0101] Where M is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP e are the mechanical power and electromagnetic power deviations of the turbine, respectively, D is the damping coefficient of the turbine, and Δδ is the rotor angle deviation;

[0102] Alternatively, ignoring the network loss and voltage change, the electromagnetic power change is approximately the load active power change, and the expression of the generator transfer function is:

[0103]

[0104] Among them, T a is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP e are the mechanical power and electromagnetic power deviation of the turbine, e n is the turbine damping coefficient;

[0105] Optionally, the expression of the PID type speed regulator transfer function is:

[0106]

[0107] Where, Δμ is the turbine guide vane opening deviation; b p K is the adjustment coefficient; P , K I , K D are the proportional coefficient, integral coefficient and differential coefficient of the speed regulator respectively; T y is the actuator time constant;

[0108] Optionally, in the dynamic process of the power system, only the water hammer effect caused by the water flow inertia is considered, and the expression of the water diversion system transfer function is:

[0109]

[0110] Among them, T w is the water flow inertia time constant.

[0111] Optionally, T w When fully loaded, the value is generally 0.5s~4s.

[0112] Optionally, in this embodiment, the transfer function of the photovoltaic system model is:

[0113]

[0114] Among them, K pv is the photovoltaic active power droop coefficient, T dc , T ac is the time constant of the DC-DC converter and DC-AC converter, ΔP pv is the PV active power deviation, J is the virtual moment of inertia, and D is the virtual damping coefficient.

[0115] Optionally, in this embodiment, the hybrid energy storage system is composed of a lead-carbon battery and a supercapacitor, which respectively adopt droop control and virtual inertia control, complete energy exchange and storage through a bidirectional DC / DC converter, and then the DC / AC is connected to the AC bus. The transfer function of the hybrid energy storage system model is:

[0116]

[0117] Among them, ΔP HBESS is the charging and discharging power of the hybrid energy storage system, K lc is the droop coefficient of the lead-carbon battery, K sc is the virtual inertia coefficient of the supercapacitor.

[0118] In this embodiment, based on the above-mentioned hydropower unit, photovoltaic system and hybrid energy storage system, the speed regulator parameters of the hydropower unit are optimized based on the whale optimization algorithm (WOA) of model predictive control (MPC).

[0119] Specifically, a prediction model is introduced in the feedback link of the PID speed regulator to achieve a better control effect. MPC solves the prediction model according to the current system information for feedback correction, and WOA optimizes the PID controller to improve the expected output and adjustment speed. The whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system. The whale optimization algorithm includes a rolling optimization strategy module for continuously updating control decisions, and a feedback correction module for solving the prediction model according to the current system information.

[0120] Optionally, the introduced prediction model is as follows:

[0121] When considering an F-linear, discrete, time-invariant controlled object with m inputs, q outputs, and n states, if the number of outputs does not exceed the number of inputs (i.e. (q≤m)), the standard state space model of the controlled object is as follows:

[0122]

[0123] Where k is the sampling time, x(k) is the n-dimensional state variable, is the m-dimensional input increment, y(k) is the q-dimensional output variable. A, B, C are constant matrices, and .

[0124] Define the sequence of future state variables based on the known state variables x(k) at the assumed sampling time k (k>0):

[0125]

[0126] The above formula can be used to calculate the state variable value at each moment in the future as follows:

[0127]

[0128] The control time domain NC and the prediction time domain NP satisfy the relationship NC≤NP. The importance of the control time domain is that it restricts the input variables to change only from time k to k+NC-1, that is:

[0129]

[0130] Define a vector:

[0131] Y = [ y ( k + 1 ∣ k ) y ( k + 2 ∣ k ) y ( k + 3 ∣ k ) ⋯ y ( k + N P ∣ k ) ] T Δ U = [ Δ u ( k ∣ k ) Δ u ( k + 1 ∣ k ) Δ u ( k + 2 ∣ k ) ⋯ Δ u ( k + N C − 1 ∣ k ) ] T

[0132] The available prediction model is:

[0133]

[0134] in:

[0135] F = [ C A C A 2 ⋮ C A N p ] , Φ = [ C B 0 0 ⋯ 0 C A B C B 0 ⋯ 0 C A 2 B C A B C B ⋯ 0 ⋮ ⋮ ⋮ ⋱ ⋮ C A N p − 1 B C A N p − 2 B C A N p − 3 B ⋯ C A N p − N C B ]

[0136] Further and optionally, the whale optimization algorithm includes a rolling optimization strategy module for continuously updating control decisions, and the rolling optimization process is as follows:

[0137] First, define the objective function J of the optimization calculation as:

[0138]

[0139] Here, r(k)=[r1(k) r1(k)···rq(k)] is the control target setting value, which is composed of q output target setting values ​​of the multi-output system.

[0140] According to extreme value theory, in the absence of constraints, the necessary condition for the objective function J to reach its minimum value is that its first-order derivative is zero. Based on this condition, we can obtain the optimal solution for the control input signal sequence:

[0141]

[0142] The instant control amount is:

[0143]

[0144] where d T is(Φ T αΦ+λ) -1 Φ T The first row of α.

[0145] For problems with constraints, set the constraints in the form: -M≤Y≤M, where M is an n×1-dimensional row vector and NP represents the dimension of the relevant state variables.

[0146] definition M N P = [ M T M T ⋯ M T ] s i z e ( M ) N P T , we can get from the following formula:

[0147]

[0148] The objective function J can be expressed as:

[0149]

[0150] Redefine a new objective function equivalent to the original objective function J :

[0151]

[0152] definition:

[0153]

[0154] Among them, Q and R are weight matrices

[0155] Then we have:

[0156]

[0157]

[0158] In this case, the problem can be transformed into a standard quadratic programming problem, and its optimal solution can be found by applying mathematical theory.

[0159] Further and optionally, MPC solves the prediction model based on the current system information for feedback correction, and WOA optimizes the PID controller to improve the expected output and regulation speed, where the deviation between the model prediction and the actual output is:

[0160] At time point k, the output value Y when Δu(k) is applied to the control object can be predicted according to the given function. Subsequently, at time point k+1, the actual output y(k+1) of the control object can be measured, and the error e(k+1) between the actual output and the model prediction value can be calculated:

[0161]

[0162] Optionally, the step of optimizing the speed regulator parameters of the hydropower unit by using the whale optimization algorithm based on model predictive control specifically includes:

[0163] The value of each whale's position is regarded as a feasible solution, and the proportional coefficient K of the speed regulator of the hydropower unit is assigned in turn. P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p ;

[0164] Next, the ITAE index is used as the whale position fitness function, and the optimal whale individual is determined based on the whale position fitness function, and the optimal whale individual is used as the current optimal proportional coefficient K P , integral coefficient K I Differential coefficient K D and adjustment coefficient b p ;

[0165] For example, the expression of ITAE index is:

[0166]

[0167] Where, e(t) is the control error;

[0168] Finally, update the whale position until the maximum number of iterations is reached, and output the K corresponding to the optimal whale individual position after reaching the maximum number of iterations. P , K I , K D 、b p , as the optimized proportional coefficient K P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p .

[0169] Step S20, obtaining the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system;

[0170] Step S30, determining a target coordinated control strategy of a photovoltaic system and hybrid energy storage according to the photovoltaic active power and the battery state of charge;

[0171] Step S40, calling the target coordinated control strategy to control the photovoltaic system and / or the hybrid energy storage system to respond to the power reverse regulation of the hydropower unit.

[0172] In this embodiment, after the speed regulator parameters of the hydropower unit are optimized, the photovoltaic system and the hybrid energy storage system are used to participate in the grid frequency regulation, and the target collaborative control strategy of the photovoltaic system and the hybrid energy storage is determined according to the photovoltaic active power and the battery charge state.

[0173] Specifically, a water hammer effect detection controller is added to the photovoltaic system and the hybrid energy storage system. Only when the water hammer effect is detected in the hydropower unit, the photovoltaic system and the hybrid energy storage system participate in frequency regulation.

[0174] It should be noted that whether the photovoltaic system participates in system frequency regulation depends on the current ambient temperature and irradiance. Based on comprehensive consideration of photovoltaic performance and grid demand, it is ensured that photovoltaics can be connected to the grid and that there is spare capacity to participate in system frequency regulation to ensure stable output of the photovoltaic system.

[0175] The hybrid energy storage system includes lead-carbon batteries and supercapacitors. The supercapacitors have a fast charge and discharge rate and can respond quickly when the water hammer effect occurs, cutting out the system at the lowest power point (dPm / dt=0). The lead-carbon battery has a slow start-up time, but can provide more lasting power support to ensure the stability of the grid frequency and suppress power fluctuations. Supercapacitors provide fast response and power support in the early stage of frequency modulation, and lead-carbon batteries provide continuous power compensation. Supercapacitors and lead-carbon batteries work together to accelerate the recovery of system frequency and quickly suppress power oscillations, thereby ensuring the stable operation of the grid and the reliability of power supply.

[0176] Optionally, the minimum power P of the photovoltaic system participating in frequency regulation pv_minSet to 70% of the maximum photovoltaic power output point under rated conditions, the frequency regulation strategy of the photovoltaic system is:

[0177] (1) Determine whether the photovoltaic active power is greater than the preset power threshold P pv_min , if it is greater than, multiply the load reduction factor by the photovoltaic active power to obtain the active power output by the photovoltaic system after load reduction, wherein the load reduction factor expression is:

[0178]

[0179] In the formula, K f is the rated load reduction rate, Δf is the grid frequency deviation, and f0 is the grid frequency rated value;

[0180] Optionally, refer to Figure 4 The hybrid energy storage system compensates for the water hammer effect of the hydropower unit. The hybrid energy storage system participates in frequency regulation depending on the state of charge of the supercapacitor battery and the lead-carbon battery in the system. The battery charge and discharge power coefficient is adjusted according to the battery state of charge value to avoid overcharging or over-discharging of the battery. Through the droop coefficient and virtual inertia coefficient, the output of the lead-carbon battery and supercapacitor, as well as the intensity and speed of the response to the transient power shortage, are controlled to optimize the system stability and balance the supply and demand in a short time.

[0181] There are two specific strategies:

[0182] (2) determining whether the supercapacitor battery state of charge is in a first battery state of charge interval, and if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge interval, and if so, taking the product of the droop coefficient of the lead-carbon battery and the grid frequency deviation as the charge and discharge power of the lead-carbon battery, and taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charge and discharge power of the supercapacitor;

[0183] (3) determining whether the state of charge of the supercapacitor battery is in a first battery state of charge interval; if so, determining whether the state of charge of the lead-carbon battery is in a second battery state of charge interval; if not, taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charging and discharging power of the supercapacitor;

[0184] Optionally, the droop coefficient of the lead-carbon battery satisfies the following constraint:

[0185]

[0186] In the formula, SOC min is the minimum warning value of SOC, SOC max is the highest warning value of SOC, P0 is the initial value, K maxis the final value, n is the adaptation factor;

[0187] Optionally, the virtual inertia coefficient of the supercapacitor satisfies the following constraint:

[0188]

[0189] In the formula, K lc is the droop coefficient of the lead-carbon battery, ΔP lc is the charge and discharge power of the lead-carbon battery, K sc is the virtual inertia coefficient of the supercapacitor.

[0190] When the system frequency changes, the active power provided by the lead-carbon battery and supercapacitor is:

[0191]

[0192] Where: K lc is the droop coefficient of the lead-carbon battery, ΔP lc is the charge and discharge power of the lead-carbon battery, K sc is the virtual inertia coefficient of the supercapacitor, ΔP sc is the charging and discharging power of the supercapacitor.

[0193] Optionally, assuming that the supercapacitor battery state of charge is SOCsc, the first battery state of charge interval is:

[0194] SOCsc_min< SOCsc< SOCsc_max

[0195] Among them, SOCsc_min is the minimum allowable charge of the supercapacitor, and SOCsc_max is the maximum allowable charge of the supercapacitor.

[0196] Optionally, assuming that the state of charge of the lead-carbon battery is SOCic, the second battery state of charge range is:

[0197] SOCic_min< SOCic< SOCic_max

[0198] Among them, SOCic_min is the minimum allowable power of the lead-carbon battery, and SOCic_max is the maximum allowable power of the lead-carbon battery.

[0199] In this embodiment, a target collaborative control strategy of the photovoltaic system and the hybrid energy storage is determined according to the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system to control the charging and discharging power regulation of the photovoltaic system and / or the hybrid energy storage system, and then the instantaneous power fluctuation caused by the water hammer effect of the hydropower unit is compensated through the power changes of the photovoltaic system and the hybrid energy storage system.

[0200] It is understandable that the above strategies can be selected as long as they meet their judgment conditions. For example, if the photovoltaic active power is less than or equal to the preset power threshold, strategy (1) is not selected; if it is determined that the supercapacitor battery state of charge is not in the first battery state of charge interval, strategies (2) and (3) are not selected.

[0201] In the technical solution provided in this embodiment, a photovoltaic system and a hybrid energy storage system are added to the hydropower system to compensate for the power when the water hammer effect occurs in the hydropower unit, and a corresponding load reduction control strategy is formulated according to the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system to accelerate the recovery of the system frequency and quickly smooth out power oscillations, thereby ensuring the stable operation of the power grid and the reliability of power supply.

[0202] Second embodiment

[0203] Based on the first embodiment, in this embodiment, the reason why the water hammer effect occurs in the hydropower unit is also related to its own damping torque, wherein the greater the damping torque, the greater the difficulty of the water hammer effect. Theoretically, a photovoltaic system and a hybrid energy storage system are added to the hydropower system to compensate for the power compensation when the water hammer effect occurs in the hydropower unit, and the damping torque of the hydropower unit should be increased. In order to verify the accuracy of this theory, in this embodiment, the damping torque formulas of the hydropower unit, the photovoltaic system and the hybrid energy storage system are derived from their respective transfer functions, so as to perform simulation verification analysis.

[0204] Specifically, the damping torque of the turbine of the hydroelectric generator set is expressed as:

[0205]

[0206] The damping torque expression of the photovoltaic system model is:

[0207]

[0208] The damping torque expression of the hybrid energy storage system is:

[0209]

[0210] The meanings of the parameters in the formula have been listed in the first embodiment and will not be repeated here.

[0211] For example, in some embodiments, Figure 5 This is a schematic diagram comparing the damping torque of the hydropower unit before and after optimization. It can be seen that in this simulation experiment, the method proposed in the first embodiment effectively improves the negative damping of the hydropower unit.

[0212] Third embodiment

[0213] Based on any of the above embodiments, in this embodiment, the effect of the proposed frequency modulation method based on the hydropower unit-photovoltaic-hybrid energy storage system is verified by simulation:

[0214] Assume that in the hydropower unit-photovoltaic-hybrid energy storage system, the installed capacity of the hydropower unit is 20MW, the reference voltage is 6.3kV, and it is boosted to 35kV and connected to the main grid. The three-phase load is set to 10MW. The rated frequency of the system is 50Hz, the simulation results use the per-unit value, and the power reference value is 50MW. The parameters of the non-optimized hydropower unit are: KP=1.06, KI=0.8, KD=0, bp=0, Ty=0.2, Tw=1, Ta=8, en=1.5. The population number of the WOA algorithm N = 50, the maximum number of iterations tmax=10, and the MPC sampling frequency is set to 0.1s.

[0215] (1) Comparison of the adjustment time and overshoot of the system frequency deviation before and after the optimization of the speed regulator parameters of the hydropower unit:

[0216] The performance control of the turbine speed governor depends on the PID parameter configuration. If the water hammer effect and the speed governor PID parameter settings are improper, the stability of the hydropower unit will be poor, which will increase the power shortage in the early stage of frequency regulation and further aggravate the frequency fluctuation. Based on MPC-WOA (whale optimization algorithm of model predictive control), the parameters KP, KI, KD, and bp of the hydropower unit are optimized to meet the accuracy requirements and control requirements under complex working conditions and improve the frequency stability of the system. The specific operations and effects are as follows:

[0217] The MPC-WOA optimization method is added to the hydropower unit speed control system. The system frequency deviation curve before and after optimizing the hydropower unit parameters is as follows: Figure 6 As shown in the figure, when the system load increases, in the initial stage of frequency regulation, when the hydropower unit speed governor uses traditional PID control, the system frequency oscillates violently and decays slowly due to improper setting of the speed governor parameters; when the hydropower unit speed governor uses MPC-WOA control, after the hydropower unit speed governor parameters are optimized, the system frequency fluctuation slows down and the frequency quickly stabilizes;

[0218] The comparison of the adjustment time and overshoot of the system frequency deviation before and after the optimization of the speed governor parameters of the hydropower unit is shown in Table 2. When the deviation is less than 0.1%, it is considered that the system enters a steady state. After the optimization of the speed governor parameters of the hydropower unit, f has no overshoot, and the ts of f has increased by 39.69%. After the optimization of the hydropower unit parameters, the primary frequency regulation performance is greatly improved, and the reverse adjustment of the turbine power caused by the water hammer effect is effectively suppressed:

[0219] Table 2. Comparison of system frequency regulation time and overshoot before and after optimization of hydropower unit parameters

[0220]

[0221] (2) Comparison of system frequency adjustment time and overshoot before and after adding load-shedding photovoltaic-energy storage system

[0222] Corresponding to different strategies, the system frequency deviation curve is as follows: Figure 7 As shown, it can be seen that when the system load increases, the lead-carbon battery and supercapacitor cooperate with the load-reducing photovoltaic system to effectively slow down the system frequency fluctuation, and the increase in power can reduce the system oscillation amplitude; when the photovoltaic power generation does not meet the output conditions, only the energy storage system participates in the system frequency regulation;

[0223] The comparison of the adjustment time and overshoot of the system frequency deviation under different compensation strategies is shown in Table 3. It can be seen that the lead-carbon battery and supercapacitor cooperate with the load-reducing photovoltaic system. Compared with the system that only calls the photovoltaic backup capacity, the system frequency adjustment time is increased by 19.41%, and the overshoot is reduced by 0.37%. Compared with the system without compensation, the system frequency adjustment time is increased by 33.31%, and the overshoot is reduced by 0.59%. Supercapacitors have high energy density and can charge and discharge quickly. They can provide fast response and power support in the early stage of frequency regulation. Lead-carbon batteries provide continuous power compensation. Supercapacitors and lead-carbon batteries work together to accelerate the recovery of system frequency and quickly smooth power oscillations. The compensation effect of lead-carbon batteries and supercapacitors in combination with the load-reducing photovoltaic system is significant, which greatly improves the system frequency regulation performance and stability:

[0224] Table 3. Comparison of system frequency regulation time and overshoot before and after adding load shedding photovoltaic-energy storage system

[0225]

[0226] (3) Verification of coordinated control of hydropower unit parameter optimization and photovoltaic energy storage system compensation

[0227] The MPC-WOA algorithm optimizes the speed regulator parameters of the hydropower unit, cooperates with the photovoltaic and hybrid energy storage systems to compensate for the power reverse regulation caused by the water hammer effect of the hydropower unit, optimizes the primary frequency regulation performance of the system, and coordinates the optimization control before and after the system frequency deviation curve. Figure 8 As shown, it can be seen that when the system load increases, the optimization of the speed regulator parameters of the hydropower unit and the participation of the photovoltaic and hybrid energy storage systems in the primary frequency regulation of the system can greatly improve the system frequency fluctuation and reduce the frequency drop amplitude;

[0228] The comparison of the adjustment time and overshoot of the system frequency and turbine mechanical power change rate before and after the hydropower unit parameter optimization and photovoltaic energy storage system compensation is shown in Table 4. It can be seen that when the system has a water hammer effect, the system frequency adjustment time is improved by 45.58% before and after the hydropower unit parameter optimization and photovoltaic energy storage system compensation compared with the uncompensated system, and 18.41% compared with the photovoltaic energy storage system compensation. There is no overshoot in the system frequency and the active power deviation of the hydropower unit, which shows that the MPC-WOA algorithm proposed in this paper optimizes the parameters of the hydropower unit speed regulator and cooperates with the photovoltaic energy storage system to compensate for the water hammer effect of the hydropower unit. The adjustment effect is significant and the primary frequency regulation performance is greatly improved:

[0229] Table 4. Comparison of system frequency adjustment time and overshoot before and after different compensation and optimization methods

[0230]

[0231] In addition, it can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the system to implement the process steps of the embodiment of the above method.

[0232] Therefore, the present application also provides a computer-readable storage medium, which stores a frequency regulation program based on a hydropower unit-photovoltaic-hybrid energy storage system. When the frequency regulation program based on the hydropower unit-photovoltaic-hybrid energy storage system is executed by a processor, the various steps of the frequency regulation method based on the hydropower unit-photovoltaic-hybrid energy storage system described in the above embodiment are implemented.

[0233] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0234] It should be noted that since the storage medium provided in the embodiment of the present application is the storage medium used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the method of the embodiment of the present application belong to the scope of protection of this application.

[0235] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0236] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0237] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0238] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0239] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0240] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0241] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A frequency modulation method based on a hydropower unit-photovoltaic-hybrid energy storage system. It is characterized in that The method comprises the following steps: When the water hammer effect is detected, based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the whale optimization algorithm based on model predictive control is used to optimize the speed regulator parameters of the hydropower unit, wherein the whale optimization algorithm based on model predictive control introduces a prediction model in the feedback link of the PID speed regulator to predict the future behavior of the system, and the whale optimization algorithm includes a rolling optimization strategy module for continuously updating the control decision, and a feedback correction module for solving the prediction model according to the system information at the current moment; Acquiring the photovoltaic active power output by the photovoltaic system and the battery charge state in the hybrid energy storage system; Determining a target coordinated control strategy of a photovoltaic system and hybrid energy storage according to the photovoltaic active power and the battery state of charge; Invoking the target coordinated control strategy to control the photovoltaic system and / or the hybrid energy storage system to respond to the power reverse regulation of the hydropower unit; The expression of the prediction model is: ; in, , ; Where N C To control the time domain and N P is the prediction time domain, N C ≤N P , k is the sampling time, x(k) is the n-dimensional state variable, is the m-dimensional input increment, y(k) is the q-dimensional output variable, A, B, C are constant matrices, and .

2. The method according to claim 1, It is characterized in that The battery state of charge includes the lead-carbon battery state of charge and the supercapacitor battery state of charge, and the target coordinated control strategy of the photovoltaic system and the hybrid energy storage includes at least one of the following: (1) Determine whether the photovoltaic active power is greater than a preset power threshold. If so, multiply the load reduction factor by the photovoltaic active power to obtain the active power output by the photovoltaic system after load reduction, wherein the load reduction factor is expressed as: ; In the formula, K f is the rated load reduction rate, Δf is the grid frequency deviation, f 0 is the grid frequency rating; (2) determining whether the supercapacitor battery state of charge is in a first battery state of charge interval, and if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge interval, and if so, taking the product of the droop coefficient of the lead-carbon battery and the grid frequency deviation as the charge and discharge power of the lead-carbon battery, and taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charge and discharge power of the supercapacitor; (3) determining whether the supercapacitor battery state of charge is in a first battery state of charge range; if so, determining whether the lead-carbon battery state of charge is in a second battery state of charge range; if not, taking the product of the virtual inertia coefficient of the supercapacitor and the frequency change rate of the grid frequency deviation as the charging and discharging power of the supercapacitor.

3. The method according to claim 1, It is characterized in that The step of optimizing the speed regulator parameters of the hydropower unit by using the whale optimization algorithm based on model predictive control includes: The value of each whale's position is regarded as a feasible solution, and the proportional coefficient K of the speed regulator of the hydropower unit is assigned in turn. P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p ; The ITAE index is used as the whale position fitness function, and the optimal whale individual is determined based on the whale position fitness function, and the optimal whale individual is used as the current optimal proportional coefficient K P , integral coefficient K I Differential coefficient K D and adjustment coefficient b p ; Update the whale position until the maximum number of iterations is reached, and output the K corresponding to the optimal whale individual position after reaching the maximum number of iterations P , K I , K D , b p , as the optimized proportional coefficient K P , integral coefficient K I , differential coefficient K D and adjustment coefficient b p .

4. The method according to claim 1, It is characterized in that The system model includes a hydroelectric unit model, which includes a rotor motion equation of a generator, a generator transfer function, a PID type governor transfer function and a water diversion system transfer function. The rotor motion equation of the generator is as follows: ; Where M is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP e are the mechanical power and electromagnetic power deviation of the turbine respectively, D is the damping coefficient of the turbine, and Δδ is the rotor angle deviation; the expression of the generator transfer function is: ; Among them, T a is the inertia time constant, Δω is the rotor angular velocity deviation, ΔP m and ΔP e are the mechanical power and electromagnetic power deviation of the turbine, e n is the turbine damping coefficient; The expression of the PID type speed regulator transfer function is: ; Where, Δμ is the turbine guide vane opening deviation; b p K is the adjustment coefficient; P , K I , K D are the proportional coefficient, integral coefficient and differential coefficient of the speed regulator respectively; T y is the actuator time constant; The expression of the transfer function of the water diversion system is: ; Among them, T w is the water flow inertia time constant.

5. The method according to claim 1, It is characterized in that The system model includes a photovoltaic system model, and the damping torque of the photovoltaic system model is expressed as: ; Among them, K pv is the photovoltaic active power droop coefficient, T dc , T ac is the time constant of the DC-DC converter and the DC-AC converter, J is the virtual moment of inertia, D is the virtual damping coefficient, and ω is the rotor angular velocity.

6. The method according to claim 1, It is characterized in that The system model includes a hybrid energy storage system, and the damping torque of the hybrid energy storage system is expressed as: ; Among them, K lc is the droop coefficient of the lead-carbon battery, K sc is the virtual inertia coefficient of the supercapacitor, T dc , T ac is the time constant of the DC-DC converter and the DC-AC converter, and ω is the rotor angular velocity.

7. The method according to claim 1, It is characterized in that The system model includes a hydroelectric generator set, and the expression of the damping torque of the turbine of the hydroelectric generator set is: ; Among them, K P is the proportionality coefficient, K I is the integral coefficient, K D is the differential coefficient, b p is the adjustment coefficient, T y is the actuator time constant, T w is the water flow inertia time constant, and ω is the rotor angular velocity.

8. The method according to claim 1, It is characterized in that Before the step of optimizing the speed regulator parameters of the hydropower unit using the whale optimization algorithm based on model predictive control based on the pre-established system model consisting of the hydropower unit, the photovoltaic system and the hybrid energy storage system, the method further includes: Obtaining the angular velocity deviation value and mechanical power deviation value of the hydraulic turbine group; Determine the positive and negative sign relationship between the turbine angular velocity deviation value and the mechanical power deviation value; If the signs of the turbine angular velocity deviation value and the mechanical power deviation value are the same, it is determined that the water hammer effect occurs in the turbine unit.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a frequency regulation program based on a hydropower set-photovoltaic-hybrid energy storage system, and when the frequency regulation program based on a hydropower set-photovoltaic-hybrid energy storage system is executed by a processor, the steps of the frequency regulation method based on a hydropower set-photovoltaic-hybrid energy storage system as described in any one of claims 1 to 8 are implemented.