Professional Documents
Culture Documents
Lyapunov-Based Controller For The Inverted Pendulum Cart System
Lyapunov-Based Controller For The Inverted Pendulum Cart System
net/publication/226127431
CITATIONS READS
66 1,426
3 authors, including:
Carlos Aguilar-Ibáñez
Instituto Politécnico Nacional
122 PUBLICATIONS 910 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Carlos Aguilar-Ibáñez on 19 May 2015.
Abstract A nonlinear control force is presented to stabilize the under actuated inverted pendulum mounted
on a cart. The control strategy is based on partial feedback linearization, in a first stage, to linearize only the
actuated coordinate of the inverted pendulum, and then, a suitable Lyapunov function is formed to obtain a
stabilizing feedback controller. The obtained closed loop system is locally asymptotically stable around its
unstable equilibrium point. Additionally, it has a very large attraction domain.
2
1 The very hard problem is how to find the Lyapunov
It can be easily seen that (5) define an under-actuated
function. Perhaps the most efficient technique used to built
system, because it has only one input v and two degrees
a Lyapunov's function is the propused by R. Sepulchre [15]
of freedom θ and q 3 The set D is stability region for the closed loop system,
which will be determined further on.
It turns out that φ ( x ) can be chosen as where θ s was defined previously. Indeed, it follows
since V is a non-increasing function see relation (15).
φ ( x ) = kp(1 − cos θ ) −
kp & 2 1 2
θ + q& (10) It is important to emphasize that, inequality (16)
2 2
defines a stability region for the closed loop system.
Moreover, it is easy to verify that the proposed V Since, for all initial conditions x 0 such that
is positive definite for all θ ∈ I s where the set is V ( x 0 ) < K s with θ 0 < π 2 , then V ( x(t )) < K s , with
θ (t ) < θ s . According to this fact, we can define a
defined as:
k ik p
V ( x0 ) < K s = sin θ s2 + kl k p (1 − cos θ s ) (16)
2 4
La Salle’s Theorem ensures that all solutions of the closed
loop system starting in S ⊂ Ω approach M as t →∝ ,
where is largest invariant set in S
Then, on the set S , input v is evidently constant in In the first experiment, we used the proposed controller
S and given by the quantity v = v . Now, from (14), when it was applied to the nonlinear model (5).
system (5), we have The design parameters were set as k p = 25 ,
k i = 0 .25 and k l = 1 , and the initial conditions were
θ&& = sin θ − cos θ v ; q&& = v (21)
set as θ 0 = 1.2[rad ] , θ&0 = 0.05[rad / sec] , q0 = 0
We analyze the two possible cases arising from the and q& 0 = 0 . Figure 2 shows the closed loop responses
above equations: to the proposed nonlinear control force.
Case a) If the constant v ≠ 0 then q& (t ) is not In the second experiment, we considered the
bounded on S , and this fact leads to a design parameters and the initial conditions as
contradiction. Hence, we must have that v = 0 . before, but introduced a dissipative force in the
Additionally, when v = 0 means that q& (t ) is unactuated direction, i.e., we added the damping
constant on S , thus q (t ) is not bounded on S , and − γθ& into the first differential equation of the
we also have a contradiction. model (5), with γ = 0.25 . Figure 3 shows the
robustness of the proposed nonlinear control when
Case b) If q = 0 then from (21), we get the damping is considered in the numerical
differential equation θ&& = sin θ . This means that simulations. Notice that it is not generally true that
the pendulum can be either at rest or oscillating in damping makes a feedback-stabilized equilibrium
S . Then, from definition of the variable ξ , it asymptotically stable. That is to say, if damping is
follows that θ = sin
−1
(ξ k p ) , and necessarily, included then the response of the closed loop
system tends to destabilize.
θ = 0 or θ = nπ . But, under the assumption that
the initial conditions belong to Ω , we conclude
that the variable θ must be zero. 5 Conclusions
We conclude from the above that, the largest A Lyapunov based controller for the stabilization of
invariant set M contained in the set S is the IPCS was presented, in the case of the set of initial
constituted by the single point x = 0 . According to conditions belongs to the above horizontal plane. The
LaSalle's theorem all the trajectories of the closed proposed feedback controller makes the closed loop
loop system asymptotically converge towards the system be locally asymptotically stable, around the
invariant set contained in S , which is the unstable equilibrium position x = 0 . The domain of
equilibrium point x = 0 . attraction of the closed loop system is almost the whole
upper half plane, and it can be estimated by inequality
We summarize our results in the following (16). The control strategy is based, in a first step, on
proposition. partial feedback linearization of the IPCS, followed, in
a second step, by Lyapunov's approach. The
Proposition 1 Consider the system (5) in the closed convergence analysis is carried out using LaSalle's
loop with the controller (14), with strictly positive invariance principle, which guarantees that the closed
constants k i , k l and k p under assumption that the loop system is locally asymptotically stable.
initial deviation of angle θ is in the upper half Finally, by means of computer simulations, the
plane. Then, the origin of the closed loop system is closed loop performances of the controlled system
locally asymptotically stable and the domain of
seems to be quite robust with respect to the
attraction is the region defined by the inequality
(16). presence of dissipative forces, as assessed from
the digital experiments. However, the proposed
controller has the inconvenience of having a very
4 Numerical Simulations slow time convergence.
To assess the performance of the proposed
nonlinear control, we have carried out some digital
computer simulations, using the SIMNONÔ
simulation package.
Acknowledgments [7] I. Fantoni, R. Lozano,. Non-linear Control for
This work was supported by CIC-IPN, and by Underactuated Mechanical System., Springer Verlag,
the Coordinación General de Posgrado e London , 2002.
Investigación (CGPI-IPN) under research [8] K. Furuta, M. Yamakita, S. Kobayashi,. Swing up
Grant 20040877. Also this paper is dedicated control of inverted pendulum using pseudo-state
feedback, Journal of System and Control Engineering,
in memory of Professor Leopoldo Arustegui
Vol. 206, 1992 , pp. 263-269.
(CBTIS 78) [9] K. J. Astrom and K. Furuta,. Nonlinear control of a
swinging pendulum, Automatica, Vol. 31(6),1995, pp.
851-862.
[10] M. V. Spong,. Energy Based Control of a class of
Underactuated Mechanical Systems, IFAC World
Congress,1996, San Francisco, CA.
[11] M. W. Spong, and L. Praly, Control of
Underactuated mechanical systems using switching
and saturation, Procc. of Block Island Workshop on
Fig. 2. Feedback controlled performance of the Control Using Logic Based Switching,1996. .
normalized system to the proposed non-linear [12] R. Lozano, I. Fantoni, and D. J. Block,
control. Stabilization on the inverted pendulum around its
homoclinic orbit, System \& Control Letters, Vol. (40)
3, 2000, pp.197-204.
[13] R. Olfati-Saber,. Fixed Point Controllers and
Stabilization of the Cart-Pole and Rotating Pendulum,
Proc. of the 38th Conf. on Decision and Control, Dec.
1999., pp.1174-1181, Phoenix, Az.
[14] R. Olfati-Saber, Nonlinear Control of
Underactuated Mechanical systems with Applications
to Robotic and Aerospace Vehicles, PhD thesis ,
Fig. 3. Closed loop responses of Lyapunov-based Department of electrical Engineering and Computer
controlled, when damping is included. Science of the Massachusetts Institute of Technology,
Cambridge, USA, 2001.
[15] R. Sepulchre, M. Jankovíc, and P. Kokotovíc ,.
References: Constructive Nonlinear Control, Springer-Verlag ,
London,1997.
[1] A. S. Shir iaev, A. L. Fradkov. Stabilization of
invariant sets of nonlinear systems with
applications to control of oscillations. Int. J. of
Robust and Nonlinear Control, Vol. 11, 2001,
pp.215-240
[2] B. Jakubczyk, W. Respondek,. On the
linearization of control systems, Bull. Acad. Polon.
Sci. Math., Vol. 28, 1980, pp.517-522.
[3] Bloch, A. M., N. E. Leonard, and J. E. Marsden,
Controlled lagrangians and the Stabilization of
Mechanical Systems I: The First matching theorem,
IEEE Trans.on Sytems and Control, Vol. 45, 2000,
pp. 2253-2270.
[4] C.C. Chung and J. Hauser, Swing up a
pendulum by energy control, Automatica, Vol.
36(2), 2000,pp. 287-295.
[5] H.K. Khalil,. Non-linear Systems. Prentice Hall
, 2nd. Edition, 1996.
[6] H. Kwakernaak, R. Sivan. Linear Optimal
Control Systems Wiley, New York , 1972.