A method for optimizing and setting reactive voltage regulation coefficient of power supply based on DDPG

By using a deep reinforcement learning algorithm based on DDPG, uncertain scenarios of wind power and load are generated, the reactive power voltage droop coefficient of the power source is optimized, the problem of grid voltage fluctuation is solved, and the efficient setting of the reactive power voltage droop coefficient of the power source and the stability of grid voltage are improved.

CN116742727BActive Publication Date: 2026-11-20NORTHEAST DIANLI UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310755467.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2026-11-20
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

In existing technologies, the optimization and setting methods for reactive power voltage droop coefficients are prone to getting trapped in local optima and require a re-search each time, which cannot effectively coordinate the grid voltage fluctuation problem in power systems with high wind power penetration.

Method used

The deep reinforcement learning algorithm DDPG is adopted to generate a large number of scenarios by establishing a model of wind power output and load uncertainty. The DDPG network is used to optimize the reactive power voltage droop coefficient of the power source, and a reward function is designed to improve the grid voltage level. Combined with Actor and Critic networks for training, the optimized setting of the reactive power voltage droop coefficient of the power source is achieved.

Benefits of technology

Effectively coordinate reactive power and voltage control between wind farms and thermal power units, reduce grid voltage fluctuations, optimize system reactive power distribution, reduce the probability of voltage exceeding limits, and improve voltage stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116742727B_ABST
    Figure CN116742727B_ABST
Patent Text Reader

Abstract

The application discloses a power reactive voltage regulation coefficient optimization setting method based on DDPG, belongs to the technical field of power grid reactive voltage adjustment, and has the advantages that firstly, a commonly used probability model is adopted to consider the influence of wind power output and load uncertainty, and a large number of uncertainty scenarios are generated through LHS and Cholesky methods; secondly, based on the DDPG algorithm, a large number of simulation explorations are conducted to gradually learn the 'knowledge' of power reactive voltage regulation coefficient optimization setting, and the power reactive voltage regulation coefficient optimization setting based on the 'knowledge' is preliminarily realized. The method can coordinate the setting of the regulation coefficient of the wind power plant and the thermal power unit, relieve the pressure regulation burden of the thermal power unit, optimize the reactive power distribution of the system, and further reduce the probability of power grid voltage out-of-limit and improve the voltage fluctuation level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power grid reactive voltage regulation technology, and in particular relates to an optimized setting method for the reactive voltage droop coefficient of power sources based on DDPG. Background Technology

[0002] Due to the clean and low-carbon transformation of the power generation industry, building a new power system based on new energy sources has become a major development trend. With a higher proportion of wind power integrated into the grid, traditional thermal power units will be largely replaced. In power systems with high wind power penetration, the power source's ability to support grid voltage will be severely insufficient. Furthermore, because wind power output is more volatile and uncertain than traditional thermal power, grid power flow fluctuations will intensify, leading to severe voltage fluctuations on some grid buses, even exceeding safe limits, seriously threatening the safe and stable operation of wind farms and the entire system. Wind farms, currently only meeting grid connection standards, are shifting from grid-connected to grid-connected models, actively participating in grid voltage support, which has become an inevitable trend in new power systems. When wind farms actively participate in grid voltage adjustment, they can learn from the reactive power-voltage droop characteristics of synchronous generators, actively tracking grid voltage changes within their reactive power capacity using a reactive power-voltage constant slope control method.

[0003] Currently, heuristic algorithms are commonly used to optimize the voltage droop coefficient of power supplies. However, these algorithms have obvious limitations. They are prone to getting stuck in local optima when solving high-dimensional droop coefficient optimization problems, and they do not have memory, requiring a new search each time.

[0004] Therefore, a new technical solution is urgently needed in the existing technology to solve the above problems. Summary of the Invention

[0005] The technical problem to be solved by this invention is to provide a method for optimizing the adjustment of reactive voltage droop coefficient of a power supply based on DDPG. It adopts a deep reinforcement learning algorithm and gradually learns the "knowledge" of optimizing the adjustment of reactive voltage droop coefficient of a power supply through a large number of simulations. It initially realizes the optimization adjustment of reactive voltage droop coefficient of a power supply based on "knowledge". It can overcome the shortcomings of traditional heuristic algorithms that are prone to getting trapped in local optima and need to search again each time to adjust the droop coefficient.

[0006] A method for optimizing the reactive power voltage droop factor of a power supply based on DDPG includes the following steps, which are performed sequentially.

[0007] Step 1: Establish a scenario where wind power output and load are uncertain.

