Energy storage optimization method and device for wind power plant, and computer readable storage medium
The particle swarm optimization algorithm accurately solves the speed and pitch angle of the wind turbine unit, and solves the problem of unstable grid frequency caused by inaccurate calculation results of wind turbine unit control, and improves the grid operation stability and the kinetic energy reserve capacity of the wind farm.
Patent Information
- Application Number
- CN202411161838.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, when the speed and pitch angle of the wind turbine are controlled to increase the active power output of the wind turbine to support the grid frequency, due to inaccurate calculation results, the grid frequency may be unstable and even affect the normal operation of the power system. .
The particle swarm optimization algorithm is used to construct an energy storage optimization model based on the characteristic parameters of the wind turbine and the current wind speed, and accurately solve the target speed and target pitch angle to maximize the rotating kinetic energy reserve capacity of the wind farm and ensure stable support of the power grid frequency.
By accurately controlling the speed and pitch angle of the wind turbine, the stability of the power grid operation is improved, ensuring that the wind farm can effectively support the power grid frequency and avoid power system failures.
Smart Images

Figure CN119029936A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid stabilization, and in particular to a method and device for optimizing energy storage in a wind farm, and a computer-readable storage medium. Background Art
[0002] Traditional power grids dominated by thermal power units can support the grid frequency by increasing the active power of thermal power units when the grid frequency drops, thereby ensuring the stable operation of the grid. However, as the proportion of wind turbines connected to the grid continues to increase, the intermittent and random nature of wind turbines has brought voltage fluctuations and power fluctuations to the power system, affecting the safe and stable operation of the grid, and the support for the grid frequency is limited. Therefore, in order to ensure the safe and stable operation of the grid, it is necessary to find ways to improve the grid frequency support capacity of wind turbines.
[0003] Traditional variable speed wind turbines usually use the maximum power control method, that is, the wind turbine is operated at Figure 1 Point A shown, Figure 1 This is a schematic diagram of the relationship between the blade tip speed ratio and the wind energy utilization rate in the prior art. This control method cannot increase the active output of the wind turbine when the grid frequency decreases, and therefore cannot provide support for the grid frequency. Currently, variable pitch load reduction control or speed increase load reduction control is mainly used to actively reduce the active output of the wind turbine to reserve the required spare capacity to support the grid frequency. That is, when the grid frequency is normal, the wind energy utilization rate is actively reduced by increasing the pitch angle, for example, the wind turbine is operated at Figure 1 When the grid frequency decreases, the wind energy utilization rate of the wind turbine is improved by reducing the pitch angle (i.e., the wind turbine operating point transitions from point B to point A), thereby outputting more active power to support the grid frequency; when the grid frequency is normal, the wind energy utilization rate is actively reduced by increasing the speed, for example, the wind turbine is operated at Figure 1 Point C shown; when the grid frequency drops, reducing the speed of the wind turbine (that is, making the operating point transition from point C to point A) can, on the one hand, improve the utilization rate of wind energy, and on the other hand, release the rotational kinetic energy stored in the wind turbine and convert it into active output. Both of these can increase the active power output of the wind turbine to support the grid frequency.
[0004] However, when variable pitch load reduction control or speed reduction control is currently used to increase the active power output of wind turbines to support the grid frequency, due to inaccurate calculation results of the pitch angle and speed target values, the wind turbine may not be able to provide sufficient power to support the grid frequency, which may lead to unstable grid frequency and even cause power system failures, affecting the normal operation of the power system.
[0005] With regard to the problem in the above-mentioned related technologies that when controlling the speed and pitch angle of the wind turbine to increase the active power output of the wind turbine to support the grid frequency, inaccurate calculation results may affect the normal operation of the power system, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a method and device for optimizing energy storage in a wind farm, and a computer-readable storage medium, so as to at least solve the technical problem in the related art that when the speed and pitch angle of the wind turbine are controlled to increase the active power output by the wind turbine to support the grid frequency, the normal operation of the power system may be affected due to inaccurate calculation results.
[0007] According to one aspect of an embodiment of the present invention, a method for optimizing energy storage in a wind farm is provided, comprising: constructing an energy storage optimization model according to characteristic parameters of a wind turbine generator set, wherein the characteristic parameters include at least: a rotational speed and a pitch angle of the wind turbine generator set; obtaining a current wind speed of the wind farm where the wind turbine generator set is located, wherein the wind farm comprises a plurality of the wind turbine generator sets; solving the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target rotational speed and a target pitch angle of the wind turbine generator set, wherein the target rotational speed and the target pitch angle are optimal solutions of the energy storage optimization model; and controlling the wind turbine generator set to adjust the rotational speed to the target rotational speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm.
[0008] Optionally, constructing an energy storage optimization model according to characteristic parameters of the wind turbine generator set includes: obtaining the current rotational speed and pitch angle of the wind turbine generator set; establishing an objective function according to the rotational speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein a first expression of the objective function is: i represents the number of the wind turbine generator set, M represents the total number of the wind turbine generator sets, and J i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPP Representing the rotational speed of the i-th wind turbine at the maximum power point; constraining the rotational speed adjustment range and the pitch angle adjustment range of the pitch angle to obtain constraint conditions; constructing the energy storage optimization model according to the objective function and the constraint conditions.
[0009] Optionally, after establishing an objective function based on the rotation speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, the energy storage optimization method of the wind farm further includes: calculating actual wind energy actually obtained by the wind farm using a first formula, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, A i represents the swept area of the rotor of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine; and calculates the maximum wind energy obtained by the wind farm at the current wind speed using a second formula, wherein the second formula is: P max represents the maximum wind energy, C pMPP represents the wind energy utilization rate of the wind turbine at the maximum power point; based on the actual wind energy and the maximum wind energy, a penalty function is determined using a third formula, wherein the third formula is: F pen =θ[P sum -(1-d)P max ] 2 , F pen represents the penalty function, θ represents the penalty coefficient, d represents the load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; the objective function is optimized by using the penalty function to obtain the optimized objective function, wherein the second expression of the optimized objective function is:
[0010] Optionally, the energy storage optimization model is solved based on the characteristic parameters and the current wind speed using a particle swarm optimization algorithm to obtain a target speed and a target pitch angle of the wind turbine, including: randomly generating a first primary population and a second primary population based on the speed adjustment range and the pitch angle adjustment range using the particle swarm optimization algorithm, and initializing all first individuals in the first primary population and all second individuals in the second primary population, wherein the first primary population and the second primary population are both used to solve the target speed and the target pitch angle; dividing a plurality of the first individuals in the first primary population using Euclidean distance to obtain a plurality of first population clusters, and dividing a plurality of the second individuals in the second primary population using cosine similarity to obtain multiple second population clusters; based on the current wind speed, respectively optimize and iterate the first population cluster and the second population cluster using the particle swarm optimization algorithm to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, obtain the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, wherein the first target individual is the individual with the highest first fitness value among the multiple first individuals, the second target individual is the individual with the highest second fitness value among the multiple second individuals, and the first position and the second position are both solutions to the objective function in the energy storage optimization model; determine the first position of the first target individual as the target speed, and determine the second position of the second target individual as the target pitch angle.
[0011] Optionally, before optimizing and iterating the first population cluster and the second population cluster respectively based on the current wind speed using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, obtaining the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, the energy storage optimization method of the wind farm also includes: obtaining multiple first fitness values of multiple first individuals in the first population cluster and multiple second fitness values of multiple second individuals in the second population cluster; sorting the multiple first fitness values in descending order to obtain a first sorting result, and sorting the multiple second fitness values in descending order to obtain a second sorting result; determining the highest first fitness value as the first optimal fitness value based on the first sorting result, and determining the highest second fitness value as the second optimal fitness value based on the second sorting result; determining the first individual corresponding to the first optimal fitness value as the first target individual, and determining the second individual corresponding to the second optimal fitness value as the second target individual.
[0012] Optionally, based on the current wind speed, the first population cluster and the second population cluster are optimized and iterated respectively using the particle swarm optimization algorithm to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, and the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster are obtained, including: a first acquisition step, in the process of optimizing and iterating the first population cluster and the second population cluster respectively using the particle swarm optimization algorithm based on the current wind speed, obtaining multiple first intermediate fitness values of multiple first individuals in the first population cluster and multiple second intermediate fitness values of multiple second individuals in the second population cluster; a second acquisition step, comparing the highest first intermediate fitness value with the first optimal fitness value to obtain a first comparison result, and comparing the highest second intermediate fitness value with the second optimal fitness value to obtain. a second comparison result; a first updating step, when the first comparison result indicates that the highest first intermediate fitness threshold is greater than the first optimal fitness value, updating the first target individual to the first individual corresponding to the highest first intermediate fitness threshold, and updating the first optimal fitness value to the highest first intermediate fitness threshold; a second updating step, when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value, updating the second target individual to the second individual corresponding to the highest second intermediate fitness threshold, and updating the second optimal fitness value to the highest second intermediate fitness threshold; repeatedly executing the first acquisition step, the second acquisition step, the first updating step and the second updating step until the number of iterations is not less than the predetermined number, obtaining the first position of the first target individual and the second position of the second target individual.
[0013] Optionally, after determining that the first position of the first target individual is the target speed and determining that the second position of the second target individual is the target pitch angle, the energy storage optimization method of the wind farm also includes: sending the target speed to the converter of the wind turbine group to control the wind turbine group to adjust the speed to the target speed; sending the target pitch angle to the variable pitch controller of the wind turbine group to control the wind turbine group to adjust the pitch angle to the target pitch angle.
[0014] According to another aspect of an embodiment of the present invention, there is further provided an energy storage optimization device for a wind farm, comprising: a construction unit, for constructing an energy storage optimization model according to characteristic parameters of a wind turbine generator set, wherein the characteristic parameters include at least: a rotational speed and a pitch angle of the wind turbine generator set; a first acquisition unit, for acquiring a current wind speed of the wind farm where the wind turbine generator set is located, wherein the wind farm comprises a plurality of the wind turbine generator sets; a second acquisition unit, for solving the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed, to obtain a target rotational speed and a target pitch angle of the wind turbine generator set, wherein the target rotational speed and the target pitch angle are optimal solutions of the energy storage optimization model; and a control unit, for controlling the wind turbine generator set to adjust the rotational speed to the target rotational speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm.
[0015] Optionally, the construction unit includes: a first acquisition module, used to acquire the current rotational speed and the pitch angle of the wind turbine; and an establishment module, used to establish an objective function based on the rotational speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein a first expression of the objective function is: i represents the number of the wind turbine generator set, M represents the total number of the wind turbine generator sets, and J i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPP represents the speed of the i-th wind turbine at the maximum power point; a second acquisition module is used to constrain the speed adjustment range of the speed and the pitch angle adjustment range of the pitch angle to obtain constraint conditions; a construction module is used to construct the energy storage optimization model according to the objective function and the constraint conditions.
[0016] Optionally, the energy storage optimization device of the wind farm further includes: a first calculation module, configured to calculate the actual wind energy actually obtained by the wind farm using a first formula after establishing an objective function based on the rotation speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, A i represents the swept area of the rotor of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β irepresents the pitch angle of the i-th wind turbine; a second calculation module, used to calculate the maximum wind energy obtained by the wind farm at the current wind speed using a second formula, wherein the second formula is: P max represents the maximum wind energy, C pMPP represents the wind energy utilization rate of the wind turbine at the maximum power point; a first determination module, used to determine the penalty function based on the actual wind energy and the maximum wind energy using a third formula, wherein the third formula is: F pen =θ[P sum -(1-d)P max ] 2 , F pen represents the penalty function, θ represents the penalty coefficient, d represents the load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; a third acquisition module is used to optimize the objective function using the penalty function to obtain the optimized objective function, wherein the second expression of the optimized objective function is:
[0017] Optionally, the second acquisition unit includes: a generation module, which is used to randomly generate a first primary population and a second primary population based on the speed adjustment range and the pitch angle adjustment range using the particle swarm optimization algorithm, and initialize all first individuals in the first primary population and all second individuals in the second primary population, wherein the first primary population and the second primary population are both used to solve the target speed and the target pitch angle; a fourth acquisition module, which is used to divide the multiple first individuals in the first primary population using the Euclidean distance to obtain multiple first population clusters, and divide the multiple second individuals in the second primary population using the cosine similarity to obtain multiple second population clusters; a fifth acquisition module, which is used to obtain the first individual based on the current wind speed. The particle swarm optimization algorithm is used to optimize and iterate the first population clustering and the second population clustering respectively to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, to obtain the first position of the first target individual of the first population clustering and the second position of the second target individual of the second population clustering, wherein the first target individual is the individual with the highest first fitness value among the multiple first individuals, the second target individual is the individual with the highest second fitness value among the multiple second individuals, and the first position and the second position are both solutions to the objective function in the energy storage optimization model; a second determination module is used to determine that the first position of the first target individual is the target speed, and determine that the second position of the second target individual is the target pitch angle.
[0018] Optionally, the energy storage optimization device of the wind farm also includes: a sixth acquisition module, used to optimize and iterate the first population cluster and the second population cluster respectively based on the current wind speed using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, and before obtaining the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, obtain multiple first fitness values of multiple first individuals in the first population cluster and multiple second fitness values of multiple second individuals in the second population cluster; a seventh acquisition module, used to sort the multiple first fitness values in descending order to obtain a first sorting result, and sort the multiple second fitness values in descending order to obtain a second sorting result; a third determination module, used to determine the highest first fitness value as the first optimal fitness value based on the first sorting result, and determine the highest second fitness value as the second optimal fitness value based on the second sorting result; a fourth determination module, used to determine that the first individual corresponding to the first optimal fitness value is the first target individual, and determine that the second individual corresponding to the second optimal fitness value is the second target individual.
[0019] Optionally, the fifth acquisition module includes: a first acquisition submodule, used to obtain multiple first intermediate fitness values of multiple first individuals in the first population cluster and multiple second intermediate fitness values of multiple second individuals in the second population cluster during the process of optimizing and iterating the first population cluster and the second population cluster respectively using the particle swarm optimization algorithm based on the current wind speed; a second acquisition submodule, used to compare the highest first intermediate fitness value with the first optimal fitness value to obtain a first comparison result, and compare the highest second intermediate fitness value with the second optimal fitness value to obtain a second comparison result; a first update submodule, used to update the first target when the first comparison result indicates that the highest first intermediate fitness threshold is greater than the first optimal fitness value. The first target individual is updated to the first individual corresponding to the highest first intermediate fitness threshold, and the first optimal fitness value is updated to the highest first intermediate fitness threshold; a second updating submodule is used to update the second target individual to the second individual corresponding to the highest second intermediate fitness threshold, and update the second optimal fitness value to the highest second intermediate fitness threshold when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value; a third acquisition submodule is used to repeatedly execute the first acquisition submodule, the second acquisition submodule, the first updating submodule and the second updating submodule until the number of iterations is not less than the predetermined number, to obtain the first position of the first target individual and the second position of the second target individual.
[0020] Optionally, the energy storage optimization device of the wind farm also includes: a first sending module, used to send the target speed to the inverter of the wind turbine group after determining that the first position of the first target individual is the target speed and determining that the second position of the second target individual is the target pitch angle, so as to control the wind turbine group to adjust the speed to the target speed; a second sending module, used to send the target pitch angle to the variable pitch controller of the wind turbine group, so as to control the wind turbine group to adjust the pitch angle to the target pitch angle.
[0021] According to another aspect of an embodiment of the present invention, there is further provided an energy storage optimization system for a wind farm, wherein the energy storage optimization system for a wind farm uses any one of the above-mentioned energy storage optimization methods for a wind farm.
[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for optimizing energy storage in a wind farm.
[0023] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program executes any one of the above-mentioned methods for optimizing energy storage in a wind farm when running.
[0024] According to another aspect of an embodiment of the present invention, a computer program product is further provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned methods for optimizing energy storage in a wind farm is executed.
[0025] In an embodiment of the present invention, an energy storage optimization model is constructed according to characteristic parameters of a wind turbine generator set, wherein the characteristic parameters include at least: a rotational speed and a pitch angle of the wind turbine generator set; the current wind speed of a wind farm where the wind turbine generator set is located is obtained, wherein the wind farm includes a plurality of wind turbine generator sets; the energy storage optimization model is solved using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target rotational speed and a target pitch angle of the wind turbine generator set, wherein the target rotational speed and the target pitch angle are optimal solutions of the energy storage optimization model; and the wind turbine generator set is controlled to adjust the rotational speed to the target rotational speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy storage capacity of the wind farm. Through the above technical scheme, the particle swarm optimization algorithm is used to accurately solve the characteristic parameters of the wind turbines in the wind farm and the actual wind speed, so as to optimize the rotational speed and pitch angle of all wind turbines and maximize the rotational kinetic energy reserve capacity of the wind farm. The technical effect of controlling the rotational speed and pitch angle of the wind turbines to better support the grid frequency through precise calculation is achieved, and the stability of the grid operation is improved. Further, the technical problem in the related technology that the inaccurate calculation results may affect the normal operation of the power system when controlling the rotational speed and pitch angle of the wind turbines to increase the active power output of the wind turbines to support the grid frequency is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0027] Figure 1 It is a schematic diagram of the relationship between the blade tip speed ratio and the wind energy utilization rate in the prior art;
[0028] Figure 2 It is a hardware structure block diagram of a mobile terminal of a wind farm energy storage optimization method according to an embodiment of the present invention;
[0029] Figure 3 is a flow chart of a method for optimizing energy storage in a wind farm according to an embodiment of the present invention;
[0030] Figure 4is a flow chart of an optional wind farm energy storage optimization method according to an embodiment of the present invention;
[0031] Figure 5 is a flow chart of population clustering optimization according to an embodiment of the present invention;
[0032] Figure 6 is a schematic diagram of an energy storage optimization device for a wind farm according to an embodiment of the present invention; DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] As introduced in the background technology, in the related art, when the speed and pitch angle of the wind turbine are controlled to increase the active power output by the wind turbine to support the grid frequency, the inaccurate calculation results may affect the normal operation of the power system. In view of the above defects, an energy storage optimization method and device for a wind farm, and a computer-readable storage medium are provided in an embodiment of the present invention.
[0036] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0037] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 2 FIG. 1 is a hardware structure block diagram of a mobile terminal of a wind farm energy storage optimization method according to an embodiment of the present invention. Figure 2As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) a processor 202 (the processor 202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 204 for storing data, wherein the mobile terminal may also include a transmission device 206 and an input / output device 208 for communication functions. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown.
[0038] The memory 204 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the energy storage optimization method of the wind farm in the embodiment of the present invention. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, that is, the above method is implemented. The memory 204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include a memory remotely arranged relative to the processor 202, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 206 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0039] According to an embodiment of the present invention, a method embodiment of a method for optimizing energy storage in a wind farm is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0040] Figure 3 is a flow chart of a method for optimizing energy storage in a wind farm according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0041] Step S302: constructing an energy storage optimization model according to characteristic parameters of the wind turbine generator set, wherein the characteristic parameters at least include: a rotation speed and a pitch angle of the wind turbine generator set.
[0042] In this embodiment, the speed and pitch angle control process in the process of load shedding and energy storage in a wind farm can be taken as a research object. According to the actual situation of different parameters and wind speeds of various wind turbines in the wind farm, an optimization calculation method is designed to solve the problem according to the actual parameters of each wind turbine, the measured wind speed and the wind farm load shedding ratio given by the upper-level power grid. By coordinating the optimization of the speed and pitch angle of all wind turbines, the rotational kinetic energy reserve of the entire wind farm is maximized under the same wind farm load shedding ratio, so as to better support the grid frequency and ensure stable operation of the grid.
[0043] Combine the following Figure 4 The above embodiments of the present invention are described in detail. Figure 4 is a flow chart of an optional wind farm energy storage optimization method according to an embodiment of the present invention.
[0044] like Figure 4 As shown, a control optimization model of the wind turbine generator system (ie, an energy storage optimization model) can be established first.
[0045] Specifically, according to the above embodiment of the present invention, in the above step S302, an energy storage optimization model is constructed according to the characteristic parameters of the wind turbine generator set, including: obtaining the current rotation speed and pitch angle of the wind turbine generator set; according to the rotation speed and pitch angle, establishing an objective function with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein the first expression of the objective function is: i represents the number of wind turbines, M represents the total number of wind turbines, and J represents the total number of wind turbines. i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPP represents the speed of the i-th wind turbine at the maximum power point; constrains the speed adjustment range of the speed and the pitch angle adjustment range of the pitch angle to obtain constraint conditions; and constructs an energy storage optimization model based on the objective function and constraint conditions.
[0046] In this embodiment, first, an objective function can be established with the maximization of the rotational kinetic energy reserve capacity of the wind farm as the optimization goal. Here, the rotational kinetic energy reserve capacity of the wind farm is In the formula, i represents the number of wind turbines, M represents the total number of wind turbines, i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPPrepresents the speed of the i-th wind turbine at the maximum power point; then, the speed and pitch angle adjustment range of the wind turbine can be restricted as follows: 1) Speed adjustment range: ω i min ≤ω i ≤ω i ma x, (i = 1, 2, ..., M); 2) Pitch angle adjustment range: β i min ≤β i ≤β i max , (i=1, 2, ..., M); finally, an energy storage optimization model is constructed based on the objective function established above and the constraints obtained.
[0047] In particular, in the above embodiment of the present invention, after establishing the objective function according to the rotation speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, the energy storage optimization method of the wind farm further includes: calculating the actual wind energy actually obtained by the wind farm using a first formula, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, A i represents the rotor swept area of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine; the maximum wind energy obtained by the wind farm at the current wind speed is calculated using the second formula, where the second formula is: P max Indicates the maximum wind energy, C pMPP represents the wind energy utilization rate of the wind turbine at the maximum power point; based on the actual wind energy and the maximum wind energy, the penalty function is determined using the third formula, where the third formula is: F pen =θ[P sum -(1-d)P max ] 2 , F pen represents the penalty function, θ represents the penalty coefficient, d represents the load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; the objective function is optimized using the penalty function to obtain the optimized objective function, wherein the second expression of the optimized objective function is:
[0048] In this embodiment, the load reduction requirement of the wind farm can be used as a penalty function to further optimize the objective function, as follows: First, the load reduction requirement of the wind farm is P sum =(1-d)P max , where the actual wind energy captured by the wind farm is The wind energy utilization coefficient here Secondly, the maximum wind energy that the wind farm can obtain at the real-time wind speed (i.e. the current wind speed) Then the population cluster average in the algorithm is introduced as the penalty coefficient of the objective function to obtain the penalty function F pen =θ[P sum -(1-d)P max ] 2 , and then the optimized objective function is obtained: The meanings of the parameter variables involved in the above formula are as follows: sum represents the actual wind energy, ρ represents the air density, A i represents the rotor swept area of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine, P max Indicates the maximum wind energy, C pMPP Indicates the wind energy utilization rate of the wind turbine at the maximum power point, F pen represents the penalty function, θ is the cluster average, which is used as the penalty coefficient of the penalty function, and d represents the load reduction ratio of the wind farm.
[0049] Step S304, obtaining the current wind speed of the wind farm where the wind turbine is located, wherein the wind farm includes multiple wind turbines.
[0050] In this embodiment, the real-time wind speed of the wind farm can be measured by an anemometer and input into the wind speed vector The following parameters are required to solve the energy storage optimization model: population size N, number of iterations Z, crossover operator K cr , air density ρ, moment of inertia of each wind turbine J i 、Wind rotor swept area A i , Wind wheel radius R i , wind rotor coefficient c1-c6, and wind farm load reduction ratio d are initialized.
[0051] Step S306, solving the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target speed and a target pitch angle of the wind turbine, wherein the target speed and the target pitch angle are the optimal solutions of the energy storage optimization model.
[0052] In this embodiment, the energy storage optimization model can be solved using a particle swarm optimization algorithm based on the initialized parameters and the actual measured real-time wind speed of the wind farm to obtain the target rotation speed and target pitch angle of the wind turbine.
[0053] According to the above embodiment of the present invention, in the above step S306, the energy storage optimization model is solved based on the characteristic parameters and the current wind speed using the particle swarm optimization algorithm to obtain the target speed and target pitch angle of the wind turbine, including: randomly generating a first primary population and a second primary population based on the speed adjustment range and the pitch angle adjustment range using the particle swarm optimization algorithm, and initializing all first individuals in the first primary population and all second individuals in the second primary population, wherein the first primary population and the second primary population are both used to solve the target speed and the target pitch angle; dividing multiple first individuals in the first primary population using the Euclidean distance to obtain multiple first population clusters, and using the cosine similarity to divide the first individuals in the second primary population A plurality of second individuals are divided to obtain a plurality of second population clusters; based on the current wind speed, the first population cluster and the second population cluster are respectively optimized and iterated using a particle swarm optimization algorithm to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, a first position of a first target individual of the first population cluster and a second position of a second target individual of the second population cluster are obtained, wherein the first target individual is an individual with a highest first fitness value among the plurality of first individuals, the second target individual is an individual with a highest second fitness value among the plurality of second individuals, and the first position and the second position are both solutions to the objective function in the energy storage optimization model; the first position of the first target individual is determined as the target rotational speed, and the second position of the second target individual is determined as the target pitch angle.
[0054] As above Figure 4 As shown, within the adjustment range of the rotation speed and pitch angle, two populations R are randomly generated according to the formula d (first generation population) and R c (Second generation population), and initialize the positions and velocities of all individuals in the two populations; specifically, we can first set the description of the two populations R d and R c The vector of the individual position in is: (j=1, 2, ..., N) (j=1, 2, ..., N) where j is the serial number of the individual in the population and k is the generation number of the population.
[0055] Let k = 1, in the speed and pitch angle adjustment range ω i min ≤ω i ≤ω i max and β i min ≤β i ≤β i max In, the individual positions of the first generation population are randomly initialized according to the above two formulas: Here, rand is a uniform random number generated between [0, 1].
[0056] Then, for the population R d and Rc The individuals in the population are divided into K clusters using Euclidean distance and cosine similarity respectively, and the cluster averages θ1 and θ2 are obtained; specifically, the specific process of population clustering optimization is as follows: According to the position of the individuals in the initial population The cluster samples are divided by Euclidean distance and cosine similarity respectively. The K wind turbine clusters obtained by these two methods are: R d =(R d,1 , …, R d,n , …, R d,K ), R c =(R c,1 , …, R c,n , …, R c,K ), , Among them, R d R is the sample grouping divided by Euclidean distance. d,n is the nth wind turbine cluster of the sample divided by Euclidean distance, R c is the sample grouping divided by cosine similarity, R c,n is the nth wind turbine cluster of the samples divided by cosine similarity, For the jth individual of the n wind turbine clusters divided by the Euclidean distance, is the jth individual of the n wind turbine clusters divided by the cosine method, ω d,i,j,n is the speed of the i-th wind turbine of the j-th wind turbine cluster of the sample group n wind turbines divided by Euclidean distance, β d,i,j,n is the pitch angle of the i-th wind turbine of the j-th individual in the n wind turbine clusters divided by the Euclidean distance, ω c,i,j,n is the speed of the jth wind turbine in the ith individual of the n wind turbine clusters divided by the cosine method, β c,i,j,n is the pitch angle of the i-th wind turbine of the j-th individual in the n-wind turbine cluster divided by the cosine method.
[0057] After that, the particle swarm optimization algorithm can be used to continuously perform optimization iterations. By continuously iteratively comparing the fitness values of all individuals in each generation of populations, the individual with the highest fitness value is finally selected as the target individual, and then the two populations, namely R d (first generation population) and R c The position of the target individual in (the second primary population) is used as the target rotation speed and target pitch angle, that is, the optimal solution of the energy storage optimization model.
[0058] It should be noted that in the above embodiment of the present invention, the first primary population and the second primary population are two primary populations randomly generated by the particle swarm optimization algorithm. Both of these primary populations can solve the target speed and the target pitch angle. It is only that the two primary populations are divided by using the Euclidean distance and the cosine similarity respectively in the solution process, and the two primary populations are used simultaneously to solve the target speed and the target pitch angle, so as to ensure that the obtained target speed and target pitch angle are the optimal solutions of the energy storage optimization model.
[0059] Specifically, in this embodiment, based on the current wind speed, the particle swarm optimization algorithm is used to optimize and iterate the first population cluster and the second population cluster respectively to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, before obtaining the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, the energy storage optimization method of the wind farm also includes: obtaining multiple first fitness values of multiple first individuals in the first population cluster and multiple second fitness values of multiple second individuals in the second population cluster; sorting the multiple first fitness values in descending order to obtain a first sorting result, and sorting the multiple second fitness values in descending order to obtain a second sorting result; determining the highest first fitness value as the first optimal fitness value based on the first sorting result, and determining the highest second fitness value as the second optimal fitness value based on the second sorting result; determining the first individual corresponding to the first optimal fitness value as the first target individual, and determining the second individual corresponding to the second optimal fitness value as the second target individual.
[0060] Combine the following Figure 5 The above embodiments of the present invention are described in detail. Figure 5 is a flow chart of population clustering optimization according to an embodiment of the present invention.
[0061] like Figure 5 As shown, we can first use the particle swarm algorithm to analyze the population R d and R c Perform clustering optimization to optimize the respective population clusters, which specifically includes the following steps:
[0062] 1) Establish optimization goals: Among them, D all,n is the sum of the distances between particles in the nth population cluster, M is the total number of wind turbines, N n is the total number of particles in the nth population cluster;
[0063] 2) Initialize the particle swarm algorithm speed weight coefficient parameters d1, d2, d3, and define the individual positions in the population optimization cluster as: (n=1, 2, ..., K), (n=1, 2, ..., K), where is the position of the nth individual in the kth generation of the sample grouping divided by Euclidean distance, is the position of the nth individual in the kth generation of the sample grouping divided in a cosine manner; and the individual speed in the population optimization cluster is initialized as: (n=1, 2, ..., K), (n=1, 2, ..., K), where is the speed of the nth individual in the kth generation of the sample grouping divided by Euclidean distance, is the nth individual velocity of the kth generation of the sample grouping divided in a cosine manner;
[0064] 3) Combine the initial speed of the population individuals as the initial speed in the population optimization clustering, and set R d and R c The position vectors of each individual in each population cluster in the mth generation are calculated according to the formula in step 1) to obtain the fitness value F' of each individual n in the mth generation population. n,m , where n = 1, 2, ..., N n , N n is the number of wind turbines clustered in the nth population, i.e., the population size;
[0065] 4) The calculated fitness value F' of each individual n in the mth generation population n,m The local best fitness value F' of the individual before n,best Compare them and take the larger fitness value and corresponding position as the new individual optimal fitness value F' n,best and the individual optimal position p' n,best ; Then, the new individual optimal fitness value F' n,best The global best fitness value F' of the entire population g,best Compare them and take the larger fitness value and corresponding position as the new global optimal fitness value F' of the entire population. g,best and the individual optimal position p' g,best , that is, find the current optimal population clustering R under two different clustering methods d,best and R c,best ;
[0066] 5) According to the formula n=1,2,…,M Update the speed and position of all individuals in the entire population, where v′ n,m+1 is the speed of individual n in generation m+1, p′ n,m+1 is the position of individual n in generation m+1, v′ n,m is the speed of individual n in generation m, p′ n,mis the position of individual n in generation m, rand1 and rand2 are uniform random numbers generated between [0, 1], M is the population size, p is the g,best is the individual optimal position, d1, d2, d3 are speed weight coefficients;
[0067] 6) If the iteration number m is less than the set number of iterations Z, set m = m + 1 and repeat steps 5.3) - 5.5); if the iteration number m is equal to the set number of iterations Z, the iteration is terminated and the current global best position is set. As the global optimal population clustering, the final global optimal population clustering R d,best and R c,best As the initial population for the optimization step.
[0068] Specifically, in this embodiment, the first population cluster and the second population cluster are optimized and iterated respectively based on the current wind speed using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, and the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster are obtained, including: a first acquisition step, in the process of optimizing and iterating the first population cluster and the second population cluster respectively based on the current wind speed using the particle swarm optimization algorithm, obtaining multiple first intermediate fitness values of multiple first individuals in the first population cluster and multiple second intermediate fitness values of multiple second individuals in the second population cluster; a second acquisition step, comparing the highest first intermediate fitness value with the first optimal fitness value to obtain a first comparison result, and comparing the highest second intermediate fitness value with the second optimal fitness value The first target individual is updated to the first individual corresponding to the highest first intermediate fitness threshold, and the first optimal fitness value is updated to the highest first intermediate fitness threshold when the first comparison result indicates that the highest first intermediate fitness threshold is greater than the first optimal fitness value; the second target individual is updated to the second individual corresponding to the highest second intermediate fitness threshold, and the second optimal fitness value is updated to the highest second intermediate fitness threshold when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value; the first acquisition step, the second acquisition step, the first update step and the second update step are repeatedly executed until the number of iterations is not less than the predetermined number, and the first position of the first target individual and the second position of the second target individual are acquired.
[0069] As above Figure 4 As shown, we can first use the population R d and R cThe individual positions of the respective population clusters, algorithm parameters and real-time wind speed are substituted, and the fitness value of each individual in the population is calculated by the optimization algorithm in combination with the optimization model and the hybrid optimization algorithm, and the current global best individual position and the global best fitness value are determined, and R is retained respectively. d and R c The top 3 best particles of the cluster of the population to which they belong; specifically, the individuals and wind speed vectors contained in the two populations Calculate according to the following formula to obtain the fitness value F of each individual j in the kth generation population: j,k , where j = 1, 2, ..., N, the calculation formula used here is as follows: ω iMPP =λ MPP V i / R i ,
[0070] Then, the calculated fitness value F of each individual j (j = 1, 2, ..., N) in the kth generation population is j,k The local best fitness value F of the individual before j,best Compare them and take the larger fitness value and corresponding position as the new individual optimal fitness value F j,best and the individual optimal position p j,best Then, the new individual optimal fitness value F j,best The global best fitness value F of the entire population g,best Compare them and take the larger fitness value and corresponding position as the new global optimal fitness value F of the entire population. g,best and the individual optimal position p g,best . And retain the kth generation R d,k and R c,k The top 3 best particles in
[0071] Then update the speed and position of all individuals in the current population in the hybrid algorithm, and correct them in combination with the previously set adjustment range of the speed and pitch angle of the wind turbines in the wind farm to obtain the position of all individuals in the new population; specifically, randomly select 3 different individuals from the N individuals in the two populations of the kth generation as the target vector individuals, defined as By formula Perform mutation operation to generate mutant individuals and By formula (i=1,2,…,2M), (j=1,2,…,N) perform crossover operations on all dimensions of all individuals to generate a new population and
[0072] All variables in the obtained new population are checked. For variables that do not meet the speed and pitch angle constraints, new variables are randomly generated within the speed and pitch angle adjustment range according to the objective function to form the k+1 generation population. and
[0073] Then use R d and R c The top three best particles of the population cluster are used as clustering cores to cluster the population to which they belong, and the population recombination optimization mechanism is executed to obtain the next generation of population clusters; specifically, the steps for executing the population recombination optimization mechanism are as follows: combining the kth generation R obtained in the above steps d,k and R c,k The top 3 best particles in and As clustering objects, and As the clustering core, clustering obtains the k+1 generation population cluster R d,k+1 and R c,k+1 , and R d,k+1 and R c,k+1 Clustering as the next generation of computational populations.
[0074] Finally, verify whether the current number of iterations is greater than the preset number of times. If the iteration number m is less than the set number of iterations Z, set m=m+1 and repeat the above content; if the iteration number k is equal to the set number of iterations Z, the iteration is terminated and the global best position is used as the final global best position:
[0075] According to the above embodiment of the present invention, after the above step S306, that is, after determining the first position of the first target individual as the target speed, and determining the second position of the second target individual as the target pitch angle, the energy storage optimization method of the wind farm also includes: sending the target speed to the converter of the wind turbine to control the wind turbine to adjust the speed to the target speed; sending the target pitch angle to the variable pitch controller of the wind turbine to control the wind turbine to adjust the pitch angle to the target pitch angle.
[0076] In this embodiment, the above-mentioned variable of the global optimal position, ω i,gbest , β i,gbest The signals are transmitted to the converter and pitch controller of the i-th wind turbine set respectively to control its speed and pitch angle.
[0077] Step S308 , controlling the wind turbine to adjust the rotation speed to the target rotation speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm.
[0078] In this embodiment, the wind turbine can be controlled to adjust to the target speed and target pitch angle calculated in the above steps to maximize the rotational kinetic energy reserve capacity of the wind farm, thereby better supporting the grid frequency to maintain stable operation of the grid.
[0079] As can be seen from the above, through the technical scheme recorded in the above embodiment of the present invention, an energy storage optimization model can be constructed according to the characteristic parameters of the wind turbine set, wherein the characteristic parameters at least include: the rotation speed and pitch angle of the wind turbine set; obtain the current wind speed of the wind farm where the wind turbine set is located, wherein the wind farm contains multiple wind turbine sets; solve the energy storage optimization model based on the characteristic parameters and the current wind speed using the particle swarm optimization algorithm to obtain the target rotation speed and target pitch angle of the wind turbine set, wherein the target rotation speed and target pitch angle are the optimal solutions of the energy storage optimization model; control the wind turbine set to adjust the rotation speed to the target rotation speed and the pitch angle to the target pitch angle to maximize the rotational kinetic energy reserve capacity of the wind farm, and achieve the purpose of combining the characteristic parameters of the wind turbine set in the wind farm and the actual wind speed with the particle swarm optimization algorithm for accurate solution to optimize the rotation speed and pitch angle of all wind turbine sets to maximize the rotational kinetic energy reserve capacity of the wind farm, and achieve the technical effect of providing better support for the grid frequency through accurate calculation of the rotation speed and pitch angle of the wind turbine set, thereby improving the stability of the grid operation.
[0080] Therefore, the technical solution provided by the above-mentioned embodiment of the present invention solves the technical problem in the related art that when the speed and pitch angle of the wind turbine are controlled to increase the active power output by the wind turbine to support the grid frequency, the normal operation of the power system may be affected due to inaccurate calculation results.
[0081] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0083] According to an embodiment of the present invention, there is also provided a wind farm energy storage optimization device for implementing the above-mentioned wind farm energy storage optimization method. Figure 6 is a schematic diagram of an energy storage optimization device for a wind farm according to an embodiment of the present invention, such as Figure 6 As shown, the device includes: a construction unit 61, a first acquisition unit 63, a second acquisition unit 65 and a control unit 67. The energy storage optimization device of the wind farm is described in detail below.
[0084] The construction unit 61 is used to construct an energy storage optimization model according to characteristic parameters of the wind turbine generator set, wherein the characteristic parameters at least include: a rotation speed and a pitch angle of the wind turbine generator set.
[0085] The first acquisition unit 63 is used to acquire the current wind speed of the wind farm where the wind turbine is located, wherein the wind farm includes multiple wind turbines.
[0086] The second acquisition unit 65 is used to solve the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target speed and a target pitch angle of the wind turbine, wherein the target speed and the target pitch angle are the optimal solutions of the energy storage optimization model.
[0087] The control unit 67 is used to control the wind turbine to adjust the rotation speed to a target rotation speed and the pitch angle to a target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm.
[0088] It should be noted here that the above-mentioned construction unit 61, first acquisition unit 63, second acquisition unit 65 and control unit 67 correspond to steps S202 to S208 in the above-mentioned embodiments, and the four units and the corresponding steps implement the same instances and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0089] As can be seen from the above, in the scheme recorded in the above embodiment of the present invention, a construction unit can be used to construct an energy storage optimization model according to the characteristic parameters of the wind turbine generator set, wherein the characteristic parameters at least include: the rotation speed and pitch angle of the wind turbine generator set; then the first acquisition unit is used to obtain the current wind speed of the wind farm where the wind turbine generator set is located, wherein the wind farm includes multiple wind turbine generator sets; then the second acquisition unit is used to solve the energy storage optimization model based on the characteristic parameters and the current wind speed using the particle swarm optimization algorithm to obtain the target rotation speed and target pitch angle of the wind turbine generator set, wherein the target rotation speed and target pitch angle are the energy storage optimization model. The optimal solution is obtained; finally, the control unit is used to control the wind turbine to adjust the speed to the target speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm. The particle swarm optimization algorithm is used to accurately solve the characteristic parameters of the wind turbines in the wind farm and the actual wind speed, so as to optimize the speed and pitch angle of all wind turbines and maximize the rotational kinetic energy reserve capacity of the wind farm. The technical effect of controlling the speed and pitch angle of the wind turbines through precise calculation to better support the grid frequency is achieved, thereby improving the stability of the grid operation.
[0090] Therefore, the technical solution provided by the above-mentioned embodiment of the present invention solves the technical problem in the related art that when the speed and pitch angle of the wind turbine are controlled to increase the active power output by the wind turbine to support the grid frequency, the normal operation of the power system may be affected due to inaccurate calculation results.
[0091] Optionally, the construction unit includes: a first acquisition module, used to acquire the current rotation speed and pitch angle of the wind turbine; and an establishment module, used to establish an objective function based on the rotation speed and pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein the first expression of the objective function is: i represents the number of wind turbines, M represents the total number of wind turbines, and J represents the total number of wind turbines. i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPP represents the speed of the i-th wind turbine at the maximum power point; the second acquisition module is used to constrain the speed adjustment range of the speed and the pitch angle adjustment range of the pitch angle to obtain the constraint conditions; the construction module is used to construct the energy storage optimization model according to the objective function and the constraint conditions.
[0092] Optionally, the energy storage optimization device of the wind farm further includes: a first calculation module, which is used to calculate the actual wind energy actually obtained by the wind farm using a first formula after establishing an objective function based on the rotation speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, Ai represents the rotor swept area of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine; a second calculation module is used to calculate the maximum wind energy obtained by the wind farm at the current wind speed using a second formula, wherein the second formula is: P max Indicates the maximum wind energy, C pMPP represents the wind energy utilization rate of the wind turbine at the maximum power point; a first determination module is used to determine the penalty function based on the actual wind energy and the maximum wind energy using the third formula, wherein the third formula is: F pen =θ[P sum -(1-d)P max ] 2 , F pen represents a penalty function, θ represents a penalty coefficient, d represents a load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; the third acquisition module is used to optimize the objective function using the penalty function to obtain an optimized objective function, wherein the second expression of the optimized objective function is:
[0093] Optionally, the second acquisition unit includes: a generation module, which is used to randomly generate a first primary population and a second primary population based on the speed adjustment range and the pitch angle adjustment range using a particle swarm optimization algorithm, and initialize all first individuals in the first primary population and all second individuals in the second primary population, wherein the first primary population and the second primary population are both used to solve the target speed and the target pitch angle; a fourth acquisition module, which is used to divide multiple first individuals in the first primary population using Euclidean distance to obtain multiple first population clusters, and divide multiple second individuals in the second primary population using cosine similarity to obtain multiple second population clusters; a fifth acquisition module, which is used to obtain multiple second individuals in the first primary population based on the speed adjustment range and the pitch angle adjustment range. At the current wind speed, the first population cluster and the second population cluster are optimized and iterated respectively by using the particle swarm optimization algorithm to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, and the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster are obtained, wherein the first target individual is the individual with the highest first fitness value among multiple first individuals, the second target individual is the individual with the highest second fitness value among multiple second individuals, and the first position and the second position are both solutions of the objective function in the energy storage optimization model; a second determination module is used to determine the first position of the first target individual as the target rotation speed, and determine the second position of the second target individual as the target pitch angle.
[0094] Optionally, the energy storage optimization device of the wind farm also includes: a sixth acquisition module, which is used to optimize and iterate the first population cluster and the second population cluster respectively based on the current wind speed using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, and before obtaining the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, obtain multiple first fitness values of multiple first individuals in the first population cluster and multiple second fitness values of multiple second individuals in the second population cluster; a seventh acquisition module, which is used to sort the multiple first fitness values in descending order to obtain a first sorting result, and sort the multiple second fitness values in descending order to obtain a second sorting result; a third determination module, which is used to determine the highest first fitness value as the first optimal fitness value based on the first sorting result, and determine the highest second fitness value as the second optimal fitness value based on the second sorting result; a fourth determination module, which is used to determine the first individual corresponding to the first optimal fitness value as the first target individual, and determine the second individual corresponding to the second optimal fitness value as the second target individual.
[0095] Optionally, the fifth acquisition module includes: a first acquisition submodule, which is used to obtain multiple first intermediate fitness values of multiple first individuals in the first population cluster and multiple second intermediate fitness values of multiple second individuals in the second population cluster during the process of optimizing and iterating the first population cluster and the second population cluster respectively using the particle swarm optimization algorithm based on the current wind speed; a second acquisition submodule, which is used to compare the highest first intermediate fitness value with the first optimal fitness value to obtain a first comparison result, and compare the highest second intermediate fitness value with the second optimal fitness value to obtain a second comparison result; a first update submodule, which is used to update the first intermediate fitness value when the first comparison result indicates that the highest first intermediate fitness value is greater than the first optimal fitness value , updating the first target individual to the first individual corresponding to the highest first intermediate fitness threshold, and updating the first optimal fitness value to the highest first intermediate fitness threshold; a second updating submodule, used to update the second target individual to the second individual corresponding to the highest second intermediate fitness threshold, and update the second optimal fitness value to the highest second intermediate fitness threshold when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value; a third acquisition submodule, used to repeatedly execute the first acquisition submodule, the second acquisition submodule, the first updating submodule and the second updating submodule until the number of iterations is not less than a predetermined number, to obtain the first position of the first target individual and the second position of the second target individual.
[0096] Optionally, the energy storage optimization device of the wind farm also includes: a first sending module, used to send the target speed to the converter of the wind turbine group after determining the first position of the first target individual as the target speed and determining the second position of the second target individual as the target pitch angle, so as to control the wind turbine group to adjust the speed to the target speed; a second sending module, used to send the target pitch angle to the variable pitch controller of the wind turbine group, so as to control the wind turbine group to adjust the pitch angle to the target pitch angle.
[0097] According to another aspect of an embodiment of the present invention, there is further provided an energy storage optimization system for a wind farm, wherein the energy storage optimization system for a wind farm uses any one of the above energy storage optimization methods for a wind farm.
[0098] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for optimizing energy storage in a wind farm.
[0099] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.
[0100] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: constructing an energy storage optimization model according to characteristic parameters of the wind turbine generator set, wherein the characteristic parameters include at least: the rotational speed and pitch angle of the wind turbine generator set; obtaining the current wind speed of the wind farm where the wind turbine generator set is located, wherein the wind farm includes multiple wind turbine generator sets; solving the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target rotational speed and a target pitch angle of the wind turbine generator set, wherein the target rotational speed and the target pitch angle are the optimal solutions of the energy storage optimization model; controlling the wind turbine generator set to adjust the rotational speed to the target rotational speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy reserve capacity of the wind farm.
[0101] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining the current rotation speed and pitch angle of the wind turbine; establishing an objective function based on the rotation speed and pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein a first expression of the objective function is: i represents the number of wind turbines, M represents the total number of wind turbines, and J represents the total number of wind turbines. i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPPrepresents the speed of the i-th wind turbine at the maximum power point; constrains the speed adjustment range of the speed and the pitch angle adjustment range of the pitch angle to obtain constraint conditions; and constructs an energy storage optimization model based on the objective function and constraint conditions.
[0102] Optionally, in this embodiment, the computer-readable storage medium is configured to store a program code for executing the following steps: calculating the actual wind energy actually obtained by the wind farm using a first formula, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, A i represents the rotor swept area of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine; the maximum wind energy obtained by the wind farm at the current wind speed is calculated using the second formula, where the second formula is: P max Indicates the maximum wind energy, C pMPP represents the wind energy utilization rate of the wind turbine at the maximum power point; based on the actual wind energy and the maximum wind energy, the penalty function is determined using the third formula, where the third formula is: F pen =θ[P sum -(1-d)P max ] 2 , F pen represents the penalty function, θ represents the penalty coefficient, d represents the load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; the objective function is optimized using the penalty function to obtain the optimized objective function, wherein the second expression of the optimized objective function is:
[0103] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: randomly generating a first primary population and a second primary population based on a speed adjustment range and a pitch angle adjustment range using a particle swarm optimization algorithm, and initializing all first individuals in the first primary population and all second individuals in the second primary population, wherein the first primary population and the second primary population are both used to solve a target speed and a target pitch angle; dividing multiple first individuals in the first primary population using Euclidean distance to obtain multiple first population clusters, and dividing multiple second individuals in the second primary population using cosine similarity to obtain multiple second individuals. Group clustering; based on the current wind speed, use the particle swarm optimization algorithm to optimize and iterate the first group clustering and the second group clustering respectively to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, obtain the first position of the first target individual of the first group clustering and the second position of the second target individual of the second group clustering, wherein the first target individual is the individual with the highest first fitness value among the multiple first individuals, the second target individual is the individual with the highest second fitness value among the multiple second individuals, and the first position and the second position are both solutions of the objective function in the energy storage optimization model; determine the first position of the first target individual as the target speed, and determine the second position of the second target individual as the target pitch angle.
[0104] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: obtaining multiple first fitness values of multiple first individuals in a first population cluster and multiple second fitness values of multiple second individuals in a second population cluster; sorting the multiple first fitness values in descending order to obtain a first sorting result, and sorting the multiple second fitness values in descending order to obtain a second sorting result; determining the highest first fitness value as a first optimal fitness value based on the first sorting result, and determining the highest second fitness value as a second optimal fitness value based on the second sorting result; determining the first individual corresponding to the first optimal fitness value as a first target individual, and determining the second individual corresponding to the second optimal fitness value as a second target individual.
[0105] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: a first acquisition step, in which, in the process of optimizing and iterating the first population clustering and the second population clustering respectively using the particle swarm optimization algorithm based on the current wind speed, a plurality of first intermediate fitness values of a plurality of first individuals in the first population clustering and a plurality of second intermediate fitness values of a plurality of second individuals in the second population clustering are acquired; a second acquisition step, in which the highest first intermediate fitness value is compared with the first optimal fitness value to obtain a first comparison result, and the highest second intermediate fitness value is compared with the second optimal fitness value to obtain a second comparison result; a first update step, in which, when the first comparison result indicates the highest first intermediate fitness value, When the intermediate fitness threshold is greater than the first optimal fitness value, the first target individual is updated to the first individual corresponding to the highest first intermediate fitness threshold, and the first optimal fitness value is updated to the highest first intermediate fitness threshold; in the second updating step, when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value, the second target individual is updated to the second individual corresponding to the highest second intermediate fitness threshold, and the second optimal fitness value is updated to the highest second intermediate fitness threshold; the first acquisition step, the second acquisition step, the first updating step and the second updating step are repeatedly executed until the number of iterations is not less than the predetermined number, and the first position of the first target individual and the second position of the second target individual are acquired.
[0106] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: sending the target speed to the converter of the wind turbine to control the wind turbine to adjust the speed to the target speed; sending the target pitch angle to the variable pitch controller of the wind turbine to control the wind turbine to adjust the pitch angle to the target pitch angle.
[0107] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned energy storage optimization methods for a wind farm is executed.
[0108] According to another aspect of an embodiment of the present invention, a computer program product is provided, comprising computer instructions, and when the computer instructions are executed by a processor, any one of the above-mentioned methods for optimizing energy storage in a wind farm is executed.
[0109] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0110] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0115] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for optimizing energy storage in a wind farm, characterized in that: include: Constructing an energy storage optimization model according to characteristic parameters of the wind turbine generator set, wherein the characteristic parameters at least include: a rotation speed and a pitch angle of the wind turbine generator set; Acquire the current wind speed of the wind farm where the wind turbine generator set is located, wherein the wind farm includes a plurality of the wind turbine generator sets; Solving the energy storage optimization model using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target speed and a target pitch angle of the wind turbine generator set, wherein the target speed and the target pitch angle are optimal solutions to the energy storage optimization model; The wind turbine generator set is controlled to adjust the rotation speed to the target rotation speed and the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy storage capacity of the wind farm.
2. The method for optimizing energy storage in a wind farm according to claim 1, characterized in that: The energy storage optimization model is constructed based on the characteristic parameters of the wind turbine, including: Obtaining the current rotation speed and pitch angle of the wind turbine; According to the rotation speed and the pitch angle, an objective function is established with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, wherein a first expression of the objective function is: i represents the number of the wind turbine generator set, M represents the total number of the wind turbine generator sets, and J i represents the moment of inertia of the i-th wind turbine, ω i represents the speed of the i-th wind turbine, ω iMPP represents the rotation speed of the i-th wind turbine generator set at the maximum power point; Constraining the speed adjustment range of the speed and the pitch angle adjustment range of the pitch angle to obtain constraint conditions; The energy storage optimization model is constructed according to the objective function and the constraint conditions.
3. The method for optimizing wind farm energy storage according to claim 2, characterized in that: After establishing an objective function according to the rotation speed and the pitch angle with the goal of maximizing the rotational kinetic energy reserve capacity of the wind farm, the method further includes: The actual wind energy actually obtained by the wind farm is calculated using a first formula, wherein the first formula is: P sum represents the actual wind energy, ρ represents the air density, A i represents the swept area of the rotor of the i-th wind turbine, C p represents the wind energy utilization factor, V i represents the current wind speed of the i-th wind turbine, β i represents the pitch angle of the i-th wind turbine generator set; The maximum wind energy obtained by the wind farm at the current wind speed is calculated using a second formula, wherein the second formula is: P max represents the maximum wind energy, C pMPP Indicates the wind energy utilization rate of the wind turbine generator set at the maximum power point; The penalty function is determined based on the actual wind energy and the maximum wind energy using a third formula, wherein the third formula is: pen =θ[P sum -(1-d)P max ] 2 , F pen represents the penalty function, θ represents the penalty coefficient, d represents the load reduction ratio of the wind farm, and the penalty function is used to optimize the objective function; The objective function is optimized using the penalty function to obtain the optimized objective function, wherein the second expression of the optimized objective function is:
4. The method for optimizing energy storage in a wind farm according to claim 2, characterized in that: The energy storage optimization model is solved by using a particle swarm optimization algorithm based on the characteristic parameters and the current wind speed to obtain a target speed and a target pitch angle of the wind turbine generator set, including: Based on the speed adjustment range and the pitch angle adjustment range, a first primary population and a second primary population are randomly generated using the particle swarm optimization algorithm, and all first individuals in the first primary population and all second individuals in the second primary population are initialized, wherein the first primary population and the second primary population are both used to solve the target speed and the target pitch angle; Using Euclidean distance to divide the first individuals in the first primary population to obtain a plurality of first population clusters, and using cosine similarity to divide the second individuals in the second primary population to obtain a plurality of second population clusters; Based on the current wind speed, the first population cluster and the second population cluster are optimized and iterated respectively by using the particle swarm optimization algorithm to solve the energy storage optimization model, until the number of iterations is not less than a predetermined number, and a first position of a first target individual of the first population cluster and a second position of a second target individual of the second population cluster are obtained, wherein the first target individual is an individual with a highest first fitness value among the plurality of the first individuals, the second target individual is an individual with a highest second fitness value among the plurality of the second individuals, and the first position and the second position are both solutions to the objective function in the energy storage optimization model; The first position of the first target individual is determined as the target rotation speed, and the second position of the second target individual is determined as the target pitch angle.
5. The method for optimizing energy storage in a wind farm according to claim 4, characterized in that: Based on the current wind speed, the first population cluster and the second population cluster are optimized and iterated respectively by using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, before obtaining the first position of the first target individual of the first population cluster and the second position of the second target individual of the second population cluster, it also includes: Acquire a plurality of first fitness values of a plurality of the first individuals in the first population cluster and a plurality of second fitness values of a plurality of the second individuals in the second population cluster; Sorting the plurality of first fitness values in descending order to obtain a first sorting result, and sorting the plurality of second fitness values in descending order to obtain a second sorting result; Determine the highest first fitness value as a first optimal fitness value based on the first sorting result, and determine the highest second fitness value as a second optimal fitness value based on the second sorting result; The first individual corresponding to the first optimal fitness value is determined as the first target individual, and the second individual corresponding to the second optimal fitness value is determined as the second target individual.
6. The method for optimizing energy storage in a wind farm according to claim 5, characterized in that: Based on the current wind speed, the first population cluster and the second population cluster are optimized and iterated respectively by using the particle swarm optimization algorithm to solve the energy storage optimization model until the number of iterations is not less than a predetermined number, and a first position of a first target individual of the first population cluster and a second position of a second target individual of the second population cluster are obtained, including: A first acquisition step, in which, in a process of optimizing and iterating the first population cluster and the second population cluster respectively by using the particle swarm optimization algorithm based on the current wind speed, a plurality of first intermediate fitness values of a plurality of the first individuals in the first population cluster and a plurality of second intermediate fitness values of a plurality of the second individuals in the second population cluster are acquired; A second acquisition step, comparing the highest first intermediate fitness value with the first optimal fitness value to obtain a first comparison result, and comparing the highest second intermediate fitness value with the second optimal fitness value to obtain a second comparison result; A first updating step, when the first comparison result indicates that the highest first intermediate fitness threshold is greater than the first optimal fitness value, updating the first target individual to the first individual corresponding to the highest first intermediate fitness threshold, and updating the first optimal fitness value to the highest first intermediate fitness threshold; A second updating step, when the second comparison result indicates that the highest second intermediate fitness threshold is greater than the second optimal fitness value, updating the second target individual to the second individual corresponding to the highest second intermediate fitness threshold, and updating the second optimal fitness value to the highest second intermediate fitness threshold; The first acquisition step, the second acquisition step, the first update step and the second update step are repeatedly performed until the number of iterations is not less than the predetermined number, thereby acquiring the first position of the first target individual and the second position of the second target individual.
7. The method for optimizing energy storage in a wind farm according to claim 4, characterized in that: After determining that the first position of the first target individual is the target rotation speed and determining that the second position of the second target individual is the target pitch angle, the method further includes: Sending the target speed to the converter of the wind turbine generator set to control the wind turbine generator set to adjust the speed to the target speed; The target pitch angle is sent to a variable pitch controller of the wind turbine generator set to control the wind turbine generator set to adjust the pitch angle to the target pitch angle.
8. An energy storage optimization device for a wind farm, characterized in that: include: A construction unit, configured to construct an energy storage optimization model according to characteristic parameters of the wind turbine generator set, wherein the characteristic parameters at least include: a rotation speed and a pitch angle of the wind turbine generator set; A first acquisition unit is used to acquire the current wind speed of the wind farm where the wind turbine is located, wherein the wind farm includes a plurality of the wind turbines; A second acquisition unit is used to solve the energy storage optimization model by using a particle swarm optimization algorithm based on the characteristic parameter and the current wind speed to obtain a target speed and a target pitch angle of the wind turbine generator set, wherein the target speed and the target pitch angle are optimal solutions of the energy storage optimization model; A control unit is used to control the wind turbine set to adjust the rotation speed to the target rotation speed and adjust the pitch angle to the target pitch angle, so as to maximize the rotational kinetic energy storage capacity of the wind farm.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the energy storage optimization method for a wind farm according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the energy storage optimization method for a wind farm as claimed in any one of claims 1 to 7 is performed.
Citation Information
Cited By
Double-population wind power plant arrangement optimization method and device based on regular arrangement and medium
CN120124431A
Wind power plant fan and wind power plant intelligent optimization control system and method
CN120150254A
