International Journal of Computational Intelligence Systems

Volume 9, Issue 2, April 2016, Pages 281 - 295

Control of a chain pendulum: A fuzzy logic approach

Authors
Ernesto Aranda-Escolástico1, earandae@bec.uned.es, María Guinaldo1, mguinaldo@dia.uned.es, Matilde Santos2, msantos@ucm.es, Sebastián Dormido1, sdormido@dia.uned.es
1Departamento de Informática y Automática, Universidad Nacional de Educación a Distancia (UNED), c/ Juan del Rosal 16, Madrid, 28040, Spain
2Departamento de Arquitectura de Computadores y Automática, Universidad Complutense de Madrid (UCM), c/ Profesor García Santesmases 9, Madrid, 28040, Spain
Received 4 May 2015, Accepted 3 January 2016, Available Online 1 April 2016.
DOI
10.1080/18756891.2016.1150001How to use a DOI?
Keywords
Intelligent control; fuzzy logic; rotary inverted pendulum; stabilization; Takagi-Sugeno model; region of attraction; robustness
Abstract

In this paper we present a real application of computational intelligence. Fuzzy control of a non-linear rotary chain pendulum is proposed and implemented on real prototypes. The final aim is to obtain a larger region of attraction for the stabilization of this complex system, that is, a more robust controller. As it is well-known, fuzzy logic exploits the tolerance for imprecision, uncertainty and partial truth to achieve tractability, robustness and low solution cost when dealing with complex systems. In this case, the control strategy is based on a Takagi-Sugeno fuzzy model of the strongly non-linear multivariable system. Simulation and experimental results on the real plant have been obtained and tested in a rotary inverted pendulum and in a double rotary inverted pendulum. They have been compared to other feedback control strategies such as Full State Feedback or Linear Quadratic Regulator with encouraging results. Fuzzy control allows to enlarge the stability region of control. Indeed, the region of attraction and therefore the stabilization has been enlarged up to over 17% for the real system.

