Wind turbine rotating speed reference value determination method based on deep reinforcement learning

By combining the deep reinforcement learning algorithm with the TD3 algorithm and the agent model, the problem of inaccurate control of the wind turbine speed reference value determination method under changes in air density and wind turbine conditions has been solved, achieving stable and efficient operation of wind turbines and improving power generation efficiency. .

CN118705133APending Publication Date: 2024-09-27QUFU NORMAL UNIV

Patent Information

Application Number
CN202410771977.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-15
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing method for determining the wind turbine speed reference value relies on the power curve provided by the manufacturer and cannot effectively respond to changes in air density and wind turbine conditions, resulting in inaccurate control and affecting the stability and safe operation of the wind turbine.

Method used

A wind turbine speed reference value determination method based on deep reinforcement learning is adopted, and the TD3 algorithm is used to combine wind speed, air density and generator parameter changes to design a reward function and an agent model to automatically adjust the output power to determine the optimal speed reference value.

Benefits of technology

It achieves stable, efficient and safe operation of wind turbines under different environmental conditions, reduces the harmonic distortion rate of generator winding current, and improves power generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118705133A
    Figure CN118705133A
Patent Text Reader

Abstract

The invention discloses a wind turbine rotating speed reference value determination method based on deep reinforcement learning, and belongs to the field of wind power. A deep reinforcement learning algorithm is adopted, an intelligent agent based on a TD3 algorithm is constructed according to the environment states of a wind turbine, the environment states comprise the wind speed and the change rate thereof, the air density, the wind turbine rotating speed, the stator current, the stator voltage, the stator resistance, the winding temperature, the rotor current, the rotor voltage and the like, a reward function is designed, and the wind speed, the air density and generator training conditions are determined; training the intelligent agent, transplanting the trained intelligent agent model into a main control chip of a rotor side converter or a machine side converter, and rapidly and accurately outputting the optimal rotating speed reference value of the wind turbine. The method is suitable for double-fed wind turbines, permanent magnet direct-drive wind turbines and semi-direct-drive wind turbines, can effectively cope with the influence of various environment changes such as wind speed, air density and wind turbine aging on unit control and safe operation, and plays an important role in achieving accurate, safe and stable control over the wind turbines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for determining a speed reference value, in particular to a method for determining a speed reference value of a wind turbine based on deep reinforcement learning, and belongs to the technical field of wind power. Background Art

[0002] In recent years, wind power generation technology has achieved remarkable development. The current mainstream models are: doubly fed, permanent magnet direct drive, and semi-direct drive wind turbines. But no matter which model, the speed of the wind turbine is closely related to its output power and safe and stable operation. Therefore, how to select the speed reference value of the wind turbine plays a vital role in the control of the wind turbine set. It determines whether the wind turbine set can operate stably, efficiently, and safely. At present, how to determine the speed reference value of the wind turbine has become one of the research hotspots.

[0003] In the existing control methods, the selection of wind turbine speed reference value is almost always based on the wind turbine power curve provided by the manufacturer. However, the wind power captured by the wind turbine and the output power are closely related to wind speed, as well as many other factors, such as air density, wind turbine status, etc. In addition to the influence of altitude, air density is also affected by local air pressure, temperature, and humidity. Because these parameters are different throughout the year and at different times of the day, the wind power captured by the wind rotor is different at the same wind speed (P w =0.5ρAv w 3 C p ). The condition of wind turbines changes due to factors such as aging and wear of wind turbines, aging and different states of blades (such as icing), inaccurate yaw to wind, and parameter changes caused by aging of generators and converters. These factors cause the wind turbine power curve provided by the manufacturer to deviate from the actual value, which leads to many defects in the method of determining the wind turbine speed reference value based on the wind turbine power curve provided by the manufacturer, such as inaccurate control or even errors, failure to achieve maximum power output, and even overload of the generator and damage to the wind turbine in severe cases, posing a threat to the safe and stable operation of the wind turbine.

[0004] As a powerful technology for solving perception problems of complex systems, deep reinforcement learning (DRL) effectively combines the perception ability of deep learning and the decision-making ability of reinforcement learning. It can analyze and make decisions based on the input information. It is an artificial intelligence control method that is closer to human thinking and has attracted widespread attention in recent years. However, there are few studies on the application of deep reinforcement learning in wind turbines. It is worth pointing out that the double-delayed deep deterministic policy gradient (TD3) algorithm, one of the deep reinforcement learning algorithms, has significant advantages in processing continuous action space. This deep reinforcement learning algorithm that does not rely on mathematical models is particularly suitable for wind turbines with unknown time-varying interference (such as volatility and uncertainty in wind speed and wind direction), changes in the condition of the wind turbine itself after long-term operation, and nonlinear and strongly coupled characteristics.

[0005] To this end, the present invention proposes a method for determining a wind turbine speed reference value based on deep reinforcement learning, so as to ensure that an optimal wind turbine speed reference value can be given when the air density and the wind turbine's own conditions change, thereby ensuring stable, efficient and safe operation of the wind turbine set. Summary of the invention

[0006] The main purpose of the present invention is: in view of the shortcomings of the above-mentioned prior art, the present invention provides a method for determining a wind turbine speed reference value based on deep reinforcement learning. By utilizing the powerful exploration and interaction capabilities of the DRL algorithm, an accurate wind turbine speed reference value is given according to the real-time operating conditions of the wind turbine, so as to achieve stable, efficient and safe operation of the wind turbine when the wind speed, air density and the conditions of the wind turbine unit itself change.

[0007] In order to achieve the above objectives, the wind turbine described in the present invention is divided into a doubly fed wind turbine and a permanent magnet direct drive wind turbine (including a semi-direct drive wind turbine), both of which include a wind wheel, a wind generator, and a converter; the wind generator is divided into a doubly fed wind generator (DFIG) and a permanent magnet synchronous wind generator (PMSG), the rotor winding of the doubly fed wind generator is connected to its rotor-side converter, the other end of the rotor-side converter is connected to the grid-side converter, the other end of the grid-side converter is respectively connected to the stator and the industrial frequency transformer of the doubly fed wind generator and is incorporated into the AC power grid; the stator winding of the permanent magnet synchronous wind generator is connected to its machine-side converter.

[0008] The present invention provides a method for determining a wind turbine speed reference value based on deep reinforcement learning, comprising the following steps:

[0009] Step 1, determining the environmental state of the wind turbine:

[0010] For the doubly-fed wind turbine, the environmental conditions include: wind speed v w and wind speed change rate air density ρ, the rotor rotation angular velocity ω(t) of the doubly-fed wind turbine generator, the d-axis component i of the stator current of the doubly-fed wind turbine generator ds and the q-axis component i qs and the d-axis component i of the rotor current dr and the q-axis component i qr , the d-axis component u of the stator voltage of the doubly-fed wind turbine ds and the q-axis component u qs and the d-axis component u of the rotor voltage dr and the q-axis component u qr , the stator winding resistance R of the doubly-fed wind turbine s , rotor winding resistance R r , the temperature T of the stator winding of the doubly-fed wind turbine s and the rotor winding temperature T r ; The environmental state is recorded as S t , then

