Documente Academic
Documente Profesional
Documente Cultură
1
2 0
R>0
Q0
subject to
x& = Ax + Bu
( y = Cx )
LQR SOLUTION:
Find the positive-definite solution P of the ARE (Algebraic Ricatti Equation)
A' P + PA + Q PBR 1 B' P = 0
u = Kx
where
K = R 1 B ' P
The positive-definite solution of the ARE results in an asymptotically stable closed-loop system if:
1)
2)
3)
z = Cq x
therefore
0 1
A=
0 0
assume
0
B=
1
1 0
Q=
0 0
C q = [1 0]
R =1
1
Q = [1 0] = C q ' C q
0
1
(A, B) is controllable
(Cq, A) is observable
note P is symmetric
ARE:
0 0 p1
1 0 p
p2 p1
+
p3 p2
p2 0 1 1 0 p1 p2 0 0 p1 p2
+
p3 0 0 0 0 p2 p3 0 1 p2 p3
1442443 1424
3
0
0
p2
p3
p1
p
2
p2
p3
14444244443
p22
p2 p3
p2 p3
p32
0 0
=
0 0
solving
0
p
1
0 0
+
p 2 0
p1 1 0 p 22
+
p 2 0 0 p 2 p3
1 p 22 = 0 p 22 = 1
p1 p 2 p3 = 0
p1 = p 2 p3
p1 p 2 p3 = 0
(1)
(2)
(3)
2 p 2 p32 = 0
(4)
p 2 p 3 0 0
=
p32 0 0
p2 = 1
p3 = 2
p1 = 2
2
P=
1
2
K = R 1 B' P = 1[0 1]
1
1
=1
2
1
0
A BK =
1 2
Closed loop roots are:
2 + 2 + 1 = 0
2
(1 j )
2
K ( s ) B
= K ( sI A) 1 B
2 s+
2
2
65 phase margin
infinite gain margin
(s)
R(s) +
B
-
1
s
L( s ) =
=
=
=
2 s+
s2
2
2
2
2
[1 + s]
2
2
s2
1+
s
1
2
s2
s
1 + 0.7071
s2
L( j ) >0.7071
1.4142
mag
z = 0.7071
j
0.7071
2
( j )
1.4142
L ( j c ) = 1 =
1.4142
c = 1.4142
c
Phase@ c = - 180 + tan -1
0.7071
144244
3
phase
-180
phase m arg in
1
o
Phase margin = tan 1 10..4142
7071 = tan ( 2) = 63.4
10 z
10
sqrt(2)/2 ]
den = [ 1
0]
results:
margin(num,den)
gm=
pm=65.53
@ =1.554
1 + L ( j ) = 1 +
2
G q ( j )
(*)
is a scalar
where L( s ) = K ( s ) B
and
-loop gain
( s) ( sI A) 1
Q = Cq ' Cq
G q ( s ) = C q ( s ) B
This implies that the Nyquist plot of the loop transfer function of an LQR design
always stays outside of a unit circle centered at (-1,0).
In SISO case, LQR design has > 60 phase margin, infinite gain margin and a gain reduction tolerance
of -6dB (i.e. the gain can be reduced by a factor of 12 before instability occurs).
Recall pole placement does not guarantee stability margins.
High-frequency roll-off rate
Closed loop transfer function T ( j ) = K ( jI A + BK ) 1 B
lim T ( j ) =
1
j
KB =
1
j
R 1 B' PB < 0
x& = Ax + Bu +
y = Cx + v
process noise
measurement noise
x& = Ax + Bu + L( y Cx )
5
1 0
Q0 =
and R0 = 1
0 0
a b
Solving Ricatti equation with =
b c
a 2 = 2b + 1
we find
ab = c
b2 = 1
3
=
1
3
and L = C ' R01 =
1
Transfer function of compensator is given by
H ( s ) = K ( L A + BK + LC ) 1 L
3.14( s + 0.3)
=
( s + 1.57 + j1.4)( s + 1.57 j1.4)
Comparison of LQR and LQG
-LQR has guaranteed stability margins
-LQG has no guaranteed stability margins
6
-high freq. roll off in LQG can be > 20 dB/dec exhibited by LQR greater noise filtering in
LQG
-LQG is not robust uncertainty in plant may cause system to go unstable
Loop Transfer Recovery (LTR)
LQG
no guaranteed margins
LQR
The properties of LQR can be recovered asymptotically by using Qo and R0 as tuning parameters
LQR
loop gain, L( s ) = K ( s ) B
= K ( sI A) 1 B
LQG
sX = ( BK + A LC ) X + LY ( s )
X ( s )
= ( sI A + BK + LC ) 1 L
Y (s)
If the following two conditions hold then LQR loop properties can be recovered if
1)
2)
The variable y that is recovered may be different from the variable z that is to be controlled
where y = Cx
and
z = Cq x
and
Q=CqCq
2)
3)
4)
Increase q until the resulting loop transfer function is close to the LQR design
Do not make q too high since
1)
large gains in L are required
2)
the undesirable -20dB/dec high freq. roll-off of LQR will be recovered
Example
Double integrator system
with
1 0
Q=
0 0
R=1
10
Robustness
1)
2)
1)
2)
sensitivity reduction
disturbance rejection
Y (s) =
G ( s) H ( s)
1
G ( s) H ( s)
R( s) +
D( s)
N ( s)
1 + G ( s) H ( s)
1 + G ( s) H ( s)
1 + G ( s) H ( s)
Tracking error e = r - y
E ( s) =
1
1
1
R( s)
D( s)
N (s)
1 + G ( s) H ( s)
1 + G ( s) H ( s)
1 + G ( s) H ( s)
H ( s)
[R( s) D( s) N ( s)]
1 + G ( s) H ( s)
note:
U ( s) = H ( s) E ( s)
E ( s ) = H 1 ( s )U ( s )
J ( s ) = 1 + GH
1
S (s) =
1 + GH
GH
T (s) =
1 + GH
note:
return difference
sensitivity
complementary sensitivity
S ( s) + T ( s) = 1
Y ( s ) = S ( s ) D( s ) + T ( s )[R( s ) N ( s )]
tracking error:
E ( s ) = S ( s )[R( s ) D( s ) N ( s )]
11
U ( s ) = H ( s ) S ( s )[R( s ) D( s ) N ( s )]
plant input:
2)
Tracking: S small
3)
4)
Also
however
however
S+T=1
command inputs and disturbances are low frequency whereas measurement noise
is high frequency signal
keep S small in low frequency range and T small in high frequency range
H (s)S (s) =
H (s)
T ( s)
=
1 + G ( s) H ( s) G ( s)
Mid. Frequency
Performance (R)
High Gain
Smooth Transition
High Gain
High Frequency
Low Gain
Uncertainty Modeling
Two categories --
1)
2)
structured uncertainty
unstructured uncertainty
12
~
Additive uncertainty: actual model G ( s )
~
(s) +
G ( s) = G
{
model
Multiplicative uncertainty:
a (s)
1442
44
3
uncertainty or error
~
G ( s ) = [1 + m ( s )]G ( s )
input uncertainty
output uncertainty
Robust Stability
We say a compensator robustly stabilizes a system if the closed-loop system remains stable for the true
~
plant G ( s) .
Robustness results can be derived using the small gain theorem.
Small Gain Theorem
no since G ( s ) H ( s ) G ( s ) H ( s )
13
where M ( s ) =
G(s) H (s)
1 + G ( s) H ( s)
i.e.
m <
1
GH (1 + GH ) 1
1
T
T complementary sensitivity
T < 1
or
M r = sup T ( j )
Then the smallest destabilizing uncertainty, we call this the multiplicative stability margin or MSM, is
given by
MSM =
1
Mr
M ( s) =
H ( s)
1 + G(s) H (s)
1
H (1 + GH )
or
a <
1
HS
15
or
HS < 1
1
sup H ( j ) S ( j )
Example
G ( s) =
5 s
,
( s + 5)( s 2 + 0.2 s + 1)
H (s) =
5( s + 0.1) s + 0.2
s
s+5
phase margin: 38
gain margin: 2.8 (9dB)
Find MSM and ASM:
MSM
Find peak of T (complementary sensitivity function)
peak = 1.52 MSM = 0.65
16
Problem 10.9
a.)
~
G = (1 + m )G
~
G
m = 1
G
2( s + 1)
s ( s 2 + s + 1)
m =
1
1
s2
2
2( s + 1)
s2 + s +1
s 2 ( s 2 + s + 1) s 2 ( s 2 + s + 1)
s2 + s +1
s2 + s +1
b.)
M(s)
20( s + 1)
GH
20( s + 1)
20( s + 1)
s 2 ( s + 10)
=
= 2
= 3
20( s + 1)
(1 + GH )
s ( s + 10) + 20( s + 1) s + 10 s 2 + 20 s + 20
1+ 2
s ( s + 10)
c.)
SGT:
m M < 1
m <
1
=
M
1
GH
1 + GH
m < 1 + (GH ) 1
17
Additive uncertainty
~
G = G + a
~
a = G G
=
2( s + 1)
1
2
2
s ( s + s + 1) s
1 2 s + 2 s 2 s 1
s2
s2 + s + 1
s2 + s + 1
s 2 ( s 2 + s + 1)
M (s) =
SGT:
H
(1 + GH )
a M < 1
a <
1
M
a < H 1 + G
18
s + 10
1
+ 2
20 s + 20 s
a <
<
a <
s 2 ( s + 10) + 20 s + 20
s 2 (20 s + 20)
s 3 + 10 s 2 + 20 s + 20
s 2 (20 s + 20)
19
G ( s) =
1 + s0
A o
-20dB/dec
o
G ( s ) = A(1 + 0 )
s
+20dB/dec
QA
G ( s) =
1 + Q1 ( s0 ) + ( s0 ) 2
}Q
A( o ) 2
-40dB/dec o
+40dB/dec
G(s) = A 1+ Q1 ( s0 ) + ( s0 ) 2
A( o ) 2
A
Q{
A
Q
If Q < 12 then roots are real. Factor the expression and use the resulting product of two first order
transfer functions to find magnitude response.
20
Example
G (s) =
(1 + s ) 1 + Q1 ( s ) + ( s ) 2
0
0 < 1
A
1+ so
A
A 1o
A o
o
Q
1
1+
1 s
Q 1
}Q
( 1 ) 2
o
()
s
Q 10
A 10
A 03 1
21
Example
The M structure of a system has been determined to be given by
A
1 + Q1 ( sa ) + ( sa ) 2
M =
AM (1 + s2 )
(1 + s1 )(1 + s3 )
<
1
M
1
s
s
1 AM (1 + )(1 + )
=
(1 + s )
M
1
AM1 12
1
M 1
A
1
M
o 2
AM1
3
QA
and
QA < AM1
2
1
or
A < AM1
2
Q1
22
23