[0008] A wind speed uncertainty model is established using a two-parameter Weibull distribution. Based on the power characteristics of the wind turbine, the relationship between the active power of the wind turbine and the wind speed is output. A load uncertainty model is established using a normal distribution. The Latin hypercube sampling (LHS) method is used to sample the established uncertainty model to generate multiple scenarios. The Cholesky decomposition method is used to reorder the generated scenarios so that the wind power and load variables satisfy the correlation between themselves.

[0009] Step 2: Optimization and setting of power supply reactive power voltage droop coefficient based on DDPG

[0010] The power state and action space are set up to establish the reward function of the DDPG network with the goal of improving the grid voltage level. The DDPG network is used to adjust the power state variables. The DDPG outputs a set of values ​​with the mean and variance of the Actor network following a normal distribution. The exploration and utilization ratio of the Actor is controlled by controlling the variance of the normal distribution, and the power droop coefficient is tuned.

[0011] The wind speed uncertainty model in step one is represented by the probability density function f(v):

[0012]

[0013] In the formula, v represents wind speed, and k and c represent the shape and size parameters of the distribution, respectively.

[0014] The relationship between the active power of the wind turbine and the wind speed in step one can be expressed as an approximate linearization as follows:

[0015]

[0016] In the formula, v ci v r and v co These represent the starting, rated, and cut-off wind speeds of the wind turbine, P. r This refers to the rated capacity of the wind turbine unit.

[0017] The load uncertainty model in step one is represented by the probability density function of active power load:

[0018]

[0019] In the formula, P L μ P and σ P These represent the active power, expected value, and standard deviation of the load, respectively; when the power factor of the load is known, the reactive load can be calculated from the active load and the power factor.

[0020] The power supply status in step two is represented by the relationship between the reactive power generated by the power supply and the terminal voltage:

[0021] V t =V ref -X C I q (4)

[0022] In the formula, V ref Given a voltage reference value, X C This is the reactive voltage droop coefficient of the power supply.

[0023] The action space in step two is based on the voltage V of each node in the power grid. i As a state variable, the droop coefficient ΔX of each power source Ci It is calculated as a motion quantity.

[0024] The reward function of the DDPG network in step two is:

[0025]

[0026] In the formula, N is the number of voltage monitoring nodes in the power grid; M is the number of operating scenarios; λ is the weight value; V i j Let ρ be the voltage of the i-th voltage monitoring node in the j-th scenario. j Let V be the probability of the j-th scenario occurring. i.avg Let be the average voltage of the i-th voltage monitoring node across M scenarios. This represents the voltage limit violation status of the i-th voltage monitoring node in the j-th scenario. The value is 1 when the voltage exceeds the limit and 0 when the voltage does not exceed the limit.

[0027] Through the above design scheme, the present invention can bring the following beneficial effects: a power supply reactive voltage droop coefficient optimization setting method based on DDPG can effectively coordinate the reactive voltage control characteristics between wind farms and thermal power units, and improve the reactive voltage problem caused by high proportion of wind power grid connection.

[0028] 1) The impact of wind power output and load uncertainty is considered through commonly used probabilistic models, and a large number of uncertainty scenarios are generated using the LHS and Cholesky methods;

[0029] 2) Based on DDPG, a method for adjusting the reactive voltage droop coefficient of a power supply is proposed, which can overcome the shortcomings of existing droop coefficient adjustment methods. Through a large number of simulations, the "knowledge" of droop coefficient adjustment is learned. When the droop coefficient needs to be adjusted again, the learned "knowledge" can be used to adjust the droop coefficient.

[0030] 3) The proposed method for adjusting the reactive power voltage droop coefficient can coordinate the setting of the droop coefficient between wind farms and thermal power units, alleviate the voltage regulation burden of thermal power units, optimize the reactive power distribution of the system, and also reduce the probability of grid voltage exceeding the limit and improve the voltage fluctuation level. Attached Figure Description

[0031] The present invention will be further described below with reference to the accompanying drawings and specific embodiments:

[0032] Figure 1 This is a power supply droop characteristic diagram of a power supply reactive voltage droop coefficient optimization setting method based on DDPG according to the present invention.

[0033] Figure 2 The diagram shows the Actor network structure of the DDPG-based power supply reactive voltage droop coefficient optimization setting method of the present invention.

[0034] Figure 3 The diagram shows the Critic network structure of the DDPG-based power supply reactive voltage droop coefficient optimization setting method of the present invention.

[0035] Figure 4 This invention presents a method for optimizing the reactive power voltage droop coefficient of a power supply based on DDPG, and a flowchart of the DDPG network training process.