[0011] For the permanent magnet direct drive wind turbine, the environmental conditions include: wind speed v w and wind speed change rate air density ρ, the rotor rotation angular velocity ω(t) of the permanent magnet synchronous wind turbine, the d-axis component i of the stator current of the permanent magnet synchronous wind turbine d and the q-axis component i q , the d-axis component u of the stator voltage of the permanent magnet synchronous wind turbine d and the q-axis component u q The stator inductance L, stator winding resistance R, rotor permanent magnet flux linkage ψ of the permanent magnet synchronous wind turbine f , the temperature T of the stator winding of the permanent magnet synchronous wind turbine s ; The environmental state is recorded as S t , then

[0012] Step 2, design the reward function:

[0013] The reward function R t Designed for:

[0014] R t =R fast +R smooth +R T (1)

[0015] In the formula, R fast is the speed reward function, R smooth is the speed fluctuation suppression and distortion rate reward function, RT is the temperature rise reward function; R fast Defined as:

[0016]

[0017] Where R1 and R2 are the maximum power point weight coefficients, which are used to quickly determine the speed for maximum power point tracking when the wind speed is between the cut-in wind speed and the rated wind speed. R3 is the constant power weight coefficient, which is used to determine the speed for outputting rated power when the wind speed exceeds the rated wind speed. △ω is the speed increment, ω N A is the rated speed of the wind turbine, and P is the output power of the wind turbine; d1 , A d2 , A d3 is the reference value of the power difference;

[0018] For the doubly-fed wind turbine, R smooth Defined as:

[0019]

[0020] Wherein, R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of the generator; ω(tl) is the speed of the doubly fed wind turbine at the first moment, L is the upper limit of the time for suppressing fluctuations, and l and L are both positive integers; R5 is the distortion rate fast dynamic weight coefficient, which is used to minimize the distortion rate, i dr * 、i qr * are respectively the d-axis component i of the rotor current of the doubly-fed wind turbine generator dr and the q-axis component i qr The reference value, A d4 is the reference value of the current difference;

[0021] For the permanent magnet direct drive wind turbine, R smooth Defined as:

[0022]

[0023] Wherein, R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of the generator; ω(tl) is the speed of the permanent magnet synchronous wind turbine at the first moment, L is the upper limit of the time for suppressing fluctuations, l and L are both positive integers; R5 is the distortion rate fast dynamic weight coefficient, which is used to minimize the distortion rate, i d * 、i q * are respectively the d-axis component i of the stator current of the permanent magnet synchronous wind turbine d and the q-axis component i q The reference value, A d4is the reference value of the current difference;

[0024] For the doubly-fed wind turbine, R T Defined as:

[0025] R T =R6(T sal -T s ) / A d5 +R7(T ral -T r ) / A d6 (4)

[0026] Where R6 and R7 are the temperature weight coefficients of the stator winding and rotor winding respectively, T s , T r are the temperatures of the stator winding and rotor winding of the doubly-fed wind turbine generator, T sal , T ral are the allowable temperatures of the stator winding and rotor winding of the doubly-fed wind turbine generator, A d5 , A d6 are respectively reference values ​​of the temperature difference between the stator winding and the rotor winding of the doubly-fed wind generator.

[0027] For the permanent magnet direct drive wind turbine, R T Defined as:

[0028] R T =R8(T al -T s ) / A d7 (4')

[0029] Where R8 is the stator winding temperature weight coefficient of the permanent magnet synchronous wind turbine, T s is the temperature of the stator winding of the permanent magnet synchronous wind turbine, T al is the allowable temperature of the stator winding of the permanent magnet synchronous wind turbine, A d7 is the base value of the temperature difference.

[0030] Step 3: construct an intelligent agent based on the TD3 algorithm according to the environmental state:

[0031] The agent is composed of a strategy network and a strategy evaluation network; the strategy network is composed of an Actor network and an ActorTarget network, respectively through the corresponding network strategy π(S t |θ) and π ta (S t |θ ta ) realizes the action output A of the agent t (S t|θ); The strategy evaluation network consists of a Critic network and a Critic Target network, which are respectively and h = 1, 2, evaluate and improve the strategy used to achieve the action output, where θ, θ ta , They represent the weight coefficients of the Actor network, Actor Target network, Critic network, and CriticTarget network respectively.

[0032] Step 4: training the agent:

[0033] A1. Determine the training environment, including wind speed training conditions, air density training conditions and generator parameter training conditions, among which:

[0034] Wind speed training condition: insert random wind speed noise δv every 1s into the actual wind speed curve w , the training wind speed v' is calculated according to formula (5): w , and at the beginning of a new training round, by δv w Reset v' according to formula (5) w ;

[0035]

[0036] In the formula, δv w Subject to average distribution U; v wn is the rated wind speed; w d is the deviation width, w d ≥1.

[0037] Air density training conditions: In order to ensure that the agent can effectively cope with changes in air density, at the beginning of each training round, the air density training parameter ρ' is obtained by adding the parameter change additional term δρ to the air density ρ according to formula (6), and ρ' is reset by δρ according to formula (6) at the beginning of a new training round;

[0038]

[0039] In the formula, δρ follows the average distribution U; ρ n is the standard air density; w e is the deviation width, w e ≥1.

[0040] Generator parameter training conditions:

[0041] For the doubly-fed wind turbine, in order to ensure that the agent can still have excellent performance when the generator parameters change, at the beginning of each training round, the parameters X of the doubly-fed wind turbine are trained according to formula (7). j , where j = 1, 2, 3, 4, respectively representing the stator winding resistance R and the rotor winding resistance R of the doubly-fed wind turbine generator. r , stator winding temperature T s and the rotor winding temperature T r ;, by X j Add parameter change additional term δX j Get the training parameter X' of the permanent magnet synchronous wind turbine j ; Similarly, at the beginning of a new training round, δX j Update X' according to formula (7) j , and by the maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of

[0042]

[0043] In the formula, δX j Subject to average distribution U; w g is the deviation width, w g ≥1;

[0044] For the permanent magnet direct-drive wind turbine, in order to ensure that the agent can still have excellent performance when the generator parameters change, at the beginning of each training round, the parameters X of the permanent magnet synchronous wind turbine are trained according to formula (7'). j , where j = 1, 2, 3, respectively representing the stator inductance L, stator winding resistance R and rotor permanent magnet flux ψ of the permanent magnet synchronous wind turbine f , by X j Add random parameter variation additional term δX j Get the training parameter X' of the permanent magnet synchronous wind turbine j ; Similarly, at the beginning of a new training round, δX j Update X' according to formula (7') j , and by the maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of

[0045]

[0046] In the formula, δX j Subject to average distribution U; w g is the deviation width, wg ≥1.

[0047] A2. Create an interface for the agent to interact with the environment information, initialize the network weight parameters of the agent, and set the relevant parameters for the agent training, as follows:

[0048] Initialize the weight parameters θ of the Actor main network and the Critic main network, And the corresponding target network Actor Target network, target network Critic Target network weight parameter θ ta , h=1,2;

[0049] Set the learning rate α of the Actor main network;

[0050] Set the discount factor γ for deep reinforcement learning;

[0051] Set the maximum number of training rounds N, the maximum number of steps in each training round T, the update frequency I of the target network Actor Target network and Critic Target network, and the weight of the Critic network Update frequency I p ,I ta ;

[0052] Load actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, the wind turbine parameter X j and its variation additional term δX j ;

[0053] Set up and initialize the experience database.

[0054] A3. At the beginning of each training round, first according to the actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, the wind turbine parameter X j and its variation additional term δX j Determine the wind speed training condition v' for this training round according to formula (5), formula (6), formula (7), and formula (7') respectively. wk , air density training condition ρ' k , generator parameter training condition X jk ,k=1,2,…,N;v' wk is v' of the kth training round w , ρ' k is the ρ' of the kth training round, X jkis the X of the kth training round j .