Copyright
© 2016. the authors. Co-published by Atlantis Press and Taylor & Francis
Open Access
This is an open access article under the CC BY-NC license (http://creativecommons.org/licences/by-nc/4.0/).

1. Introduction

In recent times, fuzzy control has been one of the most active areas in control design and computational intelligence. As it is well-known, fuzzy logic exploits the tolerance for imprecision, uncertainty and partial truth to achieve tractability, robustness and low solution cost. Besides, this intelligent control approach shows good robustness properties against model uncertainties and external disturbances. Up to now, fuzzy control has been successfully applied to a wide range of applications because of these properties 1.

In this regard, inverted pendulum systems have been revealed as the basis of many real applications. For example, the flight of rockets is closely related to the behavior of the rotary inverted pendulum. The control of the position of the rocket respect to the direction that engines are firing is analogous to the control of the rotary inverted pendulum. Other known applications are the self-balancing unicycle and the two-wheeled inverted pendulum. The first one is an electrical vehicle that can be approximated to a non-linear control system similar to a two-dimensional inverted pendulum with a unicycle cart at its base. The second one has been popularized principally trough the commercial variant Segway, which consists of a pendulum attached to a base platform that has a wheel at each side.

In addition, the inverted pendulum is implicitly present in systems like robot’s limbs or some elements of satellites. Moreover, the techniques derived for the inverted pendulum have been useful for the control of other unstable systems, such as aircraft of difficult manual control.

Indeed, the control of pendulum models has been chosen as a benchmark for years because it is considered a challenging testing ground for non-linear dynamical models and control theory. The complexity of these models, and hence of the controller, depends on the number of links and the degrees of freedom of each of them. There exist many types of inverted pendulums. The Furuta pendulum 2 has been used by some authors 3,4,5. Generalized models such as 3D pendulums have also been more recently developed 6. Variations as the pendubot 7 and the acrobot 8 have been also studied.

The main difference of the rotary inverted pendulum with other structures is produced by the rotation of the arm. Due to it, additional complexities are added in form of Coriolis forces and centrifugal torques. This provides not only a more involved mathematical model but also interesting behaviors to study. The strong non-linearity of the multi-output system and, therefore, the difficulty and complexity of the control design, has made the inverted pendulums an interesting case of study that has been used as a benchmark to test and compare different control strategies, such as in 9.

Typically, the control of a single 2D inverted pendulum consists of two different steps: The swinging-up motion and the stabilization control. The first one balances the pendulum to bring it closer to the upright position, i.e., the unstable equilibrium point (α = 0° in Figure 1). The second one stabilizes the pendulum to this point, where the system can be approximated to a linear system and conventional control laws such as Full State Feedback (FSF) or Linear Quadratic Regulator (LQR) can be used.

Figure 1:

Prototype of the rotary inverted pendulum (left), and prototype of the double rotary inverted pendulum (right), by Quanser.

A similar strategy can be applied to control the double inverted pendulum: The two-step approach is followed by the link at the bottom (swing up and stabilization). Once this goal is achieved, the same two steps are repeated with the link at the top, but maintaining the control of the one at the bottom. In the case of the double pendulum on a cart, several swing-up strategies have been developed 10,11,12. However, for the double rotary inverted pendulum, as far as we know, the contributions found in the literature can be reduced to 13, where the swing-up control is only feasible for rotary double pendulums with particular characteristics.

In addition, the stabilization of analytic controllers only works well in a small neighborhood around the equilibrium, so the swing-up should be very precise. Naturally, the difficulty of this problem increases with the number of links. For this reason, it is interesting to search for new stabilization control strategies even when the initial conditions are far from the unstable equilibrium point and for a larger number of links.

In this regard, intelligent controllers can be a good approach 1,14. Both heuristic-based fuzzy control15 and model-based fuzzy control, such as Takagi-Sugeno fuzzy model 16, have been applied to many underactuated mechanical systems 17 . 18 stabilizes a quadruple inverted pendulum using a variable universe fuzzy controller. The tracking control is achieved in 19. Systems such as the two-wheel inverted pendulum 20 or the dual axis pendulums21 have been studied from this perspective.

Specifically, the control of the rotary inverted pendulum has been analyzed by several authors in the last years producing different control strategies, as for example fuzzy cascade control 22,23, evolutionary algorithms 24 , adaptive control 25 or the control based on an Takagi-Sugeno models 26,27. Other intelligent techniques such as neural networks have been widely applied to the identification of non-linear system, and therefore, the inverted pendulum in general and the rotary one have been chosen as a prime example 28,29. However, general rotary chains of pendulums have not been considered in the literature due to the complicated equations of motion which govern them.

The Takagi-Sugeno fuzzy model allows to approximate a nonlinear system to a combination of several linear systems in the corresponding fuzzy regions in the state space 15. The design of a linear controller for each linear subsystem produces a parallel distributed controller for the whole system 30. Model-based fuzzy control methods have the advantages of guaranteeing stability and robustness of the closed-loop system and, at the same time, producing desirable transient performance 31. In addition, the Takagi-Sugeno fuzzy model provides a larger read-ability than other approaches, such as neural networks.

In this paper, we show that the rotary chain pendulum can be modeled by Euler-Lagrange equations and a stabilization control can then be designed for the chain. A Takagi-Sugeno fuzzy model is developed to obtain a more robust feedback gain. Therefore, the main goal of this paper is the design of an intelligent control strategy that maximizes the region of attraction of the stabilization control of a rotary chain pendulum by means of a Takagi-Sugeno fuzzy model. As far as we know, there is no reference in the literature that proposes a controller of this type for an undetermined rotary chain. The designed control has been showed to provide larger regions of attraction and therefore more robust stabilization.

The paper is divided into 6 sections. In Section 2, the dynamics of the rotary chain pendulum and how to obtain a model from the Lagrangian of the system are explained. In Section 3, three different control methods (FSF, LQR and Takagi-Sugeno fuzzy) are described. Section 4 presents the two cases of study (simple and double rotary inverted pendulum). In Section 5, the results of applying the different control strategies to the two chain pendulum prototypes are shown and discussed. Section 6 gives the main conclusions of the paper.

2. Model of the rotary chain pendulum

In this section the theoretical model of the rotary chain pendulum is described using Lagrangian Mechanics. A rotary chain pendulum is a serial connection of n ⩾ 1 rigid links, connected by some joints and attached to a rigid arm which can rotate in a horizontal plane, perpendicular to the pendulums. It is an underactuated system because the n pendulums should be controlled only with the torque (τ) applied to the rotary arm. This rotating movement introduces Coriolis forces into the dynamics, making the analysis more complicated than if the system is a chain pendulum on a cart. The state of the system can be uniquely defined by a vector of generalized variables:

q=(q0q1qn)=(θ0θ1θn)
where, θ0 is the angle described by the rotary arm and θi is the angle described by the i-pendulum (Figure 1). In a Cartesian coordinate system, the positions of the rotary arm and the pendulums can be described, if the angles increase when they rotates counter-clockwise, as follows:
s0=l0(sinθ0(t)cosθ0(t)0)si=(L0sinθ0(t)+(j=1i1Ljsinθj(t)+lisinθi(t))cosθ0L0cosθ0(t)(j=1i1Ljsinθj(t)+lisinθi(t))sinθ0j=1i1Ljcosθj(t)+licosθi(t)),
where li is the length to the center of mass and Li the total length of the i-pendulum.

2.1. The Lagrangian

First of all, the Lagrange function or Lagrangian (L) is defined to apply the Euler-Lagrange method and to determine the equations of motion. The Lagrangian is defined as the difference between the kinetic energy (T) and the potential energy (V) of the system:

L=TV.
Kinetic and potential energy are the sum of the kinetic and potential energies of all elements of the system:
T=j=0nTjV=j=0nVj.
In turn, the kinetic energy of each element is the sum of its translational and its rotational kinetic energies:
Ti=mivi22+Jiθ˙i22,
where vi=dsi(t)dt, θ˙i=dθi(t)dt, and mi and Ji are the mass and the moment of inertia of the i-element.

For the potential energy, let us consider the zero potential energy plane as the plane of the rotary arm. Then,

V0=0
and
Vi=migzi,
where zi is the third component of the vector si and g is the gravitational acceleration.

2.2. Equations of motion

The equations of motion of inverted pendulums can be derived from the Euler-Lagrange method using the Euler-Lagrange equation over the Lagrangian.

2Ltq˙iLqi=0,
for i = 0,..,n. The following generalized equations are obtained:
θ¨0(c0+j=1n(c0jjsin2θj+k>jnc0jksinθjsinθk))+j=1n(c0jjjθ˙j2sinθj+θ˙0θ˙jcosθjk=inc0jjksinθk)+j=1n(c0jθ¨jcosθj)=τD0θ˙0
θ¨0c0icosθi+θ¨ici+ji>0n(cijθ¨jcos(θiθj))ji>0n(cijjθ˙j2sin(θjθi))θ˙02cosθij=1n(ci0jsinθj)ciisinθi=Diθ˙i
for i = 1, ..., n. The set of parameters {c*} are constants which depend on the mechanical properties of the pendulums and the rotary arm, and some centrifugal, Coriolis and gravitational effects. Di is the viscous damping coefficient of each element. These equations are clearly nonlinear. In addition, the dynamics of each element depends not only on the angles, but also on the relative position of them, such as the centrifugal force terms or the effect on qi of accelerating qj. For this reason, the number of non-linearties grows up hugely with the number of links.

The equations of motion can be summarized as follows:

M(q)q¨+C(q,q˙)q˙+Dq˙+g(q)=Fτ,
where M is the positive definite mass matrix, so expressions for the accelerations can be obtained in analytic way. C is the Coriolis matrix, D is the damping matrix, g is the vector of gravity and F=(101×n)T.

3. Control algorithms

While the stabilization control of the inverted pendulum has been extensively studied, it has not been generalized for any number of links. In this paper, we compare two classical analytic controllers with an intelligent controller designed to optimize the region of attraction using a Takagi-Sugeno fuzzy model. The following subsections describe the general form of the three controllers for a chain pendulum of n links.

3.1. Linear Controllers

In the state space, the equations of motion (5)(6) can be linearized using a first order Taylor approach at point x0 = 0:

Ml(θ¨0θ¨1θ¨n)=FlτDl(θ˙0θ˙1θ˙n)+Cl(θ0θ1θn),
where
Ml=(c0c01c0nc01c1cijc0ncn),Fl=(100),Cl=(0000c1100cnn),Dl=(D0000D100Dn).
As a result, the linear system = Ax + Bu is obtained, where u = −Kx, xT=(θ0θnθ˙0θ˙n) is the vector of state variables, and
A=(0n×nIn×nMl1(Cl+Dl)),B=(0n×1Ml1Fl).
The linear system is controllable if the matrix (BABAnB) has full rank. Then, a feedback control law can be designed to achieve asymptotic stabilization. Hence, the nonlinear system will be locally asymptotically stabilizable in some neighborhood of the equilibrium point.

Knowing the desired poles from the specifications of the plant, the feedback gain is straightforward obtained applying pole placement techniques.

In the same way, a Linear Quadratic Regulator (LQR) can be implemented. LQR technique is an optimal control technique which consists in minimizing the cost function

J=0xT(t)Qx(t)+uT(t)Ru(t)dt,
where the feedback gain is given by
K=R1BTP,
and P is the unique positive defined solution of the algebraic Ricatti’s equation: ATP + PAPBR−1BT P + Q = 0.

We follow the criterion given by the Bryson’s rules in the choice of Q and R:

Qii=1maximumacceptablevalueofxi2
Rjj=1maximumacceptablevalueofuj2,
Finally, the feedback gain K is easily obtained using the lqr function of 32.

Even though the nonlinear system is locally stabilizable in theory, it can be easily deduced that the region of attraction can be very small when the number of links increases. We will show that a Takagi-Sugeno fuzzy controller can be implemented to enlarge the region of attraction. This results in a more robust control in the experimental plant.

3.2. Non-linear control based on Takagi-Sugeno fuzzy model

The fuzzy model proposed is described by means of a succession of IF-THEN rules, each of them expresses the local dynamic of a linear system. The output of the fuzzy model for any x is

x˙=r=1rMwrfr(x)r=1rMwr,
where wr = M1r · · · · · MpMr, being Mpr the membership function of the premise variable p (p ∈ [1, pM]) and rule r (r ∈ [1, rM]), and fr(x) the consequent of each rule.

The first step is to choose the nonlinearities of the system as p premise variables zp(t). Since the number of rules in the fuzzy model is determined by rM = 2pM, the following change of variables is proposed:

z1i=cosθiz2i=sinθiθifori=1,...,nz3ij=θ˙0sinθicosθjforj=1,...,nz4ij=θ˙isinθj,
so that the first n values of p correspond to the variables z1i and in succession. For the construction of the fuzzy model, the variables zp are rewritten in terms of the trapezoidal membership functions as,
zp=Mpmax(zp)+M¯pmin (zp),
where max(zp) and min(zp) are the maximum and minimum values, respectively, that the variable zp can reach and Mpr=Mp+M¯p (see Figure 2).

Figure 2:

Example of membership function of variable zp.

Moreover, it is clear that,

Mp+M¯p=1
by Figure 2, i.e., Mp is 0 if zp < min(zp) and it is 1 if zp > max(zp) (and the opposite for M¯p).

Thus, the rules can be established and A, B and K matrices with constant elements are obtained. The fuzzy technique is applied to obtain a set of linear systems and their corresponding feedback gains following the rules:

Rule 1: IF z1 is M¯1 and ... zpM is M¯pM THEN (t) = A1x(t) + B1u(t) with u(t) = −K1x(t).

...

Rule rM: IF z1 is M1 and ... zpM is MpM THEN (t) = ArMx(t) + BrMu(t) with u(t) = −KrMx(t).

Hence, zi are the input variables, composed by the state variables, Mi and M¯i are the fuzzy sets and the output is determined by the control law u(t) = −Kix(t). Ai and Bi are the result of replacing in (5) the value of the premise variables (14) by the corresponding one from the rule i and reorganizing the equations in the form = Aix + Biu.

As a result, Ki is obtained through LQR techniques. Finally, after a defuzzification process, the gain K applied to the non-linear system is computed as

u(t)=r=1rMwrKrx(t))r=1rMwr=KFZx(t),
where w1=M¯1M¯2...M¯pM, w2=M¯1M¯2...M¯pM,. . . , wrM = M1M2...MpM.

