Lecture 7 Lyapunov Stability Theory Theme: Generate parameter adjust ment rules which guara ntee stability The Big Picture 1.Int roduct ion Model-Reference Adaptive Systems The MiT rule pros and cons 1. The idea The stability problem 2. The mit rule Ordinary Differential Equat io ns ya punov's stability theory · Dynamical Systems 4. Desig n of mras using Lyapunov theory 2. Lyapunov's Stability Theory 5. Applications to adapt ive cont rol · The stability co nce 6. Bounded -input, bounded-o ut put st a bility Finding Lyapunov Funct io ns pplications to adaptive cont rol Applicatio n to adapt ive co nt rol 8. Rel at ions between mras and str · A simple pro blem 9. Co nclusions State feed back · Out put feed back Stability Concepts St able syst ems and st able solut ions Lyapunov Himself An example tability of mechanical syst ems A state space approach The key id C K.J. Astrom and BWittenmark
Lecture 7 Lyapunov Stability Theory Theme: Generate parameter adjustment rules which guarantee stability 1. Introduction The MIT rule pros and cons The stability problem Ordinary Dierential Equations Dynamical Systems 2. Lyapunov's Stability Theory The stability concept Lyapunov's idea Finding Lyapunov Functions 3. Application to adaptive control A simple problem State feedback Output feedback 4. Conclusions The Big Picture Model-Reference Adaptive Systems 1. The idea 2. The MIT Rule 3. Lyapunov's stability theory 4. Design of MRAS using Lyapunov theory 5. Applications to adaptive control 6. Bounded-input, bounded-output stability 7. Applications to adaptive control 8. Relations between MRAS and STR 9. Conclusions Lyapunov Himself Stability Concepts Linear systems are very special Stable systems and stable solutions An example Lyapunovs stability concepts { Stability of mechanical systems { A state space approach { The key ideas c K. J. Åström and B. Wittenmark 1
Stable solu Consider the mras desig ned with MIT rule Prelimi naries kaGs) Consider the solution a(t)=0to f(c)f(0) kG(s) ae=sinat w=l(a), 2(b)and 3(c) f(c)-f(y)川≤Lz-ylL>0 Sensit ivity to pert ur bat io ns LACAAVAAA Initial conditions Variat io ns in∫() (c) Stabil ity concepts Co ncl usio n Lyapunov Stability dEFINITION 1 Lya punov's Idea The solution a(t=0 is stable if for given e>0there exists a number &(e>0 such that nspiratio n from mechanics all solut ions wit h init ial co ndit io ns Stable and unst able equilibria -(O)川<6 ave the pro perty z(t川‖<εfor0≤t<∞ The solution is unsta ble if it is not st able. the solut io n is asymptotically stable if it is stable and s can be found such that all solutions with lz(0川‖< 8 have the property that‖(t)‖|→0 ast→o Notice Stability of a part icular solut ion ∫(c)<0 How to make it glo bal? C K.J. Astrom and B Wittenmark
Stable Solutions Consider the MRAS designed with MIT rule Model e y Process u Σ + – uc θ y m − γ s kG(s) k0G(s) Π Π uc = sin!t ! = 1(a), 2(b) and 3(c) 0 5 10 15 20 0 1 0 5 10 15 20 0 1 0 5 10 15 20 0 1 Time Time Time (a) ^ (b) ^ (c) ^ Conclusion? Preliminaries Consider the solution x(t)=0 to dx dt = f (x) f (0) = 0 Existence and uniqueness kf (x) f (y)k Lkx yk L > 0 Sensitivity to perturbations What perturbations? { Initial conditions { Variations in f (x) Stability concepts! Lyapunov Stability Definition 1 The solution x(t)=0 is stable if for given " > 0 there exists a number (") > 0 such that all solutions with initial conditions kx(0)k < have the property kx(t)k < " for 0 t < 1 The solution is unstable if it is not stable. The solution is asymptotically stable if it is stable and can be found such that all solutions with kx(0)k < have the property that kx(t)k ! 0 as t ! 1. Notice Stability of a particular solution Local concept How to make it global? Lyapunov's Idea Inspiration from mechanics Stable and unstable equilibria x1 x 2 x=0 V(x)=const dx dt Condition @V T @x f (x) < 0 c K. J. Åström and B. Wittenmark 2
a continuo usly differentiable func tion V in ding lyapunov funct io ns R-R is c alled positive definite in a reg ion rans fo rming o ne diffic ult pro blem to a U CRcont aining the origin if ot he 1.V(0)=0 Let the linear system (a)>0,c∈Uand≠ A func tion is c alled positive semidefinite if dt Condit io n 2 is replaced by V(a)20 be stable. Pie k Q positive defi nit e. T he THEORE quat ion If there exists a func tion v: rh r that ATP+PA=-Q positive defi nite suc h that has always a uniq ue solutio n wit h P positive a2 definite and the funt io n f(m)=-W(x) V(x) is neg at ive semidefinite, then the solut ion Lw t=0 is stable. If dv/ dt is negative defi yapunov tunc tion t hen the solut io n is also asym ptotic ally stable m p e rying Syst ems System mat rix a1 a2 亚=( A a ay definition 3 T he solution a(t)=0 is uniformly sta ble if fore>0 the 6(e) dependent of to, suc h that where g1>0 and 92>0 are posit ive. Assume t hat the mat rix p has the form (to<6→‖(t川‖<εVt≥to≥0 T he solut io n is uni formly asymptotically sta ble ifo rmly stable and there independent of to, s ue h that a(t)0 as T he Lya punov equat ion bec omes t→∞, uniformly in to, for all a(to)‖<c.口 a2 a1+ a4 a dEFINITION 4 a continuous fun c tion a:[0,a)→0,∞) to belong to class K Co ndit io ns for existen e e. When is P>0? inc reasing and a( 0)=0. It is said to belong Proofs are given in the mat hematics course on to class Koo if a=∞anda(r)→∞as mat ric es! C K.J. Astrom and BWittenmark
Formalities Definition 2 A continuously dierentiable function V : Rn ! R is called positive denite in a region U Rn containing the origin if 1. V (0) = 0 2. V (x) > 0; x 2 U and x 6= 0 A function is called positive semidenite if Condition 2 is replaced by V (x) 0. Theorem 1 If there exists a function V : Rn ! R that is positive denite such that dV dt = @V T @x dx dt = @V T @x f (x) = W(x) is negative semidenite, then the solution x(t)=0 is stable. If dV =dt is negative denite, then the solution is also asymptotically stable. Finding Lyapunov Functions "Transforming one dicult problem to another" Let the linear system dx dt = Ax be stable. Pick Q positive denite. The equation AT P + P A = Q has always a unique solution with P positive denite and the funtion V (x) = xT P x is a Lyapunov function Example System matrix A = a1 a2 a3 a4 Q = q1 0 0 q2 where q1 > 0 and q2 > 0 are positive. Assume that the matrix P has the form P = p1 p2 p2 p3 The Lyapunov equation becomes 0 @ 2a1 2a3 0 a2 a1 + a4 a3 0 2a2 2a4 1 A 0 @ p1 p2 p3 1 A = 0 @ q1 0q2 1 A Conditions for existence. When is P > 0? Proofs are given in the mathematics course on matrices! Time-Varying Systems dx dt = f (x; t) Definition 3 The solution x(t)=0 is uniformly stable if for " > 0 there exists a number (") > 0, independent of t0, such that kx(t0)k < ) kx(t)k < " 8t t0 0 The solution is uniformly asymptotically stable if it is uniformly stable and there is c > 0, independent of t0, such that x(t) ! 0 as t ! 1, uniformly in t0, for all kx(t0)k < c. Definition 4 A continuous function : [0; a) ! [0;1) is said to belong to class K if it is strictly increasing and (0) = 0. It is said to belong to class K1 if a = 1 and (r) ! 1 as r ! 1. c K. J. Åström and B. Wittenmark 3
Lyapunov here m Desig n of Mras using T Heorem2 t here m Let a be an equilibrium point an D ∈R v b ● The idea co nt in uo usly differentiable funct io n such that Determine a cont roller st ruct ure a1(|)≤v(a,t)≤a2(|-) Derive the Error Equation fnd a l eter mine an adaptat ion law Onr+a2F(a,m≤-a3(|) a first order system for VT>0, where a1, a2, and as are class ● State feed back K functions. Then a= 0 is uniformly ● Out put feed back asym ptot ically st a ble adaptation of feed fo rw ard Gain Fin ding the adjustment Law Process model System model dy dt Desired res po nse dy ym+k。ue Desired equilibri d Co nt roller Int roduce the error E=y-ym and the error equat ion becomes Lyapunov funct ion de aE+(k8-ko v(e,()=re2+5(-B dr dv Candidate Lyapunov function +yuce V(e,6) Choosing the adjust ment rule d Time derivative d=e(-ae+6(0-k)u)+-k)a d C K.J. Astrom and B Wittenmark
Lyapunov Theorem Theorem 2 Let x = 0 be an equilibrium point and D = fx 2 Rn j kxk < rg. Let V be a continuously dierentiable function such that 1(kxk) V (x; t) 2(kxk) dV dt = @V @ t + @V @x f (x; t) 3(kxk) for 8t 0, where 1, 2, and 3 are class K functions. Then x = 0 is uniformly asymptotically stable. Design of MRAS using Lyapunov Theorem The idea { Determine a controller structure { Derive the Error Equation { Find a Lyapunov function { Determine an adaptation law A rst order system State feedback Output feedback Adaptation of Feedforward Gain Process model dy dt = ay + ku Desired response dym dt = ym + kouc Controller u = uc Introduce the error e = y ym and the error equation becomes de dt = ae + (k ko)uc Candidate Lyapunov function V (e; ) = 2 e 2 + k 2 ( k0 k )2 Time derivative dV dt = e(ae + k( k0 k )uc) + b( k0 k ) d dt = ae2 + (k k0) d dt + uce Finding the Adjustment Law System model dy dt = ay + ku d dt =?? Desired equilibrium e = 0 = 0 = b0 b Lyapunov function V (e; ) = 2 e 2 + k 2 ( 0)2 dV dt = ae2 + (b b0) d dt + uce Choosing the adjustment rule d dt = uce Gives dV dt = ae2 c K. J. Åström and B. Wittenmark 4
f feed f o n Lyapunov rule MT rule d e (a) d t M Rule () Process ∑)- Lv 叫G Model (c) Is there really mag ic in this world? A First order s Proc ess model a First Order System, co nt dy rivative of lyapunov func tion Desired res po nse dv de M - aMyM+ bMc Cont roller amne+-(b02 +a-am) 62 t yuce t he error Adapt at ion law de aMe-(692+a-am)y+(boo bM) Candidate for Lyapunov fun tion b C K.J. Astrom and BWittenmark
Adaptation of Feedforward Gain Lyapunov rule d dt = uce MIT Rule d dt = ye θ Σ – Model Process + Σ – Model Process + y y e e θ uc uc kG(s) kG(s) k0G(s) k0G(s) y m y m − γ s − γ s Π Π Π Π (a) (b) Is there really magic in this world? Simulation MIT rule 0 5 10 15 20 0 1 0 5 10 15 20 0 1 0 5 10 15 20 0 1 Time Time Time (a) ^ (b) ^ (c) ^ Lyapunov rule 0 5 10 15 20 0 1 0 5 10 15 20 0 1 0 5 10 15 20 0 1 Time Time Time (a) ^ (b) ^ (c) ^ A First Order System Process model dy dt = ay + bu Desired response dym dt = amym + bmuc Controller u = 1uc 2y The error e = y ym de dt = ame (b2 + a am)y + (b1 bm) uc Candidate for Lyapunov function V (e; 1; 2) = 1 2 e 2 + 1 b (b2 + a am)2 + 1 b (b1 bm)2 A First Order System, cont Derivative of Lyapunov function dV dt = e de dt + 1 (b2 + a am) d2 dt + 1 (b1 bm) d1 dt = ame 2 + 1 (b2 + a am) d2 dt ye + 1 (b1 bm) d1 dt + uce Adaptation law d1 dt = uce d2 dt = ye c K. J. Åström and B. Wittenmark 5