[0055] A4. Based on the current state S t , in order to prevent the network strategy π(S t |θ) falls into a local optimum, adding action exploration noise N to the output of the Actor main network t , get action A t (S t |θ), providing an opportunity to explore “better”, namely:

[0056] A t (S t |θ)=π(S t |θ)+N t (8)

[0057] In the formula, π(S t |θ) the output of the Actor network; N t The expected value is 0 and the variance is σ 2 The normal distribution of t satisfy:

[0058]

[0059] A5. After each action is executed, the next state of the environment S is obtained t+1 , and the reward function R is calculated according to formula (1) t , and the environmental state S t 、Action A t (S t |θ), reward function value R t , the environmental state S at the next moment t+1 The experience data are stored in the experience memory as an experience data set.

[0060] A6. Randomly and uniformly sample M small batches of samples from the experience database, that is, M experience data groups (S ti ,A ti ,R ti ,S ti+1 ), where i = 1, 2, 3,…,M.

[0061] A7. Update the weight parameters of the Critic main network in a way that minimizes the error Right now

[0062]

[0063] Where Y ti is the expected target value function, defined as:

[0064]

[0065] In the formula, ε represents the target smooth noise, which is the truncated normal distribution noise, that is:

[0066]

[0067] In the formula, σ clip is the standard deviation and c is the cutoff factor.

[0068] A8. Update the weight parameters θ, θ of the Actor network, Actor Target network, and Critic Target network in a delayed update manner ta and Specifically, the weights of the Critic network Every update I p The weight parameter θ of the Actor network is updated once. The weight of the Critic network Every update I ta Second, the weight parameters θ of the Actor Target network and the Critic Target network ta and Update once; if the number of training steps is the update frequency I of the Critic network p If it is a multiple of , then go to step A9, otherwise go to step A11; p ,I ta is the update frequency, which is a positive integer, and I ta >I p ;

[0069] A9. Update the weight parameter θ of the Actor network by performing gradient ascent on the expected value J, that is,

[0070]

[0071] In the formula, the expression of J is:

[0072]

[0073] It means that J is derived with respect to θ:

[0074]

[0075] In the formula, represents π(S ti |θ) to derive θ;

[0076] A10. If the number of training steps is the update frequency I of the Critic network taIf it is a multiple of , the weight parameter θ of the Actor Target network is adjusted by exponential smoothing according to formula (16). ta and the weight parameters of the Critic Target network To update, that is:

[0077]

[0078] Where, τ is the update factor, τ≤1;

[0079] A11. If the number of training steps does not reach the maximum number of steps T for each training round, return to step A4; otherwise, the current training round ends, and the agent model obtained in this training round is saved, and the average reward function value R of this training round is calculated and saved. e ;

[0080] A12. If the average reward function value R for n consecutive training rounds e The absolute value of R set , where R set is a positive real number close to 0, the entire training process ends; otherwise, go to step A13;

[0081] A13. Determine whether the maximum number of training rounds N has been reached. If reached, end the entire training process and start training again; if not reached, return to step A3 and start the next training round.

[0082] Step 5: For the doubly-fed wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the rotor-side converter of the doubly-fed wind turbine; for the permanent magnet direct-drive wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the machine-side converter of the permanent magnet synchronous wind turbine; then an actual speed control system based on the main control chip of the converter is established, and the actual speed control system is controlled according to the real-time environmental state S of the wind turbine. t , output the speed reference value ω of the wind turbine * (t).

[0083] Compared with the prior art, the present invention has the following beneficial effects:

[0084] 1. The present invention adopts a deep reinforcement learning algorithm, whose reward function automatically adjusts the output power according to the wind speed and its rate of change, air density, changes in the generator's own parameters, and the generator winding temperature, and quickly and accurately obtains the optimal speed reference value. It can effectively deal with the impact of various environmental changes such as wind speed, air density, and wind turbine wear and aging on the control and safe operation of the unit, and plays an important role in achieving rapid, safe and stable control of wind turbines;

[0085] 2. It can effectively reduce the harmonic distortion rate of generator winding current, reduce the power loss of the generator and its converter itself, and improve power generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 It is a schematic diagram of the topological structure of the doubly-fed wind turbine generator set described in the present invention.

[0087] Figure 2 This is a schematic diagram of the topological structure of the permanent magnet direct-drive wind turbine set described in the present invention.

[0088] Figure 3 This is a schematic diagram of the principle of the deep reinforcement learning TD3 algorithm of the present invention.

[0089] Figure 4 Schematic diagram of the intelligent agent for a doubly-fed wind turbine according to the present invention.

[0090] Figure 5 Schematic diagram of the intelligent body for the permanent magnet direct-drive wind turbine according to the present invention.

[0091] Figure 6 This is a schematic diagram of the intelligent agent structure and training process based on the deep reinforcement learning TD3 algorithm of the present invention.

[0092] Figure 7 This is a flow chart of the agent training based on the deep reinforcement learning TD3 algorithm of the present invention.

[0093] Figure 8 Training wind speed map for the present invention.

[0094] Fig. 9 An example of a control strategy for a speed reference value determined by the method of the present invention - a control structure block diagram of a permanent magnet synchronous wind turbine.

[0095] Fig.10 This is the control structure block diagram of a permanent magnet synchronous wind turbine generator using PI control strategy.

[0096] Fig.11 The figure shows the stator current waveform and distortion rate of PMSG under standard PMSG parameters by using the method of the present invention and PI control strategy.

