Pumped storage unit control method, device and equipment based on simulated annealing method

Through simulated annealing method, the problem of limited control accuracy in the frequency regulation auxiliary service of pumped storage units is solved, and the frequency regulation accuracy and robustness of pumped storage units are improved, and the good results are achieved. Frequency modulation capability.

CN118899867APending Publication Date: 2024-11-05STATE GRID XINYUAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410943850.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Traditional PID control algorithms cannot automatically determine reasonable PID control parameters in the frequency regulation auxiliary service of pumped storage units, resulting in limited control accuracy.

Method used

A simulated annealing method is used to establish a frequency control system model and automatically optimize the parameters of the PID controller to improve control accuracy and robustness.

Benefits of technology

Automatically searching for the best PID parameters through simulated annealing method improves the frequency regulation accuracy and anti-interference of the pumped storage unit, and enhances its frequency regulation capability in the new power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118899867A_ABST
    Figure CN118899867A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for controlling a pumped storage unit based on a simulated annealing method. A transfer function of each link of a frequency control system model is firstly established, and then automatic optimization of PID parameters of a PID controller in the frequency control system model can be realized by adopting a simulated annealing method, namely, the optimal PID control parameters suitable for frequency modulation of the pumped storage power station are automatically searched, so that the influence of empirical errors is reduced, and the accuracy of frequency modulation of the pumped storage power station is improved. When the frequency control system model is applied to frequency modulation control of the pumped storage unit, the frequency modulation accuracy and robustness of the pumped storage unit can be improved, the anti-interference performance of the control system is improved, and therefore the good frequency modulation capacity of the pumped storage unit in a novel power system is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a control method, device and equipment for a pumped storage unit based on a simulated annealing method, and belongs to the technical field of electric power regulation. Background Art

[0002] Pumped-storage power stations are a good regulating resource with functions such as peak regulation, valley filling and energy storage. They are mature, economical, low-carbon and safe large-scale regulating power sources in power systems that have been tested in practice. At the same time, they also have the performance of providing good frequency regulation, peak regulation, standby, black start and other power auxiliary services, which is of great significance to the realization of green development of electricity.

[0003] Pumped storage units have good flexibility when participating in frequency regulation auxiliary services, and when receiving dispatching instructions to track frequency regulation signals, they often use proportional integral derivative (PID) control strategies to achieve automatic control of frequency regulation, in which various adjustment coefficients such as proportional, integral, and differential adjustment parameters are mainly determined according to the power generation output characteristics of the pumped storage units. In traditional PID control algorithms, empirical methods such as the Ziegler-Nichols method and empirical tuning methods are usually used to determine the parameters of the PID controller, but reasonable PID control parameters cannot be automatically obtained, resulting in limited control accuracy. Summary of the invention

[0004] The present application provides a control method, device and equipment for a pumped storage unit based on simulated annealing method, so as to solve the problem that reasonable PID control parameters cannot be automatically obtained when the traditional PID control method is used for frequency regulation, resulting in limited control accuracy.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a pumped storage unit control method based on simulated annealing method, which includes:

[0007] According to the operating characteristics of the pumped storage unit, the transfer functions of each link of the frequency control system model are established; wherein the frequency control system model includes a PID controller model;

[0008] Optimizing the optimal parameters of the PID controller model using simulated annealing method;

[0009] The optimal parameters are substituted into the frequency control system model so that the pumped storage unit participates in frequency regulation auxiliary services based on the frequency control system model.

[0010] Based on the above method, optionally, the method of optimizing the optimal parameters of the PID controller model by using the simulated annealing method includes:

[0011] Given the initial temperature T k , and randomly generate a set of PID parameters (k p ,T i ,T d ) as the current PID parameter;

[0012] At the current PID parameter w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T i ′,T d ′);

[0013] Respectively (k p ,t i ,t d ) and w′(k′ p ,T i ′,T d ′) is substituted into the PID controller to calculate the corresponding ITAE indicators f(w′) and f(w);

[0014] Calculate the deviation Δf=f(w′)-f(w) between f(w′) and f(w), and determine the new PID parameter w′(k′) based on the Metropois criterion. p ,T i ′,T d ′) whether it is accepted;

[0015] If accepted, then w′(k′ p ,T i ′,T d ′) as the current PID parameters, otherwise the current PID parameters remain unchanged;

[0016] Perform annealing operation and return to execute the current PID parameter w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T i ′,T d ′), until the current temperature drops to the termination temperature, the current PID parameters are determined to be the optimal parameters.

