6 Stability of Discrete-Time Systems - Complete
6 Stability of Discrete-Time Systems - Complete
Themistoklis Charalambous
Office number: 2561, TUAS Building
Email: [email protected]
We:
2 / 29
- (Local)
Stability Stability
concepts of a particular solution (non-linear and/or time-varying systems):
in pictures
The solution x1[k] is stable if for a given ε > 0, there exists δ(ε, k0) > 0, such that:
δ δ
x eq x eq x eq
ε
• To investigate the stability of the system above, its initial value is perturbed:
stems Stability concepts in picture
x0 [k + 1] = x0 [k], x0 [0] = ↵0
tem
x•t+1
Then, the
= f (x t)
difference x̃ = x x0 satisfies:
(1)
i.e. x eq = f (x eq x̃[k
). + 1] = x[k + 1] x0 [k + 1]
= x[k] x0 [k]
globally asymptotically stable if, for every
eq = x̃[k], x̃[0] = ↵ ↵0
hat xt ! x as t ! 1. x eq
locally• asymptotically
This implies that if the
stable solution
near x is stable,
x eq if there is a then
kx0 x eq every
k other
) xt solution
! x eq asistalso
! 1. stable. For LTI systems,
stability is a property of the system and not of a
(locally)special
stable solution.
if for every (small) " > 0, there Globally asymptotically stable Loc
• If Φ is diagonalizable: x[k + 1] = k
x[0] = V ⇤k V 1
x[0]
1
• We define y[k] = V x[k] and hence
where pi [k] are polynomials in k of order one less than the multiplicity of the
corresponding eigenvalue
Stability of discrete-time LTI systems
• To get asymptotic stability, all solutions must go to 0 as k increases to infinity
• If Φ has unique eigenvalues on the circumference of the unit circle with all
other eigenvalues being located inside → steady-state output will perform
oscillations of finite amplitude - system is marginally stable
System
Unstable Stable
Marginally Asymptotically
Stable Stable
Stability of discrete-time LTI systems
x x
x x
xx x xx
x x
x x
- Lyapunov's method
Jury’s stability criterion
• Explicit calculation of the eigenvalues of a matrix cannot be done conveniently
by hand for systems of order higher than 2
(z) , |zI | = a0 z n + a1 z n 1
+ . . . + an 1z + an = 0
- The Jury stability criterion requires that the system poles are located inside
the unit circle centered at the origin
- The Routh-Hurwitz stability criterion requires that the poles are in the left
half of the complex plane
Jury’s stability criterion
• The following test is useful for determining if the characteristic equation χ(z)
has all its roots inside the unit disc
a0 a1 ··· an an
rows are the coefficients of χ(z)
1
1stand 2nd
an
in forward and reverse order, respectively an an 1 ··· a1 a0 bn =
a0
3rd row obtained by multiplying the 2nd row n 1
by bn and subtracting this from the 1st a0 an1 1
··· ann 1
1
ann 1
1
ann 1
ann 2
··· an0 1
bn 1 =
4th row is the third row in reverse order 1 1
an0 1
..
.
...
Jury’s stability test: If a0 > 0 then the characteristic polynomial χ(z) has all
its roots inside the unit circle if and only if
ak0 > 0, k = 0, 1, 2, . . . , n 1
0
• Remark: If 0
a k
> 0, k = 0, 1, 2, . . . , n 1, then the condition 0 > 0 can be
a
shown to be equivalent to the conditions
(1) > 0
( 1)n ( 1) > 0
(z) = 3z 2 + 2z + 1
Is the system stable?
Solution:
a0 a1 a2 3 2 1
1
a2 a1 a0 1 2 3 b2 =
3
1 8 1 4
a10 a11 3 1⇥ 3 = 3 2 2⇥ 3 = 3
4 8
4/3 1
a11 a10 3 3 b1 = =
8/3 2
8 1 4
a00 3 2 ⇥ 3 = 2
• The real power of the Jury criterion comes into action in symbolic calculations.
Stability can be determined as a function of one or even more parameters.
• For example, consider the system with the following characteristic equation:
(z) = z 2 + a1 z + a2
a0 a1 a2 1 a1 a2
a2
a2 a1 a0 a2 a1 1 b2 = = a2
1
a10 a11 1 (a2 )2 a1 (1 a2 )
a1 (1 a2 ) a1
a11 a10 a1 (1 a2 ) 1 (a2 ) 2 b1 = 2
=
1 (a2 ) 1 + a2
a00 2 (a1 )2 (1 a2 )
1 (a2 ) 1+a2
Example using symbolic calculations
(1 a2 )
= [(1 + a2 )2 (a1 )2 ]
1 + a2
(1 a2 )(1 + a2 a1 )(1 + a2 + a1 )
= >0
1 + a2
Example using symbolic calculations
8 8 2
he polynomial A( z )
characteristic >
< 1 < a2 < 1 >z az a
< 1 < a21 < 1 2
) a 1 1 < a2 OR a 1 1 > a2
>
: >
:
he values α1 and α2asuch
1 1 <that:
a2 a 1 1 > a2
a2 infeasible
1
a1 1 a1
1 -2 -1 1 2
-1
Stability in the frequency domain
• The frequency response of G(s) is: G(j!), ! 2 [0, 1). It can be graphically
presented:
discrete
0 >> figure(1); hold on;
-60
Transfer
>> function:
nyquist(sys,w)
-0.2
>>0.06609 z + 0.05481
nyquist(sysd,w)
0
-0.4 continuous ---------------------
-0.6
z^2 - 1.45 z + 0.5712 -50
-0.8
discrete >> figure(2); hold on;
-100 continuous
• Nyquist diagram: A plot of the open-loop frequency response of L(z), with the
imaginary part Im(L(e jω)) plotted against the real part Re(L(e jω)) on an Argand
diagram (complex plane).
! jω
"
Im L(e )
∠L(ejω1 )
! jω
"
Re L(e )
|L(ejω1 )|
ω = ω1
jω
How to find L(e )
A1 A2 . . . AN -1 cμ11 cμ22 1
A2
• This corresponds to all the roots lying in the unit circle, i.e., if the characteristic
equation has zeros outside the unit circle, the closed loop system is unstable
Discrete-time Nyquist stability criterion
Discrete-time Nyquist stability criterion: The closed-loop system
YREF(z) X Y(z)
+ L(z)
-
will be stable if (and only if) the number of clockwise encirclements N of the
point −1 by L(e jω) as ω increases from 0 to 2π is equal to
N =Z P
where
Z : # of zeros of χ(z)
: 1 + L(z) = 0 outside the unit circle
P : # of poles of χ(z) : 1 + L(z) = 0 outside the unit circle
• The open loop poles are the same as the poles of the characteristic equation
• The zeros of χ(z) determine the stability of the system so that if the
characteristic equation has zeros outside the unit circle, then the closed
loop system is unstable. The stability criterion is thus obtained by setting
Z = 0 and by demanding that the Nyquist curve encircles the point −1 P times
counterclockwise
Discrete-time Nyquist stability criterion
• The criterion becomes simple, if the open loop pulse transfer function L(z) has
no poles outside the unit circle. Then, the Nyquist curve must not encircle the
point –1 at all.
! "
Im L(ejω )
! "
Im L(ejω ) ! "
Im L(ejω )
! " ! "
Re L(ejω ) Re L(ejω )
! jω
"
Re L(e )
+ + +
−1 −1 −1
0.8
• By zooming in at the intersection wit the real
-0.4416
axis, the point is approximately -0.4416
0.6
0.4
Imaginary Axis
0.2
-0.2
• The magnitude can thus be multiplied with
-0.4
(1/0.4416) to reach the critical point −1
-0.6
-0.8
-1
-1 -0.5 0
Real Axis
0.5 1 • The controlled system is stable when
1
>> sysd=zpk([ ],[0.2 0.5],0.4,1);
K< ⇡ 2.26
>> nyquist(sysd) 0.4416
Example
• Stability can be determined by direct calculus from the pulse transfer function
0.4
H(z) =
(z 0.5)(z 0.2)
0.4
• Then: H(e ) =
j!
(ej! 0.5)(ej! 0.2)
0.4
=
(cos ! + j sin ! 0.5)(cos ! + j sin ! 0.2)
0.4
=
(cos2 ! sin2 ! 0.7 cos ! + 0.1) + (2 cos ! sin ! 0.7 sin !)j
0.4
=
(2 cos2 ! 0.7 cos ! 0.9) + (2 cos ! sin ! 0.7 sin !)j
Example
• Setting the imaginary part equal to 0 the intersection point with the real axis is
obtained: (
sin ! = 0
2 cos ! sin ! 0.7 sin ! = 0 ) sin !(2 cos ! 0.7) = 0 )
cos ! = 0.35
• The frequency 0 describes the start point in the Nyquist curve and the
frequency arccos(0.35) the intersection point with the real axis.
• The gain of the controller K can be multiplied by the factor (1/0.444) in order
the crossing at point −1 to take place. The controlled system is stable, when
9
K < ⇡ 2.25
4
Example
YREF(z) X Y(z)
+ K G(z)
-
1
is stable for G(z) = .
Example.
z 2
Solution: 1 1
G(z) = ) G(e ) = j✓
1z 2 j! 1
ej✓ 2
G(z) = ) G(e ) =
z 2 ej! 2
z-plane
Im Im
ee j!
j✓ One unstable pole
-1/3
-1 1
x
2 Re -1 Re
One counter clockwise
encirclement of point
-1/K
1 1 1 1
Closed-loop stable:
Closed-loop stable 11 <
< << ) 11<< K
, K <
< 3
3
KK 3 3
1 z 2+K
check: 1 + K = ) 1<K<3
z 2 z 2
Open-loop poles on the unit circle
In order to obtain a closed curve for the Nyquist locus and hence
• Then,correctly
the opencount
loopthe encirclements,
poles on the unit it is customary
circle to indent
are counted the stable
as being path in
of z around
the stability the poles on the unit circle with a small semi-circular
criterion.
excursion outside the unit circle. Then the open loop poles on the
unit circle are counted as being stable in the stability criterion.
• The “right turn” in the z-plane gives a “right turn” in the Argand diagram and a
The “right turn” in the z-plane then gives a “right turn” in the G-plane
circular arc of large radius is produced.
and a circular arc of large radius is produced which continues for m⇡
radians where m is the multiplicity of the pole on the unit circle.
Open-loop poles on the unit circle
Asymptotes:
• If there is an open-loop pole of multiplicity one on the unit circle then the
Nyquist diagram will be asymptotic to a straight line as it tends to infinity.
• It is possible to find the asymptote along which it tends. Suppose G(z) has a
pole at z = 1, i.e.,
1
G(z) = F (z)
z 1
where F(z) has no poles at z = 1. Then for z ≈ 1, expand F(z) in a Taylor series
to give:
⇢
1 0 1 00
G(z) = F (1) + (z 1)F (1) + F (z)(z 1)2 + . . .
z 1 2
F (1)
⇡ + F 0 (1)
(z 1)
Open-loop poles on the unit circle
• But
large as ! ! 0
j! cos !2 j sin !2
1 1 e 2 1 j
= ! ! ! = ! = ! =
ej! 1 j j
e (e 2
2 j
e 2) 2j sin 2 2j sin 2 2 2 tan !2
• Hence
1 F (1)
G(e ) ⇡ j!
F (1) + F 0 (1) j
2 2 tan !2
constant real part
• For multiple poles on the unit circle the asymptotic behavior is more complex
and requires more terms in the Taylor series expansion.
2 2 tan(✓/2)
Example
Hence the asymptote as ✓ ! 0 will be a straight line with a constant
real part of 12 F (1) + F 0 (1).
For multiple poles on the unit circle the asymptotic behaviour is more
• complex
Find theand requires
values ofmore terms
K for in thethe
which Taylor series expansion.
following system 37
YREF(z) X Y(z)
+ K G(z)
-
Example.
1 1
is stable
G(z)for
= G(z) = . = 1 , F 0 (z) =
. Then, F (z)
1
z(z 1) z(z 1) z z2
1
and F (1) + F 0 (1) = 1.5
Solution: 2 Im
1
Nyquist K
z-plane diagram
Im
x 1x -1.5 -1 0.5
Re Re
right turn
1 1
Closed-loop
K
< stable for:
1 , 0 < K < 1 < 1)0<K<1
K 38
Gain and phase margins
• L(ejω) being close to -1 without encircling it is undesirable for 2 main reasons:
1. It implies that a closed-loop pole will be close to the imaginary axis and
that the closed-loop system will be oscillatory
2. If our plant P(z) is the transfer function of an inaccurate model, then the
“true” Nyquist diagram might actually encircle −1
! jω "
Im L(e )
• The gain margin (GM) is a measure of how
much the gain can be increased before the
closed-loop system becomes unstable
! jω
" 1 1
Re L(e ) GM = =
−1 −α ↵ |L(ej!pc )|
ω = ωpc θ
• The phase margin (PM) is a measure of
ω = ωgc
how much phase lag can be added before
the closed-loop system becomes unstable
L(ejω )
P M = ✓ = ⇡ + \L(ej!gc )
Gain and phase margins via Bode plots
Gain plot
GM
Phase plot
PM
!gc !pc
• Phase crossover frequency ωpc: frequency at which the phase equals 180o
- Lyapunov function
Lyapunov V(x)in(left)
theorem pictures
- Level curves for Lyapunov function V(x) in the 2-dimensional case (right). All level
Lyapunov function (left); level sets and one state trajectory (right)
curves encircle the origin and do not intersect any other level curve.
10
8
CV,α = {x | V (x) ≤ α}
6
x2
0
−2
−4
−6
x(1) x(2)
x(0)
−8
−10
−10 −5 0 5 10
x1
• Stability:
• once the state enters a level set, it never leaves.
- Once the state enters a level set, it does not leave. Bounded level sets ensure
• bounded level sets ensure bounded trajectories (stability).
bounded trajectories (stability)
Lyapunov function
• Allows to guarantee asymptotic stability, regions of local stability, etc
• Sometimes both necessary and sufficient
if
1. V(x) is continuous in x and V(0) = 0.
6
CV,α = {x | V (x) ≤ α}
x2
0
−2
−4
−6
x(1) x(2)
x(0)
−8
−10
−10 −5 0 5 10
x1
Further, if
0 < (kxk) < V (x)
• There is always a solution to the Lyapunov equation when the linear system is
stable. Matrix P is positive definite if Q is positive definite
Figure 3.9 Level curves of V(x} and trajectories for different initial values
of the system in Example 3.6. The sampling points are indicated by dots.
Learning outcomes