[0097] Fig.12 The figure shows the PMSG stator current waveform and distortion rate diagram using the method of the present invention and the PI control strategy when the PMSG parameters change.

[0098] Fig.13 The figure is a comparison chart of the power generation efficiency of PMSG using the method of the present invention and the PI control strategy.

[0099] Among them, 1-doubly fed wind generator (DFIG), 2-rotor side converter (RSC), 3-grid side converter (GSC) of DFIG; 4-permanent magnet synchronous wind generator (PMSG), 5-machine side converter (MSC), 6-grid side converter (GSC) of PMSG; 7-encoder; 8-intelligent agent for DFIG; 9-intelligent agent for PMSG; 10-first PI controller; 11-second PI controller; 12-PMSG speed tracking controller based on the present invention; 13-inner loop current tracking controller; 14-PMSG outer loop speed tracking controller based on PI control strategy. DETAILED DESCRIPTION

[0100] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0101] like Figure 1 As shown, the rotor of the doubly-fed wind turbine generator (DFIG) 1 is connected to the rotor-side converter (RSC) 2, and the other end of the rotor-side converter (RSC) 2 is connected to the grid-side converter (GSC) 3 of the DFIG, and the grid-side converter 3 is connected to the AC power grid through an industrial frequency transformer.

[0102] like Figure 2 As shown, the stator of the permanent magnet synchronous wind generator (PMSG) 4 is connected to the machine-side converter (MSC) 5, and the other end of the MSC 5 is connected to the grid-side converter 6 of the PMSG; the grid-side converter 6 of the PMSG is connected to the AC power grid through an industrial frequency transformer.

[0103] The part that can reflect the variable information of the wind turbine is defined as the environment; the part that can perform actions according to the environmental state is defined as the agent. Figure 3 The figure shows the principle diagram of the deep reinforcement learning TD3 algorithm. Its main process is: the agent is based on the environment state (State) S t 、Reward function (Reward) R t Output Action A t , Action A t Then it acts on the environment to achieve the optimal environment and effectively control the operation of the wind turbine.

[0104] The present invention provides a method for determining a wind turbine speed reference value based on deep reinforcement learning, comprising the following steps:

[0105] Step 1, determine the environmental status of the wind turbine:

[0106] like Figure 4 As shown, for a doubly fed wind turbine, the environmental conditions include: wind speed v w and wind speed change rate Air density ρ, rotor rotation angular velocity ω(t) of the doubly-fed wind turbine generator 1, d-axis component i of the stator current ds and the q-axis component i qs and the d-axis component i of the rotor current dr and the q-axis component i qr , the d-axis component of the stator voltage u ds and the q-axis component u qs and the d-axis component u of the rotor voltage dr and the q-axis component u qr , stator winding resistance R s , rotor winding resistance R r , the temperature of the stator winding T s and the rotor winding temperature T r ; Let the environmental state be S t , then

[0107] like Figure 5 As shown, for a permanent magnet direct-drive wind turbine, the environmental conditions include: wind speed v w and wind speed change rate Air density ρ, rotor rotation angular velocity ω(t) of permanent magnet synchronous wind turbine 4, d-axis component i of stator current d and the q-axis component i q , the d-axis component of the stator voltage u d and the q-axis component u q , stator inductance L, stator winding resistance R, rotor permanent magnet flux ψ f , the temperature of the stator winding T s ; Let the environmental state be S t , then

[0108] Step 2, design the reward function:

[0109] Reward function R t Designed for:

[0110] R t =R fast +R smooth +R T (1)

[0111] In the formula, R fast is the speed reward function, whose main goal is to quickly determine the optimal speed in a short time: when the wind speed is between the cut-in wind speed and the rated wind speed, quickly determine the speed to achieve maximum power point tracking (MPPT); when the wind speed exceeds the rated wind speed, determine the speed to output constant power, so as to achieve constant power control, improve the power generation efficiency of the wind turbine, and achieve efficient control. At the same time, it plays an important role in sudden changes in wind speed, especially when the wind speed changes drastically; R smoothis the speed fluctuation suppression and distortion rate reward function, whose main goal is to improve the steady-state performance of the generator, reduce the current distortion rate of the generator, and thus reduce the power generation loss. fast When the speed error cannot be further reduced, it plays a role in stabilizing the actual speed; R T It is a temperature rise reward function, which ensures that the temperature of the winding does not exceed the allowable temperature after the generator's own parameters change.

[0112] R fast Defined as:

[0113]

[0114] Where R1 and R2 are the maximum power point weight coefficients, which are used to quickly determine the speed to achieve MPPT when the wind speed is between the cut-in wind speed and the rated wind speed. R3 is the constant power weight coefficient, which determines the speed at which the output does not exceed the rated power (constant power) when the wind speed exceeds the rated wind speed. △ω is the speed increment, ω N is the rated speed of the wind turbine, P is the output power of the wind turbine; A d1 , A d2 , A d3 is the reference value of the power difference;

[0115] For a doubly-fed wind turbine, P = 1.5 (u ds i ds +u qs i qs )+1.5(u dr i dr +u qr i qr ); For permanent magnet direct drive wind turbine, P = 1.5 (u d i d +u q i q ).

[0116] R smooth Defined as:

[0117] For doubly-fed wind turbines,

[0118]

[0119] In the formula, R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of DFIG1; ω(tl) is the speed of DFIG1 at the lth moment before, L is the upper limit of the time to suppress the fluctuation, l and L are both positive integers, and L can be set to 10; R5 is the distortion rate dynamic weight coefficient, which is used to minimize the distortion rate, i dr * 、i qr *are the rotor current i of DFIG1 dr andi qr The reference value, A d4 is the reference value of the current difference;

[0120] For permanent magnet direct drive wind turbines, R smooth Defined as:

[0121]

[0122] Where R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of PMSG4; ω(tl) is the speed of PMSG4 at the first moment before, L is the upper limit of the time to suppress the fluctuation, l and L are both positive integers, and L can be set to 10; R5 is the distortion rate dynamic weight coefficient, which is used to minimize the distortion rate, i d * 、i q * are the stator current i of PMSG4 d andi q The reference value, A d4 is the reference value of the current difference;

[0123] R T Defined as:

[0124] For doubly-fed wind turbines,

[0125] R T =R6(T sal -T s ) / A d5 +R7(T ral -T r ) / A d6 (4)

[0126] Where R6 and R7 are the temperature weight coefficients of the stator winding and rotor winding respectively, T s , T r are the temperatures of the stator winding and rotor winding of DFIG1, T sal , T ral The allowable temperatures of the stator winding and rotor winding of DFIG1 (as specified in relevant standards or provided by the manufacturer), A d5 , A d6 They are the reference values ​​of the temperature difference between the stator winding and the rotor winding of DFIG1 respectively.