[0017] Based on the above method, optionally, the new PID parameter w′(k′) is determined based on the Metropois criterion. p ,Ti ′,T d ′) whether it is accepted, including:

[0018] If Δf<0, it means accepting w′(k′ p ,T i ′,T d ′) as the new current solution; otherwise, if the probability Then accept w′(k′ p ,T i ′,T d ′) as the new current solution. If it does not hold, keep w(k p ,T i ,T d ) is the current solution.

[0019] Based on the above method, optionally, the annealing operation includes:

[0020] Let T k+1 =λT k , T k+1 is the temperature after lowering the temperature, λ is the annealing coefficient, λ∈(0,1).

[0021] Based on the above method, optionally, the frequency control system model further includes:

[0022] Governor model, turbine model, water hammer compensation model and prime mover model.

[0023] Based on the above method, optionally,

[0024] The mathematical model of the speed regulator model is:

[0025]

[0026] Where, T g is the time constant of the turbine speed governor, in seconds; s is the independent variable of the transfer function in the frequency domain;

[0027] The mathematical model of the turbine model is:

[0028]

[0029] Where, T w is the time constant of the turbine generator, in seconds;

[0030] The mathematical model of the water hammer compensation model is:

[0031]

[0032] Where, T R is the time constant of the water hammer compensator, in seconds; RT and R D is the correlation coefficient, which is a dimensionless parameter;

[0033] The mathematical model of the prime mover model is:

[0034]

[0035] Where, T t is the prime mover time constant in seconds.

[0036] In a second aspect, the embodiment of the present application further provides a pumped storage unit control device based on simulated annealing method, which includes:

[0037] A modeling module, used to establish the transfer functions of various links of the frequency control system model according to the operating characteristics of the pumped storage unit; wherein the frequency control system model includes a PID controller model;

[0038] An optimization module is used to optimize the optimal parameters of the PID controller model using a simulated annealing method;

[0039] A control module is used to substitute the optimal parameters into the frequency control system model so that the pumped storage unit participates in frequency regulation auxiliary services based on the frequency control system model.

[0040] In a third aspect, an embodiment of the present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor calls and executes the computer program, the pumped storage unit control method based on simulated annealing method as described in any one of the first aspects is implemented.

[0041] In the pumped-storage unit control method, device and equipment based on simulated annealing provided in the present application, the transfer function of each link of the frequency control system model is first established, and then the simulated annealing method is used to realize the automatic optimization of the PID parameters of the PID controller in the frequency control system model, that is, automatically find the best PID control parameters suitable for the frequency regulation of the pumped-storage power station, reduce the influence of empirical errors, and then when the frequency control system model is applied to the frequency regulation control of the pumped-storage unit, the accuracy and robustness of the frequency regulation of the pumped-storage unit can be improved, and the anti-interference ability of the control system can be improved, thereby realizing the good frequency regulation capability of the pumped-storage unit in the new power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. In addition, these drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments.

[0043] Figure 1 A schematic flow chart of a pumped storage unit control method based on simulated annealing provided in one embodiment of the present application;

[0044] Figure 2 A schematic diagram of the structure of a frequency control system for a pumped storage unit provided in one embodiment of the present application;

[0045] Figure 3 A schematic diagram of a process for optimizing the optimal parameters of a PID controller model using a simulated annealing method provided in one embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of a pumped storage unit control device based on simulated annealing method provided by an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0049] In traditional PID control algorithms, empirical methods or experimental methods are usually used, such as the Ziegler-Nichols method, empirical tuning method, and other empirical methods to determine the parameters of the PID controller, but reasonable PID control parameters cannot be automatically obtained, resulting in the control accuracy being limited by personnel experience.

[0050] In view of the above problems, the present invention provides a pumped storage unit control scheme based on simulated annealing method, which can automatically find the optimal PID control parameters suitable for frequency regulation of pumped storage power stations based on simulated annealing method. The specific implementation scheme is described in a non-limiting manner through several examples or embodiments.

[0051] Some embodiments of the present application provide a pumped storage unit control method based on simulated annealing method, referring to Figure 1 , Figure 1 A flow chart of a pumped storage unit control method based on simulated annealing provided in one embodiment of the present application. In a specific implementation, the solution of this embodiment may be a processing system configured in an electronic device such as a computer or server. That is, the solution of this embodiment may be implemented by a software system in an electronic device.

[0052] like Figure 1 As shown, the pumped storage unit control method based on simulated annealing method of this embodiment includes the following steps:

[0053] Step S101: according to the operation characteristics of the pumped storage unit, the transfer functions of each link of the frequency control system model are established; wherein the frequency control system model includes a PID controller model.

[0054] Specifically, the input of the frequency control system model is a given frequency f, that is, the target frequency to be achieved, and after a series of processing, the output frequency f' is obtained. That is, after being processed by the transfer function of the frequency control system model, the output frequency f' will quickly converge to the given frequency f.

[0055] Among them, the PID controller model is an important part of the frequency control system model, and its mathematical model can be expressed as:

[0056]

[0057] Among them, G PID represents the PID controller transfer function (i.e., PID controller model), PID parameter k p ,T I ,T d are the proportional, integral and differential parameters respectively, and s is the independent variable of the transfer function in the frequency domain.

[0058] According to the actual application situation, reasonable adjustments are made between the proportional, integral and differential parameters to achieve the best control effect.

[0059] Furthermore, in some embodiments, the frequency control system model also includes: a speed governor model, a turbine model, a water hammer compensation model and a prime mover model.

[0060] Among them, the speed governor is a control system used to adjust and control the speed of the turbine. A turbine is a machine that converts water energy into mechanical energy. It uses the kinetic energy and potential energy of the water flow to convert into rotational kinetic energy, thereby driving other devices to operate. The water hammer compensation model is used to compensate for the water hammer effect to ensure the stability of the turbine. The water hammer effect refers to the fact that inside the water pipe, the inner wall of the pipe is smooth and the water flows freely. When the open valve is suddenly closed, the water flow will exert pressure on the valve and the pipe wall, mainly the valve. Due to the smooth pipe wall, the subsequent water flow quickly reaches the maximum under the action of inertia and produces a destructive effect. This phenomenon is called the "water hammer effect" in hydraulics. The prime mover is a device used to drive the power generation equipment to generate electricity.

[0061] By modeling the above-mentioned devices or equipment, the corresponding control model can be obtained.

[0062] Furthermore, if Figure 2 As shown, in some embodiments, the mathematical model of the speed regulator model is:

[0063]

[0064] Where, T g is the time constant of the turbine speed governor, in seconds; s is the independent variable of the transfer function in the frequency domain;

[0065] The mathematical model of the turbine model is:

[0066]

[0067] Where, T w is the time constant of the turbine generator, in seconds;

[0068] The mathematical model of water hammer compensation model is:

[0069]

[0070] Where, T R is the time constant of the water hammer compensator, in seconds; R T and R D is the correlation coefficient, which is a dimensionless parameter;

[0071] The mathematical model of the prime mover model is:

[0072]

[0073] Where, T t is the prime mover time constant in seconds.

[0074] Based on the above frequency control system, the deviation between the given frequency f and the system output frequency fμ is e(t); after the deviation signal e(t) is adjusted by the PID controller, it will pass through the transfer function process of the pumped storage unit's speed governor, turbine, water hammer compensation, and prime mover in sequence, and the output frequency f′ will quickly converge to the expected set frequency f. In particular, the addition of the water hammer compensation link can improve the water hammer effect, thereby better ensuring the stability of the turbine.

[0075] Step S102: Optimizing the best parameters of the PID controller model using the simulated annealing method.

[0076] Specifically, simulated annealing (SA) is an algorithm for solving optimization problems, which can be used to find the optimal solution or the approximate optimal solution. It is inspired by the annealing process in solid physics, which is to heat the metal and then slowly cool it to reduce its internal stress and increase its crystallinity. Based on this process, the simulated annealing method starts from the initial state and accepts the change of state with a certain probability during the process of continuous cooling. When applying the simulated annealing algorithm to solve the problem, it is first necessary to determine an initial solution and temperature parameters. Then, by searching for a new solution in the neighborhood of the current solution and calculating its objective function value, the change of this solution is accepted according to a certain probability, and the current solution is updated. The temperature parameter will gradually decrease over time, and the search process will gradually converge to the optimal solution or the local optimal solution.

[0077] In one embodiment, Figure 3 As shown, step S102 uses simulated annealing method to optimize the best parameters of the PID controller model, which may specifically include:

[0078] 1. Initialization: given initial temperature T k and the termination temperature T n , and randomly generate a set of PID parameters

[0079] (k p ,T i ,T d ) as the current PID parameters.

[0080] 2. Disturbance generates new solutions: Under the current PID parameters w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T i ′,T d ′).

[0081] 3. Calculate the control performance evaluation index: (k p ,T i ,Td ) and w′(k′ p ,T i ′,T d ′) is substituted into the PID controller to calculate the corresponding ITAE indicators f(w′) and f(w).