[0036] Figure 5 This is a flowchart of the DDPG network application of the power supply reactive voltage droop coefficient optimization setting method based on DDPG according to the present invention. Detailed Implementation

[0037] A method for optimizing the reactive voltage droop coefficient of a power supply based on DDPG (Distributed Damping Generation Program) can overcome the shortcomings of traditional heuristic algorithms, which are prone to getting trapped in local optima and require repeated searching, in order to optimize the droop coefficient. It includes the following:

[0038] 1. Generation of uncertain scenarios related to wind power and load

[0039] Since the droop coefficient is not suitable for frequent changes, its setting needs to meet the requirements of various power grid operating scenarios, such as... Figure 1 As shown, this invention uses a commonly used probabilistic model to consider the impact of wind power output and load uncertainty.

[0040] Uncertainty models regarding wind speed are commonly described using a two-parameter Weibull distribution, whose probability density function can be expressed as:

[0041]

[0042] In the formula, v represents wind speed, and k and c represent the shape and size parameters of the distribution, respectively. When the wind speed data for a region is known, the two parameters can be estimated using relevant numerical calculation methods. Based on the power characteristics of wind turbine generators, the relationship between their output active power and wind speed can be approximately linearized as follows:

[0043]

[0044] In the formula, v ci v r and v co These represent the starting, rated, and cut-off wind speeds of the wind turbine, P. r This refers to the rated capacity of the wind turbine unit.

[0045] The uncertainty model of load can usually be described by a normal distribution, and the probability density function of active power load is:

[0046]

[0047] In the formula, P L μ P and σ P These represent the active power, expected value, and standard deviation of the load, respectively; when the power factor of the load is known, the reactive load can be calculated from the active load and the power factor.

[0048] The Latin Hypercube Sampling (LHS) method was used to sample multiple scenarios from the established probability model. The Cholesky decomposition method was then used to reorder the generated scenarios so that the wind power and load variables each satisfy a specific correlation.

[0049] 2. Optimization and setting of reactive power and voltage droop coefficient based on DDPG

[0050] 1) Setting the state, action space, and reward function.

[0051] When considering the reactive power voltage droop characteristics of the power source, the relationship between the reactive power generated by the power source and the terminal voltage can be expressed as:

[0052] V t =V ref -X C I q (4)

[0053] In the formula, V ref Given a voltage reference value, X C The reactive voltage droop coefficient of the power supply, and the classification of droop polarity are as follows: Figure 1 As shown.

[0054] In a certain power grid, the number of power sources actively participating in grid voltage regulation is consistent with the number of droop coefficients that need to be set. The voltage V at each node in the power grid is... i As a state variable, the droop coefficient ΔX of each power source Ci It is calculated as a motion quantity.

[0055] The key to the convergence of DDPG lies in how to design the short-term reward function. This invention aims to improve the grid voltage level, so the reward function is constructed using the following formula:

[0056]

[0057] In the formula, N is the number of voltage monitoring nodes in the power grid; M is the number of operating scenarios; λ is the weight value; V i j Let ρ be the voltage of the i-th voltage monitoring node in the j-th scenario. j Let V be the probability of the j-th scenario occurring. i.avg Let be the average voltage of the i-th voltage monitoring node across M scenarios. Let represent the voltage exceedance condition of the i-th voltage monitoring node in the j-th scenario. The value is 1 if the voltage exceeds the limit, and 0 if it does not. Since the DDPG algorithm calculates the maximum value of the reward function, the reward function is solved using a negative value.

[0058] 2) Setting the network structure and exploration rules

[0059] The DDPG network structure consists of an Actor network and a Critic network, as shown below. Figure 2 , Figure 3 As shown, the Actor network has three hidden layers with 128, 64, and 32 neurons respectively. Each layer uses the ReLU activation function, and the output layer uses the tanh activation function. The Critic network also has three hidden layers with 128, 64, and 32 neurons respectively. Both the hidden and output layers use the tanh activation function. Both the Actor and Critic networks are optimized using the Adam optimizer. The maximum number of rounds is 9000, and each round has 20 steps.

[0060] This invention uses a DDPG network to adjust the state variables, continuously "exploring" and "utilizing" until the network fully converges. Since DDPG outputs a set of normally distributed values ​​with mean σ as the variance of the Actor network's output, controlling the variance of the normal distribution controls the ratio of "exploration" to "utilization" by the Actor. In this invention, the initial variance is 0.5. After the data in the memory pool reaches its upper limit, learning begins. Each step after learning begins decreases by a certain proportion, representing a gradual decrease in the proportion of "exploration." Eventually, σ will decrease to approximately 0, indicating that the network will no longer "explore" and will fully "utilize."

