Professional Documents
Culture Documents
Controller Structures
Robert Stengel
Optimal Control and Estimation MAE 546
Princeton University, 2013"
First-Order Low-Pass
Filter
min J =
u
1
xT (t)Qx(t) + uT (t)Ru(t) dt
2 0
subject to
x(t) = Fx(t) + Gu(t)
Copyright 2013 by Robert Stengel. All rights reserved. For educational use only.!
http://www.princeton.edu/~stengel/MAE546.html!
http://www.princeton.edu/~stengel/OptConEst.html
Low-Pass Filter"
! Low-pass filter passes low frequency signals and
attenuates high-frequency signals"
x ( t ) = ax ( t ) + au ( t )
a = 0.1, 1, or 10
x (s) =
a
u (s)
( s + a)
! Frequency response, s = j!
x ( j ) =
a
u ( j )
( j + a )
Frequency Response of
Dynamic Systems
sin ( t )
u ( t ) = sin ( 2t )
sin ( 4t )
Input!
Output!
x ( t ) = 10x ( t ) + 10u ( t )
x ( t ) = x ( t ) + u ( t )
x ( t ) = 0.1x ( t ) + 0.1u ( t )
u ( t ) = sin ( 2 t )
sin ( 4 t )
x ( t ) = ax ( t ) + au ( t )
a = 0.1, 1, or 10
BANDWIDTH"
Input frequency at
which magnitude =
3dB"
How do we
calculate frequency
response?"
x ( j ) =
( j + a )
u ( j )
x ( t ) = 2 n x ( t ) n2 x ( t ) + n2u ( t )
! Laplace transform, I.C. = 0"
x (s) =
n2
u (s)
s 2 + 2 n s + n2
! Frequency response, s = j!
x ( j ) =
n2
u ( j )
( j )2 + 2 n ( j ) + n2
When = 0, = 0"
When = , =45"
When -> , -> 90"
AR asymptotes of a
pair of complex poles"
When = 0, slope
= 0 dB/dec"
When n, slope
= 40 dB/dec"
Height of resonant
peak depends on
damping ratio"
Abruptness of phase
shift depends on
damping ratio"
[ x(0) + G u(s)]
1
1
= H x ( sI F ) G + H u u(s) + H x [ sI F ] x(0)
H (s) = H x [ sI F ] G
1
(r x m)
H (j ) = H x [ j I F ] G
1
(r x m)
yi ( s )
1
= H ij (j ) = H xi [ j I F ] G j
u j ( s )
H xi = i th row of H x
G j = j th column of G
(r x m)
$ ! f
& = # 11
& #" f21
%
f12 $ ! x1 ( t )
&#
f22 & # x2 ( t )
%"
! y (t )
1
y (t ) = #
# y2 ( t )
"
$ ! h
& = # 11
& #" h21
%
$ ! x1 ( t )
&#
&% #" x2 ( t )
h12
h22
$ ! g
& + # 11
& #" g21
%
g12 $ ! u1 ( t )
&#
f22 & # u2 ( t )
%"
$
&
&
%
$
&
&
%
(s f )
11
adj
f21
(s f )
11
det
f21
f12
( s f22 )
f12
( s f22 )
(n = m = r = 2)
g11
g21
g12
f22
(s)
(s
+ an 1s
n 1
+ ... + a1s + a0
( j 1 )( j 2 )...( j n )
= a( )+ jb( ) AR( ) e j ( )
Frequency response is a complex function of
input frequency, "
# zeros = q!
# poles = n!
( s 1 ) ( s 2 ) ...( s n )
http://www.mathworks.com/matlabcentral/!
http://www.mathworks.com/matlabcentral/fileexchange/10183-bode-plot-with-asymptotes!
Substitute: s = j"
H ij (s) =
( r n )( n n )( n m )
= (r m) = (2 2)
H ij (j ) =
ij
bode.m"
asymp.m"
Examples of
Proportional LQ
Regulator Response
Desired response is
slowly varying"
Crossover region is
problem-specific!
0
1
FS =
16 1
0
1
FU =
16 +0.5
x1 (t)
= c1 x1 (t) c2 x2 (t)
u(t) = c1 c2
x2 (t)
For the
unstable
system"
r = 1"
Control Gain (C) ="
0.2620 1.0857"
"
Riccati Matrix (S) ="
2.2001 0.0291"
0.0291 0.1206"
"
Closed-Loop Eigenvalues ="
-6.4061"
-2.8656"
r = 100"
Control Gain (C) ="
0.0028 0.1726"
"
Riccati Matrix (S) ="
30.7261 0.0312"
0.0312 1.9183"
"
Closed-Loop Eigenvalues ="
-0.5269 + 3.9683i"
-0.5269 - 3.9683i"
r = 1"
Control Gain (C) ="
0.2620 1.0857"
"
Riccati Matrix (S) ="
2.2001 0.0291"
0.0291 0.1206"
"
Closed-Loop Eigenvalues ="
-6.4061"
-2.8656"
r = 100"
Control Gain (C) ="
0.0028 0.1726"
"
Riccati Matrix (S) ="
30.7261 0.0312"
0.0312 1.9183"
"
Closed-Loop Eigenvalues ="
-0.5269 + 3.9683i"
-0.5269 - 3.9683i"
Quadratic
Weighting of the
Output"
y(t) = H x(t) + H u(t)
x
1
J = yT (t)Qy y(t) dt
20
J=
1
[ Hx x(t) + Hu u(t)]T Qy [ Hx x(t) + Hu u(t)] dt
2 0
1
min J = min xT (t) uT (t)
u
u 2 0
1
min J min xT (t) uT (t)
u
u 2 0
x(t) dt
H uT Qy H x H uT Qy H u + R o u(t)
x(t)
QO
MO
dt
T
MO R O + R o u(t)
H xT Qy H x
H xT Qy H u
u(t) = uC (t) CO x ( t )
1
T
T
x (t) u (t)
2 0
1
xT (t) uT (t)
20
J=
1
1
yT (t)Qy y(t) dt = xT (t)Qy x(t) dt
2 0
20
x(t) dt
GT Qy F GT QyG + R o u(t)
x(t)
QSR
M SR
dt
MTSR R SR + R o u(t)
FT Q y F
FT Q y G
u(t) = uC (t) C SR x ( t )
Princeton Variable-Response
Research Aircraft (VRA)"
Implicit Model-Following
LQ Regulator"
Implicit ModelFollowing LQ
Regulator"
If simulation is successful,
x M (t) x(t)
and
x M (t) FM x(t)
x M (t) = FM x M (t)
Feedback control law"
Implicit Model-Following
LQ Regulator"
Proportional-Derivative Control"
1
T
J = [ x(t) x M (t)] Q M [ x(t) x M (t)] dt
20
FF T Q FF
T
(
( F FM )T QM G
1
M)
M (
M)
x(t) u(t)
20
GT Q M ( F FM )
GT Q M G + R o
x(t)
T Q IMF
M IMF
1
x(t) u(t)
dt
T
20
M IMF R IMF + R o u(t)
J=
u(t) = Cx ( t ) + uC (t)
! Derivative feedback can either quicken or slow system
response ( lead or lag ), depending on the control gain sign"
x(t) dt
u(t)
u(t) = C P x ( t ) C D x ( t ) + uC (t)
u(t) = C P x ( t ) C D x ( t ) + uC (t)
[ I C G ] u(t) = C
D
J=
x ( t ) C D Fx(t) + uC (t)
u(t) = [ I C DG ] ( C P C D F ) x ( t ) + uC (t)
1
C PD x ( t ) + [ I C DG ] uC (t)
1
QPD
1
T
T
x (t) u (t)
2 0
MTPD
M PD x(t)
dt
R PD u(t)
LQ
u(t) = C PD x ( t ) + uC (t)
T
1
xT (t)Qx x(t) Fx ( t ) + Gu ( t ) Qx Fx ( t ) + Gu ( t ) + uT (t)Ru(t) dt
2 0
J=
1
xT (t)Qx x(t) xT (t)Qx x(t) + uT (t)Ru(t) dt
2 0
! Constant disturbance"
! Errors in system dynamic model"
u(t) = C B x ( t ) C I H I x ( ) d
0
C B x ( t ) C I ( t ) + uC (t)
where the integral state is
t
( t ) H I x ( ) d
0
dim ( H I ) = m n
x ( t )
define ( t )
(t )
min J =
u
1
xT (t)Qx x(t) + T ( t ) Q ( t ) + uT (t)Ru(t) dt
2 0
1 T Qx
(t)
2 0
0
subject to
= F (t) + G u(t)
(t)
0
(t) + uT (t)Ru(t) dt
Q
H x x ( s )
+ uC (s)
s
C B sx ( s ) + C I H x x ( s )
+ uC (s)
s
[C s + C I Hx ] x ( s ) + u (s)
= B
C
s
u(s) =
Form of (m x n)
Bode Plots
from x to u?!
=
+
v(t)
u(t)
0 K u(t) I
x(t)
F G
0
(t) =
; F =
; G =
u(t)
0 K
I
min J =
u
1
xT (t)Qx x(t) + uT (t)R u u(t) + v T (t)R v v(t) dt
2 0
=
1 T Qx 0
T
dt
(t)
(t)
+
v
(t)R
v(t)
v
2 0
0 R u
subject to
= F (t) + G v(t)
(t)
Control Force!
Control Displacement!
[ sI + K + C ] u(s) = C x ( s ) + v (s)
u(s) = [ sI + K + C ] C x ( s ) + v (s)
A
Proportional-Filter
(PF) LQ Regulator"
u(t)
F G x(t) 0
=
+
v(t)
0 0 u(t) I
x(t)
F G
0
(t) =
; F =
; G =
u(t)
0 0
I
Optimal LQ Regulator!
u(s) = [ sI + C A ] C B x ( s ) + v C (s)
1
Next Time:
Linear-Quadratic Control
System Design