Nonlinear systems Khalil - Prentice-Hall, 2002. Probably the best book to start
with nonlinear control. Nonlinear systems S. Sastry - Springer Verlag, 1999.
Control of Nonlinear Systems Nonlinear Control N. Marchand
Nicolas Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches
CNRS Associate researcher
[email protected] Control Systems Department, gipsa-lab Grenoble, France
Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Master PSPI 2009-2010
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 1 / 174
References Nonlinear systems Khalil - Prentice-Hall, 2002 Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Probably the best book to start with nonlinear control
Nonlinear systems S. Sastry - Springer Verlag, 1999 Good general book, a bit harder than Khalil’s
Mathematical Control Theory - E.D. Sontag - Springer, 1998 Mathematically oriented,
Can be downloaded at:
http: // www. math. rutgers. edu/ ~ sontag/ FTP_ DIR/ sontag_ mathematical_ control_ theory_ springer98. pdf
Constructive nonlinear control - Sepulchre et al. - Springer, 1997 More focused on passivity and recursive approaches
Nonlinear control systems - A. Isidori - Springer Verlag, 1995 A reference for geometric approach
Applied Nonlinear control - J.J. Slotine and W. Li - Prentice-Hall, 1991 An interesting reference in particular for sliding mode
“Research on Gain Scheduling” - W.J. Rugh and J.S. Shamma Automatica, 36 (10):1401–1425, 2000 “Survey of gain scheduling analysis and design” - D.J. Leith and W.E. Leithead - Int. Journal of Control, 73:1001–1025, 1999 Surveys on Gain Scheduling,
The second reference can be downloaded at:
http: // citeseer. ist. psu. edu/ leith99survey. html
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 2 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 3 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 4 / 174
Introduction Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Some preliminary vocable and definitions What is control ? A very short review of the linear case (properties, design of control laws, etc.) Why nonlinear control ? Formulation of a nonlinear control problem (model, representation, closed-loop stability, etc.)?
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Some strange possible behaviors of nonlinear systems Example : The X4 helicopter
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 5 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 6 / 174
Some preliminary vocable Nonlinear Control N. Marchand
We consider a dynamical system:
References
System
Outline
u(t)
Introduction
x(t)
y(t)
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
where: y is the output: represents what is “visible” from outside the system x is the state of the system: characterizes the state of the system u is the control input: makes the system move
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 7 / 174
The 4 steps to control a system Nonlinear Control
yd k(x)
N. Marchand
u
y
Controller
References
x^
Outline Introduction
Observer
Linear/Nonlinear The X4 example
Linear approaches
1
Stability
a simple model to build the control law a sharp model to check the control law and the observer
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
Modelization To get a mathematical representation of the system Different kind of model are useful. Often:
Antiwindup Linearization Gain scheduling
2
Design the state reconstruction: in order to reconstruct the variables needed for control
3
Design the control and test it
4
Close the loop on the real system
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 8 / 174
Linear dynamical systems Some properties of linear system (1/2) Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Definition: Systems such that if y1 and y2 are the outputs corresponding to u1 and u2 , then ∀λ ∈ R: y1 + λy2 is the output corresponding to u1 + λu2 Representation near the operating point: Transfer function: y (s) = h(s)u(s) State space representation: x˙ = Ax + Bu y = Cx(+Du)
The model can be obtained physical modelization (eventually coupled with identification) identification (black box approach)
both give h(s) or (A, B, C , D) and hence the model. Nonlinear Control
Master PSPI 2009-2010 9 / 174
Linear dynamical systems Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Some properties of linear system (2/2) x˙ = Ax + Bu y = Cx(+Du)
Nice properties: Unique and constant equilibrium Controllability (resp. observability) directly given by rank(B, AB, . . . , An−1 B) (resp. rank(C , CA, . . . , CAn−1 )) Stability directly given by the poles of h(s) or the eigenvalues of A (asymptotically stable < < 0) Local properties = global properties (like stability, stabilizability, etc.) The time behavior is independent of the initial condition Frequency analysis is easy Control is easy: simply take u = Kx with K such that |λmax (F )|
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 44 / 174
Linear systems with saturated inputs A short Lyapunov explanation of the behavior Nonlinear Control
Consider a stable closed loop linear system: it is globally asymptotically stable. A saturation on the input may:
N. Marchand References
transform the global stability into local stability. In this case, the aim of the anti-windup is to increase the radius of attraction of the closed loop system keep the global stability property. In this case, the aim of the anti-windup is to renders the saturated system closer to its unsaturated equivalent
Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
However, there is no formal proof of stability of anti-windup strategies
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Other approaches for saturated inputs Optimal control Nested saturation function (under development)
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 45 / 174
Linear systems with saturated inputs Back to the unstable case Nonlinear Control
The unstable case:
N. Marchand
7s+5
1
s
References
Pulse Generator
s-1
Control
Saturation
Transfer Fcn
Outline Introduction Linear/Nonlinear The X4 example
The closed-loop behavior is: 4 3.5
Linear approaches Antiwindup Linearization Gain scheduling
3
with saturation
2.5 2 1.5
without saturation
with saturation and anti-windup
1
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
0.5 0 −0.5 −1
0
1
2
3
4
5
However, nothing is magic and divergent behavior may occur because of the level of the step input
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 46 / 174
Linear systems with saturated inputs Impact of input saturations on the control of the X4’s rotors (4/4) Nonlinear Control N. Marchand References
Make a step the weight, that is such q that compensates P d mg d that si = i Fi = mg 4b so that Taking τCL = 50 ms, one gets with anti-windup
Outline 600
Introduction Linear/Nonlinear The X4 example
Linear approaches
400
si
Antiwindup Linearization Gain scheduling
0
Stability
0
1
2
0
1
2
4
5
3
4
5
60 40
Ui
20 0 −20
time
Observers N. Marchand (gipsa-lab)
3
80
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
200
Nonlinear Control
Master PSPI 2009-2010 47 / 174
1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 48 / 174
Linearization of nonlinear systems Impact of the load on the control of the X4’s rotors Nonlinear Control N. Marchand
Make a step that compensates the weight, that is such that sid = P that i Fid = mg Taking τCL = 50 ms, one gets with load
q
mg 4b
so
References 600
Outline 400
Introduction Linear/Nonlinear The X4 example
si
Linear approaches
0
Antiwindup Linearization Gain scheduling
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
0
1
2
0
1
2
3
4
5
3
4
5
20
Stability Nonlinear approaches
200
10 0
Ui −10 −20
time
The PI controller seems badly tuned: for t > 1.3 s, the control is not saturated but the convergence is very slow. What’s wrong ? Nonlinear Control
Master PSPI 2009-2010 49 / 174
Linearization of nonlinear systems Impact of the load on the control of the X4’s rotors Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Back to the rotor dynamical equation: s˙i = −
2 kgearbox κ km km si − |si | si + satU¯ i (Ui ) Jr R Jr Jr R
Taking τload as unknown implies that the PI control law was tuned for: s˙i = −
2 km km si + satU¯ i (Ui ) Jr R Jr R
Implicitly, the second order terms were neglected Unfortunately, these two systems behave q similarly iff si is −1 d small, which is not the case for si = mg 4b ≈ 544 rad s Nonlinear Control
Master PSPI 2009-2010 50 / 174
Linearization of nonlinear systems Linearization at the origin Nonlinear Control N. Marchand
Linearization at the origin Take a nonlinear system
References Outline
x˙ y
= f (x, u) = h(x, u)
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
with f (0, 0) = 0. Then, near the origin, it can be approximated by its linear Taylor expansion at the first order: ∂f ∂f x˙ = x+ u ∂x (x=0,u=0) ∂u (x=0,u=0) | {z } | {z } A B ∂h ∂h x+ u y − h(0, 0) = ∂x ∂u (x=0,u=0) (x=0,u=0) | {z } | {z } C
D
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 51 / 174
Linearization of nonlinear systems Linearization at a point Nonlinear Control N. Marchand
Linearization at a point Take a nonlinear system
References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
x˙ y
= f (x, u) = h(x, u)
then, near the equilibrium point (x0 , u0 ), it can be approximated by its linear Taylor expansion at the first order: ∂f ∂f ˙ x = (x − x ) (u − u0 ) + 0 |{z} ∂x (x0 ,u0 ) | {z } ∂u (x0 ,u0 ) | {z } ˙ ˜ x | {z } | {z } ˜ x˜ u A B ∂h ∂h y − h(x0 , u0 ) = (x − x0 ) + (u − u0 ) | {z } | {z } ∂x ∂u (x0 ,u0 ) (x0 ,u0 ) | {z } | {z } ˜ x˜ u C
D
which is linear in the variables x˜ = x − x0 and u˜ = u − u0
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 52 / 174
Linearization of nonlinear systems Some properties of the linearization Nonlinear Control N. Marchand
Controllability properties Take a nonlinear system x˙ = f (x, u)
(6)
x˜˙ = A˜ x + B u˜
(7)
References Outline
and its linearization at (x0 , u0 ):
Introduction Linear/Nonlinear The X4 example
Linear approaches
If (7) is controllable then (6) is locally controllable Nothing can be concluded if (7) is uncontrollable
Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
Example The car is controllable but not its linearization x˙ 1 = u1 x˙ 1 1 0 ⇒ x˙ 2 = 0 1 u1 u2 x˙ 2 = u2 linearization at the origin x˙ 3 = x2 u1 x˙ 3 0 0
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 53 / 174
Linearization of nonlinear systems Some properties of the linearization Nonlinear Control N. Marchand
Stability properties Take a nonlinear system
References
x˙ = f (x, u)
Outline Introduction Linear/Nonlinear The X4 example
and its linearization at (x0 , u0 ): x˜˙ = A˜ x + B u˜
Linear approaches Antiwindup Linearization Gain scheduling
(8)
(9)
Assume that one can build a feedback law u˜ = k(˜ x ) so that:
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
(9) is asymptotically stable (< < 0): then (8) is locally asymptotically stable with u = u0 + k(˜ x) (9) is unstable (< > 0): then (8) is locally unstable with u = u0 + k(˜ x) Nothing can be concluded if (9) is simply stable (< ≤ 0)
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 54 / 174
Linearization of nonlinear systems Impact of the load on the control of the X4’s rotors Nonlinear Control
Back to the rotor dynamical equation:
N. Marchand
s˙i = −
References Outline
2 kgearbox κ km km si − |si | si + satU¯ i (Ui ) Jr R Jr Jr R
Define Uid , the constant control that keeps the steady state speed:
Introduction
Uid = km sid +
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
The linearization of the rotor dynamics near sid gives: ˜s˙i = −
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Rkgearbox κ d d si si km
with:
2 2kgearbox κ d km ˜ km ˜i ) + satU¯ i (U si ˜si + Jr R Jr Jr R
˜ i = Ui − U d U i ˜si = si − sid ˜i ) = ˜ U¯ (U sat i
˜i U ¯i U ¯i −U
¯ i , +U ¯i ] if Ui ∈ [−U ¯i if Ui ≥ U ¯i if Ui ≤ −U
Nonlinear Control
Master PSPI 2009-2010 55 / 174
Linearization of nonlinear systems Impact of the load on the control of the X4’s rotors Nonlinear Control N. Marchand References
Makeq a step that compensates the weight, that is such that P d sid = mg i Fi = mg 4b so that
Taking τCL = 50 ms and a PI controller tuned at sid on the system with load, one has:
Outline 600
Introduction Linear/Nonlinear The X4 example
Linear approaches
400
si
Antiwindup Linearization Gain scheduling
0
Stability
0
1
2
0
1
2
3
4
5
3
4
5
20
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
200
10 0
Ui −10 −20
time
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 56 / 174
1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 57 / 174
Towards gain scheduling Impact of a change in the steady state speed of the X4’s rotors Nonlinear Control N. Marchand
Take again τCL = 50 ms and a PI controller tuned at sid Make speed steps of different level 600
References 400
Outline Introduction Linear/Nonlinear The X4 example
200
si
Linear approaches Antiwindup Linearization Gain scheduling
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
0
2
4
0
2
4
6
8
10
6
8
10
20 10
Stability Nonlinear approaches
0 −200
0
Ui −10 −20
time
The controller is well tuned near sid but not very good a large range of use
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 58 / 174
Towards gain scheduling Local linearization may be inadequate for large excursion Nonlinear Control
The result could be worse:
N. Marchand
Take the inverted pendulum
References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
1 mgl sin θ m+M −ml cos θ θ¨ = u + ml θ˙ 2 sin θ − k y˙ y¨ ∆(θ) −ml cos θ I + ml 2
where I is the inertia of the pendulum ∆(θ) = (I + ml 2 )(m + M) − m2 l 2 cos2 θ
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Linearize it near the upper position ˙ y , y˙ ): k = 0 and x = (θ, θ, 0 1 0 x˙ 1 x˙ 2 2 0 0 = 3 x˙ 3 0 0 0 x˙ 4 − 13 0 0 Nonlinear Control
(θ = 0) with m = M = I = g = 1, 0 0 x1 x2 − 1 0 + 3 u 1 x3 0 2 x4 0 3 Master PSPI 2009-2010 59 / 174
Towards gain scheduling Local linearization may be inadequate for large excursion Nonlinear Control N. Marchand
Build a linear feedback law that places the poles at -1 Starting from θ(0) = π/5, it converges, from θ(0) = 1.1 × π/5, it diverges 15
15
References
Inverted pendulum
Linearization of the
Outline
inverted pendulum
Introduction
Initial condition:
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
x(0) = (π/5, 0, 0, 0) 10
10
kxk
x(0) = (1.1π/5, 0, 0, 0)
kxk
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
5
0
5
0
5
10
15
0
0
5
10
15
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 60 / 174
Towards gain scheduling For some systems, the radius of attraction of a stabilized linearization may be very small (less than one degree on the double inverted pendulum for instance)
Nonlinear Control N. Marchand References Outline
û Linearization is not suitable for large range of use of the closed-loop system
Introduction
For other systems, the controller must be very finely tuned in order to meet performance requirements (e.g. automotive with more and more restrictive pollution standards)
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches
û Linearization is not suitable for high accuracy closed loop systems
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Either for stability reasons or performance reasons, it may be necessary to tune the controller at more than one operating point
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 61 / 174
Towards gain scheduling Nonlinear Control N. Marchand
Gain scheduling uses the idea of using a collection of linearization of a nonlinear system at different operating points
References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 62 / 174
Gain scheduling Take a nonlinear system Nonlinear Control N. Marchand References
x˙
= f (x, u)
Define a family of equilibrium points
Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
s = (xeq , ueq )
such that f (xeq , ueq ) = 0
At each point s, linearize the system assuming s is constant: x˜˙ = A(s)˜ x + B(s)˜ u with x˜ = x − xeq and u˜ = u − ueq At each point s, define a feedback law: u = ueq (s) − K (s)(x − xeq (s)) with 0, ∃r (R) > 0 such that ∀x0 ∈ B(r (R)), x(t; x0 ), solution of (10) with x0 as initial condition, remains in B(R) for all t > 0.
Attractivity The origin is said to be attractive iff: limt→∞ x(t; x0 ) = 0.
Asymptotic stability System (10) is said to be asymptotically stable at the origin iff it is stable and attractive
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 68 / 174
Stability Graphical interpretation Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
For linear systems: Attractivity → Stability
A For nonlinear systems: Attractivity 9 Stability Stability and attractivity : properties hard to check ?
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 69 / 174
Stability Using the linearization Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches
Asymptotic stability and local linearizaton Consider x˙ = g (x) and its linearization at the origin x. Then: x˙ = ∂g ∂x x=0
Linearization with eig< 0 Nonlinear system is locally asymptotically stable
Antiwindup Linearization Gain scheduling
Linearization with eig> 0 Nonlinear system is locally unstable
Stability
Linearization with eig= 0: nothing can be concluded on the nonlinear system (may be stable or unstable)
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Only local conclusions
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 70 / 174
Stability Lyapunov theory: Lyapunov functions Nonlinear Control N. Marchand
Aleksandr Mikhailovich Lyapunov Markov’s school friend, Chebyshev’s student
References
Master Thesis : On the stability of ellipsoidal forms of equilibrium of a rotating liquid in 1884 Phd Thesis : The general problem of the stability of motion in 1892
Outline
6 June 1857 - 3 Nov 1918
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Definition: Lyapunov function Let V : Rn → R be a continuous function such that:
Stability 1 Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
2 3
(definite) V (x) = 0 ⇔ x = 0 (positive) ∀x, V (x) ≥ 0
(radially unbounded) limkxk→∞ V (x) = +∞
Lyapunov functions are energies
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 71 / 174
Markov’s school friend, Chebyshev’s student Master Thesis : On the stability of ellipsoidal forms of equilibrium of a rotating liquid in 1884 Phd Thesis : The general problem of the stability of motion in 1892
Stability
June Lyapunov 1857 - 3 Nov 1918 Lyapunov 6 theory: theorem Nonlinear Control
Aleksandr Mikhailovich Lyapunov
N. Marchand
Markov’s school friend, Chebyshev’s student Master Thesis : On the stability of ellipsoidal forms of equilibrium of a rotating liquid in 1884 Phd Thesis : The general problem of the stability of motion in 1892
References
6 June 1857 - 3 Nov 1918
Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Theorem: (First) Lyapunov theorem If ∃ a Lyapunov function V : Rn → R+ s.t.
(strictly decreasing) V (x(t)) is strictly decreasing for all x(0) 6= 0
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
then the origin is asymptotically stable.
If ∃ a Lyapunov function V : Rn → R+ s.t. (decreasing) V (x(t)) is decreasing
then the origin is stable.
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 72 / 174
Stability Lyapunov theorem: a graphical interpretation Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 73 / 174
Stability Stability and robustness Nonlinear Control N. Marchand References Outline
Stability holds robustness:
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability
∂V x˙ = g (x) stable ⇒ V˙ = g (x) < 0 ∂x ∂V (g (x) + ε(x)) < 0 ⇒ ∂x ⇒ x˙ = g (x) + ε(x) stable
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 74 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 75 / 174
The X4 helicopter The control problems Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches
s˙i ~p˙ m~v˙ R˙ ~˙ Jω
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
= − = ~v = = =
2 km Jr R s i
−
kgearbox κ Jr
|si | si +
km Jr R
satU¯ i (Ui )
Position control problem
0 −mg~e3 + R P 0 i Fi (si ) ~× Rω Attitude control problem 0 Γr (s2 , s4 ) P ~ ×J ω ~ − i Ir ω ~ × 0 + Γp (s1 , s3 ) −ω P Γy (s1 , s2 , s3 , s4 ) i si
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 76 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 77 / 174
Control Lyapunov functions Characterizing property (1/3) Nonlinear Control N. Marchand References Outline Introduction
Control Lyapunov functions (CLF) where introduced in the 80’s CLF are for controllability and control what Lyapunov functions are for stability Lyapunov: a tool for stability analysis of autonomous systems Take
Linear/Nonlinear The X4 example
x˙ 1 x˙ 2
Linear approaches Antiwindup Linearization Gain scheduling
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
x2 −x1 − x2
Take the Lyapunov function
Stability Nonlinear approaches
= =
V (x)
=
3 2 x + x1 x2 + x22 2 1
Along the trajectories of the system: V˙ (x(t))
=
2
∇V (x).f (x) = − kxk
hence, V Ø 0 and the system is asymptotically stable Nonlinear Control
Master PSPI 2009-2010 78 / 174
Control Lyapunov functions Characterizing property (2/3) Nonlinear Control N. Marchand References
Control Lyapunov Functions: a tool for stabilization of controlled systems Take now the controlled system x˙ 1 x˙ 2
Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
x2
=
−x1 + u
Take the Lyapunov function V (x)
=
Stability Nonlinear approaches
=
3 2 x + x1 x2 + x22 2 1
Along the trajectories of the system: V˙ (x(t), u(t))
= ∇V (x).f (x, u) = −x12 + x1 x2 + x22 + (x1 + 2x2 )u
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 79 / 174
Control Lyapunov functions Characterizing property (3/3) Nonlinear Control
Control Lyapunov Functions: a tool for stabilization of controlled systems
N. Marchand
Along the trajectories of the system:
References
V˙ (x(t), u(t))
Outline Introduction Linear/Nonlinear The X4 example
hence
Linear approaches
if x1 + 2x2 6= 0, there exists u such that V Ø otherwise (if x1 + 2x2 = 0)
Antiwindup Linearization Gain scheduling
Stability
V˙ (x(t), u(t))
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
= ∇V (x).f (x, u) = −x12 + x1 x2 + x22 + (x1 + 2x2 )u
=
−4x22 − 2x22 + x22 = −5x22
which is negative unless x2 = 0 = − 12 x1 : V Ø
In conclusion: characterizing property of CLF For any x 6= 0, there exists u such that V˙ (x(t), u(t)) < 0
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 80 / 174
Control Lyapunov functions Formal definitions Nonlinear Control N. Marchand References Outline
Definition: Lyapunov function A continuous function V : Rn → R≥0 is called a Lyapunov function if 1
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches
2
[positive definiteness] V (x) ≥ 0 for all x and V (0) = 0 if and only if x = 0 [radially unbounded] limx→∞ V (x) = +∞
or: 1
2
[positive definiteness] V (x) ≥ 0 for all x and V (0) = 0 if and only if x = 0 [proper] for each a ≥ 0, the set {x|V (x) ≤ a} is compact
or, alternatively:
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
(∃α, α ∈ K∞ )
α(kxk) ≤ V (x) ≤ α(kxk)
∀x ∈ Rn
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 81 / 174
Control Lyapunov functions Formal definitions Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Definition: Control Lyapunov Function A differentiable control Lyapunov function denotes a differentiable Lyapunov function being infinitesimally decreasing, meaning that there exists a positive continuous definite function W : Rn → R≥0 and such that:
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
sup min ∇V (x)f (x, u) + W (x) ≤ 0
m x∈Rn u∈R
Roughly speaking a CLF is a Lyapunov function that one can force to decrease Extensions to nonsmooth CLF exist and are necessary for the class of system that can not be stabilized by means of smooth static feedback
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 82 / 174
Control Lyapunov functions Control affine systems Nonlinear Control N. Marchand References Outline
Definition: Directional Lie derivative For any f and g with values in appropriate sets, the Lie derivative of g along f is defined by: Lf g (x) := ∇g (x) · f (x) Iteratively, one defines: Lkf g (x) := Lf Lk−1 g (x) f
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Theorem Consider a control affine system x˙ = g0 (x) + f (0) = 0. Assume that the set
Pm
i=1 ui gi (x)
with f smooth and
S = x|Lf V (x) = 0 and Lkf Lgi V (x) = 0 for all k ∈ N, i ∈ {1, . . . , m} = {0} then, the feedback k(x) := − (∇V (x) · G (x))T = Lg1 V (x) · · · globally asymptotically stabilizes the system at the origin.
Lgm V (x)
T
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 83 / 174
Control Lyapunov functions Control affine systems Nonlinear Control N. Marchand
Theorem: Sontag’s universal formula (1989)
P Consider a control affine system x˙ = g0 (x) + m i=1 ui gi (x) with f smooth and f (0) = 0. Assume that there exists a differentiable CLF, then the feedback
References
ki (x) = −bi (x)ϕ(a(x), β(x))
Outline
(= 0 for x = 0)
Introduction Linear/Nonlinear The X4 example
a(x) := ∇V (x)f (x) and bi (x) := ∇V (x)gi (x) for i = 1, . . . , m B(x) = b1 (x) · · · b2 (x) and β(x) = kB(x)k2 q : R → R is any real analytic function with q(0) = 0 and bq(b) > 0 for any b>0 ϕ is the real analytic function: √ a+ a2 +bq(b) if b 6= 0 b ϕ(a, b) = 0 if b = 0
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
is such that k(0) = 0, k smooth on Rn \0 and sup ∇V (x)f (x, k(x)) + W (x) ≤ 0
x∈Rn
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 84 / 174
Control Lyapunov functions Control affine systems Nonlinear Control N. Marchand References
Definition: Small control property A CLF V is said to satisfies the small control property if for any ε, there is some δ so that:
Outline
sup
Introduction
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
min ∇V (x)f (x, u) + W (x) ≤ 0
x∈B(δ) u∈B(ε)
Linear/Nonlinear The X4 example
The small control property implicitly means that if ε is small (hence the control), the system can still be controlled as long as it is sufficiently close to the origin
Theorem: Sontag’s universal formula (1989)
P Consider an control-affine system x˙ = g0 (x) + i = 1m ui gi (x) with f smooth and f (0) = 0. Assume that there exists a differentiable CLF, then the previous feedback k with q(b) = b is smooth on Rn \0 and continuous at the origin
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 85 / 174
Control Lyapunov functions Robustness issues Nonlinear Control
N. Marchand
Model x˙ = f (x, u) u = k(x)
Real system x˙ = f (x, u)+ε u = k(x+δ)
References Outline
Definition: Robustness w.r.t. model errors
Introduction
A feedback law k : Rn → Rm is said to be robust with respect to model errors if limt→∞ x(t) ∈ B(r (ε)) with limε→0 r (ε) = 0 (x(t) denotes the solution of x˙ = f (x, k(x)) + ε)
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Definition: Robustness w.r.t. measurement errors A feedback law k : Rn → Rm is said to be robust with respect to measurement errors if limt→∞ x(t) ∈ B(r (δ)) with limδ→0 r (δ) = 0 (x(t) denotes the solution of x˙ = f (x, k(x + δ)))
Theorem: Smooth CLF = robust stability (1999) The existence of a feedback law robust to measurement errors and model errors is equivalent to the existence of a smooth CLF
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 86 / 174
Control Lyapunov functions Conclusion Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
A CLF is a theoretical tool, not a magical tool A CLF is not a constructive tool Finding a stabilizing control law and finding a CLF are at best the same problems. In all other cases, finding a stabilizing control law is easier than finding a CLF Even if one can find a CLF for a system, the universal formula often gives a feedback with poor performances However, this is an important field of research in the control system theory community that proved important theoretical results, for instance the equivalence between asymptotic controllability and stabilizability of nonlinear systems (1997)
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 87 / 174
Other structural tools Passivity Nonlinear Control N. Marchand
Definition: Passivity A system
References Outline Introduction Linear/Nonlinear The X4 example
x˙ = f (x, u) y = h(x, u)
is said to be passive if there exists some function S(x) ≥ 0 with S(0) = 0 such that
Linear approaches Antiwindup Linearization Gain scheduling
ZT S(x(T )) − S(x(0)) ≤
u T (τ)y (τ)dτ 0
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Roughly speaking, S(x(0)) (called the storage function) denotes the largest amount of energy which can be extracted from the system given the initial condition x(0). Passivity eases the design of control law and is a powerful tool for interconnected systems Important literature Nonlinear Control
Master PSPI 2009-2010 88 / 174
Other structural tools Input-to-State Stability (ISS) Class K A continuous function γ : R≥0 → R≥0 is said in K if it is strictly increasing and γ(0) = 0 Class KL A continuous function β : R≥0 × R≥0 → R≥0 is said in KL if β(·, s) ∈ K for each fixed s and β(r , ·) is decreasing for each fixed r and lims →∞ β(r , s) = 0
Nonlinear Control N. Marchand References Outline
Definition: Input-to-State Stability
Introduction
A system
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability
x˙ = f (x, u) is said to be input-to-state stable if there exists functions β ∈ KL and γ ∈ K such that for each bounded u(·) and each x(0), the solution x(t) exists and is bounded by: kx(t)k ≤ β(kx(0)k , t) + γ( sup ku(τ)k) 0≤τ≤t
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Roughly speaking, ISS characterizes a relation between the norm of the state and the energy injected in the system: the system can not diverge in finite time with a bounded control ISS eases the design of control law Important literature Nonlinear Control
Master PSPI 2009-2010 89 / 174
Outline 1
Introduction Linear versus nonlinear The X4 example
2
Linear control methods for nonlinear systems Antiwindup Linearization Gain scheduling
3
Stability
4
Nonlinear control methods Control Lyapunov functions Sliding mode control State and output linearization Backstepping and feedforwarding Stabilization of the X4 at a position
5
Observers
Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers
N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 90 / 174
Sliding mode control An introducing example Nonlinear Control
Take again the linear system
N. Marchand
x˙ 1 = x2 x˙ 2 = −x1 + u
References Outline
Assume u is forced to remain in [−1, 1]
Introduction Linear/Nonlinear The X4 example
In practical applications, u is always constrained in an interval [u, u]. We will see later on how to handle it. To begin, we take the above simplified
Linear approaches
constraint.
Antiwindup Linearization Gain scheduling
Take the CLF
Stability
3 V (x) = x12 + x1 x2 + x22 = x T 2
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
3 2 1 2
1 2
1
x
Goal Find u in [−1, 1] that makes V decrease as fast as possible
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 91 / 174
Sliding mode control An introducing example Nonlinear Control N. Marchand
Making V decrease as fast as possible is equivalent to minimizing V˙ : u = Argmin V˙ u∈[−1,1]
Outline
= Argmin −−x x 22 + x11 x22 + x2222 + (x11 + 2x22 )u } | | 11 {z {z } u∈[−1,1]
Introduction
= − sign(x1 + 2x2 )
References
Linear/Nonlinear The X4 example
can not be changed
minimal for u=− sign(x1 +2x2 )
Simulating the closed loop system with initial condition x(0) = (2, −3), it gives:
Linear approaches
2
x2
0
Antiwindup Linearization Gain scheduling
x1
−2
−4
Stability
0
2
4
6
8
10
4
6
8
10
1.5
Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
1 0.5
u
0 −0.5 −1 −1.5
0
2
Why does it work ?
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 92 / 174
Sliding mode control An introducing example Nonlinear Control N. Marchand
Define σ(x) = x1 + 2x2 . The set {S(x) = {x|σ(x) = 0}} ∩ {|x1 | ≤ 0.6, |x2 | ≤ 0.3} is attractive:
References
S
Outline Introduction
=
{x
|x
1
V
+
2x
2
Linear/Nonlinear The X4 example
=
0}
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
x1
x2
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 93 / 174
Sliding mode control An introducing example Nonlinear Control N. Marchand
Define σ(x) = x1 + 2x2 . The set {S(x) = {x|σ(x) = 0}} ∩ {|x1 | ≤ 0.6, |x2 | ≤ 0.3} is attractive:
References
S
Outline
=
{x
|x
1
Introduction
+
2x
2
Linear/Nonlinear The X4 example
=
0}
Linear approaches Antiwindup Linearization Gain scheduling
Stability
CLF Sliding mode Geometric control Recursive techniques X4 stabilization
S S˙ > 0
S S˙ < 0
Nonlinear approaches
S S˙ < 0 S S˙ > 0
x1
x2
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 93 / 174
Sliding mode control An introducing example Nonlinear Control N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
The set {S(x) = {x|σ(x) = 0}} ∩ {|x1 | ≤ 0.6, |x2 | ≤ 0.3} is attractive Once the set is joined, the control is such that x remains on S(x), that is: ˙ S(x) = 0 = x˙ 1 + 2x˙ 2 = x2 − x1 + u Hence, on S(x), u = − sign(x1 + 2x2 ) has the same influence on the system as the control ueq = x1 − x2 On S(x), the system behaves like: x˙ 1 = x2 x˙ 2 = −x1 + u = −x2 x2 and hence also x1 clearly exponentially go to zero without leaving {S(x) = {x|x1 + 2x2 = 0}} ∩ {|x1 | ≤ 0.6, |x2 | ≤ 0.3}
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 94 / 174
Sliding mode control Principle of sliding mode control Nonlinear Control N. Marchand
Principle: Define a sliding surface S(x) = {x|σ(x) = 0} A stabilizing sliding mode control is a control law
References Outline Introduction
discontinuous in on S(x) that insures the attractivity of S(x) such that, on the surface S(x), the states “slides” to the origin
Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Main characteristic of sliding mode control: 4 Robust control law 8 Discontinuities may damage actuators (filtered versions exist)
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 95 / 174
Sliding mode control Notion of sliding surface and equivalent control Nonlinear Control N. Marchand References
With a sliding mode control, the system takes the form: + f (x) if σ(x) > 0 x˙ = f − (x) if σ(x) < 0
Outline Introduction Linear/Nonlinear The X4 example
f + (x) σ(x) > 0
Linear approaches
fn+ (x) fn− (x)
Antiwindup Linearization Gain scheduling
f − (x)
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
σ(x) = 0
σ(x) < 0
What happens for σ(x) = 0 ? The solution on σ(x) = 0 is the solution of x˙ = αf + (x) + (1 − α)f − (x) where α satisfies αfn+ (x) + (1 − α)fn− (x) = 0 for the normal projections of f + and f −
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 96 / 174
Sliding mode control A sliding mode control for a class of affine systems Nonlinear Control
Theorem: Sliding mode control for a class of nonlinear systems
N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
Take the nonlinear system: f1 (x) + g1 (x)u x˙ 1 x˙ 2 x1 = f (x) + g (x)u .. = .. . . xn−1 x˙ n Choose the control law
p T f (x) µ − T sign(σ(x)) T p g (x) p g (x) with µ > 0, σ(x) = p T x and p T = p1 · · · pn is a stable polynomial (all roots have strictly negative real parts) Then the origin of the closed loop system is asymptotically stable u=−
Nonlinear Control
Master PSPI 2009-2010 97 / 174
Sliding mode control Sliding mode control for some affine systems: proof of convergence Nonlinear Control
Proof:
N. Marchand
Take the Lyapunov function 1 V (x) = x T pp T x 2
References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
2
Note that V (x) = σ 2(x) Along the trajectories of the system, one has: ˙ V˙ (x) = σT (x)σ(x) = x T p p T f (x) + p T g (x)u with the chosen control, it gives:
V˙ (x) = −µσ(x) sign(σ(x)) = −µ |σ(x)| x tends to S = {x|σ(x) = 0} µ tunes how fast the system converges to S = {x|σ(x) = 0}
Observers N. Marchand (gipsa-lab)
Nonlinear Control
Master PSPI 2009-2010 98 / 174
Sliding mode control Sliding mode control for some affine systems: proof of convergence Nonlinear Control
On S, the system is such that σ(x) = 0 = p1 x1 + · · · + pn−1 xn−1 + pn xn
N. Marchand References Outline Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
Observers N. Marchand (gipsa-lab)
But: xn−1 = x˙ n (2)
xn−2 = x˙ n−1 = xn .. .
(n−1)
x1 = x˙ 2 = · · · = xn That can be written with zi = xn−i+1 in the 0 1 0 0 0 1 . .. z˙ = . .. 0 ··· ··· − pp21 − pp31 · · ·
form: ··· .. . .. . 0 ···
Hence, x asymptotically goes to the origin Nonlinear Control
0 .. . 0 z 1 pn − p1
Master PSPI 2009-2010 99 / 174
Sliding mode control Sliding mode control for some affine systems: time to switch Nonlinear Control N. Marchand References Outline
Consider an initial point x0 such that σ(x0 ) > 0. Since ˙ σ(x)σ(x) = −µσ(x) sign(σ(x))
Introduction Linear/Nonlinear The X4 example
Linear approaches Antiwindup Linearization Gain scheduling
Stability Nonlinear approaches CLF Sliding mode Geometric control Recursive techniques X4 stabilization
it follows that as long as σ(x) > 0 ˙ σ(x) = −µ Hence, the instant of the first switch is ts =
σ(x0 )