Naturally, the number of rules grows up exponentially with the number of links. However, since the computation is performed offline, the resulting controller can be implemented on real systems with fast and/or unstable dynamics, such as pendulum chains, without worrying about the timing issue. In spite of that, even when the stability is guaranteed in the theoretical result, the region of attraction can be very small when the number of links is high. In fact, when n tends to infinity the control of the chain can be seen as an attempt to maintain vertical a rod moving only one of its ends. For this reason, the practical control of a chain of more than a few links can be unrealizable.

3.2.1. Stability criterion

The stability of the fuzzy closed-loop system is well developed. The globally asymptotically stability of the system (13) can be guaranteed with the following theorem 33:

Theorem:

The equilibrium of the continuous fuzzy control system described by (13) is globally asymptotically stable if there exists a common positive definite matrix P such that,

GiiTP+PGii<0,Gij+GjiT2P+PGij+Gji20,
where Gij = Ai + BiKj and ∀i < j excepting wij=1rMwj×wii=1rMwi=0 .

Proof.

The proof of the theorem can be found in 33.

4. Cases of study

The developed models and control strategies have been implemented in two cases of study: the rotary inverted pendulum and the double rotary inverted pendulum.

4.1. Rotary inverted pendulum

The system is shown in Figure 1 (left), where θ is the angle that the rotary arm forms with the X axis and α is the angle that the pendulum forms with the vertical axis. Then, the generalized coordinates of system, (q1q2)=(θα) , and the equations that result from (4) are solved for the angle accelerations:

θ¨=h3cosα(h2cosαsinαθ˙2D1α˙+h5sinα)Hh4(θ˙(D0+2h2α˙cosαsinα)τ+h3α˙2sinα)H
α¨=(h2sin2α+h1)(h2cosαsinαθ˙2D1α˙+h5sinα)Hh3cosα(θ˙(D0+2h2α˙cosαsinα)τ+h3α˙2sinα)H
where
h1=J0+m1L02,h2=m1l12,
h3=m1l1l0,h4=J1+h2,h5=m1l1g,h6=m0L0,H=h1h4+h2h4sin2αh32cos2α.
The meaning of the rest of the parameters can be found in 34.

According to the criterion proposed in Subsection 3.2, the following change of variables is done:

z1=sinαα,z2=cosα,z3=θ˙cosαsinα,z4=α˙sinα.
Therefore, a model of the form = A(z)x + B(z)u is obtained, where xT=(θαθ˙α˙), zT = (z1 z2 z3 z4), and the coefficients of A(z) = (ai j (z)) and B(z) = (bi j(z)) can be derived straightforward from (19)(20).

4.1.1. Control design for the rotary inverted pendulum

For the Full State Feedback control, we linearize (19)(20) at x0T=(0000). As a result, we obtain a linear system = Ax + Bu, where

