Model Reduction: Automatic Control 2
Model Reduction: Automatic Control 2
Automatic Control 2
Model reduction
University of Trento
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 1 / 17
Lecture: Model reduction Model reduction
Systems reduction
The complexity of the control law often depends on the order of the system
(for example in state-space methods like dynamic compensation)
For control design purposes, can we approximate the model with another
model of reduced order that preserves the original transfer function as much
as possible ?
We already know that uncontrollable and unobservable modes do not affect
the transfer function. They can be eliminated by operating a canonical
decomposition
Can we try to eliminate other modes that are weakly uncontrollable and/or
weakly observable, and get a numerically well-conditioned lower-order
state-space realization ?
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 2 / 17
Lecture: Model reduction Model reduction
Grammians
Definition
A state-space realization is called balanced if the Grammians Wc and Wo
are equal and diagonal
σ 0 ... 0
1
0 σ2 ... 0
Wc = Wo = Σ, Σ = .. .. . . ..
. . . .
0 ... 0 σn
Model reduction
Once the system is in balanced form we can easily reduce the order of the
model by eliminating the states associated with small σi ’s
Σ1 0|
W̃c = W̃o = Σ2 Σ1
−0 Σ| 2
Ã11 Ã| 12 B̃1
z(k + 1) = z(k) + u(k)
−
Ã21 Ã| 22 −
B̃2
y(k) = C̃1 −
C̃2 z(k)
MATLAB
rsys = modred(sys,elim,’del’)
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 6 / 17
Lecture: Model reduction Model reduction
Example
s3 +11s2 +36s+26
Transfer function: G(s) = s4 +14.6s3 +74.96s2 +153.7s+99.65
State-space realization in canonical reachability form:
0 1 0 0
0
A= 0
0
0
0
1
0
0
1 , B = 0 , C = [ 26 36 11 1 ] , D = 0
0
−99.65 −153.7 −74.96 −14.6 1
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 7 / 17
Lecture: Model reduction Model reduction
Example
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 8 / 17
Lecture: Model reduction Model reduction
Example (cont’d)
Let’s compare the frequency responses of G and Gb : they are almost
indistinguishable !
Bode diagram of G and G
b
−10
−15
−20
In general, the smaller are the
Magnitude (dB)
−25
−30
removed singular values σi with
−35
−45
reduced-order models
−90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Note that after balancing the states completely loose their physical meaning
The original state x can be recovered (approximately)
T T from the reduced state
z1 using the transformation matrix T = T11 12
21 T22
T
x = T21 z1 ← x is treated here as an output of the reduced-order model
11
The reduced state z1 can be estimated by a state observer (the pair Ã1 , C̃1 is
observable by construction)
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 9 / 17
Lecture: Model reduction Model reduction
therefore obtaining
x1 (k + 1) = (A11 + A12 (I − A22 )−1 A21 )x1 (k) + (B1 + A12 (I − A22 )−1 B2 )u(k)
y(k) = (C1 + C2 (I − A22 )−1 A21 )x1 (k) + C2 (I − A22 )−1 B2 u(k)
x2 (t) = A−1
22 (A21 x1 (t) + B2 u(t))
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 10 / 17
Lecture: Model reduction Model reduction
Property
The matched DC-gain method preserves the DC gain of the
original full-order model
Proof:
Simply observe that for both the original and the reduced-order model in
steady-state x1 , x2 depend on u in the same way
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 11 / 17
Lecture: Model reduction Model reduction
Example (cont’d)
Consider again the state-space realization
0 1 0 0
0
A= 0
0
0
0
1
0
0
1 , B = 0 , C = [ 26 36 11 1 ] , D = 0
0
−99.65 −153.7 −74.96 −14.6 1
Let’s eliminate the states x3 and x4 using the matched DC-gain method
We get a 2nd order model whose transfer function is
0.1467s2 + 0.4803s + 0.3469
Gm (s) =
s2 + 2.05s + 1.329
−10
−15
Magnitude (dB)
−20
−25
−30
Emphasis here is on matching at low
−35
−40
0
frequencies (DC gain in particular!)
G
−45
−90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 12 / 17
Lecture: Model reduction Model reduction
Example (cont’d)
0.35
G
Gr
Gm
0.3
0.25
0.2
0.15
DC gain of Gm (s): Gm (0) = 0.2609
0.1
DC gain of Gb (s): Gb (0) = 0.2597
0.05
0
0 1 2 3 4 5 6
Time (sec)
The matched DC-gain method is only good to capture the DC gain exactly
Model reduction via balanced transformation provides best match
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 13 / 17
Lecture: Model reduction Model reduction
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 14 / 17
Lecture: Model reduction Model reduction
Example (cont’d)
Consider the LQR performance index
∞
X
min y2 (k) + ρu2 (k)
k=0
LQR controller based on the model reduced by the matched DC gain method:
x1 =
1 0 0 0
0100 x
1
u(t) = Km x1 (t) + Hm r(t), Hm = C(−A−BK [I 0])−1 B+D m
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 15 / 17
Lecture: Model reduction Model reduction
Example (cont’d)
=
1.4
K
K
u Kx
b
1
u = Kb 0 T −1 x
Amplitude
0.8
0
0 0.5 1 1.5 2 2.5 3 3.5
Time (sec)
Note the similarity between controllers K and Kb 0 T −1
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 16 / 17
Lecture: Model reduction Model reduction
English-Italian Vocabulary
Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 17 / 17