Model prediction control system and control method based on long and short term memory network aided prediction
By introducing the long short-term memory network-assisted prediction module in the control of the shape-changing aircraft, the problem of inaccurate additional torque prediction in traditional model predictive control is solved, the accuracy and stability of attitude control are improved, and the dynamic additional torque of the deformation process is realized. Accurate prediction and compensation.
Patent Information
- Application Number
- CN202410669462.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional model predictive control is difficult to accurately predict the additional torque during the deformation process in the attitude control of a variable-shape aircraft, resulting in large control errors and making it difficult to apply in large-scale engineering applications.
An auxiliary prediction module based on long short-term memory network is used to calculate the additional torque estimate by inputting the aircraft state, and combined with the model predictive control optimization solver to generate the actuator action control sequence to improve the prediction model accuracy and control effect.
Through the prediction of the long-short-term memory network, the accuracy and stability of the attitude control of the shape-changing aircraft are improved, the dynamic additional torque of the deformation process is accurately predicted and compensated, and the control effect is enhanced.
Smart Images

Figure CN118655909A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of aerospace science and technology, and in particular relates to a model predictive control system and a control method based on long short-term memory network assisted prediction. Background Art
[0002] The change in the shape of a shape-shifting aircraft will cause significant changes in the mass distribution and aerodynamic parameters of the aircraft. In addition, external disturbances and the inertial forces and moments generated during deformation will greatly affect the stability of the aircraft. Therefore, it is particularly important to control the flight attitude of the shape-shifting aircraft.
[0003] Traditional aircraft control methods mainly include PID, optimal control, gain adjustment, robust control, etc. Among them, the PID control method has a simple structure, does not rely on an accurate dynamic model, and has strong adaptability and robustness. Song et al. first introduced PID control into the control system of a deformable aircraft, and combined the Lagrange equation, pseudo-inverse control, dynamic inverse control and the classical PID method to solve the deformation modeling and control problems of sliding skin wings. However, it is difficult for the PID controller to maintain the performance of the controller under the conditions of a deformable wing multiple-input multiple-output (MIMO) system and a strongly coupled system.
[0004] Linear quadratic regulator (LQR) control is a type of optimal control that can solve the MIMO problem, so it is used in the design of control systems for deformable aircraft. Filip Svoboda et al. used the finite element method and unsteady aerodynamic methods represented by the Theodorsen function to model the flexible deformable wing, and used distributed LQR for flight control, which effectively suppressed the flutter suppression problem of the deformable wing.
[0005] With the development of artificial intelligence technology, intelligent control theory has also been gradually applied to the control field. At present, the intelligent control methods of shape-shifting aircraft control systems mainly include neural networks and reinforcement learning.
[0006] Neural network control refers to the use of neural networks as a tool in control systems to model complex nonlinear objects that are difficult to describe accurately, or to act as a controller, or to optimize calculations, or to perform reasoning, or fault diagnosis, etc.
[0007] J Lee et al. designed a nonlinear control and stability enhancement system for a shape-shifting aircraft based on feedback linearization. They used a two-layer feedforward offline neural network for model inversion and were not limited to shape-shifting aircraft with specific deformation modes. They then studied the combination of several neural network structures and back propagation algorithms to avoid overfitting, thereby reducing the sensitivity of the entire system to uncertainty and noise.
[0008] In the research of attitude control, the linear parameter varying method models the variant aircraft as a linear parameter varying system (LPV) with deformation parameters as variables. The global controller of the variant aircraft is designed by the control method suitable for the LPV system, which can well characterize the influence of a certain parameter variable on the overall characteristics of the system. Since a single LPV controller may not meet the expected performance indicators, the switching LPV control method is currently used to analyze the control system of the variant aircraft.
[0009] For smooth switching LPV control, Wang Qing et al. considered the characteristics of the variant aircraft using sliding skin to achieve continuous deformation, introduced time-varying weights to establish a chain-type smooth switching system for the aircraft's longitudinal motion, and then combined the concept of finite-time stability to design a robust controller to ensure stability during the deformation process.
[0010] Since the aerodynamic parameters of the morphing aircraft will change with the change of the aircraft's altitude, Mach number and dynamic pressure during flight, the mathematical model parameters of the morphing aircraft will also change accordingly. It is difficult to take into account the flight quality of the morphing aircraft within a larger envelope range with only one set of flight control system parameters, so it is necessary to let the controller parameters change with the change of altitude, Mach number and dynamic pressure. This is the idea of gain parameter adjustment. Its advantages are: the mature linear design theory can be fully used to design the controller near each working point; the system can respond quickly to changes in scheduling parameters to achieve relatively ideal performance indicators.
[0011] Based on the LPV model, Yin Ming et al. designed a global controller using the robust gain scheduling control method to ensure the stability of the variant process. The simulation results show that the designed controller can realize the expected motion process and ensure the global stability of the variant process.
[0012] When the nonlinear characteristics of the morphing aircraft are strong, the LPV method is not applicable and a nonlinear control method is needed. Currently, the nonlinear control methods used in morphing aircraft mainly include sliding mode control and anti-disturbance control.
[0013] Sliding mode control (SMC), also known as variable structure control, is essentially a special type of nonlinear control, and the nonlinearity is manifested as control discontinuity. This method can change purposefully and continuously according to the current state of the system during the dynamic process, forcing the system to move according to the state trajectory of the predetermined "sliding mode". Since the sliding mode can be designed and is independent of the object parameters and disturbances, this makes the sliding mode control have the advantages of fast response, insensitivity to corresponding parameter changes and disturbances. Nuan Wen et al. applied the finite time convergent sliding mode control (FSMC) method to the linear time invariant (LTI) system, designed it into a variant aircraft LPV system, and derived the sufficient conditions for the existence of reduced-order sliding mode in the form of linear matrix inequality (LMI) constraints. It was proved that FSMC can drive the LPV system to move to the preset switching surface in a finite time, ensuring the stability and L2 gain performance of the control system.
[0014] Due to the complexity of the flight environment, the control system of a variant aircraft should be able to fly stably in the presence of internal uncertainties and external disturbances. Ligang Gong et al. studied the anti-disturbance control problem of the longitudinal dynamics of a variant aircraft. On the basis of establishing a nonlinear switching system, the disturbance suppression was achieved through the designed disturbance observer. Two independent controllers were designed for the speed subsystem and the altitude subsystem of the longitudinal motion model using the backstepping method, and it was strictly proved that all signals of the closed-loop system were constrained by the proposed control scheme.
[0015] For the reinforcement learning control method, Ligang Gong et al. used a nonlinear switching system in the form of a lower triangular shape to describe the longitudinal height motion. The basic controller was based on the idea of an extended state observer, and an improved disturbance observer was designed to estimate the disturbance. A commonly used virtual control law was established in combination with a radial basis function neural network. The supplementary controller was designed based on reinforcement learning and could adjust parameters online to further reduce the height tracking error.
[0016] In 2017, Wen Nuan et al. took an abstract shape-changing aircraft as the object, gave its shape change formula and optimal shape function, etc., and combined deep learning with deterministic policy gradient reinforcement learning to design a deep deterministic policy gradient learning step, so that the aircraft has higher autonomy and environmental adaptability after training and learning, improving its survival, adaptability and attack capabilities on the battlefield.
[0017] In 2019, Yan Binbin and others proposed a new adaptive control method for the wing profile of a variable-shape aircraft based on reinforcement learning theory, with the variable-shape aircraft as the research object. The method can well meet the needs of the variable-shape aircraft to maintain optimal performance under multi-task conditions. The designed three-loop normal overload controller of the altitude subsystem and the sliding mode controller of the speed subsystem can ensure that the aircraft remains stable during the deformation process, but the Q function and the reward and punishment function are both independent of the flight state, and the obtained optimal wing deformation strategy is also independent of the flight state.
[0018] In 2020, Sang Chen and others proposed a flight control method for shape-shifting aircraft under symmetrical deformation conditions based on the DDPG algorithm. At the same time, considering the influence of flight states such as deformation amount on aerodynamic characteristics under asymmetric deformation conditions, a new type of active attitude change control mechanism was proposed.
[0019] (1) Model Predictive Control
[0020] Model predictive control (MPC) was proposed in the 1970s. It has developed from a heuristic control algorithm initially applied in industrial processes into a new discipline with rich theoretical and practical content. The success of predictive control in complex industrial processes has fully demonstrated its great potential in dealing with complex constrained optimization control problems.
[0021] Model predictive control has three basic characteristics: prediction model, rolling optimization and rolling implementation control, and feedback correction.
[0022] 1) Prediction model: The function of the prediction model is to predict the future output of the object based on its historical information and future input. Transfer function, state equation, fuzzy model, neural network model, etc. can all be used as prediction models. Therefore, the accuracy of the prediction model directly affects the actual effect of model predictive control.
[0023] 2) Rolling optimization and rolling implementation of control: In algorithm theory research and industrial applications, predictive control is generally optimized online. Predictive control is an optimization control algorithm that determines the future control action by optimizing a certain performance indicator. It is very different from the usual optimal control algorithm, mainly in that the optimization does not adopt an unchanging global optimization goal, but a rolling, usually finite time domain optimization strategy. At each sampling moment, the optimization performance indicator is only related to the future finite time, and at the next sampling moment, this optimization time domain moves forward at the same time. The optimization process is repeatedly performed online, that is, rolling optimization. The rolling real-time control effect shows that the future control sequence optimized by rolling does not all act on the object, only the first few steps of the control sequence actually act on the object. This is also the fundamental difference between predictive control and other controls. This method can take into account the uncertainties caused by factors such as model time variation and interference, and make up for them in time.
[0024] 3) Feedback correction: Model predictive control uses feedback to improve the performance of closed-loop optimal predictive control.
[0025] In summary, model predictive control has advantages in dealing with complex system dynamics and multiple constraints, and aircraft attitude control happens to have these characteristics, so model predictive control has application value in the field of aircraft attitude control. At present, some scholars have applied model predictive control to the design of attitude controllers for rotorcraft, aerospace vehicles and other objects.
[0026] Traditional model predictive control usually requires building a simplified dynamic model of the controlled object for state prediction, and based on the prediction, searching for the optimal control solution under certain constraints. This method relies on the accuracy of the established dynamic model of the controlled object, and an overly complex model will bring a higher computational load. For the attitude control of variable-shape aircraft, it is difficult to give a clear mathematical model for the additional forces and additional torques during the deformation process, or some variables in the model cannot be directly obtained through sensors, which leads to the fact that the dynamic model of the controlled object of the predictive control is not accurate enough and the control error is large during the actual flight. These problems have caused the research on model predictive control in the attitude control of variable-shape aircraft to remain at the theoretical level and difficult to apply on a large scale in engineering. Summary of the invention
[0027] In view of this, the present invention provides a model predictive control system and method based on long short-term memory network assisted prediction to achieve the estimation of the additional torque in the deformation process of a shape-changing aircraft, improve the accuracy of the prediction model, and further improve the control effect.
[0028] The technical solution for implementing the present invention is as follows:
[0029] In a first aspect, an embodiment of the present application provides a model predictive control system based on long short-term memory network assisted prediction, comprising: a long short-term memory network assisted prediction module, a model predictive control optimization solver, a shape-shifting aircraft dynamics prediction module, and a precision control module;
[0030] The long short-term memory network auxiliary prediction module is used to calculate and output the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmit them to the shape-changing aircraft dynamics prediction module;
[0031] Model predictive control optimization solver, used to generate actuator action control sequence according to the actual attitude and expected attitude of the input aircraft, and output it to the dynamic prediction module of the shape-changing aircraft;
[0032] A dynamics prediction module for a shape-changing aircraft predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs the prediction to the precision control module;
[0033] Judgment module, when the state at the next moment meets the set requirements, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator, otherwise the deformable aircraft dynamics prediction module outputs the state at the next moment to the long short-term memory network auxiliary prediction module.
[0034] Furthermore, when the judgment module of the present invention determines that the state at the next moment does not meet the set requirements, but the number of cycles reaches the set upper limit, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator.
[0035] Furthermore, the aircraft state of the present invention is the angle of attack α, the sideslip angle β, the roll angle σ, the rolling angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and any combination of deformation η.
[0036] Furthermore, the training samples used to train the long short-term memory network auxiliary prediction module of the present invention are:
[0037] The input states of the module are: angle of attack α, sideslip angle β, tilt angle σ, roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and deformation η; the output state is the additional moment M of the aircraft pitch, roll, and yaw channels SD ;
[0038] Starting from the initial time t0, collect n i input values as input, n oThe output value is taken as the target, and the sliding window method is used to collect training samples until the remaining data no longer meets the window size.
[0039] Furthermore, the architecture of the LSTM network auxiliary prediction module of the present invention is: composed of a state encoder and a state decoder, wherein the state encoder is composed of τ LSTM units, and the state decoder is composed of one LSTM unit and a fully connected network layer; wherein the input of the state encoder is [t1,t τ ], the input of the state decoder is the encoding sequence of the state encoder and the current time t τ Aircraft status x τ , the output of the state decoder t τ+1 The additional deformation moment M SD .
[0040] Furthermore, the model predictive control optimization solver of the present invention is obtained through training, wherein the control quantity constraint during the training process is
[0041]
[0042] in, and θ(x) are the state feedback matrices of the actual rudder angle and the virtual control quantity, ν is the virtual control quantity to be solved in the model predictive control, and u min is the minimum value of the rudder deflection angle, u max is the maximum value of the rudder deflection angle; u is the actual rudder deflection angle.
[0043] Furthermore, the model predictive control optimization solver of the present invention is obtained through training, wherein the objective function during the training process is:
[0044]
[0045] Among them, Q is the state quantity weight diagonal matrix, R is the control quantity weight diagonal matrix, N P is the prediction time domain, N C is the control time domain, e(k+i) is the deviation between the predicted state at the k+i-th moment and the expected value at the k+i-th moment, e′(k+i) is the transpose of e(k+i), Δν(k+i-1|k) is the deviation between the control quantity at the k+i-1th moment and the control quantity at the k+i-2th moment, and Δν′(k+i-1|k) is the transpose of Δν(k+i-1|k).
[0046] Furthermore, the control amount weight diagonal matrix R of the present invention is:
[0047] R=R K I
[0048] Where I is the unit matrix, R K is the control quantity weight coefficient.
[0049] In the second aspect, the embodiment of the present application provides a model predictive control method based on long short-term memory network assisted prediction, and the specific process is as follows:
[0050] Step 1: The long short-term memory network auxiliary prediction module calculates and outputs the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmits them to the shape-changing aircraft dynamics prediction module;
[0051] Step 2: The model predictive control optimization solver generates an actuator action control sequence based on the actual attitude and expected attitude of the input aircraft, and outputs it to the dynamics prediction module of the shape-changing aircraft;
[0052] Step 3: The shape-changing aircraft dynamics prediction module predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs it to the judgment module;
[0053] Step four, the judgment module judges whether the state meets the control accuracy requirements. When the state at the next moment meets the set requirements, the model predictive control algorithm module is controlled to output the current control sequence to the aircraft actuator to complete the attitude control of the variable-shape aircraft, and the algorithm ends. Otherwise, the variable-shape aircraft dynamics prediction module updates the aircraft state to the next moment state and returns to step one.
[0054] Furthermore, before executing step 1, the present invention trains the long short-term memory network auxiliary prediction module, and the training samples are:
[0055] The input states of the module are: angle of attack α, sideslip angle β, tilt angle σ, roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and deformation η; the output state is the additional moment M of the aircraft pitch, roll, and yaw channels SD ;
[0056] Starting from the initial time t0, collect n i input values as input, n o The output value is taken as the target, and the sliding window method is used to collect training samples until the remaining data no longer meets the window size.
[0057] Furthermore, before executing step 1, the present invention constructs a long short-term memory network auxiliary prediction module, and the constructed architecture is: composed of a state encoder and a state decoder, the state encoder is composed of τ LSTM units, and the state decoder is composed of an LSTM unit and a fully connected network layer; wherein the input of the state encoder is [t1,t τ ], the input of the state decoder is the encoding sequence of the state encoder and the current time t τ Aircraft status x τ , the output of the state decoder t τ+1 The additional deformation moment M SD .
[0058] Beneficial Effects
[0059] The present invention adopts a long short-term memory network, designs a network structure and an input-output form, and predicts the dynamic additional torque during the deformation process of a shape-changing aircraft. After the learning and training is completed, the long short-term memory network outputs the predicted value of the additional torque according to the current state of the aircraft, compensates the prediction model, thereby improving the accuracy of the prediction model, and further realizing the attitude stability control of the shape-changing aircraft. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1 Schematic diagram of the model predictive control system based on long short-term memory network.
[0062] Figure 2 This is a sequence prediction diagram based on LSTM.
[0063] Figure 3 Generate graph for LSTM-based sequence prediction - LSTM training sample.
[0064] Figure 4 This is the architecture diagram of the long short-term memory network auxiliary prediction module.
[0065] Figure 5 This is a flow chart of the model predictive control method based on long short-term memory network. DETAILED DESCRIPTION
[0066] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0067] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.
[0068] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0069] The design concept of the present invention is: the characteristic of the variable shape of the aircraft causes the additional torque in the aircraft dynamics prediction model to be a variable quantity. The existing method of fixing the additional torque is difficult to apply to the prediction of variable shape aircraft. Therefore, the present application designs a long short-term memory network auxiliary prediction module, which is used to calculate and output the estimated values of the additional torque of the aircraft pitch, roll, and yaw channels according to the input aircraft state. The variable shape aircraft dynamics prediction module is based on the calculated estimated value of the additional torque to accurately predict the state of the aircraft at the next moment.
[0070] Based on the above ideas, the present application embodiment provides a model predictive control system based on long short-term memory network assisted prediction, such as Figure 1 The shown components include: a long short-term memory network auxiliary prediction module, a model predictive control optimization solver, a shape-changing aircraft dynamics prediction module, and a precision control module.
[0071] The long short-term memory network auxiliary prediction module is used to calculate and output the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmit them to the shape-changing aircraft dynamics prediction module;
[0072] Model predictive control optimization solver, used to generate actuator action control sequence according to the actual attitude and expected attitude of the input aircraft, and output it to the dynamic prediction module of the shape-changing aircraft;
[0073] A dynamics prediction module for a shape-changing aircraft predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs the prediction to the precision control module;
[0074] The judgment module controls the model predictive control algorithm module to output the current control sequence to the aircraft actuator when the state at the next moment meets the set requirements; otherwise, the deformable aircraft dynamics prediction module outputs the state at the next moment to the long short-term memory network auxiliary prediction module.
[0075] In this embodiment, a long short-term memory network is used to design a network structure and input and output forms to predict the dynamic additional torque of a shape-changing aircraft during its deformation process. After learning and training, the long short-term memory network outputs the predicted value of the additional torque according to the current state of the aircraft, compensates the prediction model, thereby improving the accuracy of the prediction model and further achieving attitude stability control of the shape-changing aircraft.
[0076] The design of each module is described in detail below.
[0077] The long short-term memory network auxiliary prediction module is used to calculate and output the estimated values of the additional torque of the aircraft pitch, roll and yaw channels according to the input aircraft state and transmit them to the deformable aircraft dynamics prediction module.
[0078] The specific design process of the long short-term memory network auxiliary prediction module in this embodiment is as follows:
[0079] Construct an additional torque prediction strategy based on the long short-term memory network, determine the input and output parameters of the network, and complete the learning and training of the network.
[0080] Input: angle of attack α, sideslip angle β, roll angle σ, roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and deformation η.
[0081] Output: estimated values of additional torque in the pitch, roll, and yaw channels of the aircraft.
[0082] Long Short-Term Memory (LSTM) is a variant of Recurrent Neural Network (RNN). Because it can learn long-term dependencies in data, it has a very good effect in dealing with time series analysis problems. The network diagram is as follows Figure 2 shown.
[0083] LSTM solves the problem of gradient disappearance and gradient explosion to a certain extent by introducing forget gate, input gate and output gate.
[0084] In order to use LSTM for sequence-to-sequence prediction, the present invention adopts an encoder-decoder structure, which consists of two LSTMs. The first LSTM (encoder) processes the input sequence and generates an encoding state, which summarizes the information in the input sequence, and the second LSTM (decoder) uses the encoding state to generate the output sequence. The input and output sequences can have different lengths.
[0085] The LSTM-based sequence prediction scheme mainly includes training sample generation, LSTM encoder-decoder construction, and LSTM encoder-decoder training.
[0086] (1) Training sample generation
[0087] In order to train the LSTM encoder-decoder, the time series needs to be divided into several input value sequences of specified lengths and corresponding target value sequences. The present invention generates training samples that meet the above requirements through a time sliding window. The specific steps are as follows Figure 3 shown.
[0088] like Figure 3 As shown, starting from the initial time t0, collect n i input values as input, n o The output value is taken as the target. The sliding window method is adopted to slide the window to the second (stride=1) or third (stride=2) moment to continue collecting data until the remaining data no longer meets the window size.
[0089] After the above data collection process, the input set and target set required for training are organized into a three-dimensional matrix. Output Set Among them, the first dimension is the length of the input / output data, the second dimension is the number of samples generated by the sliding window method, and the third dimension is the number of input / output features.
[0090] Set the input state to attack angle α, sideslip angle β, tilt angle σ, roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and deformation η, the output state is the additional moment M of the aircraft pitch, roll, and yaw channels SD . Additional torque M SD The theoretical solution calculated from the mathematical expression can be used as the training data of LSTM.
[0091] (2) LSTM encoder-decoder construction
[0092] like Figure 4As shown in FIG. 1 , the deep learning model compensation module consists of a state encoder and a state decoder. The state encoder consists of τ LSTM units, and the state decoder consists of an LSTM unit and a fully connected network layer. The state encoder is [t1,t τ ] is used as the aircraft state sequence at the moment, and several LSTM units are used to generate the encoded state; the state decoder receives the encoded state transmitted by the state encoder, and at the same time uses the aircraft state x at the current moment τ For input, τ+1 The deformation additional force and additional moment at the moment are predicted.
[0093] Compared with the traditional method [t1,t τ ] aircraft state sequence prediction at time t τ+1 The aircraft state at time x τ+1 , further use x τ+1 Estimation t τ+1 Compared with the scheme of deformation additional force and additional moment at the moment, this scheme directly establishes [t1,t τ ] The aircraft state sequence at time t τ+1 The relationship between the deformation additional force and the additional torque at each moment is calculated. When predicting the additional force and the additional torque, the aircraft state at multiple moments is fully utilized, while avoiding the introduction of the intermediate variable x τ+1 The transmission error caused.
[0094] (3) LSTM encoder-decoder training
[0095] After the LSTM decoder generates an output sequence of the required length, the prediction is compared with the actual target value, and the error mean square error is used as the loss function for network training. Backpropagation is then used to adjust the weights of the LSTM gates to minimize the loss function. After the LSTM encoder-decoder training is completed, its prediction accuracy can be tested using the data in the test set. The prediction of all test data is performed using a recursive method.
[0096] The model predictive control (MPC) optimization solver is used to generate the actuator action control sequence according to the actual attitude and expected attitude of the input aircraft, and output it to the dynamic prediction module of the shape-shifting aircraft.
[0097] The MPC algorithm is a prior art. In this embodiment, based on the existing MPC algorithm, the objective function and constraint conditions of the MPC algorithm are designed in view of the characteristics of the shape-changing aircraft, so as to make it suitable for the shape-changing aircraft.
[0098] The following is a detailed description of the MPC algorithm and its improvements:
[0099] Input: The actual attitude and expected attitude of the aircraft at the current moment.
[0100] Output: The action sequence of the aircraft actuator at the current moment.
[0101] The model predictive control algorithm is derived from the nonlinear affine equation of the aircraft attitude control system, which can be expressed as
[0102]
[0103] Where Θ = [α β σ] T Represents the attitude angle vector, namely the angle of attack, sideslip angle, and roll angle, ω b =[ω x ω y ω z ] T represents the attitude angular velocity vector, Q is the attitude angular velocity conversion matrix, the specific form is as follows
[0104]
[0105] Let the system state variable be x = [α β σ ω x ω y ω z ] T , the above formula can be further rewritten into the following form
[0106]
[0107] Among them, f(x) is the system state nonlinear term, g(x) is the system input nonlinear term, and Θ is the system output variable.
[0108] The first-order derivative of the output with respect to time is
[0109]
[0110] In the formula, And it is easy to know L gi h j (x)=0, obviously It is independent of the control quantity M. Further calculation of the second-order derivative of the output with respect to time yields
[0111]
[0112] In the above formula, each component F=[F1 F2 F3] T , It can be expressed by the following formula
[0113]
[0114] Finding the determinant of matrix E gives
[0115]
[0116] So, in In this case, |E|≠0. Considering that BTT control is adopted during the reentry of the spacecraft, E is reversible during the control process.
[0117] Therefore, the second-order derivative of the output is related to the control quantity, and the relative order of each channel is 2. The total relative order of the system is equal to the system order, so the system does not contain internal dynamics and can be fully feedback linearized. The following linear system is obtained
[0118]
[0119] in,
[0120]
[0121] Discretize the linearized system
[0122] ξ(k+1)=A d ξ(k)+B d ν(k)
[0123] y(k)=Cξ(k)
[0124] Among them are
[0125] A d =AT s +I
[0126] B d =BT s
[0127] The expressions of the state and output of the system in the prediction time domain are:
[0128]
[0129]
[0130] Where N P is the prediction time domain, indicating that the prediction time is N P The calculation step length is N C is the control time domain, indicating that the control period is N C Calculation step length.
[0131] make
[0132]
[0133] The aircraft discrete system prediction model can be obtained
[0134] Y=Fx(k i )+ΦU
[0135] In the formula, is the control matrix, F and Φ are the recursive matrices of the system, which can be expressed as
[0136]
[0137] The process of continuous reversible shape change of shape-changing aircraft will aggravate the interference of complex aerodynamic conditions on the aircraft, reduce the accuracy of the model, and bring uncertainties to the control ability of the control system. In the process of model predictive control, it is necessary to consider the constraints on the change of control quantity and introduce the influence of deformation quantity in the process of optimizing target design.
[0138] Considering the control quantity constraints
[0139] u min ≤u≤u max
[0140] The new control quantity constraint is
[0141]
[0142] Further sorting out
[0143]
[0144] In order to solve the optimal control quantity that meets the requirements, it is necessary to set a suitable optimization goal and use the objective function in the following form.
[0145]
[0146] Among them, Q is the state quantity weight diagonal matrix, R is the control quantity weight diagonal matrix, N P is the prediction time domain, N C is the control time domain, e(k+i) is the deviation between the predicted state at the k+i-th moment and the expected value at the k+i-th moment, e′(k+i) is the transpose of e(k+i), Δν(k+i-1|k) is the deviation between the control quantity at the k+i-1th moment and the control quantity at the k+i-2th moment, and Δν′(k+i-1|k) is the transpose of Δν(k+i-1|k).
[0147] In order to improve the efficiency of controller parameter tuning, the diagonal matrix of control quantity weights is designed as
[0148] R=R K I
[0149] Where I is the unit matrix, R K is the control quantity weight coefficient.
[0150] The first item of the objective function considers the impact of the error on the system. Putting the error into the objective function can enable the system to achieve rapid control; the second item considers the impact of the control quantity on the system, so that the system can maintain a stable state during rapid control and avoid the impact of the control quantity on the system performance due to deformation jumps; the third item considers the impact of the aerodynamic disturbance exerted on the aircraft during the reversible deformation process on the torque, so that the system can adjust the aerodynamic changes caused by deformation and enhance the robustness of the system.
[0151] The shape-changing aircraft dynamics prediction module predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs it to the judgment module.
[0152] Input: current moment, aircraft status, actuator instructions.
[0153] Output: The state of the aircraft at the next moment.
[0154] The aircraft dynamics module is the aircraft attitude dynamics equation, the equation group is as follows
[0155]
[0156] In the formula, ω x is the pitch angular velocity of the roll channel, ω y is the pitch angular velocity of the yaw channel, ω z is the roll angular velocity of the pitch channel, J· is the moment of inertia of the aircraft. The additional dynamic moment of aircraft deformation M SD and deformation gravity moment M G They can be expressed as:
[0157]
[0158] In the formula, S xi , S yi , S zi For S i The component in the missile body coordinate system, S i It is the radius vector from the origin of the body coordinate system to the center of mass of the movable wing.
[0159] In the expression of the additional moment generated by the deformation, the first-order derivative of the movable wing radius vector is and the second derivative It cannot be obtained directly through sensors, so it is not easy to obtain the additional torque of the current state in actual engineering applications, which reduces the control effect of model predictive control.
[0160] Judgment module, when the state at the next moment meets the set requirements, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator, otherwise the deformable aircraft dynamics prediction module outputs the state at the next moment to the long short-term memory network auxiliary prediction module.
[0161] The present invention can solve a series of system state quantities and control quantities in the prediction time domain through optimization. The model predicts that the control quantity within the control range is taken as the actual control quantity to act on the system input. When the next control cycle starts, the prediction time moves forward at the same time. The posture control is realized through this rolling optimization.
[0162] The judgment module of this embodiment, when it is determined that the state at the next moment does not meet the set requirements, but the number of cycles reaches the set upper limit, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator.
[0163] On the other hand, the present application embodiment provides a model predictive control method based on long short-term memory network assisted prediction. After the training is completed, the flow chart of the model predictive control method based on long short-term memory network is as follows: Figure 5 As shown (taking one control cycle as an example), the specific process is:
[0164] Step 1: The long short-term memory network auxiliary prediction module calculates and outputs the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmits them to the shape-changing aircraft dynamics prediction module;
[0165] Step 2: The model predictive control optimization solver generates an actuator action control sequence based on the actual attitude and expected attitude of the input aircraft, and outputs it to the dynamics prediction module of the shape-changing aircraft;
[0166] Step 3: The shape-changing aircraft dynamics prediction module predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs it to the judgment module;
[0167] Step four, the judgment module judges whether the state meets the control accuracy requirements. When the state at the next moment meets the set requirements, the model predictive control algorithm module is controlled to output the current control sequence to the aircraft actuator to complete the attitude control of the variable-shape aircraft, and the algorithm ends. Otherwise, the variable-shape aircraft dynamics prediction module updates the aircraft state to the next moment state and returns to step one.
[0168] The embodiments of the present application are aimed at the problems that the traditional model predictive control algorithm has a high degree of model dependence and insufficient modeling parameters for the additional torque in the deformation process of the shape-changing aircraft. The present invention uses a long short-term memory network to predict the dynamic additional torque in the shape-changing process to improve the accuracy of the prediction model. The prediction model in the model predictive control algorithm needs to consider the additional torque generated by the shape change, but the mathematical model of the additional torque contains parameters such as the second-order derivative of the deformation with respect to time that cannot be directly obtained using sensors. The present invention adopts a long short-term memory network, designs the network structure and the input and output form, and predicts the dynamic additional torque in the deformation process of the shape-changing aircraft. After the learning and training are completed, the long short-term memory network outputs the predicted value of the additional torque according to the current state of the aircraft, compensates the prediction model, thereby improving the accuracy of the prediction model, and then realizing the attitude stability control of the shape-changing aircraft.
[0169] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A model predictive control system based on long short-term memory network assisted prediction, It is characterized in that include: Long short-term memory network-assisted prediction module, model predictive control optimization solver, variable shape aircraft dynamics prediction module, and precision control module; The long short-term memory network auxiliary prediction module is used to calculate and output the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmit them to the shape-changing aircraft dynamics prediction module; Model predictive control optimization solver, used to generate actuator action control sequence according to the actual attitude and expected attitude of the input aircraft, and output it to the dynamic prediction module of the shape-changing aircraft; A dynamics prediction module for a shape-changing aircraft predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs the prediction to the precision control module; Judgment module, when the state at the next moment meets the set requirements, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator, otherwise the deformable aircraft dynamics prediction module outputs the state at the next moment to the long short-term memory network auxiliary prediction module.
2. According to claim 1, the model predictive control system based on long short-term memory network assisted prediction, It is characterized in that When the judgment module determines that the state at the next moment does not meet the set requirements, but the number of cycles reaches the set upper limit, the model predictive control algorithm module outputs the current control sequence to the aircraft actuator.
3. According to the model predictive control system based on long short-term memory network assisted prediction as claimed in claim 1, It is characterized in that The aircraft state is the angle of attack α, the sideslip angle β, the tilt angle σ, the roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and any combination of deformation η.
4. According to claim 1, the model predictive control system based on long short-term memory network assisted prediction, It is characterized in that The training samples used to train the long short-term memory network auxiliary prediction module are: The input states of the module are: angle of attack α, sideslip angle β, tilt angle σ, roll angular velocity ω x , pitch angular velocity ω z , yaw angular velocity ω y and deformation η; the output state is the additional moment M of the aircraft pitch, roll, and yaw channels SD ; From the initial time t 0 Start, collect n i input values as input, n o The output value is taken as the target, and the sliding window method is used to collect training samples until the remaining data no longer meets the window size.
5. The model predictive control system based on long short-term memory network assisted prediction according to any one of claims 1 to 4, It is characterized in that The architecture of the LSTM network auxiliary prediction module is as follows: it is composed of a state encoder and a state decoder, wherein the state encoder is composed of τ LSTM units, and the state decoder is composed of one LSTM unit and a fully connected network layer; wherein the input of the state encoder is [t 1 ,t τ ], the state sequence of the aircraft at the time t, the input of the state decoder is the encoding sequence of the state encoder and the current time t τ Aircraft status x τ , the output of the state decoder t τ+1 The additional deformation moment M SD .
6. According to claim 1, the model predictive control system based on long short-term memory network assisted prediction, It is characterized in that The model predictive control optimization solver is obtained through training, where the control quantity constraint during the training process is in, and θ(x) are the state feedback matrices of the actual rudder deflection angle and the virtual control quantity, ν is the virtual control quantity to be solved in the model predictive control, and u min is the minimum value of the rudder deflection angle, u max is the maximum value of the rudder deflection angle.
7. According to claim 1, the model predictive control system based on long short-term memory network assisted prediction, It is characterized in that The model predictive control optimization solver is obtained through training, wherein the objective function during the training process is: Among them, Q is the state quantity weight diagonal matrix, R is the control quantity weight diagonal matrix, N P is the prediction time domain, N C is the control time domain, e(k+i) is the deviation between the predicted state at the k+i-th moment and the expected value at the k+i-th moment, e′(k+i) is the transpose of e(k+i), Δν(k+i-1|k) is the deviation between the control quantity at the k+i-1th moment and the control quantity at the k+i-2th moment, and Δν′(k+i-1|k) is the transpose of Δν(k+i-1|k).
8. According to claim 7, the model predictive control system based on long short-term memory network assisted prediction, It is characterized in that The control amount weight diagonal matrix R is: R=R K I Where I is the unit matrix, R K is the control quantity weight coefficient.
9. A model predictive control method based on long short-term memory network assisted prediction for the control system according to any one of claims 1 to 8, the specific process being: Step 1: The long short-term memory network auxiliary prediction module calculates and outputs the estimated values of the additional moment of the pitch, roll and yaw channels of the aircraft according to the input aircraft state and transmits them to the shape-changing aircraft dynamics prediction module; Step 2: The model predictive control optimization solver generates an actuator action control sequence based on the actual attitude and expected attitude of the input aircraft, and outputs it to the dynamics prediction module of the shape-changing aircraft; Step 3: The shape-changing aircraft dynamics prediction module predicts the state of the shape-changing aircraft at the next moment based on the additional torque and the actuator action control sequence, and outputs it to the judgment module; Step four, the judgment module judges whether the state meets the control accuracy requirements. When the state at the next moment meets the set requirements, the model predictive control algorithm module is controlled to output the current control sequence to the aircraft actuator to complete the attitude control of the variable-shape aircraft, and the algorithm ends. Otherwise, the variable-shape aircraft dynamics prediction module updates the aircraft state to the next moment state and returns to step one.
10. The model predictive control method based on long short-term memory network assisted prediction according to claim 9, It is characterized in that Before executing step 1, the long short-term memory network auxiliary prediction module is constructed. The constructed architecture is composed of a state encoder and a state decoder. The state encoder is composed of τ LSTM units, and the state decoder is composed of an LSTM unit and a fully connected network layer; wherein the input of the state encoder is [t 1 ,t τ ], the state sequence of the aircraft at the time t, the input of the state decoder is the encoding sequence of the state encoder and the current time t τ Aircraft status x τ , the output of the state decoder t τ+1 The additional deformation moment M SD .
Citation Information
Cited By
Hypersonic variable configuration aircraft intelligent control design method based on layered architecture
CN118965828A
Intelligent control design method for hypersonic variable configuration aircraft based on layered architecture
CN118965828B
Aerocar attitude control method and system based on deep neural network
CN119781517A
Cross-domain variable configuration high-speed aircraft adaptive attitude control method and system based on neural network identification, and storage medium
CN119828466A