A=(00100001073.042.80.90011840.81.46),B=(0077.977.7),u=Kx.
According to 34 specifications, the poles p=(40302.80±2.86i) provide a damping ratio ζ = 0.7 and natural frequency ωn = 4 rad/s. So the feedback gain for this control strategy is KFSF=(5.2628.162.763.22).

We apply Bryson’s rules to obtain the weight matrices of the LQR control:

Q=(8.1600008.160000400004),R=1,
and hence, the feedback gain for the LQR controller is KLQR=(2.8632.142.373.86).

Finally, we compute the fuzzy feedback (FZ) gain. By observing the mechanical parameters of the system, we have chosen max(z1) = max(z2) = 1, min(z1) = 0.9003, min(z2) = 0.7071, max(z3) = −min(z3) = 6, max(z4) = −min(z4) = 4.2426. These are the values that define the membership functions (Figure 2).

As an example of use, let us compute explicitly A1, B1 and K1. First, the values of the premise variables for the rule 1 are computed using (15)(16):

z1=max(z1)1+max(z1)min(z1)=0.9093z2=max(z2)1+max(z2)min(z2)=0.7735z3=max(z3)1+max(z3)min(z3)=0.4615z4=max(z4)1+max(z4)min(z4)=0.4473.
The obtained values are replaced in (5) to obtain A1 and B1:
A1=(00100001010.51.08.3029.00.277.3),B1=(001.50.68).
Then, K1 is obtained using the LQR design explained in subsection 3.1, using as Q and R the matrices given above:
K1=(2.86100.93.342.4).
The process is repeated to compute the 15 remaining Ki gains for the rest of the states defined by (Ai,Bi), which are obtained from the fuzzy rules.