[0082] Among them, the ITAE (Integral of Time multiplied by the Absolute value of the Error) indicator is an indicator used to evaluate system control performance, and is often used to evaluate the control system's approach to steady-state performance and system response speed. In this embodiment, the ITAE indicator is used to evaluate the control effect of the PID controller. The ITAE indicator is the absolute value of the error multiplied by the integral of the time term over time, which can reflect both the size of the error (control accuracy) and the speed at which the error converges, taking into account both control accuracy and convergence speed.

[0083] The smaller the ITAE, the better the controller. The calculation formula of ITAE index can be expressed as:

[0084]

[0085] Where e(t) is the system deviation, that is, the difference between the given frequency f and the actual frequency f′, and t is the response time.

[0086] Respectively (k p ,T i ,T d ) and w′(k′ p ,T i ′,T d ′) are substituted into the PID controller to obtain the corresponding system deviations e(t) and e′(t), and then the values ​​of the ITAE index f(w) and f(w′) are calculated based on the two system deviations.

[0087] 4. Calculate the performance index deviation Δf: that is, calculate the deviation Δf between f(w′) and f(w) = f(w′)-f(w).

[0088] 5. Determine the new PID parameter w′(k′) based on the Metropois criterion p ,T i ′,T d ′) is accepted. If accepted, w′(k′ p ,T i ′,T d ′) as the current PID parameters, otherwise the current PID parameters remain unchanged.

[0089] Among them, the new PID parameter w′(k′) is determined based on the Metropois criterion. p ,T i ′,T d ′) whether it is accepted, which may include:

[0090] If Δf<0, it means accepting w′(k′ p ,T i ′,T d ′) as the new current solution; otherwise, if the probability Then accept w′(k′ p ,T i ′,T d ′) as the new current solution. If it does not hold, keep w(k p ,T i ,T d ) is the current solution. Among them, rand(0,1) represents a random number between 0 and 1. And according to this judgment relationship, the higher the temperature (T k The larger the value, the higher the probability of accepting a new solution. This allows the simulated annealing algorithm to overcome potential local optimal solutions when the temperature is high and increase the chance of global search; when the temperature decreases, the simulated annealing algorithm can gradually converge to the local optimal solution or the global optimal solution.

[0091] 6. Annealing operation: perform annealing operation and return to the current PID parameter w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T i ′,T d ′).

[0092] The annealing operation includes: setting T k+1 =λT k , T k+1 is the temperature after lowering the temperature, λ is the annealing coefficient, λ∈(0,1).

[0093] 7. Termination condition judgment: judge whether T is satisfied k+1 ≤T n If yes, the optimization ends. That is, the current temperature drops to the termination temperature T n , it is determined that the current PID parameters are the optimal parameters.

[0094] 8. Result output: When the temperature reaches the final set end temperature T n When the output is w(k p ,T i ,T d ), at this time w(kp ,T i ,T d ) is the optimal PID parameter.

[0095] Step S103: Substitute the optimal parameters into the frequency control system model so that the pumped storage unit can participate in the frequency regulation auxiliary service based on the frequency control system model.

[0096] Specifically, after establishing the frequency control system model according to the operating characteristics of the pumped-storage unit and determining the PID controller parameter optimization, the pumped-storage unit can adjust its own power output under a given grid system frequency, track the frequency required by the grid system and provide frequency regulation auxiliary services. The optimal PID parameters can effectively improve the response speed and anti-interference ability of the PID controller, and improve the regulation capability and robustness of the pumped-storage power station when a high proportion of wind and solar power sources are connected to the grid system.

[0097] Through the above scheme, the transfer functions of each link of the frequency control system model are first established, and then the simulated annealing method can be used to realize the automatic optimization of the PID parameters of the PID controller in the frequency control system model, that is, automatically find the optimal PID control parameters suitable for the frequency regulation of the pumped-storage power station, reduce the influence of empirical errors, and then when the frequency control system model is applied to the frequency regulation control of the pumped-storage unit, the accuracy and robustness of the frequency regulation of the pumped-storage unit can be improved, and the anti-interference ability of the control system can be improved, thereby realizing the good frequency regulation capability of the pumped-storage unit in the new power system.

[0098] In addition, the present application embodiment provides a pumped storage unit control device based on simulated annealing method, referring to Figure 4 , the control device of the pumped storage unit based on the simulated annealing method includes:

[0099] A modeling module 41 is used to establish the transfer functions of various links of the frequency control system model according to the operating characteristics of the pumped storage unit; wherein the frequency control system model includes a PID controller model;

[0100] An optimization module 42 is used to optimize the best parameters of the PID controller model using a simulated annealing method;

[0101] The control module 43 is used to substitute the optimal parameters into the frequency control system model so that the pumped storage unit can participate in the frequency regulation auxiliary service based on the frequency control system model.

[0102] Among them, regarding the specific implementation methods of each module of the above-mentioned pumped storage unit control device based on simulated annealing method, reference can be made to the corresponding contents in the aforementioned method embodiment, which will not be repeated here.

[0103] In addition, an embodiment of the present application provides an electronic device, such as Figure 5 As shown, the electronic device includes a memory 51 and a processor 52; wherein the memory 51 stores a computer program, and when the processor 52 calls and executes the computer program, the pumped storage unit control method based on simulated annealing method in any of the above embodiments is implemented.

[0104] The electronic device may be a desktop computer, a notebook computer or a server.

[0105] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0106] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0107] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0108] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0109] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0110] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0112] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A pumped storage unit control method based on simulated annealing method, characterized in that: include: According to the operating characteristics of the pumped storage unit, the transfer functions of each link of the frequency control system model are established; wherein the frequency control system model includes a PID controller model; Optimizing the optimal parameters of the PID controller model using simulated annealing method; The optimal parameters are substituted into the frequency control system model so that the pumped storage unit participates in frequency regulation auxiliary services based on the frequency control system model.

2. The method according to claim 1, characterized in that The use of simulated annealing method to optimize the optimal parameters of the PID controller model includes: Given the initial temperature T k , and randomly generate a set of PID parameters (k p ,T i ,T d ) as the current PID parameter; At the current PID parameter w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T i ′,T d ′); Respectively (k p ,T i ,T d ) and w′(k′ p ,T′ i ,T′ d ) is substituted into the PID controller to calculate the corresponding ITAE indicators f(w′) and f(w); Calculate the deviation Δf=f(w′)-f(w) between f(w′) and f(w), and determine the new PID parameter w′(k′) based on the Metropois criterion. p ,T′ i ,T′ d ) is accepted; If accepted, w′(k′ p ,T′ i ,T′ d ) as the current PID parameters, otherwise the current PID parameters remain unchanged; Perform annealing operation and return to execute the current PID parameter w(k p ,T i ,T d ) randomly generates a new set of PID parameters w′(k′) in the neighborhood of p ,T′ i ,T′ d ) step until the current temperature drops to the termination temperature, and the current PID parameters are determined to be the optimal parameters.

3. The method according to claim 2, characterized in that The new PID parameter w′(k′) is determined based on the Metropois criterion. p ,T′ i ,T′ d ) is accepted, including: If Δf<0, it means accepting w′(k′ p ,T′ i ,T′ d ) as the new current solution; otherwise, if the probability Then accept w′(k′ p ,T′ i ,T′ d ) as the new current solution. If it does not hold, keep w(k p ,T i ,T d ) is the current solution.

4. The method according to claim 2, characterized in that: The annealing operation comprises: Let T k+1 =λT k , T k+1 is the temperature after lowering the temperature, λ is the annealing coefficient, λ∈(0,1).

5. The method according to claim 1, characterized in that The frequency control system model also includes: Governor model, turbine model, water hammer compensation model and prime mover model.

6. The method according to claim 5, characterized in that The mathematical model of the speed regulator model is: Where, T g is the time constant of the turbine speed governor, in seconds; s is the independent variable of the transfer function in the frequency domain; The mathematical model of the turbine model is: Where, T w is the time constant of the turbine generator, in seconds; The mathematical model of the water hammer compensation model is: Where, T R is the time constant of the water hammer compensator, in seconds; R T and R D is the correlation coefficient, which is a dimensionless parameter; The mathematical model of the prime mover model is: Where, T t is the prime mover time constant in seconds.

7. A pumped storage unit control device based on simulated annealing method, characterized in that: include: A modeling module, used to establish the transfer functions of various links of the frequency control system model according to the operating characteristics of the pumped storage unit; wherein the frequency control system model includes a PID controller model; An optimization module is used to optimize the optimal parameters of the PID controller model using a simulated annealing method; A control module is used to substitute the optimal parameters into the frequency control system model so that the pumped storage unit participates in frequency regulation auxiliary services based on the frequency control system model.

8. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor calls and executes the computer program, the pumped storage unit control method based on simulated annealing method as described in any one of claims 1 to 6 is implemented.