2-DOF helicopter multi-trajectory tracking control method and system based on enhanced dynamic learning
By introducing the reinforcement learning framework and sliding mode control into the multi-trajectory tracking control of the helicopter and dynamically adjusting the learning controller, the problem of knowledge invalidation caused by the deviation of the learning trajectory is solved, and the high efficiency, accuracy and stability of the multi-trajectory tracking control of the helicopter are achieved.
Patent Information
- Application Number
- CN202410131287.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-01-29
AI Technical Summary
In the existing technology, in helicopter multi-trajectory tracking control, when the learned trajectory deviates from the reference trajectory, the knowledge will be invalid, affecting the tracking performance of the learning controller, making it difficult to achieve stable and efficient control in complex environments.
Adopt a 2-DOF helicopter multi-trajectory tracking control method based on reinforcement dynamic learning, dynamically adjust the learning controller by introducing a reinforcement learning framework, combine deterministic learning and sliding mode control, design adaptive neural networks and evaluation and action neural networks, and dynamic compensation error to improve the robustness and tracking performance of the controller.
It effectively avoids the problem of inaccurate physics modeling, enhances the robustness of the learning controller, improves the accuracy and stability of helicopter multi-trajectory tracking control, and adapts to complex and changeable operating environments.
Smart Images

Figure CN118012125B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic control technology, and in particular to a 2-DOF helicopter multi-trajectory tracking control method and system based on enhanced dynamic learning. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] At present, helicopters are widely used in military, civil, industrial and other complex environments. In recent years, ensuring the safety of helicopter flight and operation has become a research hotspot, especially in the field of attitude control. However, helicopters are a type of nonlinear system with multiple inputs and outputs. The uncertainty and strong coupling of the system make traditional linear control methods unable to meet the attitude control requirements in complex environments. Therefore, it is urgent to study a nonlinear control strategy with enhanced dynamic adjustment capabilities.
[0004] Deterministic learning is a dynamic learning method. When the PE condition is met, the radial basis neural network can accurately learn the nonlinear local dynamics of the system along the regression trajectory. Then, the learned dynamic model is stored as a constant neural network for reconstructing the learning controller. This learning and reuse process reflects the knowledge acquisition and utilization capabilities of neural networks, making deterministic learning widely used in various fields. However, in actual application, when the learned trajectory deviates significantly from the reference trajectory, this part of the learned knowledge will be partially invalid, causing the tracking performance of the learning controller to deteriorate. Therefore, how to make timely adaptive corrections to the learned trajectory to ensure the stability of the learning controller, thereby achieving efficient and accurate helicopter multi-trajectory tracking control, has become a technical problem that needs to be solved urgently in the existing technology. Summary of the invention
[0005] In view of the problem of partial knowledge invalidation caused by the fact that the multiple trajectories obtained in actual applications are different from the trajectories in the learning process, the purpose of the present invention is to provide a 2-DOF helicopter multi-trajectory tracking control method and system based on reinforced dynamic learning. By introducing a reinforcement learning framework to dynamically compensate for this part of the error, the stability of deterministic learning and the optimality of reinforcement learning can be brought into play to achieve efficient and accurate helicopter multi-trajectory tracking control.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0007] The first aspect of the present invention provides a 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning, comprising the following steps:
[0008] Obtain the helicopter attitude parameters and establish a dynamic model based on the attitude information;
[0009] Design an adaptive neural network based on the dynamic model, and design a learning controller for the adaptive neural network based on the sliding mode control strategy;
[0010] The learning controller is dynamically adjusted using a reinforcement learning framework to obtain the final controller, wherein the reinforcement learning framework includes an evaluation neural network and an action neural network. The evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action;
[0011] The final controller is used to perform multi-trajectory tracking control of the helicopter.
[0012] Furthermore, the dynamic model is established as:
[0013]
[0014] Among them, θ represents the pitch angle, represents the yaw angle, J p is the moment of inertia of pitch motion, J y is the moment of inertia of yaw motion, D p is the friction coefficient of pitching motion, D y is the friction coefficient for yaw motion, K pp is the torque thrust gain acting on the pitch axis in the pitch propeller, K py is the torque thrust gain of the yaw propeller acting on the pitch axis, K yp is the torque thrust gain in the pitch propeller acting on the yaw axis, K yy is the torque thrust gain acting on the yaw axis in the yaw propeller, L is the distance from the center of mass to the origin of the fixed coordinate system, g is the gravitational acceleration, V p is the motor voltage input to control the pitch motion, V y is the motor voltage input that controls the yaw motion.
[0015] Furthermore, the specific steps of designing an adaptive neural network include:
[0016] The radial basis function neural network is used to identify the dynamic model, and the identified dynamic knowledge is stored in the form of constant neural network weights.
[0017] Furthermore, the specific formula for designing a learning controller for an adaptive neural network based on a sliding mode control strategy includes:
[0018] Design of sliding surface:
[0019] S=-C1E1+E2,
[0020] Among them, S is the synovial surface, E1=Z1 and Z1 is the tracking error variable, is the time differential of Z1, C1 is the adjustable control gain;
[0021] The design of the ideal controller is:
[0022]
[0023] Among them, τ * (t) is the ideal controller function, C2 is the adjustable control gain positive number, K g is the adaptive parameter, It means that in the time interval [t a , t b ] Find the average, To estimate the weight, is the network input vector The Gaussian radial basis function of is, and sign(·) is the sign function. In particular, this is the learning sliding mode controller in which the knowledge acquired by learning is determined. Established under.
[0024] Furthermore, the design steps of evaluating the neural network include:
[0025] Define a long-term cost function, use a radial basis neural network to approximate the long-term cost function and obtain the approximation error;
[0026] Construct the total error based on the approximation error;
[0027] The total error is corrected using the gradient descent method update and correction technique to obtain the weight update rate of the evaluation neural network.
[0028] Further, the design steps of the action neural network include:
[0029] According to the influence of the evaluation neural network, the radial basis neural network is used to approximate the optimal parameters and obtain the approximation error;
[0030] The approximation error is corrected using the gradient descent method update and correction technique to obtain the weight update rate of the action neural network.
[0031] Furthermore, the final controller is:
[0032]
[0033] Among them, τ(t) is the final controller function, is the unknown parameter K g The estimated value of Ψ(S) = diag[sign(s1), sign(s2)], where sign(·) is the sign function. In particular, the unknown parameter K gReinforcement learning will be used for dynamic approximation.
[0034] A second aspect of the present invention provides a 2-DOF helicopter multi-trajectory tracking control system based on enhanced dynamic learning, comprising:
[0035] A parameter acquisition module is configured to acquire the attitude parameters of the helicopter and establish a dynamic model according to the attitude information;
[0036] a control design module configured to design an adaptive neural network according to a dynamic model and to design a learning controller for the adaptive neural network based on a sliding mode control strategy;
[0037] A control optimization module is configured to dynamically adjust the learning controller using a reinforcement learning framework to obtain a final controller, wherein the reinforcement learning framework includes an evaluation neural network and an action neural network, the evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action;
[0038] The adaptive control module is configured to perform multi-trajectory tracking control of the helicopter using the final controller.
[0039] The third aspect of the present invention provides a medium having a program stored thereon, which, when executed by a processor, implements the steps in the 2-DOF helicopter multi-trajectory tracking control method based on reinforced dynamic learning as described in the first aspect of the present invention.
[0040] The fourth aspect of the present invention provides a device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the 2-DOF helicopter multi-trajectory tracking control method based on reinforced dynamic learning as described in the first aspect of the present invention are implemented.
[0041] One or more of the above technical solutions have the following beneficial effects:
[0042] The present invention discloses a 2-DOF helicopter multi-trajectory tracking control method and system based on enhanced dynamic learning, which adopts a deterministic learning method to accurately model the helicopter system locally, effectively avoiding the inaccurate physical modeling caused by too many parameters that are difficult to accurately measure, complex dynamic analysis and other problems in the system.
[0043] The present invention combines the deterministic learning method with sliding mode control to construct a sliding mode learning controller. In order to cope with the complex and changeable operating environment, the reinforcement learning framework is introduced to dynamically adjust the parameters to enhance the robustness of the learning controller and improve the control performance.
[0044] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0046] Figure 1 is a control design flow chart in Embodiment 1 of the present invention;
[0047] FIG. 2( a ) is a simulation diagram of the pitch angle tracking performance of the adaptive control process of the 2-DOF helicopter system in the first embodiment of the present invention;
[0048] FIG2( b ) is a simulation diagram of the yaw angle tracking performance of the adaptive control process of the 2-DOF helicopter system in the first embodiment of the present invention;
[0049] FIG3( a ) is a simulation diagram of the weight convergence of the neural network W1 in the first embodiment of the present invention;
[0050] FIG3( b ) is a simulation diagram of the weight convergence of the neural network W2 in the first embodiment of the present invention;
[0051] FIG4(a) is the output of the neural network in the first embodiment of the present invention. and the unknown system dynamics F nn1 Approximate simulation diagram of unknown function;
[0052] FIG4( b ) is the output of the neural network in the first embodiment of the present invention. and the unknown system dynamics F nn2 Approximate simulation diagram of unknown function;
[0053] FIG5( a ) is a schematic diagram of tracking performance in adaptive neural network control in Embodiment 1 of the present invention;
[0054] FIG5( b ) is a schematic diagram of tracking performance in a learning controller in Embodiment 1 of the present invention;
[0055] FIG5( c ) is a comparison diagram of tracking performance in controllers designed based on reinforcement learning and deterministic learning in Embodiment 1 of the present invention;
[0056] FIG5( d ) is a comparison diagram of tracking errors in three control schemes in Embodiment 1 of the present invention;
[0057] FIG6(a) is a diagram of the judgment and action neural network weights of reinforcement learning in the first embodiment of the present invention; FIG6(b) is a diagram of the action neural network output of reinforcement learning in the first embodiment of the present invention. DETAILED DESCRIPTION
[0058] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0059] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "include" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or their combinations;
[0060] Embodiment 1:
[0061] Embodiment 1 of the present invention provides a 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning. Taking a 2-DOF helicopter as an example, Figure 1 As shown, the following steps are included:
[0062] Step 1: Obtain the helicopter attitude parameters and establish a dynamic model based on the attitude information.
[0063] Step 2: Design an adaptive neural network according to the dynamic model, and design a learning controller for the adaptive neural network based on the sliding mode control strategy.
[0064] Step 3: Use the reinforcement learning framework to dynamically adjust the learning controller to obtain the final controller.
[0065] Step 4: Use the final controller to perform multi-trajectory tracking control of the helicopter.
[0066] In step 1, the kinetic model is established as:
[0067]
[0068] Among them, θ represents the pitch angle, represents the yaw angle, M represents the mass of the helicopter motor, and J p is the moment of inertia of pitch motion, J y is the moment of inertia of yaw motion, D p is the friction coefficient of pitching motion, D y is the friction coefficient for yaw motion, k pp is the torque thrust gain acting on the pitch axis in the pitch propeller, K py is the torque thrust gain of the yaw propeller acting on the pitch axis, K ypis the torque thrust gain in the pitch propeller acting on the yaw axis, K yy is the torque thrust gain acting on the yaw axis in the yaw propeller, L is the distance from the center of mass to the origin of the fixed coordinate system, g is the gravitational acceleration, V p is the motor voltage input to control the pitch motion, V y is the motor voltage input that controls the yaw motion.
[0069] Defining state variables and input variable τ=[V p ,V y ] T Then, the kinetic model equations (1) and (2) can be simplified to:
[0070]
[0071] Among them, F(χ1,χ2) and G(χ1) are nonlinear functions, expressed as
[0072]
[0073]
[0074] In step 2, the specific steps of designing an adaptive neural network include:
[0075] The radial basis function neural network is used to identify the dynamic model, and the identified dynamic knowledge is stored in the form of constant neural network weights.
[0076] In a specific implementation, identifying the dynamic model using a radial basis function neural network includes:
[0077] (1) Define tracking error:
[0078] Z1=χ1-X d ,
[0079] Z2=χ2-α,
[0080]
[0081] Among them, X d represents the reference trajectory, represents the time derivative of the reference trajectory. α is the defined virtual controller. Z1 and Z2 are the two tracking error variables defined respectively. C1 is the adjustable control gain.
[0082] (2) Define a neural network to approximate an unknown nonlinear function:
[0083]
[0084] Among them, f nn is a local nonlinear unknown function in the 2-DOF helicopter system, are the estimated weights of the neural network, is the network input vector Gaussian radial basis function. is the time derivative of the auxiliary variable α.
[0085] (4) Define the weight update law of the neural network:
[0086]
[0087] in, is the estimated weight The time derivative of , ┌1 is the weight update gain, and σ1 is an adjustable very small positive number.
[0088] (5) Design the learning process control rate τ(t):
[0089]
[0090] Where C2 is a positive adjustable control gain.
[0091] In this embodiment, a Lyapunov function is constructed to analyze the stability of the helicopter system.
[0092] Specifically, according to the nonlinear equation of the system, the Lyapunov function V(t) is constructed and the stability of the 2-DOF helicopter system is analyzed:
[0093] The Lyapunov function V(t) of the 2-DOF helicopter system is defined as:
[0094]
[0095] in, represents the weight estimation error, and W * Represents the optimal weight. According to the Lyapunov theorem, the positive definiteness of the defined Lyapunov function V(t) can be known, and then verified The negative definiteness of , shows that the system is asymptotically stable.
[0096] According to deterministic learning theory, under the condition of continuous excitation, the weights of the radial basis neural network will converge to a constant value. Then, the weight learning weights can be stored in the form of mean, which can be expressed as:
[0097]
[0098] in, It means that in the time interval [ta ,t b ] Find the average value. And 0 <t a <t b .
[0099] The sliding mode control strategy is to introduce a sliding surface to limit the system state, and adjust the controller parameters to maintain or change the motion trajectory of the system state, so as to achieve the desired target state. Combined with the dynamic knowledge obtained by deterministic learning, the specific formula of the learning sliding mode controller in this design includes:
[0100] (1) Design of sliding surface:
[0101] S=-C1E1+E2
[0102] Among them, S is the synovial surface, E1=Z1 and Z1 is the tracking error variable, is the time derivative of Z1, and C1 is the adjustable control gain.
[0103] (2) The design of the ideal controller is:
[0104]
[0105] Among them, τ * (t) is the ideal controller function, C2 is the adjustable control gain positive number, K g is an adaptive parameter rather than a fixed one. It means that in the time interval [t a ,t b ] Find the average, To estimate the weight, is the network input vector The Gaussian radial basis function of is, and sign(·) is the sign function. In particular, this is the learning sliding mode controller in which the knowledge acquired by learning is determined. Established under.
[0106] Adaptive parameter K g The value of determines the tracking performance and robustness of the controller, and usually needs to be manually selected. However, fixed values are not suitable for complex and changing environments. In summary, this embodiment uses a reinforcement learning framework to dynamically adjust the parameter K g .
[0107] Reinforcement learning is another form of dynamic learning. It uses reward and punishment feedback to maximize long-term rewards and learn optimal control strategies. Due to its powerful online adjustment capability, the integration of reinforcement learning with other control methods has received widespread attention. In order to better cope with complex and changing operating environments, this embodiment constructs a composite controller with a deterministic learning controller as the baseline controller and a reinforcement learning controller as an auxiliary.
[0108] In step 3, the reinforcement learning framework includes an evaluation neural network and an action neural network. The evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action. The design steps of the evaluation neural network include:
[0109] (1) Define the long-term cost function, use the radial basis function neural network to approximate the long-term cost function and obtain the approximation error.
[0110] First, define the long-term cost function L(t) as follows:
[0111]
[0112] where ψ is the discount factor, and is the instantaneous cost function, expressed as:
[0113]
[0114] Among them, Q and R are both positive definite symmetric matrices. In particular, ι is a threshold set manually. This is when the system cannot reach an absolute zero tracking error due to mechanical structure and other reasons during operation. At this time, the threshold is set to make the system reach a reasonable tracking error range, and no penalty is given.
[0115] Use radial basis neural network to approximate the long-term cost function and define and in, H c , They are the optimal weights for evaluating the neural network, the estimated weights, the estimated error, the radial basis function and the input vector of the neural network. is an estimate of the unknown number L.
[0116] Define the approximation error e c for:
[0117]
[0118] in, yes The time differential of .
[0119] (2) Construct the total error E based on the approximation errorc .
[0120]
[0121] (3) Using the gradient descent method and σ correction technology, the weight update rate of the evaluation neural network is obtained.
[0122] The weight update rate of the evaluation neural network is designed to be:
[0123]
[0124] Among them, Γ c is the update gain, σ c is a small normal number. Express The σ correction technique here is to ensure that the weights of the neural network are bounded.
[0125] The design steps of the action neural network include:
[0126] (1) According to the influence of the evaluation neural network, the radial basis neural network is used to approximate the optimal parameters and obtain the approximation error.
[0127] Specifically, to use radial basis neural network to approximate the optimal parameter K g , respectively define and in, H a , They are the optimal weights of the action neural network, the estimated weights, the estimated error, the radial basis function and the input vector of the neural network. is the unknown parameter K g The estimated value of .
[0128] Define the approximation error e a for:
[0129]
[0130] Among them, K L is the factor that judges the influence of the neural network on the action neural network, L d = 0 is the expected value of the evaluation neural network. In this embodiment, the error is constructed by using the sliding surface variable. The error includes the sliding error and the error between the evaluation value and the expected evaluation value, and is used to guide the weight of updating the action neural network.
[0131] (2) The weight update rate of the action neural network is obtained by using the gradient descent method and the σ correction technique.
[0132] The weight update rate of the action neural network is designed to be:
[0133]
[0134] Among them, Γ a is the update gain, σ a is a small positive constant. Similarly, the σ correction technique is also used here to ensure that the weights of the neural network are bounded.
[0135] According to the Lyapunov stability analysis theory, the dynamic adjustment switching gain K of the reinforcement learning framework is introduced g , the final controller design is:
[0136]
[0137] Among them, τ(t) is the final controller function, is the unknown adaptive parameter K g The estimated value of , Ψ(S) = diag[sign(s1), sign(s2)], sign(·) is the sign function. Here the final controller Demonstrates a determined nature of learning, It exhibits the properties of reinforcement learning, so the controller is able to exert the stability of deterministic learning and the optimality of reinforcement learning.
[0138] In addition, a candidate Lyapunov function is designed to prove the stability of the closed-loop system:
[0139] In order to ensure the convergence of the sliding surface, the weights of the evaluation neural network and the action neural network, the Lyapunov function V1(t) of the 2-DOF helicopter system is defined as:
[0140]
[0141] represents the error in evaluating the neural network weight estimation, Represents the weight estimation error of the action neural network. According to the Lyapunov theorem, the positive definiteness of the defined Lyapunov function V(t) can be verified. The negative definiteness of , shows that the system is asymptotically stable.
[0142] Figure 2(a) is a simulation diagram of the pitch angle tracking performance of the adaptive control process of the 2-DOF helicopter system. It can be found from the figure that with the passage of time, the pitch angle of the 2-DOF helicopter can gradually track the predetermined sinusoidal reference trajectory, that is, the tracking error gradually tends to 0. Figure 2(b) is a simulation diagram of the yaw angle tracking performance of the adaptive control process of the 2-DOF helicopter system. It can be found from the figure that with the passage of time, the yaw angle of the 2-DOF helicopter can gradually track the predetermined sinusoidal reference trajectory, that is, the tracking error gradually tends to 0. Figure 3(a) is a simulation diagram of the weight convergence of the neural network W1. It can be found from the figure that with the passage of time, the weight of the neural network W1 will tend to a constant value. Figure 3(b) is a simulation diagram of the weight convergence of the neural network W2. It can be found from the figure that with the passage of time, the weight of the neural network W2 will tend to a constant value. Figure 4(a) is the output of the neural network and the unknown system dynamics F nn1 Approximate simulation diagram of unknown function. From the diagram, we can find that as time goes by, the output of the neural network Gradually approaching the unknown system dynamics. Figure 4(b) is the output of the neural network and the unknown system dynamics F nn2 Approximate simulation diagram of unknown function. From the diagram, we can find that as time goes by, the output of the neural network Gradually approaching the unknown system dynamics. Figure 5(a) is a schematic diagram of tracking performance in adaptive neural network control, which shows the changing trend of pitch angle and yaw angle when tracking the preset reference trajectory under adaptive neural network control. Figure 5(b) is a schematic diagram of tracking performance in a learning controller, which shows the changing trend of pitch angle and yaw angle when tracking the preset reference trajectory under learning control. Figure 5(c) is a comparison diagram of tracking performance in controllers designed based on reinforcement learning and deterministic learning, which shows the changing trend of pitch angle and yaw angle when tracking the preset reference trajectory under control designed based on reinforcement learning and deterministic learning.
[0143] Figure 5(d) is a comparison of the tracking errors of the three control schemes. The figure shows the curve changes of the tracking errors under the three control schemes. It can be found that when the reference trajectory is multi-trajectory, the control performance designed based on reinforcement learning and deterministic learning is the best. Figure 6(a) is a weight diagram of the judgment and action neural network of reinforcement learning. The figure shows that the weights of the judgment and action neural networks change when the trajectory changes at 20s and 40s, and then gradually tend to stabilize. Figure 6(b) is the output diagram of the action neural network of reinforcement learning. The figure shows the action neural network for The approximate value of .
[0144] Embodiment 2:
[0145] Embodiment 2 of the present invention provides a 2-DOF helicopter multi-trajectory tracking control system based on enhanced dynamic learning, including:
[0146] A parameter acquisition module is configured to acquire the attitude parameters of the helicopter and establish a dynamic model according to the attitude information;
[0147] a control design module configured to design an adaptive neural network according to a dynamic model and to design a learning controller for the adaptive neural network based on a sliding mode control strategy;
[0148] A control optimization module is configured to dynamically adjust the learning controller using a reinforcement learning framework to obtain a final controller, wherein the reinforcement learning framework includes an evaluation neural network and an action neural network, the evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action;
[0149] The adaptive control module is configured to perform multi-trajectory tracking control of the helicopter using the final controller.
[0150] Embodiment three:
[0151] Embodiment 3 of the present invention provides a medium on which a program is stored. When the program is executed by a processor, the steps in the 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning as described in Embodiment 1 of the present invention are implemented.
[0152] Embodiment 4:
[0153] Embodiment 4 of the present invention provides a device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the 2-DOF helicopter multi-trajectory tracking control method based on reinforced dynamic learning as described in Embodiment 1 of the present invention are implemented.
[0154] The steps involved in the above embodiments 2, 3 and 4 correspond to the method embodiment 1. For the specific implementation methods, please refer to the relevant description part of embodiment 1.
[0155] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0156] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A 2-DOF helicopter multi-trajectory tracking control method based on reinforcement dynamic learning, It is characterized in that The following steps are involved: Obtain the helicopter attitude parameters and establish a dynamic model based on the attitude information; Design an adaptive neural network based on the dynamic model, and design a learning controller for the adaptive neural network based on the sliding mode control strategy; The specific formula for designing a learning controller for an adaptive neural network based on a sliding mode control strategy includes: Design of sliding surface: S=-C 1 E 1 +E 2 , Among them, S is the synovial surface, E 1 =Z 1 and Z 1 is the tracking error variable, Z 1 The time derivative of 1 is the adjustable control gain; The design of the ideal controller is: Among them, τ * (t) is the ideal controller function, C 2 is a positive adjustable control gain, K g is the adaptive parameter, in, H a , are the optimal weights of the action neural network, the estimation error, the radial basis function and the input vector of the neural network, It means that in the time interval [t a ,t b ] Find the average, To estimate the weight, is the network input vector Gaussian radial basis function, sign(·) is the sign function; The learning controller is dynamically adjusted using a reinforcement learning framework to obtain the final controller, wherein the reinforcement learning framework includes an evaluation neural network and an action neural network. The evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action; The final controller is: Among them, τ(t) is the final controller function, is the unknown parameter K g The estimated value of in, is the estimated weight of the action neural network, Ψ(S) = diag[sign(s 1 ), sign(s 2 )]; The weight update rate of the action neural network is designed to be: in," a is the update gain, K L is the factor that determines the influence of the neural network on the action neural network. H c , are the estimated weights of the evaluation neural network, the radial basis function and the input vector of the neural network, σ a is a small normal number; The final controller is used to perform multi-trajectory tracking control of the helicopter.
2. The 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning as claimed in claim 1, It is characterized in that The dynamic model is established as: in, represents the pitch angle, represents the yaw angle, J p is the moment of inertia of pitch motion, J y is the moment of inertia of yaw motion, D p is the friction coefficient of pitching motion, D y is the friction coefficient for yaw motion, K pp is the torque thrust gain acting on the pitch axis in the pitch propeller, K py is the torque thrust gain of the yaw propeller acting on the pitch axis, K yp is the torque thrust gain in the pitch propeller acting on the yaw axis, K yy is the torque thrust gain acting on the yaw axis in the yaw propeller, L is the distance from the center of mass to the origin of the fixed coordinate system, g is the gravitational acceleration, V p is the motor voltage input to control the pitch motion, V y is the motor voltage input that controls the yaw motion.
3. The 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning as claimed in claim 1, It is characterized in that The specific steps of designing an adaptive neural network include: The radial basis function neural network is used to identify the dynamic model, and the identified dynamic knowledge is stored in the form of constant neural network weights.
4. The 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning as claimed in claim 1, It is characterized in that The design steps for evaluating a neural network include: Define a long-term cost function, use a radial basis neural network to approximate the long-term cost function and obtain the approximation error; Construct the total error based on the approximation error; The total error is corrected using the gradient descent method update and correction technique to obtain the weight update rate of the evaluation neural network.
5. The 2-DOF helicopter multi-trajectory tracking control method based on enhanced dynamic learning as claimed in claim 1, It is characterized in that The design steps of the action neural network include: According to the influence of the evaluation neural network, the radial basis neural network is used to approximate the optimal parameters and obtain the approximation error; The approximation error is corrected using the gradient descent method update and correction technique to obtain the weight update rate of the action neural network.
6. A 2-DOF helicopter multi-trajectory tracking control system based on reinforcement dynamic learning, It is characterized in that include: A parameter acquisition module is configured to acquire the attitude parameters of the helicopter and establish a dynamic model according to the attitude information; a control design module configured to design an adaptive neural network according to a dynamic model and to design a learning controller for the adaptive neural network based on a sliding mode control strategy; The specific formula for designing a learning controller for an adaptive neural network based on a sliding mode control strategy includes: Design of sliding surface: S=-C 1 E 1 +E 2 , Among them, S is the synovial surface, E 1 =Z 1 and Z 1 is the tracking error variable, Z 1 The time derivative of 1 is the adjustable control gain; The design of the ideal controller is: Among them, τ * (t) is the ideal controller function, C 2 is a positive adjustable control gain, K g is the adaptive parameter, in, H a , are the optimal weights of the action neural network, the estimation error, the radial basis function and the input vector of the neural network, It means that in the time interval [t a ,t b ] Find the average, To estimate the weight, is the network input vector Gaussian radial basis function, sign(·) is the sign function; A control optimization module is configured to dynamically adjust the learning controller using a reinforcement learning framework to obtain a final controller, wherein the reinforcement learning framework includes an evaluation neural network and an action neural network, the evaluation neural network estimates the value of the current state, and the estimation result is used to guide the execution neural network to select an action; The final controller is: Among them, τ(t) is the final controller function, is the unknown parameter K g The estimated value of in, is the estimated weight of the action neural network, ψ(S) = diag[sign(s 1 ),sign(s 2 )]; The weight update rate of the action neural network is designed to be: in," a is the update gain, K L is the factor that determines the influence of the neural network on the action neural network. H c , are the estimated weights of the evaluation neural network, the radial basis function and the input vector of the neural network, σ a is a small normal number; The adaptive control module is configured to perform multi-trajectory tracking control of the helicopter using the final controller.
7. A computer-readable storage medium, It is characterized in that A plurality of instructions are stored therein, and the instructions are suitable for being loaded by a processor of a terminal device and executing the 2-DOF helicopter multi-trajectory tracking control method based on reinforced dynamic learning as described in any one of claims 1-5.
8. A terminal device, It is characterized in that The invention comprises a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; and the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the 2-DOF helicopter multi-trajectory tracking control method based on reinforced dynamic learning according to any one of claims 1 to 5.