Finally, by means of the defuzzification process (17), the fuzzy feedback gain is computed as KFZ=(3.16100.54.2826.74). In addition, it can be proved that for this system, a matrix P of the form:

P=108·(0.0370.1080.0020.0040.1080.8070.0030.0050.0020.0030.0050.0070.0040.0050.0070.015),
satisfies the conditions of stability of the theorem given in subsection 3.2.1.

4.2. Double rotary inverted pendulum

The double rotary inverted pendulum consists of two links attached to a rotary arm (Figure 1, right). Again θ is the angle that the rotary arm forms with the X axis, α is the angle that the link at the bottom forms with the vertical axis and γ the angle of the link at the top. The generalized coordinates of system (q1q2q3)=(θαγ) . Replacing this in equations (5)(6) for n = 2, it yields to,

θ¨(h1+h4sin2α+h6sin2γ+2h5sinαsinγ)+α¨(h2cosα)+γ¨(h3cosγ)=τD0θ˙+α˙2h2sinα+γ˙2h3sinγα˙θ˙(2h4sinαcosα+2h5sinγcosα)γ˙θ˙(2h5sinαcosγ+2h6sinγcosγ)
θ¨(h2cosα)+α¨(h7)+γ¨(h5cos(αγ))=D1α˙γ˙2(h5sin(αγ))+θ˙2(h4sinαcosα+h5sinγcosα)+h8sinα
θ¨(h3cosγ)+α¨(h5cos(αγ))+γ¨(h9)=D2γ˙+α˙2(h5sin(αγ))+θ˙2(h5sinαcosγ+h6sinγcosγ)+h10sinγ,
where
h1=J0+L02m1+L02m2,h2=L0L1m2+L0l1m1,h3=L0l2m2,h4=L12m2+l12m1,h5=L1l2m2,h6=l22m2,h7=J1+L12m2+l12m1,h8=g(L1m2+l1m1),h9=J2+l22m2,h10=gl2m2.
The values of the parameters can be found in 35.

4.2.1. Control design for the double rotary inverted pendulum

We can apply the LQR control of Subsection 3.1 to the linearized equations (21)(22). The weight matrices are obtained from Bryson’s rules:

Q=(8.160000008.160000008.16000000400000040000004),R=1,
The feedback gain is KLQR=(2.86107.25270.633.221.4429.71).

For the fuzzy control, the 12 premise variables are now:

z11=cosαz12cosγz21=sinααz22=sinγγz311=θ˙sinαcosαz312=θ˙sinαcosγz321=θ˙sinγcosαz322=θ˙sinγcosγz411=α˙sinαz412=α˙sinγz421=γ˙sinαz422=γ˙sinγ.
Applying the procedure described for the rotary inverted pendulum, the resulting fuzzy feedback gain (FZ) is KFZ=(2.8691.64193.726.261.8524.00).

5. Simulation and experimental results and discussion

In order to test and compare these controllers, the model described in Section 2 has been simulated following 26. The different strategies have been implemented using the rotary inverted pendulum of Figure 1 (left) and the double chain pendulum of Figure 1 (right), and compared.

The experimental setup of the rotary inverted pendulum 34,35 is showed in Figure 3. The power amplifier Quanser VoltPAQ transmits the voltage to the servo motor Quanser SRV02 which allows to actuate on the rotary arm. The measurements of the angles are sent to the computer through the data acquisition board Quanser Q8-USB. The applied controller running in the computer returns the input voltage that the power amplifier should give.

Figure 3:

Scheme of the connection between the plant and the controller.

5.1. Results for the rotary inverted pendulum

