Fuzzy Modeling and Control for a Class of Inverted Pendulum System

and Applied Analysis 3


Introduction
Traditional control theory has perfect control ability for explicitly controlled system, however, which is a little weak to describe too complex or difficult system accurately.Therefore, many researchers seek ways to resolve this problem; those researchers have also focused on fuzzy mathematics and applied it to control problems.Zadeh [1] created fuzzy mathematics on an uncertainty system of control which is great contribution.Since the 70s, some practical controllers appear in succession, so that we have a big step forward in the control field.A number of control design approaches using adaptive control [2][3][4], sliding mode control [5,6],  ∞ [7][8][9], optimal control [10][11][12], control based data driven [10,[13][14][15], and fuzzy control [16,17].The inverted pendulum system is controlled by the method of fuzzy control and realizes steady control.The inverted pendulum is a typical automatic control in the field of controlled object [18], which is multivariable and nonlinear and strong coupling characteristics, and so on.The inverted pendulum system reveals a natural unstable object, which can accomplish the stability and good performance by the control methods.
For the stability control of inverted pendulum system, the establishment of the model takes an important role.T-S fuzzy control [19] is the most popular one of the most promising methods based on modeling of fuzzy control research platform.At present, the T-S fuzzy control is one of the methods for nonlinear system control research [20], which is very popular.Based on T-S fuzzy model of inverted pendulum system modeling and control have a certain research.For inverted pendulum system based on T-S fuzzy mode, there are two methods [21]: the first one is the fan of nonlinear method.Although this method has high precision in describing the nonlinear system, it obtains many fuzzy rules.Thus it brings to the controller design difficulty, especially for the nonlinear term system.The second one is linear approximation modeling method, the method at the expense of the modeling accuracy and less number of rules of T-S fuzzy model.Since the second method can obtain a simple T-S fuzzy model, so in the inverted pendulum system modeling it is widely applied, but there is a very important problem, which is that if for one type of inverted pendulum system it contains the approximate method to deal with the nonlinear term, then the fuzzy modeling becomes the key to study.
Based on the above analysis and discussion, this thesis will carry the fuzzy modeling and control on inverted pendulum system of complex nonlinear term.For this point, sector nonlinear and linear approximation method will be adopted in the T-S fuzzy modeling of some inverted pendulums and the design of fuzzy controller.The fuzzy modeling and control

Fuzzy Modeling for the Inverted Pendulum System
Assume that the car's quality is , the pendulum's quality is , the pendulum's length is , the pendulum's angle is  at an instant (the angle between the pendulum rod and the vertical direction), the initial displacement is ,  = 9.8 m/s 2 is the gravity constant, the level for control is forced acting on the car is ,  = 1/( + ), and the inverted pendulum's state space is as follows: where When  1 () = ±/2, the system is uncontrollable, so we take  1 () ∈ [−88 ∘ , 88 ∘ ] as the range.For this inverted pendulum system, T-S fuzzy model can be considered as follows: where ∈   is the state variables for the fuzzy system,    is the fuzzy sets and where  = 1, 2, . . ., ,  = 1, 2, . . ., , the input vector is () ∈   ,   ∈  × ,   ∈  × are coefficient matrix for the system.The number of fuzzy rules for the system is .
The total fuzzy control system is as follows: where   (()) = ∏  =1    (  ()), and    (  ()) is denotes the membership degree, and where   () for    .The ℎ  (()) =   (())/ ∑  =1   (()) and (2) will be as follows: where ℎ  (()) ≥ 0 and ∑  =1 ℎ  (()) = 1.There is an important nonlinear term in this inverted pendulum system, in other words  2 2 ()sin 2 ( 1 ()), which should be paid more attention.The nonlinear term cannot be conducted through the linear approximation method on this inverted pendulum system.Thus, the thesis will combine the linear approximation method with the fan of nonlinear method to establish the fuzzy model.The process is as follows.
In conclusion, the finally fuzzy model for the system will be shown as follows.
All the parameters defined in Table 1 are taken to account, then the system coefficient matrix can be obtained as follow ) .
( The model rules can be represented as follows: For the T-S model of the control object, a parallel distributed compensation control scheme (PDC) is employed.And the regulations are described as follow: Here the fuzzy controller and the fuzzy system adopt the same fuzzy rule.The overall model for the fuzzy controller is as follows: The closed control system can be obtained by combining ( 2) and ( 4):

Based on Linear Matrix Inequalities (LMI) and the Matlab Simulation
Without the controller, the simulation output curves of the angular velocity and angular acceleration are shown in Figure 3. Figure 3 shows that the inverted pendulum system is unstable without the controller.
In the following, by using the linear matrix inequalities technique [23], the fuzzy controller is designed.
Let us define the Lyapunov function as (()) =   ()(),  > 0, then the stable criterion of the system for ( 16) is as follows: Define  =  −1 ; we can obtain (18) by multiplying  on both sides contemporary: After defining    =   , the system stability discriminant conditions can be obtained.And this will guarantee a positive definite matrix  and matrix   can be searched, then the following matrix inequality can be established: where the stable controller will be obtained from (20): Through solving (19) Moreover, taking advantage of (20), the fuzzy controller gain will be obtained and shown as follows: Put the controller gain into (16); design the simulation program in the simulink environment.Here the initial value (0) = [−0.01−0.1] is selected.The results of the fuzzy control simulation of the level single inverted pendulum system are shown in Figures 4, 5, and 6.
Simulation results show that the system responses converge to the equilibrium point, which indicates that the design of the controller is stable.

Conclusion
This thesis takes a class of an inverted pendulum system as the research object.The system fuzzy model was established by the methods that combining with the linearization approximation processing and fan-shaped interval, and then the fuzzy controller was designed.Matlab-Simulink software toolbox was employed to be on computer simulation.The results show that it achieved a stable control of the single-stage inverted pendulum system through fuzzy control method on the basis of this fuzzy model.This model has the advantages of less fuzzy rules, high precision, and simple structure.The research results can provide an effective way for the subsequent instability in other nonlinear system modeling and fuzzy control.

Figure 2 :
Figure 2: Membership function for the fan of nonlinear method.

Figure 3 :
Figure 3: Simulation result without the controller.

Figure 4 :
Figure 4: Simulation result of the angle.

Figure 5 :
Figure 5: Simulation result of the angular velocity.

Figure 6 :
Figure 6: Simulation result of the controller.