Abstract
As a typical, nonlinear system with instability, high order, strong coupling and multiple variations, the inverted pendulum model is the focus and research object of many experts and scholars in the control field. We propose the PD control method of the system based on the adaptive fuzzy compensation in order to weaken the impact of uncertainty in regards to external disturbances, as well as improve the precise control of the inverted pendulum system when the parameters are unknown. It uses the fuzzy method to conduct fuzzy approximation on the nonlinear system of the inverted pendulum by modeling the nonlinear inverted pendulum system to weaken the impact of uncertainty and achieve complete compensation for the nonlinear system. Then, it establishes the adaptive PD fuzzy controller, forms the adaptive control law, applies the Lyapunov function to verify the stability and robustness of the system and finally achieves the intelligent, optimal control of the system. Simulation results show that the control method can achieve the optimal control of the tracking error and parameter error, has a better anti-interference ability and assures system stability.
Introduction
The complex, nonlinear inverted pendulum system can effectively reflect many typical control problems. Therefore, it is widely used to test whether a new control method is qualified with a strong processing ability of nonlinear and instability problems. Currently, the inverted pendulum control method includes state feedback, a linear quadratic regulator (LQR) of the modern control theory, root locus, a proportional integral derivative (PID) of the classic control theory, as well as the fuzzy control, neural networks, support vector machine and other intelligent methods. Furthermore, the PID method is the most widely used in the inverted pendulum control system because the theory is mature and easy to implement. Nevertheless, PID control has poor generalization abilities and a lower robustness. Therefore, the fuzzy control is increasingly combined for use in such control systems. Traditional fuzzy control has a deficiency; a state feedback controller was designed in the inverted pendulum, and then the dimension was reduced. In order to eliminate the uncertainty parameters, perturbations and load disturbance of the control system affected by the emergence of environmental parameters, the error could be online identification and dynamic compensation. It could realize fast robust adaptive control. The variable universe adaptive fuzzy control [11, 17] and a RBF network based compensation Fuzzy adaptive control algorithm was proposed [7] to realize fuzzy compensation. It could distinguish different disturbance compensation term to approach, may well restrain friction, disturbance and load changes of the nonlinear factors. An adaptive fuzzy PID controller was designed [20] to make non-linear decoupling for the non-linear, strong coupling and multivariable-plane inverted pendulum system of the mathematical model; the system has good stability and robustness. A complex control scheme to calculate the nominal torque of the controller, as well as the additional compensation for the adaptive fuzzy controller was designed [6] to ensure the asymptotic stability of the unknown system parameters for the closed-loop control system. The furnace desulfurization dynamics process has the characteristics of a large delay, large inertia, time-varying and non-linear. Therefore, we proposed a furnace desulfurization control system based on the fuzzy PID adaptive compensation of the incremental method [9]. An adaptive control method based on fuzzy compensation [10] was proposed to solve the nonlinear characteristics of the electrohydraulic servo system. By applying the variable structure sliding-mode control theory and fuzzy control to design an adaptive fuzzy controller [8], it can weaken the influences of uncertainties in external disturbance and fix the problem of the precise control of unknown parameters in the inverted pendulum system. An adaptive fuzzy PID self-tuning parameter controller [4] was designed for the second order inverted pendulum to achieve a good balance. A PD algorithm based on the adaptive fuzzy compensation was proposed [18, 19] to use in the online approach friction model and the model identification, the results realize a closed-loop system boundlessness of tracking errors.
A cascade adaptive fuzzy sliding-mode control, including inner and outer control loops, [3, 15] was proposed to investigate the stabilizing and tracking control of a nonlinear, two-axis, inverted-pendulum servomechanism. The adaptive network based an interval type-2 fuzzy logic controller design for a single, flexible link carrying a pendulum [13] to determine the motion of the flexible link and determine uncertain oscillation of the link before experimental works. The paper [16] presented the implementation of the control of an inverted pendulum system by using the Adaptive Neural-Fuzzy. It is based on the expert experiences that optimize the parameters of the fuzzy controller by training and learning sample data. A novel, online-motion planning method for a double-pendulum overhead crane system was proposed [14]. Simulation results indicate that the proposed control method achieves good performance and strong robustness.
The inverted pendulum system is widely used in many fields. These include aerospace, mechanical equipment, deep sea technology, compressors and turbo machinery. It has been well studied for its nonlinear characteristic, and it can be used as an uncertain linear system and a discrete system for research and analysis [1, 2]. When the system receives external disturbance and uncertain factors, a robust fuzzy sliding-mode control [5] will be presented to solve these problems.
The fuzzy control method is poor, and when the system parameters change or an unknown condition occurs, the control effect significantly deteriorates. Combining with the advantages of the adaptive control, we propose an adaptive control based on fuzzy compensation. Based on traditional PD control, this paper conducts fuzzy design on system variables, sets up different membership functions, forms an adaptive fuzzy control system and conducts optimization and control on the nonlinear inverted pendulum.
Problem description
The second-order nonlinear system:
Where, f represents the unknown, nonlinear function; on behalf of modeling the uncertain part and the interference; g represents the linear function; u ∈ R
n
is the input, y ∈ R
n
is the output.
The position command is x d , assuming e = x d - y = x d - x1, in which .
Choose K = [k p k d ] T ,and make all the roots of polynomials s2 + k d s + k p = 0 on the left-half part of the complex plane.
Take the control law:
According to the formula (3) and the equation (1), we can get the closed-loop system equation:
By choosing K, when t→ ∝, e (t) →0, . That is, the system output y and its derivative progressively converge to the desired output x d and its derivatives.
If the non-linear function f (x) is known, we can eliminate its nonlinear property by selecting the control input u, and then design a controller based on the linear control theory.
If f (x) is unknown, the control law in equation (3) is difficult to achieve. We can use the fuzzy system to replace f (x) and realize the adaptive compensation.
Basic fuzzy system
The unknown function can be the fuzzy approximation by using the universal approximation theorem that was proposed by Wang Lixin [12]. The fuzzy approximation can form the fuzzy system by the following two-step structure, for example approach f (x).
Where, l1 = 1, 2, i = 1, 2.
The product inference engine, singleton fuzzifier and center average defuzzifier are used to calculate the fuzzy system outputs.
Where, is the membership function of x i .
The fuzzy inference process adopts the following two steps: (1) using product inference rules to implement the inference premise; using a singleton fuzzifier to evaluate ; (2) using the product inference engine rules to implement the inference of the rules’ premise and the rules’ conclusion, as well as parallel computing of all fuzzy rules; we used the average defuzzifier to get the fuzzy system output .
Suppose is a free parameter and put it in the set . Introduce the column vector ɛ (x), the formula (6) will become:
Where, ɛ (x) is the dimensions column vector, the element l1, l2 is
Using the fuzzy system approach, the control law equation (3) will become:
Where, ɛ (x) is the fuzzy vector, the parameter θ f changes with the adaptive law.
The adaptive control law can be designed as follows:
Next, we refer to the indirect, adaptive fuzzy control method, which was mentioned by Wang Lixin [20], and analyze the closed-loop system stability.
Combing the equation (9) and the equation (1), we can obtain the dynamic equation of the fuzzy closed-loop system:
Let
The dynamic Equation (12) can be written in vector form:
Set the optimal parameter as:
Where,Ω f is the collection of θ f , θ f ∈ Ω f .
Then the definition of the minimum approximation error is:
The formula (14) can be expressed as:
According to the formula (10) and the formula (17), we can obtain the closed-loop dynamic equation:
This equation clearly describes the relationship between the tracking error E and control parameter θ f . Adaptive law establishes a regulatory mechanism; it can make the tracking error E and the parameters error minimize.
Suppose the Lyapunov function:
Where, γ is the positive constant, P is the positive definite matrix and satisfies the Lyapunov equation:
Where, Q is an arbitrary 2 × 2 positive-definite matrix, which is given by the formula (13).
Suppose:
To facilitate the equation, we may suppose
Formula (18) is changed to:
So we can get the results:
Combining the formulas (21), we can get the formula:
Substitute M into formula (23), and consider the formula:
we can get:
Then obtain the derivatives V:
If we combine the adaptive law (11) and , we can have:
Supposing the controlled object is a single-stage inverted pendulum, then the dynamic equation is expressed as:
Where,
The position instruction is x d (t) =0.1 sin(πt). The variables x1 and x2 are defined as five fuzzy sets. If p1 = p2 = 5, then .
The following five membership functions are:
Then there will be 25 fuzzy rules for the approximating fuzzy system.
Based on above the fuzzy controller designed and the adaptive law, the Simulink fuzzy system model is established in Fig. 1.
The membership function can be designed by the program, and its graph shown in Fig. 2.
The initial state of the pendulum is [π/60, 0] and the initial value of θ f is 0.1. Then, we used the control law (9) and the adaptive law (11) to simulate the nonlinear inverted pendulum. Let , k d = 20, k p = 10, the adaptive parameter γ = 100. Then we can get the simulation results, which are shown in Figs. 3–5.
Seen from Fig. 3, the beginning speed and position tracking have the slightest errors. Then, the tracking trajectory and the desired trajectory almost completely overlap. These results show that the tracking effect is positive. From Fig. 4, when applying the external interference in the control system and using the adaptive fuzzy compensation control, the impacts will be well reduced and realize a good tracking. The compensation result based on the adaptive fuzzy output tracking control is shown in Fig. 5. When the system has fuzzy compensation, the practical output curve and the estimation output curve will give a better fit, and the tracking results is good. The above simulation results show that the system can get an effective tracking performance, and can also obtain good stability and robustness by using the adaptive control based on fuzzy compensation.
Conclusion
We study the control problem of the inverted pendulum system to apply the adaptive fuzzy compensation technique into the nonlinear response model of the inverted pendulum and propose a robust tracking controller based on the adaptive fuzzy compensation. Applying the Lyapunov stability theory can prove the feedback of the adaptive fuzzy control algorithm of this state; it can also ensure that the closed-loop system is uniformly and ultimately bounded under the condition of reasonable control parameters. Therefore, we can achieve the good tracking control of the nonlinear inverted pendulum system. The controller takes into account the effects of the modeling errors and external interference by using the fuzzy system to approximate the unknown non-linearity in the system. It combines with the swing angle and swing speed of the inverted pendulum system and introduces the adaptive fuzzy compensation. It can make the output signal meet the requirements of the actual system. The simulation results show that the controller is insensitive to parameter perturbation, has strong anti-interference performance, good robust stability and control precision and is obviously superior than the traditional PD control.