First, the rotary inverted pendulum has been controlled using the three strategies presented in Section 4.1. In Figure 4 the simulation of the nonlinear model developed in Section 2 is depicted. First, a swing-up strategy based on the energy is used following the work of 3. Then the pendulum is stabilized using the three proposed techniques. In this way, we carry out fair comparison because the initial state should typically be the stable equilibrium position. We obtain that the maximum values of α that allow the stabilization are 37.2°, 40.1° and 51.6° for the FSF control, the LQR regulator and the fuzzy controller, respectively.

Figure 4:

Simulation of the states and input signal for the three stabilization control strategies: a) Position of the rotary arm (rad), b) position of the pendulum (rad), c) velocity of the rotary arm (rad/s), d) velocity of the pendulum (rad/s), e) input signal (V). FSF control with switch at α = 37.2° (dashed green), LQR control with switch at α = 40.1° (solid blue), fuzzy control with switch at α = 51.6° (dotted red).

In the first part of the simulation (Figure 4), the lines are overlapped until we switch on the stabilization control because the swing-up control is the same, as we said. Because of the larger region of attraction of the fuzzy control (dotted red), the number of swings is reduced and, in consequence, the pendulum is stabilized faster. It can be observed that the FSF control (dashed green line) suffers a great disturbance when it comes into action due to the effort to reach its maximum region of attraction. On the contrary, the LQR (solid blue) and fuzzy control (dotted red) keep the system stable even when the region of attraction is larger.

The three control strategies designed in Section 3 have been tested on a real inverted pendulum system. Figure 5 illustrates the evolution of θ, θ˙ , αyα˙, and the applied control signal. It shows the behavior of the system when we switch from the swing-up law to the stabilization control at the maximum possible value of α. In the case of the fuzzy controller, this angle is 40.2°, 31.5° for FSF, and 34.3° for LQR. The fuzzy controller (dotted red) needs, as in the simulation, less swing-up movements due to its larger region of attraction.

Figure 5:

States and input signal in the experimental plant for the three stabilization control strategies: a) Position of the rotary arm (rad), b) position of the pendulum (rad), c) velocity of the rotary arm (rad/s), d) velocity of the pendulum (rad/s), e) input signal (V). FSF control with switch at α = 31.5° (dashed green), LQR control with switch at α = 34.3° (solid blue), fuzzy control with switch at α = 40.2° (dotted red).

If these results are compared with the simulation ones, we observe that the region of attraction results more conservative in the experimental plant. However, the control based on the Takagi-Sugeno model still provides larger region of attraction than the other controllers.

In addition, the settling time and the average steady state error are similar to the FSF and the LQR controllers, only the maximum overshoot is larger because of the need of a bigger thrust. Table 1 summarizes the results obtained with the three controllers in terms of the system response.

FSF LQR Fuzzy
Settling time (s) 0.28 0.33 0.29
Overshoot (rad) 0.18 0.22 0.35
Av. Steady state error (%) 0.008 0.012 0.009
Table 1.

System response characteristics for the implemented controllers in the real rotary inverted pendulum.

5.2. Results for the double rotary inverted pendulum

The Takagi-Sugeno fuzzy model of the double rotary inverted pendulum (21)(23) has been simulated.

The results of the system response for the LQR (dashed green) and fuzzy (dotted red) control strategies are presented in Figure 6. The maximum initial α for the LQR control is 14.5° and for the control based on the Takagi-Sugeno fuzzy model is 17.1°. In Figures 6.a and 6.c we can observe how the rotary arm recovers the reference position faster with the fuzzy control. However, the resulting overshoot in position and velocity of the pendulum (Figures 6.b and 6.f) are larger. The input signal (Figure 6.g) of both controllers is similar but the region of attraction increases 17.3% with the fuzzy control respect to the LQR control. This is a very good result for the robustness of the system.

Figure 6:

States and input signal in the stabilization of the double rotary inverted pendulum: a) Position of the rotary arm (rad), b) position of the bottom pendulum (rad), c) position of the top pendulum (rad), d) velocity of the rotary arm (rad/s), e) velocity of the bottom pendulum (rad/s), f) velocity of the top pendulum (rad/s), g) input signal (V). LQR control with initial α = 14.5° (blue) and fuzzy control with initial α = 17.1° (red).

