An active power load shedding optimization method for wind farms based on a dual-input convex neural network
Through the method based on the dual input convex neural network, the simulation environment and model are constructed, and the problem of fatigue load not being considered in the active power distribution of traditional wind farms is solved, and the fatigue damage of wind turbines and the optimal allocation of active power are realized, reducing the solution difficulty and operation and maintenance costs.
Patent Information
- Application Number
- CN202510570229.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-05-06
AI Technical Summary
The traditional wind farm active power distribution method fails to fully consider the fatigue load of the wind turbine, resulting in excessive fatigue damage to the unit, and the calculation of equivalent fatigue load is difficult to solve online, and it has strong nonlinearity and non-convexity.
Using a method based on a dual input convex neural network, a simulation environment is constructed to obtain data. The nonlinear convex model of the wind turbine unit is fitted through the input convex neural network model, the time window load timing data is generated, and the nonlinear convex model of fatigue load is established, and the model prediction control algorithm is used to perform active optimization control to obtain the optimal solution for active power allocation that meets the safety and stability constraints.
It effectively suppresses the fatigue load of the wind turbine, reduces the operation and maintenance cost, and while meeting the safety and stability constraints of the wind farm, it realizes the reduction of the fatigue load throughout the entire field, and the solution difficulty is also reduced.
Smart Images

