The present invention belongs to the technical field of control of aero-engines, and particularly relates to an intelligent control method for a dynamic neural network-based variable cycle engine.
As an important part of an aero-engine, the control system is a key factor affecting the performance of the aero-engine. The variable cycle engine is integrated with the advantages of the turbojet engine and turbofan engine, and is added with variable geometry components. By adaptively adjusting the geometry, position and other parameters of these components, the variable cycle engine can have high specific thrust in the maneuvering flight phases of the aircraft such as acceleration, ascending and the like; and can have low fuel consumption rate in the subsonic cruise phase. However, due to the increase of variable components, the control variables are increased, and the structure of the controller is made more complicated; meanwhile, a strong coupling relationship is made between the nonlinear control variables of the variable cycle engine. How to solve the problem of coupling between control loops so that various variables may cooperate with each other to give full play to the overall performance and realize the multi-variable control of the variable cycle engine is a problem that is to be solved urgently, and is also the basis for the subsequent development of transient state control and synthesis control in the full flight envelop.
At present, for most of the multi-variable control systems for variable cycle engines at home and abroad, genetic algorithms (GA), teaching-learning-based optimization algorithms (TLBO) and other intelligent optimization algorithms are added or compensators are added on the basis of the traditional robust control, linear quadratic regulator (LQR) control and the like. Most of the existing control methods are based on accurate engine models, so the accuracy of the models is made to directly affect the control effect of the controller, and the problem of coupling between nonlinear variables cannot be solved well. Due to the nonlinear characteristics of the neural network, the neural network-based controller can well solve the problem of coupling between multiple variables. However, during training, the structure of hidden layers cannot be determined directly, if the structure is too large, too slow training and overfitting may be caused, and if the structure is too small, the required accuracy cannot be achieved. Therefore, in view of the above problem, it is of great significance to design a dynamic neural network controller which can overcome the structure defect of the neural network and is used for control of a variable cycle engine.
In view of the problem existing in the existing method for multi-variable control of the variable cycle engine, the present invention provides an intelligent control method for a dynamic neural network-based variable cycle engine. By adding a grey relation analysis method-based structure adjustment algorithm to the neural network training algorithm, the neural network structure is adjusted, a dynamic neural network controller is constructed, and thus the intelligent control of the variable cycle engine is realized.
The technical solution of the present invention is as follows: An intelligent control method for a dynamic neural network-based variable cycle engine, comprising the following steps:
Step 1: constructing a training dataset of a dynamic neural network
Step 1.1: taking 0.01 s as a sample period, collecting the operating parameters of the variable cycle engine at the set height and power level angle (PLA), including an actual value and a desired value of a relative rotary speed of high pressure rotor nh of a controlled variable, a desired value and an actual value of a pressure ratio π, and control variables, wherein the control variables include the actual operating values of fuel flow Wƒ, nozzle throat area A8, high-pressure turbine vane area AHTG, angle of outlet guide vane αƒ, angle of core driven fan guide vane αCDFS angle of compressor guide vane αc, angle of high-pressure compressor guide vane αturb, and core driven fan mixer area ACDFS.
Step 1.2: performing data processing on the operating parameters of the variable cycle engine collected in the step 1.1, and deleting an outlier, i.e. exception value; and for a missing value, performing mean interpolation of the same class;
Step 1.3: taking the deviation Δnh between the desired value and the actual value of the relative rotary speed of high pressure rotor nh in the operating parameters of the variable cycle engine on which data processing is performed and the deviation Δπ between the desired value and the actual value of the pressure ratio π of the engine as input parameters of the dynamic neural network, and taking the change value of the control variables as the target output of the dynamic neural network;
constructing a training dataset of the dynamic neural network:
x=[Δnh,Δπ]
y=[Wƒ,αturb,αƒ,A8,αCDFS,ACDFS,AHTG,αc]
h=[x,y]
where x represents the input parameter of the dynamic neural network, Y represents the target output of the dynamic neural network, and h represents the training dataset of the dynamic neural network;
Step 1.4: normalizing the training dataset of the dynamic neural network:
where hnorm, hmin and hmax respectively represent data normalized value of the training dataset h of the dynamic neural network, minimum value and maximum value;
Step 2: training the dynamic neural network
Step 2.1: taking 80% of the normalized training dataset hnorm of the dynamic neural network obtained in the step 1.4 as the training sample, and 20% as the test sample;
Step 2.2: initializing the parameters of the dynamic neural network: number of neurons in an input layer, number of neurons in all hidden layers, number of neurons in an output layer, iteration number, training accuracy S and learning rate μ;
Step 2.3: calculating the state and activation value of each layer of the dynamic neural network:
where L represents the total number of layers of the dynamic neural network, ƒ(⋅) represents the activation function of the neuron; Θ(l)(k)∈Rn
b(l)(k)=(b1(l)(k), b2(l)(k), . . . , bn
z(l)(k)=(z1(l)(k), z2(l)(k), . . . , zn(l)(k))T∈Rn
a(l)(k)=(a1(l)(k), a2(l)(k), . . . , an
Step 2.4: calculating the error and loss of the output layer of the dynamic neural network:
e(k)=y(k)−o(k)
E(k)=½∥e(k)∥2
where y(k) represents the desired output of the kth sample, o(k) represents the actual output generated by the dynamic neural network for the input x(k) of the kth sample, e(k) represents the error of the output layer at this time, E (k) represents the loss of the output layer when learning the kth sample currently, and ∥ represents the norm operation;
calculating δ(l) as the intermediate quality of error back propagation:
updating the weight matrix and bias parameter matrix of the dynamic neural network:
Θ(l)(k+1)=Θ(l)(k)−μδ(l)(k)a(l−1)(k)
b
(l)(k+1)=b(l)(k)−μδ(l)(k)
Step 2.5: performing structure increase judgment of the dynamic neural network calculating the average loss E:
of all samples after training once, where N represents the total number of samples; calculating the average value
of the loss of the output layer in a current sample window, where Nw represents the size of a sliding window;
if Ei>ε is met after the ith training, adding neurons from the hidden layer 1, i.e. layer 2 of the dynamic neural network, l=2; initializing the weight θnew of the newly added neurons with a random number, and updating the number of neurons in the lth layer of the dynamic neural network and the weight matrix during the i+1th training:
n
l(i+1)=(i)+1
Θ(l)(i+1)=[Θ(l)(i),θnew]
after adding neurons to the current lth layer (1<l<L), if after continuous Nw training, the loss change rate of the output layer of the dynamic neural network is less than the threshold η3:
and Ei>ε is met, going to the next hidden layer for neuron increase judgment, and ending structure increase judgment until l=L;
Step 2.6: after stopping adding neurons to the hidden layers of the dynamic neural network, performing structure pruning judgment; taking the hidden layer node output a(l)=(a1(l), a2(l), . . . , an
where ρ∈(0, +∞) represents a distinguishing coefficient, and ξnl(k) (k=1, 2, . . . , N) represents a grey relation serial;
calculating the relativity using the average value method,
where γnl∈[0, 1] represents the relativity; comparing the relativity γnl between various neurons in the lth layer, deleting the neuron with the minimum relativity, updating the number nl of the neurons in the lth layer of the dynamic neural network and the weight matrix Θ(l);
if the loss of the output layer of the dynamic neural network is increased too much so that Ei+1−Ei>η4 after a certain neuron in the lth layer (1<l<L) is deleted, where η4>0 represents the error floating threshold, withdrawing the deleting operation in the previous step and going to the structure adjustment judgment of the next hidden layer, and ending structure pruning judgment until l=L;
Step 2.7: if the error meets a given accuracy requirement, ending the training, and saving the weight matrix and bias parameter matrix of the dynamic neural network; and if the error does not meet the given accuracy requirement, proceeding the iterative training until the accuracy requirement is met or the specified iteration number is reached;
Step 2.8: based on the test sample, checking the currently trained dynamic neural network, and calculating the test error;
Step 3: constructing a dynamic neural network controller
encapsulating the trained dynamic neural network as a variable cycle engine controller, and normalizing the deviation Δnh between the desired value and the actual value of the relative rotary speed of high pressure rotor nh of the controlled variable and the deviation Δπ between the desired value and the actual value of the pressure ratio π of the engine and then taking same as input parameters of the dynamic neural network controller; and inversely normalizing the output parameters of the dynamic neural network and then taking same as the control variables of the variable cycle engine, to realize the intelligent control of the variable cycle engine.
The present invention has the advantageous effects that: a dynamic neural network is trained through the grey relation analysis method-based network structure adjustment algorithm designed by the present invention, and an intelligent controller of the dynamic neural network-based variable cycle engine is constructed. The problem of coupling between nonlinear multiple variables caused by the increase of control variables of the variable cycle engine and the problem that the traditional control method relies too much on model accuracy are effectively solved. Meanwhile, the structure is dynamically adjusted in the training process of the neural network, so that the network structure is simpler, and the operating speed and control accuracy are increased.
The embodiments of the present invention will be further described in detail below in combination with the drawings and the technical solution.
The method of the present invention comprises the following specific steps: Step 1: constructing a training dataset of a dynamic neural network.
Step 1.1: taking 0.01 s as a sample period, collecting the operating parameters of the variable cycle engine at the set height and PLA, including an actual value and a desired value of a relative rotary speed of high pressure rotor nh of a controlled variable, a desired value and an actual value of a pressure ratio π, and control variables, wherein the control variables include the actual operating values of fuel flow Wƒ, nozzle throat area 4, high-pressure turbine vane area AHTG, angle of outlet guide vane αƒ, angle of core driven fan guide vane αCDFS, angle of compressor guide vane αc, angle of high-pressure compressor guide vane αturb, and core driven fan mixer area ACDFS;
Step 1.2: performing data processing on the operating parameters of the variable cycle engine collected in the step 1.1, and deleting an outlier (exception value); and for a missing value, performing mean interpolation of the same class.
Step 1.3: taking the deviation Δnh between the desired value and the actual value of the relative rotary speed of high pressure rotor nh in the operating parameters of the variable cycle engine on which data processing is performed and the deviation Δπ between the desired value and the actual value of the pressure ratio π of the engine as input parameters of the dynamic neural network, and taking the change value of the control variables as the target output of the dynamic neural network;
constructing a training dataset of a dynamic neural network:
x=[Δnh,Δπ]
y=[Wƒ,αturb,αƒ,A8,αCDFS,ACDFS,AHTG,αc]
h=[x,y]
where x represents input parameter of the dynamic neural network, Y represents target output of the dynamic neural network, and h represents training dataset of the dynamic neural network.
Step 1.4: normalizing the training dataset of the dynamic neural network:
where hnorm, hmin and hmax respectively represent data normalized value of the training dataset h of the dynamic neural network, minimum value and maximum value.
As shown in
The structural schematic diagram of the used dynamic neural network is shown in
Step 2: training the dynamic neural network.
Step 2.1: taking 80% of the normalized training dataset hnorm of the dynamic neural network obtained in the step 1.4 as the training sample, and 20% as the test sample.
Step 2.2: initializing the training parameters of the dynamic neural network.
The number of neurons in the input layer is 2, the number of neurons in the output layer is 8, the hidden layer structure is initialized to 10, 5, 5 (three hidden layers, the number of neurons in all the layers is 10, 5, 5 respectively), the learning rate is μ=0.1, the iteration number is 850, the accuracy requirement is ε=1.0e-3. Θ(l)∈Rn
Θ(2):[2×10double],b(2):[1×10double]
Θ(3):[10×5double],b(3):[1×5double]
Θ(4):[5×5double],b(4):[1×5double]
Θ(5):[5×8double],b(5):[1×8double]
Step 2.3: calculating the state and activation value of each layer of the dynamic neural network:
where L=5 represents the total number of layers of the dynamic neural network, ƒ(⋅) represents the activation function of the neuron, which is a sigmoid function; Θ(l)(k)∈Rn
b(l)(k)=(b1(l)(k), b2(l)(k), . . . , bn
z(l)(k)=(z1(l)(k), z2(l)(k), . . . , zn
a(l)(k)=(a1(l)(k), a2(l)(k), . . . , an
Step 2.4: calculating the error and loss of the output layer of the dynamic neural network:
e(k)=y(k)−o(k)
E(k)=½∥e(k)∥2
where y(k) represents the desired output of the kth sample, o(k) represents the actual output generated by the dynamic neural network for the input x(k) of the kth sample, e(k) represents the error of the output layer at this time, E(k) represents the loss of the output layer when learning the kth sample currently, and ∥ represents the norm operation;
calculating δ(l) as the intermediate quality of error back propagation:
updating the weight matrix and bias parameter matrix of the dynamic neural network:
Θ(l)(k+1)=Θ(l)(k)−μδ(l)(k)a(l−1)(k)
b
(l)(k+1)=b(l)(k)−μδ(l)(k)
Step 2.5: performing structure increase judgment of the dynamic neural network calculating the average loss E:
of all samples after training once, where N represents the total number of samples; calculating the average value
of the loss of the output layer in a current sample window, where Nw=10 represents the size of a sliding window;
if Ei>ε is met after the ith training, adding neurons from the hidden layer 1, i.e. layer 2 of the dynamic neural network, l=2; initializing the weight θnew of the newly added neurons with a random number, and updating the number of neurons in the lth layer of the dynamic neural network and the weight matrix during the i+1th training:
n
l(i+1)=nl(i)+1
Θ(l)(i+1)=[Θ(l)(i),θnew]
after adding neurons to the current lth layer (1<l<L), if after continuous Nw training, the loss change rate of the output layer of the dynamic neural network is less than the threshold η3:
and Ei>ε is met, going to the next hidden layer for neuron increase judgment, and ending structure increase judgment until l=L.
Step 2.6: after stopping adding neurons to the hidden layers of the dynamic neural network, performing structure pruning judgment; taking the hidden layer node output a(l)=(a1(l), a2(l), . . . , an
where ρ=0.15 represents a distinguishing coefficient, and ξnl(k) (k=1, 2, . . . , N) represents a grey relation serial;
calculating the relativity using the average value method:
where γni∈[0, 1] represents the relativity; comparing the relativity γnl between various neurons in the lth layer, deleting the neuron with the minimum relativity, updating the number n1 of the neurons in the lth layer of the dynamic neural network and the weight matrix Θ(l);
if the loss of the output layer of the dynamic neural network is increased too much so that Ei+1−Ei>η4 after a certain neuron in the lth layer (1<l<L) is deleted, where η4>0 represents the error floating threshold, withdrawing the deleting operation in the previous step and going to the structure adjustment judgment of the next hidden layer, and ending structure pruning judgment until l=L.
Step 2.7: if the error meets a given accuracy requirement, ending the training, and saving the weight matrix and bias parameter matrix of the dynamic neural network; and if the error does not meet the given accuracy requirement, proceeding the iterative training until the accuracy requirement is met or the specified iteration number is reached.
After the training, the hidden layer structure of the dynamic neural network is finally 9, 4, and 14. The changes of neurons of all hidden layers in the training process of the dynamic neural network are shown in
The error change curve in the training process of the dynamic neural network is shown in
Step 2.8: based on the test sample, checking the currently trained dynamic neural network, and calculating the test error, the test error being 8.89e-04.
Step 3: constructing a dynamic neural network controller.
As shown in
It can be seen from the simulation results of
As shown in
In summary, in the control of the variable cycle engine, the dynamic neural network trained thought the grey relation analysis method-based dynamic structure adjustment algorithm is used to construct the dynamic neural network controller of the variable cycle engine, so the network structure is simpler, the control accuracy is higher, and the time to reach steady state is faster.
Number | Date | Country | Kind |
---|---|---|---|
201911388033.7 | Dec 2019 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/077110 | 2/28/2020 | WO | 00 |