[0061] Specifically, the training process of the DDPG network is as follows: Figure 4 As shown,

[0062] a. Initialize the simulation environment and network parameters, and give the initial value of the droop coefficient Xc and the grid state s according to the upper and lower limits of the droop coefficient of each power source;

[0063] b. Through strategy exploration, action a is performed to obtain the adjusted droop coefficient Xc', and interaction with the simulation environment yields the reward function value r and the new grid state s'. Then, the state s and state s' before and after adjustment, action a, and the reward function r value are stored as an experience in the experience pool. Through continuous strategy exploration, when there is enough experience in the experience pool, the network begins to learn knowledge (i.e., modifying network parameters to maximize the reward function value obtained from the interaction between the adjusted droop coefficient and the simulation environment).

[0064] c. The process of network learning knowledge includes: a) updating the current Critic network parameters by backpropagating the mean squared error loss; b) updating the current Actor network parameters using the policy gradient of the samples; c) assigning the parameters of the current network to the target network every few training rounds.

[0065] d. Once the network converges, the offline learning process ends, and the network parameters are saved as "knowledge".

[0066] The application process of DDPG network is as follows Figure 5 As shown, the specific process is as follows: First, the network parameters are initialized and the converged "knowledge" (network weight parameters) saved during network training is loaded. Then, the adjustment coefficients to be tuned are input into the Actor network, and the Actor provides an adjustment coefficient tuning strategy that maximizes the Critic network's evaluation based on the saved knowledge.

Claims

1. A method for optimizing the reactive power voltage droop coefficient of a power supply based on DDPG, characterized by: The steps are as follows, and the steps are performed in sequence. Step 1: Establish a scenario where wind power output and load are uncertain. A wind speed uncertainty model is established using a two-parameter Weibull distribution. Based on the power characteristics of the wind turbine, the relationship between the active power of the wind turbine and the wind speed is output. A load uncertainty model is established using a normal distribution. The Latin hypercube sampling (LHS) method is used to sample the established uncertainty model to generate multiple scenarios. The Cholesky decomposition method is used to reorder the generated scenarios so that the wind power and load variables satisfy the correlation between themselves. Step 2: Optimization and setting of power supply reactive power voltage droop coefficient based on DDPG By setting up power state and action space, a reward function for a DDPG network is established with the goal of improving grid voltage levels. The DDPG network is then used to adjust the power state variables, with the output value of the Actor network as the mean. σ Output a set of values ​​whose variance follows a normal distribution. Control the exploration and utilization ratio of the Actor by controlling the variance of the normal distribution, and adjust the power supply droop coefficient. The power supply status in step two is represented by the relationship between the reactive power generated by the power supply and the terminal voltage: (4) In the formula, V ref Given a voltage reference value, X C This is the reactive voltage droop coefficient of the power supply; The state and action space in step two are based on the voltage of each node in the power grid. V i As a state variable, the droop coefficient D of each power source X Ci It is calculated as a motion quantity; The reward function of the DDPG network in step two is: (5) In the formula, N This represents the number of voltage monitoring nodes in the power grid. M The number of running scenarios, λ These are weight values; Let the voltage of the i-th voltage monitoring node be the voltage in the j-th scenario. ρ j For the first j The probability of each scenario occurring V i.avg For the first i Each voltage monitoring node is M Average voltage in each scenario For the first i The voltage monitoring node at the first j The voltage limit is exceeded in each scenario. The value is 1 when the voltage exceeds the limit and 0 when the voltage does not exceed the limit.

2. The method for optimizing the reactive power voltage droop coefficient of a power supply based on DDPG as described in claim 1, characterized in that: The wind speed uncertainty model in step one is represented by the probability density function f(v): (1) In the formula, v represents wind speed, and k and c represent the shape and size parameters of the distribution, respectively.

3. The method for optimizing the reactive power voltage droop coefficient of a power supply based on DDPG as described in claim 1, characterized in that: The relationship between the active power of the wind turbine and the wind speed in step one can be expressed as an approximate linearization as follows: (2) In the formula, v ci , v r and v co These are the starting, rated, and cut-off wind speeds of the wind turbine unit. P r ν represents the rated capacity of the wind turbine, and v represents the wind speed.

4. The method for optimizing the reactive power voltage droop coefficient of a power supply based on DDPG as described in claim 1, characterized in that: The load uncertainty model in step one is represented by the probability density function of active power load: (3) In the formula, P L , μ P and σ P These represent the active power, expected value, and standard deviation of the load, respectively; when the power factor of the load is known, the reactive load can be calculated from the active load and the power factor.