6. Conclusions

In this paper we have presented a general form of the equations of motion of a rotary chain pendulum and the design of an intelligent controller based on a Takagi-Sugeno fuzzy model, which enlarges the region of attraction of the stabilization control of the chain pendulum.

This design has been applied to the rotary inverted pendulum and to the double rotary inverted pendulum, and compared to other feedback control strategies such as FSF and LQR.

From the experimental results with the real plant of the inverted pendulum, we can conclude that the region of attraction of the fuzzy model (40.2°) is considerably larger than with the FSF control (31.5°) or with the LQR control (34.3°). Specifically, it provides an improvement of 27.6% and 17.2%, respectively. These experimental results has been compared with the simulation ones, in which a larger region of attraction had been predicted for the fuzzy controller as well.

The fuzzy control has been also implemented in the double rotary inverted pendulum enlarging the region of attraction in 17.3%.

These results present a great applicability if we deal with very non-linear systems, where the region of attraction of classical controllers is not enough. For this reason, the application of fuzzy logic can be a way of making easier the swing-up control in complex inverted pendulum type systems.

Future works include the design of membership functions to maximize the region of attraction.

Acknowledgements

This work was partially supported by the Spanish Ministry of Economy and Competitiveness under the project DPI2012-31303.

References

1.M Santos, Intelligent control: a practical approach, Rev. Iberoam. Autom. In, Vol. 8, 2011, pp. 283-296.
9.H Lam, F Leung, and P Tam, Design and stability analysis of fuzzy model based nonlinear controller for nonlinear systems using genetic algorithm, IEEE Int. Conf. Fuzzy, Vol. 1, 2002, pp. 232-237.
17.K Cao, XZ Gao, X Huang, and X Ban, Stability analysis of a type of TS fuzzy control systems using off-axis circle criterion, Int. J. Comput. Int. Sys, Vol. 5, 2012, pp. 714-722.
27.QV Dang, B Allouche, L Vermeiren, A Dequidt, and N Dambrine, Design and implementation of a robust fuzzy controller for a rotary inverted pendulum using the Takagi-Sugeno descriptor representation, Nonlinear Dynam, Vol. 76, 2014, pp. 448-453.
31.AJ Barragán, BM Al-Hadithi, JM Andújar, and A Jiménez, Nonlinear control of triple inverted pendulum based on GA-PIDNN, Rev. Iberoam. Autom. In, Vol. 12, 2015, pp. 434-445.
32. MATLAB 7.14.0.739 (R2010a) The MathWorks Inc. Natick, Massachusetts (2012)
33.K Tanaka and HO Wang, Fuzzy control systems design and analysis: a linear matrix inequality approach, John Wiley & Sons, Inc., New York, 2004.
34.Quanser, SRV02 rotary pendulum user manual, Quanser Inc, Markhan, Ontario, 2010.
35.Quanser, Rotary double inverted pendulum experiment user manual, Quanser Inc, Markhan, Ontario, 2012.
Journal
International Journal of Computational Intelligence Systems
Volume-Issue
9 - 2
Pages
281 - 295
Publication Date
2016/04/01
ISSN (Online)
1875-6883
ISSN (Print)
1875-6891
DOI
10.1080/18756891.2016.1150001How to use a DOI?
Copyright
© 2016. the authors. Co-published by Atlantis Press and Taylor & Francis
Open Access
This is an open access article under the CC BY-NC license (http://creativecommons.org/licences/by-nc/4.0/).

Cite this article

TY  - JOUR
AU  - Ernesto Aranda-Escolástico
AU  - María Guinaldo
AU  - Matilde Santos
AU  - Sebastián Dormido
PY  - 2016
DA  - 2016/04/01
TI  - Control of a chain pendulum: A fuzzy logic approach
JO  - International Journal of Computational Intelligence Systems
SP  - 281
EP  - 295
VL  - 9
IS  - 2
SN  - 1875-6883
UR  - https://doi.org/10.1080/18756891.2016.1150001
DO  - 10.1080/18756891.2016.1150001
ID  - Aranda-Escolástico2016
ER  -