[0127] For permanent magnet direct drive wind turbines, R T Defined as:

[0128] R T =R8(T al -T s) / A d7 (4')

[0129] Where R8 is the stator winding temperature weight coefficient of PMSG4, T s 、T al They are respectively the temperature and allowable temperature of the stator winding of PMSG4 (as specified in relevant standards or provided by the manufacturer), A d7 is the base value of the temperature difference.

[0130] Step 3: Build an agent based on the TD3 algorithm according to the environment state:

[0131] like Figure 6 As shown in Figure 2, the agent consists of a strategy network and a strategy evaluation network; the strategy network consists of an Actor network and an Actor Target network, which are respectively connected through the corresponding network strategy π(S t |θ) and π ta (S t |θ ta ) realizes the action output A of the intelligent agent t (S t |θ); The strategy evaluation network consists of a Critic network and a Critic Target network, which are respectively and h = 1, 2, evaluate and improve the strategy used to achieve the action output, where θ, θ ta , They represent the weight coefficients of the Actor network, Actor Target network, Critic network, and CriticTarget network respectively.

[0132] Step 4, such as Figure 6 , Figure 7 As shown, the deep reinforcement learning TD3 algorithm is used to train agent 4:

[0133] The training process of the agent is divided into two parts: action exploration and iterative optimization, which rely on each other. In order to avoid the strategy falling into the local optimum, the neural network is iteratively updated during the continuous action exploration process, and the optimal speed reference value is finally obtained through training.

[0134] A1. Determine the training environment, including wind speed training conditions, air density training conditions and generator parameter training conditions, among which:

[0135] Wind speed training conditions: Figure 8 The actual wind speed curve v measured every 5 seconds at a certain wind farm is shown in Figure 2. wUsed for wind speed training. In order to enrich the training environment based on the real environment and obtain the optimal agent that can adapt to various wind conditions, random wind speed noise δv is inserted every 1s in the actual wind speed curve. w , the training wind speed v' is calculated according to formula (5): w (See Figure 8 ), and at the beginning of a new training round, by δv w Reset v' according to formula (5) w ; Figure 8 Two random wind speed curves v' are also shown in w1 、v' w2 .

[0136]

[0137] In the formula, δv w Subject to average distribution U; v wn is the rated wind speed; w d is the deviation width, w d ≥1;

[0138] Air density training conditions: In order to ensure that the agent can effectively cope with changes in air density, at the beginning of each training round, the air density training parameter ρ' is obtained by adding the parameter change additional term δρ to the air density ρ according to formula (6), and ρ' is reset by δρ according to formula (6) at the beginning of a new training round;

[0139]

[0140] In the formula, δρ follows the average distribution U; ρ n is the standard air density; w e is the deviation width, w e ≥1;

[0141] Generator parameter training conditions:

[0142] For the doubly fed wind turbine, in order to ensure that the agent 8 for DFIG1 can still have excellent performance when the DFIG1 parameters change, at the beginning of each training round, the parameters X of DFIG1 are trained according to formula (7): j , where j = 1, 2, 3, 4, representing the stator winding resistance R and rotor winding resistance R of DFIG1 respectively. r , stator winding temperature T s and the rotor winding temperature T r ;, by X j Add parameter change additional term δX j Get the training parameters X' of DFIG1 j ; Similarly, at the beginning of a new training round, pass δX jUpdate X' according to formula (7) j . The maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of max =1.2, g min =0.8, indicating the training process X' j The range of X j Between 80%-120%:

[0143]

[0144] In the formula, δX j Subject to average distribution U; w g is the deviation width, w g ≥1.

[0145] For permanent magnet direct drive wind turbines, in order to ensure that the agent 9 for PMSG4 can still have excellent performance when the PMSG4 parameters change, at the beginning of each training round, the parameters X of PMSG4 are trained according to formula (7'). j , where j = 1, 2, 3, representing the stator inductance L, stator winding resistance R and rotor permanent magnet flux ψ of PMSG4 respectively. f , by X j Add random parameter variation additional term δX j Get the training parameters X' of PMSG4 j ; Similarly, at the beginning of a new training round, pass δX j Update X' according to formula (7') j , can be obtained by the maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of max =1.2, g min =0.8, indicating the training process X' j The range of X j Between 80%-120%:

[0146]

[0147] In the formula, δX j Subject to average distribution U; w g is the deviation width, w g ≥1.

[0148] A2. Create an interface for the agent to interact with the environment information, initialize the network weight parameters of the agent, and set the relevant parameters for the agent training, as follows:

[0149] Initialize the weight parameters θ of the Actor main network and the Critic main network. And the corresponding target network Actor Target network, target network Critic Target network weight parameter θ ta , h=1,2;

[0150] Set the learning rate α of the Actor main network;

[0151] Set the discount factor γ for deep reinforcement learning;

[0152] Set the maximum number of training rounds N, the maximum number of steps in each training round T, the update frequency I of the target network Actor Target network and Critic Target network, and the weight of the Critic network Update frequency I p ,I ta ;

[0153] Load actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, wind turbine parameter X j and its variation additional term δX j ;

[0154] Set up and initialize the experience database.

[0155] A3. At the beginning of each training round, first according to the actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, wind turbine parameters X j and its variation additional term δX j Determine the wind speed training condition v' for this training round according to formula (5), formula (6), formula (7), and formula (7') respectively. wk , air density training condition ρ' k , generator parameter training condition X jk ,k=1,2,…,N;v' wk is v' of the kth training round w , ρ' k is the ρ' of the kth training round, X jk is the X of the kth training round j .

[0156] A4. Based on the current state S t , in order to prevent the network strategy π(S t|θ) falls into a local optimum, adding action exploration noise N to the output of the Actor main network t , get action A t (S t |θ), providing an opportunity to explore “better”, namely:

[0157] A t (S t |θ)=π(S t |θ)+N t (8)

[0158] In the formula, π(S t |θ) the output of the Actor network; N t The expected value is 0 and the variance is σ 2 The normal distribution of t satisfy:

[0159]

[0160] A5. After each action is executed, the next state of the environment S is obtained t+1 , and the reward function R is calculated according to formula (1) t , and the environmental state S t 、Action A t (S t |θ), reward function value R t , the environmental state S at the next moment t+1 Stored as an experience data set in the experience memory.

[0161] A6. Randomly and uniformly sample M small batches of samples from the experience database, that is, M experience data groups (S ti ,A ti ,R ti ,S ti+1 ), where i = 1, 2, 3,…,M.

[0162] A7. Update the weight parameters of the Critic main network in a way that minimizes the error Right now

[0163]

[0164] Where Y ti is the expected target value function, defined as:

[0165]

[0166] In the formula, ε represents the target smooth noise, which is the truncated normal distribution noise, that is:

[0167]

[0168] In the formula, σ clip is the standard deviation and c is the cutoff factor.