Figure CN120087241B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wind farms, and in particular relates to a wind farm active load reduction optimization method based on a dual-input convex neural network. Background Art
[0002] In the traditional active power distribution method, after receiving the grid command, the wind farm active power controller directly sends the active power reference value to each wind turbine according to the principle of average distribution based on the available power of each unit, without considering the fatigue load of the wind turbine. The specific method is: obtain the available active power of each wind turbine and the grid dispatching command; the power of each wind turbine is: grid dispatching command × available power of the i-th wind turbine ÷ total available power of the wind farm, ignoring the wind speed conditions and control inertia of each wind turbine, which will further aggravate the fatigue damage of the wind turbine. On the other hand, in the evaluation index of fatigue load, equivalent fatigue load is often used as a quantitative index. The calculation of equivalent fatigue load requires the use of rain flow counting method to statistically calculate the cyclic mean and amplitude of load time series data. This calculation process is difficult to solve online and has strong nonlinearity and non-convexity.
[0003] In response to the above challenges, the present invention proposes an optimization control strategy for active load shedding in wind farms based on a dual-input convex neural network. Summary of the invention
[0004] The present invention provides a wind farm active load reduction optimization method based on a dual-input convex neural network, so as to at least solve the problem that the traditional active power allocation strategy in the prior art fails to fully consider the influence of fatigue load, thus restricting the economic benefits of the wind power industry.
[0005] The embodiment of the present application provides a method for optimizing active load shedding in a wind farm based on a dual-input convex neural network, the method comprising:
[0006] Build a simulation environment to obtain simulation data;
[0007] The simulation data is fitted by using the input convex neural network model to obtain the nonlinear convex model of the wind turbine, and the main shaft torque is output through the nonlinear convex model of the wind turbine;
[0008] The time window load time series data is generated by fitting the input convex neural network model, and the nonlinear convex model of fatigue load is obtained based on the mapping relationship between the time window load time series data and the equivalent fatigue load;
[0009] The main shaft torque output by the nonlinear convex model of the wind turbine is used as the input of the nonlinear convex model of fatigue load to obtain a dual-input convex neural network pre-training model;
[0010] Perform active optimization control solution on the pre-trained model of the dual-input convex neural network to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm.
[0011] Furthermore, construct a simulation environment to obtain simulation data, specifically including:
[0012] Construct a simulation environment to obtain the mapping relationships between the main shaft torque and the inflow wind speed, generator speed, output power, pitch angle, generator torque, and active power reference value of the wind farm, and obtain simulation data based on these mapping relationships;
[0013] Mix the simulation data to obtain a data set and the test set ;
[0014] Among them, represents the input data, represents the output data; the input data includes: inflow wind speed, generator speed, output power, pitch angle, generator torque, active power reference value, and the output data includes: main shaft torque;
[0015] The simulation environment includes: aerodynamic simulation environment, drivetrain simulation environment, generator simulation environment, tower simulation environment, and control system simulation environment.
[0016] Furthermore, use the input convex neural network model to fit the simulation data to obtain a non-linear convex model of the wind turbine. Among them, the expression of the input convex neural network model is:
[0017]
[0018] In the formula, is a convex function with respect to , is the output vector of the input convex neural network model, is the set of weight and bias parameters of the input convex neural network model, is the output vector of the (i + 1)-th layer of the input convex neural network model, is the non-direct layer weight of the i-th layer of the input convex neural network model, is the output of the i-th layer of the input convex neural network model, is the direct layer weight of the i-th layer of the input convex neural network model, is the input vector of the input convex neural network model, is the bias of the i-th layer of the input convex neural network model, is the set of direct layer weights of the input convex neural network model, is the set of non-direct layer weights of the input convex neural network model, is the set of bias terms input to the convex neural network model, is the activation function;
[0019] Use the dataset to train the input convex neural network model;
[0020] Improve the convergence and accuracy of the input convex neural network model through the loss function to obtain the non - linear convex model of the wind turbine. The expression of the loss function is:
[0021]
[0022] In the formula, is the loss function, is to minimize the model error, is to minimize the model gradient error, is the output vector of the improved input convex neural network model, is the input vector of the improved input convex neural network model, is the gradient of the input convex neural network model, is the simulation environment gradient calculated using the automatic gradient calculation tool.
[0023] Furthermore, generate the time - window load time - series data through fitting with the input convex neural network model. Based on the mapping relationship between the time - window load time - series data and the equivalent fatigue load, obtain the non - linear convex model of the fatigue load, specifically including:
[0024] Slice the obtained main - shaft torque with a sliding window of a preset window length to divide it into a main - shaft torque test set and a main - shaft torque data set;
[0025] Through the rain - flow counting method, calculate the load - cycle amplitude and mean value of the main - shaft torque of each sliding window to obtain the equivalent fatigue load. Its calculation formula is:
[0026]
[0027] In the formula, is the load amplitude of the i - th level, is the number of cycles of the - th level load, m is the Wohler index of the S - N curve,
[0028] Use the input convex neural network model to fit the main - shaft torque to generate the time - window load time - series data;
[0029] Based on the mapping relationship between the time - window load time - series data and the equivalent fatigue load, obtain the non - linear convex model of the fatigue load.
[0030] Furthermore, perform active power optimization control on the pre-trained model of the dual-input convex neural network to obtain the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm, specifically including:
[0031] Construct the active power reduction optimization objective as:
[0032]
[0033] where, is the equivalent fatigue load of the i-th wind turbine calculated according to the pre-trained model of the dual-input convex neural network, obtained from the lookup table constructed according to and is the active power reduction optimization objective function;
[0034] Construct the constraint conditions of the optimization problem as:
[0035]
[0036] where, is the active power reference value, is the maximum available power of a single unit, is the minimum available power, is the equality constraint function, is the sum of the active power of the whole field, is the power grid dispatching instruction, is the inequality constraint function, is the change in active power within 1 time step, is the maximum power ramp constraint of a single unit;
[0037] Use the model predictive control algorithm to optimize and solve the pre-trained model of the dual-input convex neural network to obtain the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm.
[0038] Furthermore, the model predictive control algorithm is the sequential least squares programming method;
[0039] Use the model predictive control algorithm to optimize and solve the pre-trained model of the dual-input convex neural network to obtain the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm, including:
[0040] According to the traditional proportional distribution algorithm, calculate the active power reference of each wind turbine in the wind farm as the initial point;
[0041] Generate a lookup table of wind turbine fatigue loads according to the pre-trained model of the dual-input convex neural network at a scale of 10W;
[0042] Use the sequential least squares programming method to solve the optimization problem:
[0043] At the k-th iteration step, the first-order Taylor expansion is performed on the active power load shedding optimization objective and the optimization problem constraint conditions using the sequential least squares programming method:
[0044] For the active power load shedding optimization objective:
[0045]
[0046] Where, is the active power load shedding optimization objective function of the active power reference value, is the first-order Taylor expansion of the active power reference value at the k-th iteration at , is the gradient vector of the active power reference value at the k-th iteration at , is the search direction;
[0047] For the optimization problem constraint conditions:
[0048]
[0049]
[0050] In the formula, is the first-order Taylor expansion of the equality constraint function at the k-th iteration at , is the gradient vector of the equality constraint function at the k-th iteration at , is the first-order Taylor expansion of the inequality constraint function at the k-th iteration at , is the gradient vector of the inequality constraint function at the k-th iteration at ;
[0051] The sequential least squares programming method transforms the original problem into a constrained quadratic programming problem by introducing Lagrange multipliers and penalty functions, and its expression is:
[0052]
[0053] Where, is the Hessian matrix of the objective function at ;
[0054] The search direction is obtained by solving the quadratic programming problem;
[0055] The current point is updated using a fixed step size, and its expression is:
[0056]
[0057] Where, is the step size, which is taken as 1 here, is the update direction at the is the active power reference value updated after the
[0058] After completing the iteration, obtain the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm;
[0059] Terminate the iteration when any of the following conditions is met:
[0060] The change in the objective function is less than the threshold;
[0061] The gradient norm is 0;
[0062] The maximum number of iterations is reached.
[0063] Furthermore, construct an aerodynamic simulation environment, including:
[0064] Calculate the aerodynamic torque and thrust, and the calculation formulas are as follows:
[0065]
[0066]
[0067] Wherein, is the aerodynamic torque, is the thrust, is the power coefficient, is the thrust coefficient, is the blade length, is the air density, is the effective wind speed on the blade of the wind turbine, is the tip speed ratio, and the definition formula is ;
[0068] Construct a drive train simulation environment, including:
[0069] Adopt a single-mass model, and combine the rotor mass and the generator mass into an equivalent mass, and the formula is as follows:
[0070]
[0071] According to the low-speed shaft motion equation, calculate the rotational speed relationship between the rotor and the generator, and the formula is as follows:
[0072]
[0073]
[0074] Wherein, is the equivalent mass, is the mass of the wind turbine rotor, is the mass of the generator, is the gearbox transmission ratio, is the generator torque, is the rotor, is the rotational speed of the generator.
[0075] Furthermore, a generator simulation environment is constructed, including:
[0076] In the torque control loop, vector control with millisecond-level high-precision response is adopted, and the dynamic characteristics are ignored, that is:
[0077]
[0078] where is the generator reference torque.
[0079] Furthermore, a tower simulation environment is constructed, including:
[0080] The calculation formula for the front and rear bending moments of the tower is:
[0081]
[0082] where represents the front and rear bending moments of the tower, represents the height of the tower.
[0083] Furthermore, a control system simulation environment is constructed, including:
[0084] When the wind speed is lower than the rated wind speed it is defined as the first mode;
[0085] When the wind speed is greater than the rated wind speed it is defined as the second mode;
[0086] When operating in the first mode, the pitch control stops, ;
[0087] When operating in the second mode, the measured generator rotational speed is filtered through a low-pass filter, and the filtered rotational speed is:
[0088]
[0089] where is the filtered rotational speed, is the time constant of the filter, is the generator rotational speed, is the Laplace operator;
[0090] Based on the filtered rotational speed The deviation from the rated value of the rotational speed, calculate the reference value of the pitch angle, and its expression is:
[0091]
[0092] Wherein, is the reference value of the pitch angle, is the proportional gain of the PI controller, is the integral gain of the PI controller, is the correction factor, , wherein, and are constants.
[0093] It can be seen from the above technical solutions that the present invention has the following advantages:
[0094] In the active power reduction optimization method for a wind farm based on a dual-input convex neural network provided in this application, by adjusting the reference value of the active power of each wind turbine generator to suppress fatigue loads and reduce the additional operation and maintenance costs caused by excessive fatigue of the units;
[0095] The present invention adopts an input convex neural network model, models the equivalent fatigue load of the main shaft torque of the wind turbine generator as a convex function form based on a sliding time window, transforms the non-convex optimization problem into a convex optimization problem for solution, and reduces the solution difficulty. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] In order to more clearly illustrate the technical solutions of this application, the drawings required to be used in the description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0097] Figure 1 is a flowchart of the active power reduction optimization method for a wind farm based on a dual-input convex neural network.
[0098] Figure 2 is a structural diagram of the input convex neural network model.
[0099] Figure 3 is a prediction effect diagram of the main shaft torque of the non-linear convex model of the wind turbine generator.
[0100] Figure 4 is a prediction effect diagram of the equivalent fatigue load of the pre-trained model of the dual-input convex neural network. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0101] In order to make the purpose, features and advantages of this application more obvious and easy to understand, the technical solution protected by this application will be clearly and completely described below using specific embodiments and drawings. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this patent, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this patent.
[0102] The existing active power allocation method ignores the wind speed conditions and control inertia of each wind turbine, which will further aggravate the fatigue damage of the wind turbine. The method proposed by the present invention allocates the total active power of the wind turbine required by the grid dispatching instruction according to the working state and wind speed of each wind turbine, taking into account the safety and stability constraints of the wind farm, thereby reducing the fatigue load of the entire farm.
[0103] In the calculation of equivalent fatigue load, in order to include it in the optimization index, it is required to have online computing capability. In order to reduce the difficulty of solving, the model should have convexity. To this end, the present invention adopts an input convex neural network to model the equivalent fatigue load of the wind turbine main shaft torque as a convex function based on a sliding time window, and transforms the non-convex optimization problem into a convex optimization problem for solution, thereby reducing the difficulty of solving.
[0104] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0105] Figure 1 The flowchart of a wind farm active load reduction optimization method based on a dual-input convex neural network provided in an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a wind farm active load reduction optimization method based on a dual-input convex neural network, which specifically includes the following steps:
[0106] Step S1: construct a simulation environment to obtain simulation data;
[0107] Step S2: fitting the simulation data using the input convex neural network model to obtain a nonlinear convex model of the wind turbine, and outputting the main shaft torque through the nonlinear convex model of the wind turbine;
[0108] Step S3: generating time window load time series data by fitting the input convex neural network model, and obtaining a nonlinear convex model of fatigue load based on the mapping relationship between the time window load time series data and the equivalent fatigue load;
[0109] Step S4: Use the main shaft torque output from the non - linear convex model of the wind turbine as the input for the non - linear convex model of the fatigue load to obtain a pre - trained dual - input convex neural network model, and maintain the convexity of the pre - trained dual - input convex neural network model. The inputs of the pre - trained dual - input convex neural network model are: inflow wind speed, generator speed, output power, pitch angle, generator torque, active power reference, historical data of main shaft torque and tower thrust, and the output is the equivalent fatigue load. Figure 4 It is the prediction effect of the equivalent fatigue load (Damage Equivalent Load) of the pre - trained dual - input convex neural network model; Figure 4 In, Damage Equivalent Load, that is, the equivalent fatigue load, is used to describe that in fatigue analysis, a complex load history is simplified into an equivalent simple load to facilitate the evaluation of the fatigue life of the entire main shaft of the wind farm under this load. The abscissa represents time, with the unit of seconds, indicating the change of data over time; the ordinate represents the equivalent fatigue load; Rain flowcounting method represents the rain - flow counting method, which is used to analyze fatigue load data to determine the number and amplitude of load cycles, so as to evaluate the fatigue life of the entire main shaft of the wind farm; CNN method represents the Convolutional Neural Network method. The figure shows the variation of the equivalent fatigue load calculated by two methods (rain - flow counting method and CNN method) over time. By comparing the results of these two methods, their performance and accuracy in predicting the equivalent fatigue load can be analyzed.
[0110] Step S5: Conduct active optimization control solution for the pre - trained dual - input convex neural network model to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm.
[0111] Build a simulation environment to obtain simulation data, specifically including:
[0112] Build a simulation environment to obtain the mapping relationships between the main shaft torque and the inflow wind speed, generator speed, output power, pitch angle, generator torque, and active power reference value of the wind farm respectively, and obtain simulation data based on these mapping relationships;
[0113] Mix the simulation data to obtain a data set And a test set , where, represents the input data, represents the output data; the input data includes: inflow wind speed, generator speed, output power, pitch angle, generator torque, active power reference value, and the output data includes: main shaft torque.
[0114] The simulation environment includes: an aerodynamic simulation environment, a drive train simulation environment, a generator simulation environment, a tower simulation environment, and a control system simulation environment.
[0115] The inflow wind speed includes high wind speed data and low wind speed data, and the high wind speed data and low wind speed data are used as the inflow wind speed. Simulation is carried out through the constructed simulation environment to obtain simulation data; after mixing the obtained simulation data, it is divided into a data set required for model training and a test set . is the input, including inflow wind speed, generator speed, output power, pitch angle, generator torque, active power reference value; is the output, including main shaft torque.
[0116] Construct an aerodynamic simulation environment, including:
[0117] Calculate the aerodynamic torque and thrust, and the calculation formulas are as follows:
[0118]
[0119]
[0120] Among them, is the aerodynamic torque, is the thrust, is the power coefficient, is the thrust coefficient, is the blade length, is the air density, is the effective wind speed on the wind turbine blade, is the tip speed ratio, and the definition formula is ; the calculation through the above formula provides basic data for subsequent obtaining of the mapping relationship.
[0121] Construct a drive train simulation environment, including:
[0122] Assume that the drive train is rigidly connected, and adopt a single mass block model. Combine the wind turbine mass and the generator mass into an equivalent mass, and the formula is as follows:
[0123]
[0124] According to the low-speed shaft motion equation, calculate the rotational speed relationship between the rotor and the generator, and the formula is as follows:
[0125]
[0126]
[0127] Among them, is the equivalent mass, is the mass of the wind turbine rotor, is the mass of the generator, is the gearbox transmission ratio, is the generator torque, is the rotor, is the rotational speed of the generator; The above calculation results reflect the mechanical relationships of various parts in the transmission system, are interrelated with other environmental parameters, and affect the final mapping relationship.
[0128] Construct a generator simulation environment, including:
[0129] In the torque control loop, vector control with millisecond-level high-precision response is adopted, ignoring the dynamic characteristics, that is:
[0130]
[0131] Among them, is the reference torque of the generator; Here, the generator torque is approximately equal to the reference torque of the generator , indicating that under this control strategy, the actual generator torque can closely track the reference torque of the generator. By precisely controlling the generator torque , it is possible to ensure that the generator outputs stable electric energy to meet the requirements of the power grid. In the case where the power grid has strict requirements for power quality and power stability, precise regulation of the generator torque can enable the wind turbine to better connect to the power grid and improve the reliability and stability of power supply.
[0132] Construct a tower simulation environment, including:
[0133] The calculation formula for the bending moment of the tower in the front and rear directions is:
[0134]
[0135] Among them, represents the bending moment of the tower in the front and rear directions, represents the height of the tower.
[0136] Construct a control system simulation environment, including:
[0137] The power coefficient of the wind turbine control system ;
[0138] When the wind speed is lower than the rated wind speed , the pitch control stops, that is , and by adjusting the generator torque to track the optimal rotor speed. At this time, ; is the pitch angle (for other parts Does the physical meaning it represents refer to the pitch angle? (It is necessary to ensure that one parameter has only one physical meaning);
[0139] When the wind speed is greater than the rated wind speed the generator torque remains at the rated value, and pitch control is initiated to prevent the generator speed from overspeeding. At this time, the maximum power of the wind turbine is limited to the rated value, that is ; is the maximum power of the wind turbine, is the available power of the wind turbine, is the rated power of the wind turbine;
[0140] When the wind speed is lower than the rated wind speed it is defined as the first mode;
[0141] When the wind speed is greater than the rated wind speed it is defined as the second mode;
[0142] When operating in the first mode, pitch control stops, ;
[0143] When operating in the second mode, the measured generator speed is filtered through a low-pass filter, and the filtered speed is:
[0144]
[0145] where, is the filtered speed, is the time constant of the filter, is the generator speed, is the Laplace operator;
[0146] Based on the deviation between the filtered speed and the rated value of the speed the reference value of the pitch angle is calculated, and its expression is:
[0147]
[0148] where, is the reference value of the pitch angle, is the proportional gain of the PI controller, is the integral gain of the PI controller, is the correction factor, , where, and are constants.
[0149] In order to model the mapping relationships between the main shaft torque and the inflow wind speed, generator speed, output power, pitch angle, generator torque, and active power reference value of a wind farm as a non - linear convex model, the present invention uses an input - convex neural network model for fitting. The structure of the input - convex neural network model is as Figure 2 shown.
[0150] Using the input - convex neural network model to fit the data set to obtain a non - linear convex model of a wind turbine. Among them, the expression of the input - convex neural network model is:
[0151]
[0152] In the formula, is a convex function with respect to , is the output vector of the input - convex neural network model, is the set of weight and bias parameters of the input - convex neural network model, is the output vector of the (i + 1)-th layer of the input - convex neural network model, is the non - direct - connection layer weight of the i - th layer of the input - convex neural network model, is the output of the i - th layer of the input - convex neural network model, is the direct - connection layer weight of the i - th layer of the input - convex neural network model, is the input vector of the input - convex neural network model, is the bias of the i - th layer of the input - convex neural network model, is the set of direct - connection layer weights of the input - convex neural network model, is the set of non - direct - connection layer weights of the input - convex neural network model, is the set of bias terms of the input - convex neural network model, is the activation function;
[0153] In the input - convex neural network model constructed by the present invention, are all non - negative real numbers, and the convex non - decreasing function Smoothed relu is selected as the activation function . To ensure the accuracy and generalization of the input - convex neural network model, several direct - connection layers are added to the input - convex neural network model , and a bias term is added to .
[0154] Before constructing the input - convex neural network model, the data set is obtained. The data set is used to train the input - convex neural network model. The data set Including the incoming flow wind speed, generator speed, output power, pitch angle, generator torque, active power reference value, and main shaft torque; the data set is used to train an input convex neural network model to accurately predict the non-linear convex characteristics of a wind turbine. Specifically, the data set is obtained through a simulation environment and, after being mixed processed, is divided into a data set for training the model and a test set for evaluating the model performance .
[0155] These data sets are used to train an input convex neural network model, which aims to simulate the relationship between the equivalent fatigue load of the main shaft torque of a wind turbine and parameters such as wind speed, generator speed, and output power. Through training, the model can learn the non-linear relationship between these parameters and can predict the fatigue load of the wind turbine under different operating conditions, thereby being used to optimize the active power reduction control strategy of a wind farm.
[0156] The convergence and accuracy of the input convex neural network model are improved through a loss function to obtain a non-linear convex model of the wind turbine. The expression of the loss function is:
[0157]
[0158] In the formula, is the loss function, is to minimize the model error, is to minimize the model gradient error, is the output vector of the improved input convex neural network model, is the input vector of the improved input convex neural network model, is the gradient of the input convex neural network model, is the simulation environment gradient calculated using an automatic gradient calculation tool, making the gradient of the input convex neural network model close to the simulation environment gradient.
[0159] It can be understood that is the simulation model gradient calculated using the automatic gradient function of Pytorch.
[0160] The calculated simulation model gradient is used as physical information to guide the training of the input convex neural network model, further improving the convergence and accuracy of the input convex neural network model. Thus, a non-linear convex model of the wind turbine can be obtained. Figure 3 is the prediction effect diagram of the main shaft torque (S spindle torque) of the non-linear convex model of the wind turbine. Figure 3Among them, S spindle torque (kN) represents the spindle torque, with the unit of kilonewton (kN); the abscissa represents time, with the unit of second; the ordinate represents the spindle torque (Torque), with the unit of Newton - meters, which is used to describe the magnitude of the torsional force acting on the main shaft of the wind turbine. Torque is a measure of the rotational force and reflects the ability of the force to produce a rotational effect on an object. In a wind turbine, the spindle torque is one of the important operating parameters, which directly affects the operating efficiency and mechanical load of the wind turbine. The vertical axis in the figure is marked as TS (N·m), showing the spindle torque values calculated by two methods, namely simulation (Simulation result) and (ICNN method), at different time points (the horizontal axis, with the unit of second). By comparing the results of these two methods, the accuracy and effectiveness of the non - linear convex model of the wind turbine in simulating or predicting the spindle torque of the wind turbine can be evaluated. Simulation result represents the prediction result of the non - linear convex model of the wind turbine, referring to the data obtained through the non - linear convex model of the wind turbine.
[0161] Figure 3 The figure shows the curves of the spindle torque changing with time obtained by two methods. Among them, the red curve represents the prediction result of the non - linear convex model of the wind turbine, and the blue curve represents the result of the ICNN method. By comparing these two curves, the performance and accuracy of the two methods in simulating the spindle torque can be analyzed.
[0162] The input convex neural network model is used to fit the simulation data. In the constructed input convex neural network model, are all non - negative real numbers, and the convex non - decreasing function Smoothed relu is selected as the activation function , multiple straight - through layers are added and a bias term is added in . Through such a network structure, training is carried out based on the data set. The loss function includes minimizing the model error and minimizing the model gradient error. Finally, the non - linear convex model of the wind turbine is obtained, realizing the modeling of the mapping relationship between these parameters. .
[0163] The time - window load time - series data is generated by fitting through the input convex neural network model. Based on the mapping relationship between the time - window load time - series data and the equivalent fatigue load, a non - linear convex model of the fatigue load is obtained, specifically including:
[0164] The obtained spindle torque is sliced with a sliding window of a preset window length to be divided into a spindle torque test set and a spindle torque data set; in this embodiment, the window length is 10.
[0165] By the rainflow counting method, calculate the load cycle amplitude and mean value of the main shaft torque for each sliding window to obtain the equivalent fatigue load. The calculation formula is as follows:
[0166]
[0167] Wherein, is the load amplitude of the i-th level, is the cycle number of the load at the i-th level, m is the Wohler index of the S-N curve, N depends on the design life of the wind turbine, is the equivalent fatigue load of the N-th segment of the load signal;
[0168] Use the input convex neural network model to fit the main shaft torque to generate the time window load time series data;
[0169] Based on the mapping relationship between the time window load time series data and the equivalent fatigue load, obtain the non-linear convex model of the fatigue load.
[0170] Use the input convex neural network model to fit the mapping relationship between the time window load time series data and the equivalent fatigue load. The input of this mapping relationship is the time window load time series data, and the output is the equivalent fatigue load.
[0171] Perform active optimization control solution on the dual-input convex neural network pre-training model to obtain the optimal solution of the active power distribution that meets the safety and stability constraints of the wind farm, specifically including:
[0172] Construct the active power reduction optimization objective as:
[0173]
[0174] Wherein, is the equivalent fatigue load of the i-th fan calculated according to the dual-input convex neural network pre-training model, obtained from the lookup table constructed according to , is the active power reduction optimization objective function, indicating to minimize the objective function, that is, to minimize the equivalent fatigue load of the whole field.
[0175] Construct the optimization problem constraint conditions as:
[0176]
[0177] Wherein, is the active power reference value, is the maximum available power of a single unit, is the minimum available power, is the equality constraint function, is the sum of the active power of the whole field, is the power grid dispatching instruction, is an inequality constraint function, is the change in active power within one time step, is the maximum power ramp rate constraint for a single generator.
[0178] The model predictive control algorithm is used to optimize and solve the pre-trained dual-input convex neural network model, and the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm is obtained.
[0179] Through the pre-trained dual-input convex neural network model of the present invention, the equivalent fatigue load of the wind turbine is modeled in the form of a convex function; and by generating a look-up table to accelerate the solution of the convex optimization problem, while satisfying the safety and stability constraints of the wind farm, the fatigue load of the entire wind farm is effectively suppressed.
[0180] The input convex neural network model can model the equivalent fatigue load of the main shaft torque of the wind turbine in the form of a convex function based on a sliding time window, transform the non-convex optimization problem into a convex optimization problem for solution, while maintaining the convexity of the model, and also improve the convergence and accuracy of the model.
[0181] Taking the pre-trained dual-input convex neural network model as the prediction model, the model predictive control algorithm is used for optimization and solution, and the model predictive control algorithm is the sequential least squares programming method;
[0182] Using the model predictive control algorithm to optimize and solve the pre-trained dual-input convex neural network model, the optimal solution of active power distribution that satisfies the safety and stability constraints of the wind farm is obtained, including:
[0183] According to the traditional proportional distribution algorithm, calculate the active power reference of each wind turbine in the wind farm as the initial point;
[0184] Generate a wind turbine fatigue load look-up table according to the pre-trained dual-input convex neural network model at a scale of 10W;
[0185] Use the sequential least squares programming method SLSQP to solve the optimization problem:
[0186] At the k-th iteration, use the sequential least squares programming method to perform a first-order Taylor expansion (linear approximation) on the active power reduction optimization objective and the optimization problem constraint conditions:
[0187] For the active power reduction optimization objective:
[0188]
[0189] Among them, is the active power reduction optimization objective function of the active power reference value, is the first-order Taylor expansion of the active power reference value at the k-th iteration at , is the gradient vector of the active power reference value at the k-th iteration at ; is the search direction.
[0190] For the constraint conditions of the optimization problem:
[0191]
[0192]
[0193] where is the first-order Taylor expansion of the equality constraint function at the k-th iteration at ; is the gradient vector of the equality constraint function at the k-th iteration at ; is the first-order Taylor expansion of the inequality constraint function at the k-th iteration at ; is the gradient vector of the inequality constraint function at the k-th iteration at ;
[0194] The sequential least squares programming method transforms the original problem into a constrained quadratic programming problem by introducing Lagrange multipliers and penalty functions, and its expression is:
[0195]
[0196] where is the Hessian matrix of the objective function at , estimated by the finite difference method;
[0197] The search direction is obtained by solving the quadratic programming problem;
[0198] The current point is updated with a fixed step size, and its expression is:
[0199]
[0200] where is the step size, which is taken as 1 here, is the update direction at the -th step, is the active power reference value updated after the -th step iteration; The multipliers λ and μ are updated according to the KKT conditions;
[0201] After completing the iteration, the optimal solution of the active power distribution that satisfies the safety and stability constraints of the wind farm is obtained and sent to each wind turbine for execution.
[0202] Compared with the traditional proportional allocation algorithm, the present invention can reduce the main shaft fatigue load of the entire 10×5MW wind farm by 40% under the condition of meeting the operation constraints of the wind farm. After the calculation using the look-up table is accelerated, real-time solution can be achieved. Taking 1s as the control time step, the total solution time for 10 wind turbines is 0.83s.
[0203] Terminate the iteration when any of the following conditions is met:
[0204] The change in the objective function is less than the threshold value, which is 1 here;
[0205] The gradient norm is 0;
[0206] The maximum number of iterations is reached, which is 100 here.
[0207] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
[0208] For those of ordinary skill in the art, according to the teachings of the present invention, designing different forms of control circuits does not require creative labor. Without departing from the principles and spirit of the present invention, these changes, modifications, substitutions, and variations to the embodiments still fall within the protection scope of the present invention.
Claims
1. An active power reduction optimization method for a wind farm based on a dual-input convex neural network, characterized in that, The method includes: Construct a simulation environment to obtain simulation data; Use an input convex neural network model to fit the simulation data to obtain a non-linear convex model of the wind turbine, and output the main shaft torque through the non-linear convex model of the wind turbine; Fit and generate time window load time series data through the input convex neural network model, and obtain a non-linear convex model of the fatigue load based on the mapping relationship between the time window load time series data and the equivalent fatigue load; Take the main shaft torque output by the non-linear convex model of the wind turbine as the input of the non-linear convex model of the fatigue load to obtain a dual-input convex neural network pre-training model; Perform active power optimization control solution on the dual-input convex neural network pre-training model to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm; Among them, the expression of the input convex neural network model is: In the formula, is a convex function with respect to , is the output vector of the input convex neural network model, is the set of weight and bias parameters of the input convex neural network model, is the output vector of the (i + 1)-th layer of the input convex neural network model, is the non-feedthrough layer weight of the i-th layer of the input convex neural network model, is the output of the i-th layer of the input convex neural network model, is the feedthrough layer weight of the i-th layer of the input convex neural network model, is the input vector of the input convex neural network model, is the bias of the i-th layer of the input convex neural network model, is the set of feedthrough layer weights of the input convex neural network model, is the set of non-feedthrough layer weights of the input convex neural network model, is the set of bias terms of the input convex neural network model, is the activation function.
2. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 1, wherein Construct a simulation environment to obtain simulation data, specifically including: Construct a simulation environment to obtain the mapping relationships between the main shaft torque and the incoming wind speed, generator speed, output power, pitch angle, generator torque, and active power reference value of the wind farm respectively, and obtain simulation data based on this mapping relationship; Mix the simulation data to obtain a dataset with the test set ; Among them, represents the input data, represents the output data; the input data includes: incoming flow wind speed, generator speed, output power, pitch angle, generator torque, active power reference value, and the output data includes: main shaft torque; The simulation environment includes: an aerodynamic simulation environment, a drive train simulation environment, a generator simulation environment, a tower simulation environment, and a control system simulation environment.
3. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 2, characterized in that, Using a dataset Train the input convex neural network model; Improve the convergence and accuracy of the input convex neural network model through a loss function to obtain a non-linear convex model of the wind turbine. The expression of the loss function is: In the formula, is the loss function, is to minimize the model error, is to minimize the model gradient error, is the output vector of the improved input convex neural network model, is the input vector of the improved input convex neural network model, is the gradient of the input convex neural network model, is the simulation environment gradient calculated using the automatic gradient calculation tool.
4. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 3, wherein, Fit and generate time window load time series data through the input convex neural network model, and obtain a non-linear convex model of the fatigue load based on the mapping relationship between the time window load time series data and the equivalent fatigue load, specifically including: Slice the obtained main shaft torque with a sliding window of a preset window length to divide it into a main shaft torque test set and a main shaft torque data set; Calculate the load cycle amplitude and mean value of the main shaft torque of each sliding window through the rain flow counting method to obtain the equivalent fatigue load. Its calculation formula is: Wherein, is the load amplitude of the i-th level, is the number of cycles of the -th level load, m is the Wohler exponent of the S-N curve, is the equivalent fatigue load of the N-th segment of the load signal; Use the input convex neural network model to fit the main shaft torque to generate time window load time series data; Based on the mapping relationship between the time window load time series data and the equivalent fatigue load, obtain a non-linear convex model of the fatigue load.
5. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 4, characterized in that Perform active power optimization control solution on the dual-input convex neural network pre-training model to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm, specifically including: Construct an active power reduction optimization target as: Among them, is the equivalent fatigue load of the i-th wind turbine calculated according to the double-input convex neural network pre-training model, and is obtained from the lookup table constructed according to ; is the active power reduction optimization objective function; Construct the constraint conditions of the optimization problem as: wherein, is the reference value of active power, is the maximum available power of a single unit, is the minimum available power, is the equality constraint function, is the sum of the active power of the whole field, is the power grid dispatch instruction, is the inequality constraint function, is the change in active power within 1 time step, is the maximum power ramp constraint of a single unit; Use the model predictive control algorithm to optimize and solve the dual-input convex neural network pre-training model to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm.
6. The active power load shedding optimization method for a wind farm based on a dual-input convex neural network according to claim 5, characterized in that The model predictive control algorithm is the sequential least squares programming method; Use the model predictive control algorithm to optimize and solve the dual-input convex neural network pre-training model to obtain the optimal solution of active power distribution that meets the safety and stability constraints of the wind farm, including: Calculate the active power reference of each wind turbine in the wind farm according to the traditional proportional distribution algorithm as the initial point; Generate a wind turbine fatigue load look-up table according to the dual-input convex neural network pre-training model at a scale of 10W; Use the sequential least squares programming method to solve the optimization problem: At the k-th iteration step, the first-order Taylor expansion is performed on the active power reduction optimization objective and the constraint conditions of the optimization problem using the sequential least squares programming method: For the active power reduction optimization objective: Among them, is the active power reference value of the active power shedding optimization objective function, is the first-order Taylor expansion of the active power reference value at at the k-th iteration, is the gradient vector of the active power reference value at the k-th iteration at ; is the search direction; For the constraint conditions of the optimization problem: wherein, is the first-order Taylor expansion of the equality constraint function at the at the k-th iteration, is the gradient vector of the equality constraint function at the at the k-th iteration; is the first-order Taylor expansion of the inequality constraint function at the at the k-th iteration, is the gradient vector of the inequality constraint function at the at the k-th iteration; By introducing Lagrange multipliers and penalty functions, the sequential least squares programming method transforms the original problem into a constrained quadratic programming problem, and its expression is: Among them, is the Hessian matrix of the objective function at ; The search direction is obtained by solving a quadratic programming problem ; The current point is updated using a fixed step size, and its expression is: Among them, is the step size, which is taken as 1 here, is the update direction of the step, and is the reference value of the active power updated after the After completing the iteration, the optimal solution of the active power distribution that satisfies the safety and stability constraints of the wind farm is obtained; The iteration is terminated when any of the following conditions is met: The change in the objective function is less than the threshold; The gradient norm is 0; The maximum number of iterations is reached.
7. The active power load shedding optimization method for a wind farm based on a dual-input convex neural network according to claim 6, characterized in that, Construct an aerodynamic simulation environment, including: Calculate the aerodynamic torque and thrust, and the calculation formulas are as follows: Among them, is the pneumatic torque, is the thrust, is the power coefficient, is the thrust coefficient, is the blade length, is the air density, is the effective wind speed on the blade of the wind turbine, is the tip speed ratio, and its definition formula is ; Construct a drivetrain simulation environment, including: Using a single-mass model, the mass of the wind turbine and the mass of the generator are combined into an equivalent mass, and the formula is as follows: According to the low-speed shaft motion equation, calculate the rotational speed relationship between the rotor and the generator, and the formula is as follows: Wherein, is the equivalent mass, is the mass of the wind turbine, is the mass of the generator, is the gearbox transmission ratio, is the generator torque, is the rotor, is the rotational speed of the generator.
8. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 7, characterized in that Construct a generator simulation environment, including: In the torque control loop, vector control with millisecond-level high-precision response is adopted, and the dynamic characteristics are ignored, that is: Among them, is the generator reference torque.
9. The active power shedding optimization method for a wind farm based on a dual-input convex neural network according to claim 8, characterized in that Construct a tower simulation environment, including: The calculation formula for the bending moment before and after the tower is: Among them, represents the front and rear bending moment of the tower,[ represents the height of the tower.[ 10. The active power reduction optimization method for a wind farm based on a dual-input convex neural network according to claim 9, wherein, Construct a control system simulation environment, including: When the wind speed is lower than the rated wind speed it is defined as the first mode; When the wind speed is greater than the rated wind speed it is defined as the second mode; When operating in the first mode, the pitch control stops, ; When operating in the second mode, the measured generator speed is filtered through a low-pass filter, and the filtered speed is: wherein is the filtered rotational speed, is the time constant of the filter, is the generator rotational speed, is the Laplace operator; Based on the filtered rotational speed and the rated value of the rotational speed calculate the reference value of the pitch angle, and its expression is: wherein, is the reference value of the blade pitch angle, is the proportional gain of the PI controller, is the integral gain of the PI controller, is the correction factor, , wherein, and are constants.
Citation Information
Patent Citations
Fatigue load suppression method of wind turbine generator based on data driving
CN115270605A
Wind turbine generator load adaptive control method based on neural network
CN118582337A