Reinforcement learning-based fault-tolerant tracking control method for nonlinear inverted pendulum control system
Through a fault-tolerant asymptotic tracking control method based on reinforcement learning, the reviewer neural network and fault observer are used to solve the fault-tolerant control problem under actuator failure in a nonlinear inverted pendulum system, achieving effective tracking performance and fault estimation of the system. properties, simplifying the complexity of optimal control.
Patent Information
- Application Number
- CN202410657869.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-20
AI Technical Summary
The existing technology has insufficient research on fault-tolerant optimal control under actuator failure conditions in nonlinear inverted pendulum systems, especially the research results on designing fault-tolerant tracking controllers.
The fault-tolerant asymptotic tracking control method based on reinforcement learning is adopted, the unknown nonlinear function is approximated through reviewer neural network technology, a fault observer is designed to estimate the actuator fault, and an improved performance index function is constructed to transform the fault-tolerant control problem into the optimal For optimal control problems, virtual and real controllers are designed using back-stepping methods.
It effectively reduces the complexity of the optimal control, achieves the tracking performance of the nonlinear inverted pendulum system, verifies the practicability and effectiveness of the control scheme through simulation experiments, and simplifies the estimation and processing of actuator faults.
Smart Images

Figure CN118672134A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of nonlinear inverted pendulum control systems, and in particular relates to a fault-tolerant tracking control method based on reinforcement learning in the case of actuator failure in a nonlinear inverted pendulum control system. Background Art
[0002] Currently, optimal control has been widely studied, aiming to find a suitable cost function and adopt a control protocol to minimize it. It is important to note that the optimal controller can be obtained by solving the Hamilton-Jacobi-Bellman equation. However, the Hamilton-Jacobi-Bellman equation is challenging to solve using traditional analytical methods due to its inherent nonlinearity and complexity. To address this issue, we employ a reinforcement learning algorithm to approximate and solve the Hamilton-Jacobi-Bellman equation.
[0003] At present, great achievements have been made in the research of optimal control methods, but there are still some problems:
[0004] (1) In this study, the proposed reinforcement learning algorithm is obtained by the negative gradient of a simple positive definite function, which is generated by the partial derivatives of the Hamilton-Jacobi-Bellman equation. This simplification greatly reduces the complexity of optimal control.
[0005] (2) The research on fault-tolerant optimal control of nonlinear systems is still not perfect, especially there are few research results on how to use optimal control strategies to design fault-tolerant tracking controllers under actuator failure conditions. Summary of the invention
[0006] Purpose of the invention: In view of the insufficiency of existing research on the optimal controller design for nonlinear inverted pendulum systems, a fault-tolerant tracking control method based on reinforcement learning is proposed. This method uses critic neural network technology to approximate unknown nonlinear functions for nonlinear inverted pendulum systems with actuator faults. In addition, by designing a fault observer, we can estimate the unknown actuator faults and use it to construct an improved performance indicator function. This design effectively transforms the fault-tolerant control problem into an optimal control problem. Finally, the tracking performance of the considered nonlinear inverted pendulum system is achieved. Finally, the practicality and effectiveness of the designed control scheme are verified through simulation experimental research.
[0007] In order to achieve the above object, the present invention proposes a fault-tolerant asymptotic tracking control method based on reinforcement learning, which is implemented by the following steps:
[0008] Step 1: Consider the following nonlinear inverted pendulum control system, whose mathematical model can be described as follows:
[0009]
[0010] Where M and l are the mass and length of the pendulum, respectively. Angle θ and angular velocity ω are the states of the system. Each parameter takes the following values: f d =0.2, g=10m / s 2 .
[0011] The above nonlinear inverted pendulum control system is transformed into the following general nonlinear system form:
[0012]
[0013] where x = [x1, x2] T , x1 = θ, x2 = ω. u represents the control input. F(x) = [F1(x1), F2(x2)] T is a continuous function, and F(x) estimated by the neural network will be given later; G is the control gain constant, G(x) = [0, ..., 0, G n ] T ;u fa represents an unknown bounded actuator fault, and its derivative is also bounded.
[0014] Step 2: For the controlled system with actuator faults, a fault estimation observer is designed, which is combined with the adaptive control method to solve the actuator fault estimation problem. The observer form is as follows:
[0015]
[0016] in, is the state quantity estimated by the observer, L1 is a positive definite gain matrix, which can be updated by the following adaptive law:
[0017]
[0018] in represents the fault estimation observer error.
[0019] Step 3: Backstepping method Step 1: Define the tracking error z1 = x1-y, and take its derivative to get
[0020]
[0021] Among them, α is the virtual controller that will be designed later, is the reference signal.
[0022] According to the actuator failure estimated by the observer, the following optimal performance indicators related to the system are designed
[0023]
[0024] According to the above performance indicators, the virtual controller α is designed.
[0025]
[0026] in,
[0027] ω1 is a positive constant and ω1>3.
[0028] The virtual controller can be rewritten as follows:
[0029]
[0030] Estimated by neural network
[0031]
[0032] in is the adaptive update parameter of the neural network, ψf1(x1) is the estimation error, Γ1 is a positive definite matrix, σ1 is a positive scalar, Θ f1 (x1) is the basis function vector.
[0033] Obtained through the judge neural network
[0034]
[0035] The adaptive update parameters of the judge neural network are , γ c1 is a positive scalar, Θ c1 (x1, z1) is the basis function vector.
[0036] The virtual controller α can be rewritten as
[0037]
[0038] The second step of the backstepping method: define the tracking error z2 = x2-α, and take its derivative to get
[0039]
[0040] According to the actuator fault estimation value obtained by the fault estimation observer, the following optimal performance indicators are designed
[0041]
[0042] According to the above performance indicators, combined with the inversion control technology, the following controller is obtained:
[0043]
[0044] in, ω2 is a positive constant and ω2>3
[0045] The actual controller can be rewritten as
[0046]
[0047] Estimated by neural network
[0048]
[0049] in is the adaptive update parameter of the neural network, ψ f2 (x2) is the estimation error, Γ2 is a positive definite matrix, σ2 is a positive scalar, Θ f2 (x2) is the basis function vector.
[0050] Obtained through the judge neural network
[0051]
[0052] The adaptive update parameters of the judge neural network are γ c2 is a positive scalar, Θ c2 (x2, z2) is the basis function vector.
[0053] The actual controller can be rewritten as follows
[0054]
[0055] Compared with the prior art, the present invention has the following beneficial effects:
[0056] (1) By designing a fault estimation observer, unknown actuator faults can be estimated and used to construct an improved optimal performance indicator function. This new function takes into account the actuator's faults, adjustments, and controls, effectively transforming the fault-tolerant control problem into an optimal control problem.
[0057] (2) The proposed optimal control method is very simple. In most existing optimal control methods, the design of the reinforcement learning algorithm is based on minimizing the square of the Bellman residual. As a result, the update laws of both the critic and the actor become very complex and difficult to handle. In contrast, the proposed reinforcement learning algorithm is derived from the negative gradient of a simple positive definite function generated by the partial derivatives of the Hamilton-Jacobi-Bellman equation. This simplification greatly reduces the complexity of the optimal control. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a schematic diagram of a nonlinear inverted pendulum control system;
[0059] Figure 2 is the output traceback of the system;
[0060] Figure 3 is the control input diagram of the system;
[0061] Figure 4 is the tracking error graph of the system;
[0062] Figure 5 is the weight curve of the judge’s neural network;
[0063] Figure 6 is the estimated value map of the actuator fault;
[0064] Figure 7 is the cost function curve; DETAILED DESCRIPTION
[0065] The specific implementation of the present invention is now further described in detail with reference to the accompanying drawings. In order for ordinary technicians in the field to better understand the implementation of the present invention, the present invention also provides simulation verification results using Matlab2020a software.
[0066] Step 1: Consider the following nonlinear inverted pendulum control system, whose mathematical model can be described as follows:
[0067]
[0068] Where M and l are the mass and length of the pendulum, respectively. Angle θ and angular velocity ω are the states of the system. Each parameter takes the following values: f d =0.2, g=10m / s 2 .
[0069] Transform system (1) into the following general nonlinear system form:
[0070]
[0071] where x = [x1, x2] T , x1 = θ, x2 = ω. u represents the control input. F(x) = [F1(x1), F2(x2)] T is a continuous function; G is the control gain constant, G(x) = [0,…,0,G n ] T ;u fa represents an unknown bounded actuator fault, and its derivative is also bounded.
[0072] Step 2: For system (2), the present invention designs a fault estimation observer, which is combined with an adaptive control method to solve the actuator fault estimation problem. The observer form is as follows:
[0073]
[0074] in, is the state quantity estimated by the observer, L1 is a positive definite gain matrix, which can be updated by the following adaptive parameters:
[0075]
[0076] in represents the fault estimation observer error.
[0077] Step 3: Use backstepping control technology to design a virtual controller. Define the tracking error z1 = x1-y, and take its derivative to get
[0078]
[0079] Among them, α is the virtual controller that will be designed later, is the reference signal.
[0080] Design the following optimal performance indicators
[0081]
[0082] According to formula (6), combined with the inverse control technology, the following virtual controller is obtained:
[0083]
[0084] in, ω1 is a positive constant and ω1>3.
[0085] Formula (7) can be rewritten as follows:
[0086]
[0087] Estimated by neural network
[0088]
[0089] in is the adaptive update parameter of the neural network, ψ f1 (x1) is the estimation error, Г1 is a positive definite matrix, σ1 is a positive scalar, Θ f1 (x1) is the basis function vector.
[0090] Obtained through the judge neural network
[0091]
[0092] in is the adaptive update parameter of the judge neural network, γ c1 is a positive scalar, Θ c1 (x1, z1) is the basis function vector.
[0093] According to (9) and (10), the virtual controller α can be rewritten as
[0094]
[0095] The Lyapunov function is defined as follows
[0096]
[0097] in
[0098] The stability of the first tracking error z1 can be further analyzed by taking the derivative of the Lyapunov function in formula (12).
[0099] The second step of the backstepping method: define the tracking error z2 = x2-α, and take its derivative to get
[0100]
[0101] According to the actuator fault estimation value obtained by the fault estimation observer, the following optimal performance indicators are designed
[0102]
[0103] According to the above performance indicators, combined with the inversion control technology, the following actual controller is obtained:
[0104]
[0105] in, ω2 is a positive constant and ω2>3
[0106] Formula (15) can be rewritten as
[0107]
[0108] Estimated by neural network
[0109]
[0110] in is the adaptive update parameter of the neural network, ψ f2 (x2) is the estimation error, Г2 is a positive definite matrix, σ2 is a positive scalar, Θ f2 (x2) is the basis function vector.
[0111] Obtained through the judge neural network
[0112]
[0113] The adaptive update parameters of the judge neural network are γ c2 is a positive scalar, Θ c2 (x2, z2) is the basis function vector.
[0114] According to (17) and (18), the actual controller can be rewritten as follows
[0115]
[0116] The Lyapunov function is defined as follows
[0117]
[0118] in
[0119] The stability of the second tracking error z2 can be further analyzed by taking the derivative of the Lyapunov function in formula (20).
[0120] In this example, the above method is used to perform simulation verification using Matlab2020a software. The verification process and results are as follows:
[0121] Consider the following nonlinear inverted pendulum control system, whose mathematical model can be described as follows:
[0122]
[0123] Where M and l are the mass and length of the pendulum, respectively. Angle θ and angular velocity ω are the states of the system. The symbols and values of the system parameters in the simulation are: f d =0.2, g=10m / s 2 .
[0124] u fa (t) is an unknown actuator fault, and here we choose its form as:
[0125]
[0126] Define x = [x1, x2] T =[θ,ω] T ∈R 2 , and assume that the initial state of the nonlinear inverted pendulum system is x0 = [0.1, 0.2] TWhere L1 is the fault estimation observer gain, l1 is the learning rate of the judge neural network, and L2 is the actuator fault. The gain of the performance indicator function is ρ. The initial value of the actuator fault is selected as u fa 0 = 1. Here I n represents the n*n identity matrix. The symbols and values involved in the simulation are shown in the following table.
[0127] symbol value symbol value Q <![CDATA[I2]]> R <![CDATA[0.05I1]]> <![CDATA[L1]]> <![CDATA[20I2]]> <![CDATA[L2]]> <![CDATA[50I1]]> ρ 8 <![CDATA[l1]]> 0.01
[0128] from Figure 2 It can be seen that the output of the subsystem can track the reference signal very well. Figure 3 is the control input curve, from Figure 4 It can be seen that the tracking error converges asymptotically to 0. Figure 5 is the weight curve of the judge's neural network, Figure 6 This is the estimated performance effect diagram of the actuator failure. The observable error estimate can well approximate the actual error. Figure 7 It is the cost function curve.
[0129] The parts of the present invention that are not described in detail are common knowledge to those skilled in the art. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. The fault-tolerant tracking control method of the nonlinear inverted pendulum control system based on reinforcement learning, its main design process includes the following four steps: Step 1: Consider the mathematical model of the nonlinear inverted pendulum control system and transform it into a general nonlinear system form. Step 2: For unknown actuator faults occurring in the controlled system, a fault estimation observer is designed to obtain the fault estimation value. Step 3: Combine backstepping control technology to design optimal performance indicators and actual controller.
2. According to step 1 in claim 1, for a type of nonlinear inverted pendulum control system, its mathematical model is described as follows: in, M and l are the mass and length of the pendulum, respectively. Angle θ and angular velocity ω are the states of the system. The parameters take the following values: f d =0.2, g = 10m / s 2 . The above nonlinear inverted pendulum control system is transformed into the following general nonlinear system form: where x = [x1, x2] T , x1 = θ, x2 = ω. u represents the control input. F(x) = [F1(x1), F2(x2)] T It is a continuous function, and the neural network will give its estimated value later; G is the control gain constant, G(x) = [0, ..., 0, G n ] T ;u fa represents an unknown bounded actuator fault, and its derivative is also bounded.
3. According to step 2 in claim 1, for the nonlinear inverted pendulum mathematical model in claim 2, a fault estimation observer is designed for the case where an unknown actuator fault occurs, and is combined with an adaptive control method to solve the actuator fault estimation problem. The fault estimation observer has the following form: in, is the state quantity estimated by the observer, L1 is the positive observer gain matrix, which can be updated by the following adaptive law: in represents the fault estimation observer error.
4. According to step 3 in claim 1 and the nonlinear inverted pendulum mathematical model in claim 2, the virtual controller and the actual controller are designed using the backstepping control technology. The first step of the backstepping method: define the tracking error z1 = x1-y, and take its derivative to get in, α is a virtual controller that will be designed later. is the reference signal. According to the actuator failure estimated by the observer, the following optimal performance indicators related to the system are designed According to the above performance indicators, the virtual controller α is designed. in, ω1 is a positive constant and ω1>
3. The virtual controller can be rewritten as follows: Estimated by neural network in is the adaptive update parameter of the neural network, ψ f1 (x1) is the estimation error, Γ1 is a positive definite matrix, σ1 is a positive scalar, Θ f1 (x1) is the basis function vector. Obtained through the judge neural network The adaptive update parameters of the judge neural network are γ c1 is a positive scalar, Θ c1 (x1, z1) is the basis function vector. The virtual controller α can be rewritten as The second step of the backstepping method: define the tracking error z2 = x2-α, and take its derivative to get According to the actuator fault estimation value obtained by the fault estimation observer, the following optimal performance indicators are designed According to the above performance indicators, combined with the inversion control technology, the following actual controller is obtained: in, ω2 is a positive constant and ω2>3 The actual controller can be rewritten as Estimated by neural network in is the adaptive update parameter of the neural network, ψ f2 (x2) is the estimation error, Γ2 is a positive definite matrix, σ2 is a positive scalar, Θ f2 (x2) is the basis function vector. Obtained through the judge neural network The adaptive update parameters of the judge neural network are γ c2 is a positive scalar, Θ c2 (x2, z2) is the basis function vector. The actual controller can be rewritten as follows
Citation Information
Cited By
Fault diagnosis positioning technology
CN119984386A