[0169] A8. Update the weight parameters θ, θ of the Actor network, Actor Target network, and Critic Target network in a delayed update manner ta and Specifically, the weights of the Critic network Every update I p The weight parameter θ of the Actor network is updated once. The weight of the Critic network Every update I ta Second, the weight parameters θ of the Actor Target network and the Critic Target network ta and Update once; if the number of training steps is the update frequency of the Critic network I p If it is a multiple of , then go to step A9, otherwise go to step A11; p ,I ta is the update frequency, which is a positive integer, and I ta >I p .

[0170] A9. Update the weight parameter θ of the Actor network by performing gradient ascent on the expected value J, that is,

[0171]

[0172] In the formula, the expression of J is:

[0173]

[0174] It means that J is derived with respect to θ:

[0175]

[0176] In the formula, represents π(S ti |θ) with respect to θ.

[0177] A10. If the number of training steps is the update frequency of the Critic network I ta If it is a multiple of , the weight parameter θ of the Actor Target network is adjusted by exponential smoothing according to formula (16). ta and the weight parameters of the Critic Target network To update, that is:

[0178]

[0179] Where τ is the update factor, τ≤1.

[0180] A11. If the number of training steps does not reach the maximum number of steps T for each training round, return to step A4; otherwise, the current training round ends, and the agent model obtained in this training round is saved, and the average reward function value R of this training round is calculated and saved. e .

[0181] A12. If the average reward function value R of n consecutive training rounds (for example, n = 10) e The absolute value of R set , where R set is a value close to 0 (let R set =0.01), the whole training process ends; otherwise, it goes to step A13.

[0182] A13. Determine whether the maximum number of training rounds N has been reached. If so, end the entire training process and start training again. If not, return to step A3 and start the next training round.

[0183] Step 5: For a doubly-fed wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the rotor-side converter 2 of DFIG1; for a permanent magnet direct-drive wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the machine-side converter 5 of PMSG4; then an actual speed control system based on the main control chip of the rotor-side converter 2 (machine-side converter 5) is established, and the real-time environmental state S of the doubly-fed wind turbine (permanent magnet direct-drive wind turbine) is determined. t , output the speed reference value ω of the doubly-fed wind turbine (permanent magnet direct-drive wind turbine) * (t).

[0184] The present invention is further described below with a preferred embodiment.

[0185] In order to verify the effectiveness of the method for determining the speed reference value of a wind turbine based on a deep reinforcement learning algorithm, a permanent magnet direct-drive wind turbine is taken as an example to carry out a simulation experiment on the control strategy of the speed reference value determined by the method of the present invention, and the simulation experiment results are compared and analyzed with those of the PI control strategy.

[0186] like Fig. 9 As shown, the main idea of ​​the control strategy of the speed reference value determined by the method of the present invention is: first, design the outer loop speed tracking controller 12: the speed reference value ω determined by the present invention is * The difference between the actual speed ω(t) and the actual speed ω(t) is sent to the PI controller to obtain the output of the outer loop speed tracking controller 12, namely: the q-axis component i of the stator current of PMSG4 qThe reference value i q * Secondly, the zero d-axis current control strategy and the current feedforward decoupling control strategy are adopted to design the inner loop current tracking controller 13 to realize the current tracking control of the permanent magnet synchronous wind turbine 4. The specific process is: 1) i q * Its actual value i q The difference input is the first PI controller 10, and its output is decoupled with the q-axis feedforward compensation term -Ri q -ω e L d i d +ω e ψ f Add together to get the q-axis component u of the stator voltage of PMSG4 q The reference value u q * ; Among them, ω e is the rotor electrical angular velocity of PMSG4, measured by encoder 7, L d is the d-axis component of the stator inductance; 2) let the d-axis component of the stator current of PMSG4 be i d The reference value i d * =0, and compare it with its actual value i d The second PI controller 11 is used as the differential input, and its output is decoupled with the d-axis feedforward decoupling compensation term -Ri d +ω e L q i q Add together to get the d-axis component u of the stator voltage of PMSG4 d The reference value u d * Among them, L q is the q-axis component of the stator inductance; 3) u d * 、u q * After dq / αβ coordinate transformation, we get u α * 、u β * ; Then, u α * and u β * After modulation by the SVPWM module, a driving signal is generated to drive the power switch tube of the machine-side converter 5 and control the operation of PMSG4.

[0187] like Fig.10 As shown in the figure, the control strategy of permanent magnet synchronous wind turbine based on PI control is Fig. 9 The difference between the control strategies shown is that the speed reference value ω of the outer loop speed tracking controller* The outer loop speed tracking controller 14 uses a traditional method to determine the speed reference value ω according to the fan power-speed characteristic curve provided by the manufacturer. * (t), and the difference between it and the actual speed ω(t) is sent to the PI controller to obtain the output of the outer loop speed tracking controller 14, that is, the q-axis component i of the stator current of PMSG4 q The reference value i q * .

[0188] The specific simulation parameters are shown in Table 1, Table 2, and Table 3.

[0189] Table 1 TD3 training related parameters

