A method for suppressing wide frequency oscillation in coordination with multiple wind farms
An agent trained using deep Q-networks and the Monte Carlo method is used to adjust the power of wind farms to suppress broadband oscillations in multi-wind farm systems. This solves the problem of poor flexibility in traditional methods and achieves fast and effective oscillation suppression and economical operation of wind farms.
Patent Information
- Application Number
- CN202310077907.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-02-07
AI Technical Summary
Traditional methods are difficult to effectively suppress broadband oscillations in multi-wind farm systems, and existing oscillation protection measures are inflexible and cannot adapt to the high uncertainty of new energy power generation and complex power systems.
A deep Q-network algorithm is used to control the power of each wind farm. The agent is trained by combining the Monte Carlo method. The oscillation is suppressed by adjusting the power of the wind farm. A reward function and state and action strategy are designed in the deep Q-network. The parameters are updated by minimizing the loss function. The wind turbine is cut off to calm the oscillation.
It enables rapid and effective suppression of broadband oscillations without changing the system controller parameters, ensuring the economy and flexibility of wind farms and providing dynamic response capabilities.
Smart Images

Figure CN116131286B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for suppressing broadband oscillations, and more particularly to a method for collaboratively suppressing broadband oscillations across multiple wind farms. Background Technology
[0002] The increasing proportion of renewable energy generation and the widespread integration of flexible loads and power electronic devices have increased the complexity and uncertainty of power systems. Traditional control and optimization methods typically rely on accurate physical models, but the increasing complexity of power systems makes it difficult for traditional mechanistic modeling to meet accuracy requirements. Furthermore, the computational burden and response time of traditional methods are insufficient to cope with the high uncertainty of renewable energy generation. Existing oscillation protection methods suppress broadband oscillations by disconnecting wind turbines, which lacks flexibility and does not consider the power output and economics of wind farms, making them unsuitable for multi-wind farm systems with multiple uncertainties and large disturbances. Summary of the Invention
[0003] Purpose of the invention: The purpose of this invention is to provide a method for the coordinated suppression of broadband oscillations by multiple wind farms while ensuring a large power output of the wind farm.
[0004] Technical solution: The present invention provides a method for collaboratively suppressing broadband oscillations by multiple wind farms. When broadband oscillations occur, the power of the wind farms is calculated, and a deep Q-network is used to control the power of each wind farm to suppress the oscillations.
[0005] The reward of the deep Q-network includes the total power of each wind farm, and the action of the deep Q-network includes the amount of power that each wind farm needs to reduce.
[0006] Furthermore, the state of the deep Q network includes the oscillation amplitudes of the maximum oscillation power, the maximum oscillation voltage, and the maximum oscillation current, the real part of the system impedance when broadband oscillation occurs, and the sum of the power of each wind farm.
[0007] Furthermore, the reward function of the deep Q-network is:
[0008]
[0009] Where, ΔP max The oscillation amplitude of the maximum oscillation power, ΔU max The maximum oscillation voltage amplitude, ΔI max R is the amplitude of the maximum oscillating current, R is the real part of the system impedance when broadband oscillation occurs, ∑P is the sum of the power of each wind farm, λ1, λ2, λ3 and μ are the coefficients of the trade-offs in each part of the reward function, -k is the penalty term, and λ1, λ2, λ3, μ and k are positive numbers.
[0010] Furthermore, the method of controlling the power of each wind farm using a deep Q-network includes exploring action strategies for oscillation suppression using a deep Q-network and updating parameters by minimizing the loss function.
[0011] Furthermore, during the training of the deep Q-network, the experience gained in each training session is stored in an experience pool, and a portion of data is extracted from the experience pool for learning each time.
[0012] Furthermore, when training the deep Q-network, the initial power of each wind farm is set using the Monte Carlo method.
[0013] Furthermore, the calculation of wind farm power when broadband oscillation occurs is as follows: when the oscillation frequency is less than 300Hz, the wind farm power is obtained based on the measurement value of the wind farm broadband measurement device; when the oscillation frequency is not less than 300Hz, the wind farm power is calculated based on the wind farm voltage and wind farm current.
[0014] Furthermore, if controlling the power of each wind farm using a deep Q-network fails to suppress the oscillation, wind turbines are disconnected from the largest to the smallest power according to the wind farm's power, until the oscillation subsides.
[0015] Based on the same inventive concept, the electronic device of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded onto the processor, it implements the method for collaborative suppression of broadband oscillations by multiple wind farms.
[0016] Based on the same inventive concept, the computer-readable storage medium of the present invention stores a computer program, which, when executed by a processor, implements the method for collaborative suppression of broadband oscillations by multiple wind farms.
[0017] Beneficial Effects: Compared with existing technologies, the advantages of this invention are as follows: It employs a deep Q-network algorithm to control the power of the wind farm, effectively suppressing oscillations in the wind farm over a wide frequency range without changing the system controller parameters. When training the agent, the total power of the wind farm is taken into account, ensuring a relatively large power output while suppressing oscillations, thus guaranteeing the economic viability of the wind farm. Furthermore, Monte Carlo sampling is used to randomly configure the initial power of each wind farm, achieving diversity in training samples. The trained agent can make decisions based on the real-time state of the system, exhibiting good flexibility and providing a better dynamic response for the wind farm system. Attached Figure Description
[0018] Figure 1 This is a flowchart of the method for collaboratively suppressing broadband oscillations using multiple wind farms according to the present invention.
[0019] Figure 2This is a block diagram of the deep Q-network algorithm of the present invention. Detailed Implementation
[0020] The technical solution of the present invention will be further described below with reference to the accompanying drawings.
[0021] like Figure 1 As shown, the method for collaboratively suppressing broadband oscillations across multiple wind farms includes the following steps:
[0022] Step 1: Use the data transmitted by the broadband measurement device in the wind farm to determine whether oscillation has occurred.
[0023] Furthermore, step one includes: when the amplitude of electrical oscillation power or oscillation current measured by the broadband measurement device of the wind farm reaches a preset threshold and exceeds a preset time, it is determined that the system has experienced broadband oscillation; otherwise, the system has not experienced broadband oscillation.
[0024] Step 2: When oscillations occur at a frequency less than 300Hz, the substation transmits power, voltage, and current data to the master station and calculates the impedance. When oscillations occur at a frequency greater than 300Hz, the substation transmits only voltage and current data to the master station and calculates the power and impedance.
[0025] Furthermore, step two includes: based on step one, when it is determined that the system is oscillating and the oscillation frequency is less than 300Hz, the data transmission power P, voltage U, and current I of the substation are measured. At this time, the system impedance Z at the time of oscillation is calculated using the transmitted data, and the calculation formula is as follows:
[0026]
[0027] Then, the real part R of the impedance Z is obtained.
[0028] When the system is determined to be oscillating and the oscillation frequency is not less than 300Hz, the data transmitted by the substation does not contain power P, only voltage U and current I. In this case, the power P and the system impedance Z at the time of oscillation are calculated using the transmitted data. The formula for calculating power P is as follows:
[0029]
[0030] in The power factor.
[0031] Step 3: Based on the topological linking relationships of multiple wind farms, establish a mathematical model of the sequential decision-making process of multiple wind farms, and determine the four major elements: state, action, strategy, and reward.
[0032] Step 3 includes designing the algorithm's action variables, state variables, and reward function to address the broadband oscillation suppression performance.
[0033] In a multi-wind farm system, oscillations are suppressed by changing the power of each wind farm, so the action quantity design is as shown in equation (3):
[0034] A={ΔP1 c ,ΔP2 c ,ΔP3 c ,...,ΔP n c} (3)
[0035] Where A represents the set of action quantities, the subscripts 1, 2, 3, ..., n represent the wind farm number, and ΔP n c This indicates the amount of power reduction required for wind farm number n.
[0036] The state variables are designed as shown in equation (4):
[0037] S={ΔP max ,ΔU max ,ΔI max ,R,ΣP} (4)
[0038] Where S represents the set of state variables, ΔP max , ΔU max ΔI max ∑P represents the oscillation amplitudes of the maximum oscillation power, maximum oscillation voltage, and maximum oscillation current, respectively; R is the real part of the impedance Z when oscillation occurs; and ∑P is the sum of the power of each wind farm.
[0039] The reward function is designed as shown in equation (5):
[0040]
[0041] Where λ1, λ2, λ3, and μ are the coefficients of the trade-offs in the reward function.
[0042] The training objective of deep reinforcement learning is to maximize the reward function through policy exploration. To suppress oscillations, the oscillation amplitudes of power, voltage, and current are multiplied by negative coefficients in the reward function. This ensures that when erroneous actions cause severe oscillations, the oscillation amplitude increases, the reward function decreases, and a new policy is explored. To maximize the power output of the wind farm while suppressing oscillations, a positive coefficient is applied to the total power output of the wind farm.
[0043] When R ≤ 0, the system is in an unstable state, so a penalty term -k is applied. When R ≥ 0, the system is in a relatively stable state, so no penalty term is applied. λ1, λ2, λ3, μ, and k are all positive numbers.
[0044] Step 4: Use a deep Q-network algorithm to control the power of the wind farm. The agent updates the network values during the interaction with the multi-wind farm system to obtain the optimal power configuration scheme.
[0045] Step four includes: exploring action strategies for the multi-wind farm collaborative suppression method using a deep Q-network algorithm. For the Q-network, the parameters are updated by minimizing the loss function, as shown in equation (6).
[0046] L t (θ t ) = E (s,a,r,s') (yQ(s,a;θ t )) 2 (6)
[0047] Among them, L t (θ t Let θ be the loss function at time t. t Let E be the network parameters of the Q-network at time t. (s,a,r,s’) Let y be the mathematical expectation, and y be the optimization objective value of the Q-network, as shown in equation (7):
[0048]
[0049] Where, θ t * Let θ be the parameter of the target network, s' be the state of the next iteration, a' be the action of the next iteration, and r represent the state of the target network with parameter θ. t * Under the given conditions, the cumulative discount reward obtained by performing action a'.
[0050] The Target Q-Network has the same neural network structure as the Q-Network. In the Target Q-Network, the parameters are updated independently after a certain number of steps, and an experience replay pool mechanism is introduced. In this mechanism, the experience gained in each training session is stored in the experience pool, and a portion of data is drawn from the experience pool for learning each time. This makes the learning process more stable.
[0051] Step 5: Use the Monte Carlo method to set the initial power of the wind farm, and train the deep Q-network algorithm agent with random training samples. Then, put the trained agent into use to achieve collaborative suppression of multiple wind farms when broadband oscillations occur.
[0052] Step 6: If the deep reinforcement learning module fails to effectively suppress the oscillations, then cut off the wind turbines from the largest to the smallest power according to the power of the wind farm, until the oscillations subside.
[0053] Based on the same inventive concept, the electronic device of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded onto the processor, it implements the method for collaborative suppression of broadband oscillations by multiple wind farms.
[0054] Based on the same inventive concept, the computer-readable storage medium of the present invention stores a computer program, which, when executed by a processor, implements the method for collaborative suppression of broadband oscillations by multiple wind farms.
[0055] The computer-readable storage medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other media that can be used to store desired program code in the form of instructions or data structures and is accessible by a computer.
[0056] The processor is used to execute a computer program stored in memory to implement the various steps in the methods described in the above embodiments.
Claims
1. A method for collaboratively suppressing broadband oscillations across multiple wind farms, characterized in that, When broadband oscillations occur, the power of the wind farm is calculated, and the power of each wind farm is controlled by a deep Q-network to suppress the oscillations. The reward of the deep Q network includes the total power of each wind farm, and the action of the deep Q network includes the amount of power that each wind farm needs to reduce. The state of the deep Q network includes the oscillation amplitudes of the maximum oscillation power, the maximum oscillation voltage, and the maximum oscillation current, the real part of the system impedance when broadband oscillation occurs, and the sum of the power of each wind farm. The reward function of the deep Q-network is: ; Where, Δ P max The oscillation amplitude of the maximum oscillation power, Δ U max The maximum oscillation voltage amplitude, Δ I max The oscillation amplitude of the maximum oscillation current. R The real part of the system impedance when broadband oscillation occurs, ∑ P This is the sum of the power outputs of all wind farms. λ 1. λ 2. λ 3 and μ The coefficients representing the trade-offs in the reward function, - k As a penalty item, λ 1. λ 2. λ 3. μ and k It is a positive number.
2. The method for collaboratively suppressing broadband oscillations across multiple wind farms according to claim 1, characterized in that, The method of controlling the power of each wind farm using a deep Q-network includes exploring action strategies for oscillation suppression using a deep Q-network and updating parameters by minimizing the loss function.
3. The method for collaboratively suppressing broadband oscillations across multiple wind farms according to claim 1, characterized in that, During the training of the deep Q-network, the experience gained in each training session is stored in the experience pool, and a portion of the data is drawn from the experience pool for learning each time.
4. The method for collaboratively suppressing broadband oscillations across multiple wind farms according to claim 1, characterized in that, When training the deep Q-network, the initial power of each wind farm is set using the Monte Carlo method.
5. The method for collaboratively suppressing broadband oscillations across multiple wind farms according to claim 1, characterized in that, The calculation of wind farm power when broadband oscillation occurs is as follows: when the oscillation frequency is less than 300Hz, the wind farm power is obtained based on the measurement value of the wind farm broadband measurement device; when the oscillation frequency is not less than 300Hz, the wind farm power is calculated based on the wind farm voltage and wind farm current.
6. The method for collaboratively suppressing broadband oscillations across multiple wind farms according to claim 1, characterized in that, If controlling the power of each wind farm using a deep Q-network fails to suppress the oscillation, wind turbines are disconnected from the largest to the smallest power according to the power of the wind farm until the oscillation subsides.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is loaded into the processor, it implements the method for collaborative suppression of broadband oscillations by multiple wind farms according to any one of claims 1-6.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for collaborative suppression of broadband oscillations by multiple wind farms according to any one of claims 1-6.
Citation Information
Patent Citations
Subsynchronous oscillation suppression method based on deep Q network optimization operation mode
CN115333125A