[0190] parameter Numeric The learning rate α of the Actor network <![CDATA[1×10 -3 ]]> Discount factor γ 0.995 The maximum number of training rounds M 1000 The maximum number of steps N in each training round 1200 The size of the experience memory bank B <![CDATA[2×10 5 ]]> The size of the empirical data set C <![CDATA[2 9 =512]]> <![CDATA[Policy update frequency I p > 3 <![CDATA[Target update frequency I ta > 12 Update factor τ 0.005

[0191] Table 2 Wind turbine related parameters

[0192] parameter Numeric <![CDATA[Rated power P N > 3kW <![CDATA[Cut-in wind speed v wi > 3m / s <![CDATA[Rated wind speed v wn > 9m / s

[0193] Table 3 Permanent magnet synchronous wind turbine generator set related parameters

[0194] parameter Numeric <![CDATA[Rated power P N > 3kW <![CDATA[Rated speed n N > 360r / min Pole pair number P 8 Stator inductance L 8.3mH Stator resistance R 0.53Ω <![CDATA[Rotor permanent magnet flux linkage ψ f > 0.34Wb DC side voltage 650V

[0195] Fig.11 (a) and (b) are respectively the stator current waveform and distortion rate when the wind speed is 8m / s under the standard parameters of PMSG4 (see Table 3) and the method of the present invention and the PI control strategy. Fig.11 It can be seen that when the wind speed is 8 m / s, the current distortion rates of the two are 0.35% and 2.95% respectively. It can be seen that the control effect of the control strategy using the method of the present invention is better.

[0196] Fig.12 (a) and (b) are the results of the PMSG4 parameter change (R, L increase by 15%, ψ f The stator current waveform and distortion rate when the wind speed is 8m / s are obtained by using the method of the present invention and the PI control strategy. Fig.12 It can be seen that when the wind speed is 8 m / s, the current distortion rates of the two are 0.36% and 4.22% respectively. It can be seen that the control effect of the control strategy using the method of the present invention is better, and it has a stronger ability to cope with parameter changes.

[0197] Fig.13 The power generation efficiency of PMSG4 at different wind speeds using the method of the present invention and the PI control strategy. Power generation efficiency η=P dc / P w , where P dc is the DC side output power, Pw Capture power for wind turbines. Fig.13 It can be seen that at rated wind speed, the power generation efficiency of the two is about 92% and 89% respectively. It can be seen that the control strategy using the method of the present invention is more efficient and has a better control effect.

[0198] In summary, the present invention adopts a deep reinforcement learning algorithm, which can quickly and accurately obtain the optimal speed reference value of the wind turbine, and can effectively deal with the influence of various environmental changes such as wind speed, air density, wind turbine wear and aging on the control and safe operation of the unit. It plays an important role in reducing losses, improving power generation efficiency, and realizing rapid, safe and stable control of wind turbines.

Claims

1. A method for determining a reference value of a wind turbine speed based on deep reinforcement learning, wherein the wind turbine is divided into a doubly-fed wind turbine and a permanent magnet direct-drive wind turbine, both of which include a wind turbine generator and a converter; the wind turbine generator is divided into a doubly-fed wind turbine generator and a permanent magnet synchronous wind turbine generator, the rotor winding of the doubly-fed wind turbine generator is connected to its rotor-side converter; the stator winding of the permanent magnet synchronous wind turbine generator is connected to its machine-side converter; characterized in that, The steps include: Step 1, determining the environmental state of the wind turbine: For the doubly-fed wind turbine, the environmental conditions include: wind speed v w and wind speed change rate air density ρ, the rotor rotation angular velocity ω(t) of the doubly-fed wind turbine generator, the d-axis component i of the stator current of the doubly-fed wind turbine generator ds and the q-axis component i qs and the d-axis component i of the rotor current dr and the q-axis component i qr , the d-axis component u of the stator voltage of the doubly-fed wind turbine ds and the q-axis component u qs and the d-axis component u of the rotor voltage dr and the q-axis component u qr , the stator winding resistance R of the doubly-fed wind turbine s , rotor winding resistance R r , the temperature T of the stator winding of the doubly-fed wind turbine s and the rotor winding temperature T r ; The environmental state is recorded as S t , then For the permanent magnet direct drive wind turbine, the environmental conditions include: wind speed v w and wind speed change rate air density ρ, the rotor rotation angular velocity ω(t) of the permanent magnet synchronous wind turbine, the d-axis component i of the stator current of the permanent magnet synchronous wind turbine d and the q-axis component i q , the d-axis component u of the stator voltage of the permanent magnet synchronous wind turbine d and the q-axis component u q The stator inductance L, stator winding resistance R, rotor permanent magnet flux linkage ψ of the permanent magnet synchronous wind turbine f , the temperature T of the stator winding of the permanent magnet synchronous wind turbine s ; The environmental state is recorded as S t , then Step 2, design the reward function: The reward function R t Designed for: R t =R fast +R smooth +R T (1) In the formula, R fast is the speed reward function, R smooth is the speed fluctuation suppression and distortion rate reward function, R T is the temperature rise reward function; R fast Defined as: Where R1 and R2 are the maximum power point weight coefficients, which are used to quickly determine the speed for maximum power point tracking when the wind speed is between the cut-in wind speed and the rated wind speed. R3 is the constant power weight coefficient, which is used to determine the speed for outputting rated power when the wind speed exceeds the rated wind speed. △ω is the speed increment, ω N A is the rated speed of the wind turbine, and P is the output power of the wind turbine; d1 , A d2 , A d3 is the reference value of the power difference; For the doubly-fed wind turbine, R smooth Defined as: Wherein, R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of the generator; ω(tl) is the speed of the doubly fed wind turbine at the first moment, L is the upper limit of the time for suppressing fluctuations, and l and L are both positive integers; R5 is the distortion rate fast dynamic weight coefficient, which is used to minimize the distortion rate, i dr * 、i qr * are respectively the d-axis component i of the rotor current of the doubly-fed wind turbine generator dr and the q-axis component i qr The reference value, A d4 is the reference value of the current difference; For the permanent magnet direct drive wind turbine, R smooth Defined as: Wherein, R4 is the stability weight coefficient, which is used to reduce the speed fluctuation of the generator; ω(tl) is the speed of the permanent magnet synchronous wind turbine at the first moment, L is the upper limit of the time for suppressing fluctuations, l and L are both positive integers; R5 is the distortion rate fast dynamic weight coefficient, which is used to minimize the distortion rate, i d * 、i q * are respectively the d-axis component i of the stator current of the permanent magnet synchronous wind turbine d and the q-axis component i q The reference value, A d4 is the reference value of the current difference; For the doubly-fed wind turbine, R T Defined as: Where R6 and R7 are the temperature weight coefficients of the stator winding and rotor winding respectively, T s , T r are the temperatures of the stator winding and rotor winding of the doubly-fed wind turbine generator, T sal , T ral are the allowable temperatures of the stator winding and rotor winding of the doubly-fed wind turbine generator, A d5 , A d6 are reference values ​​of the temperature difference between the stator winding and the rotor winding of the doubly-fed wind generator; For the permanent magnet direct drive wind turbine, R T Defined as: R T =R8(T al -T s ) / A d7 (4’) Where R8 is the stator winding temperature weight coefficient of the permanent magnet synchronous wind turbine, T s is the temperature of the stator winding of the permanent magnet synchronous wind turbine, T al is the allowable temperature of the stator winding of the permanent magnet synchronous wind turbine, A d7 is the reference value of temperature difference; Step 3: construct an intelligent agent based on the TD3 algorithm according to the environmental state: The agent is composed of a strategy network and a strategy evaluation network; the strategy network is composed of an Actor network and an ActorTarget network, respectively through the corresponding network strategy π(S t |θ) and π ta (S t |θ ta ) realizes the action output A of the agent t (S t |θ); The strategy evaluation network consists of a Critic network and a Critic Target network, which are respectively and h = 1, 2, evaluate and improve the strategy used to achieve the action output, where θ, θ ta , Represent the weight coefficients of the Actor network, Actor Target network, Critic network and CriticTarget network respectively; Step 4: training the agent: A1. Determine the training environment, including wind speed training conditions, air density training conditions and generator parameter training conditions, among which: Wind speed training condition: insert random wind speed noise δv every 1s into the actual wind speed curve w , the training wind speed v' is calculated according to formula (5): w , and at the beginning of a new training round, by δv w Reset v' according to formula (5) w ; In the formula, δv w Subject to average distribution U; v wn is the rated wind speed; w d is the deviation width, w d ≥1; Air density training conditions: In order to ensure that the agent can effectively cope with changes in air density, at the beginning of each training round, the air density training parameter ρ' is obtained by adding the parameter change additional term δρ to the air density ρ according to formula (6), and ρ' is reset by δρ according to formula (6) at the beginning of a new training round; In the formula, δρ follows the average distribution U; ρ n is the standard air density; w e is the deviation width, w e ≥1; Generator parameter training conditions: For the doubly-fed wind turbine, in order to ensure that the agent can still have excellent performance when the generator parameters change, at the beginning of each training round, the parameters X of the doubly-fed wind turbine are trained according to formula (7). j , where j = 1, 2, 3, 4, respectively representing the stator winding resistance R and the rotor winding resistance R of the doubly-fed wind turbine generator. r , stator winding temperature T s and the rotor winding temperature T r ;, by X j Add parameter change additional term δX j Get the training parameter X' of the permanent magnet synchronous wind turbine j ; Similarly, at the beginning of a new training round, pass δX j Update X' according to formula (7) j , and by the maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of In the formula, δX j Subject to average distribution U; w g is the deviation width, w g ≥1; For the permanent magnet direct-drive wind turbine, in order to ensure that the agent can still have excellent performance when the generator parameters change, at the beginning of each training round, the parameters X of the permanent magnet synchronous wind turbine are trained according to formula (7'). j , where j = 1, 2, 3, respectively representing the stator inductance L, stator winding resistance R and rotor permanent magnet flux ψ of the permanent magnet synchronous wind turbine f , by X j Add random parameter variation additional term δX j Get the training parameter X' of the permanent magnet synchronous wind turbine j ; Similarly, at the beginning of a new training round, pass δX j Update X' according to formula (7') j , and by the maximum additional factor g max and the minimum additional factor g min Determine X' j The upper and lower limits of In the formula, δX j Subject to average distribution U; w g is the deviation width, w g ≥1; A2. Create an interface for the agent to interact with the environment information, initialize the network weight parameters of the agent, and set the relevant parameters for the agent training, as follows: Initialize the weight parameters θ of the Actor main network and the Critic main network, And the corresponding target network Actor Target network, target network Critic Target network weight parameter θ ta , h=1,2; Set the learning rate α of the Actor main network; Set the discount factor γ for deep reinforcement learning; Set the maximum number of training rounds N, the maximum number of steps in each training round T, the update frequency I of the target network Actor Target network and Critic Target network, and the weight of the Critic network Update frequency I p ,I ta ; Load actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, the wind turbine parameter X j and its variation additional term δX j ; Set up and initialize the experience database; A3. At the beginning of each training round, first according to the actual wind speed v w , wind speed deviation noise δv w , actual air density ρ, air density deviation noise δρ, the wind turbine parameter X j and its variation additional term δX j Determine the wind speed training condition v' for this training round according to formula (5), formula (6), formula (7), and formula (7') respectively. wk , air density training condition ρ' k , generator parameter training condition X jk ,k=1,2,…,N;v' wk is v' of the kth training round w , ρ' k is the ρ' of the kth training round, X jk is the X of the kth training round j ; A4. Based on the current state S t , in order to prevent the network strategy π(S t |θ) falls into a local optimum, adding action exploration noise N to the output of the Actor main network t , get action A t (S t |θ), providing an opportunity to explore "better", namely: A t (S t |θ)=π(S t |θ)+N t (8) In the formula, π(S t |θ) the output of the Actor network; N t The expected value is 0 and the variance is σ 2 The normal distribution of t satisfy: A5. After each action is executed, the next state of the environment S is obtained t+1 , and the reward function R is calculated according to formula (1) t , and the environmental state S t 、Action A t (S t |θ), reward function value R t , the environmental state S at the next moment t+1 storing as an experience data set in the experience memory; A6. Randomly and uniformly sample M small batches of samples from the experience database, that is, M experience data groups (S ti ,A ti ,R ti ,S ti+1 ), where i = 1, 2, 3, …, M; A7. Update the weight parameters of the Critic main network in a way that minimizes the error Right now Where Y ti is the expected target value function, defined as: In the formula, ε represents the target smooth noise, which is the truncated normal distribution noise, that is: In the formula, σ clip is the standard deviation, c is the cutoff factor; A8. Update the weight parameters θ, θ of the Actor network, Actor Target network, and Critic Target network in a delayed update manner ta and Specifically, the weights of the Critic network Every update I p The weight parameter θ of the Actor network is updated once. The weight of the Critic network Every update I ta Second, the weight parameters θ of the Actor Target network and the Critic Target network ta and Update once; if the number of training steps is the update frequency I of the Critic network p If it is a multiple of , then go to step A9, otherwise go to step A11; p ,I ta is the update frequency, which is a positive integer, and I ta >I p ; A9. Update the weight parameter θ of the Actor network by performing gradient ascent on the expected value J, that is, In the formula, the expression of J is: It means that J is derived with respect to θ: In the formula, represents π(S ti |θ) to derive θ; A10. If the number of training steps is the update frequency I of the Critic network ta If it is a multiple of , the weight parameter θ of the Actor Target network is adjusted by exponential smoothing according to formula (16). ta and the weight parameters of the Critic Target network To update, that is: Where, τ is the update factor, τ≤1; A11. If the number of training steps does not reach the maximum number of steps T for each training round, return to step A4; otherwise, the current training round ends, and the agent model obtained in this training round is saved, and the average reward function value R of this training round is calculated and saved. e ; A12. If the average reward function value R for n consecutive training rounds e The absolute value of R set , where R set is a positive real number close to 0, the entire training process ends; otherwise, go to step A13; A13. Determine whether the maximum number of training rounds N has been reached. If reached, the entire training process is terminated and training is restarted. If not reached, return to step A3 and start the next training round. Step 5: For the doubly-fed wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the rotor-side converter of the doubly-fed wind turbine; for the permanent magnet direct-drive wind turbine, the intelligent agent model trained in step 4 is transplanted into the main control chip of the machine-side converter of the permanent magnet synchronous wind turbine; then an actual speed control system based on the main control chip of the converter is established, and the actual speed control system is controlled according to the real-time environmental state S of the wind turbine. t , output the speed reference value ω of the wind turbine * (t).

Citation Information

Patent Citations

  • Variable pitch control method based on depth determinacy policy gradient compensation

    CN110374804A

  • Reactive voltage intelligent optimization method for new energy power grid containing high-proportion wind and light

    CN114336667A

  • Multi-device cooperative broadband oscillation suppression method for offshore wind power flexible direct current grid-connected system

    CN114512995A

  • Wind turbine generator power grid inertia support method based on deep reinforcement learning

    CN115133549A

  • WADC design method of wind power generation system based on reinforcement learning

    CN115276086A

Cited By

  • Vortex power generation method based on subway tunnel driving wind excitation

    CN122082936A