MEEN651-Notes4-distribution
MEEN651-Notes4-distribution
Lecture Notes 4 :
State Space Models and Solutions
Prabhakar R. Pagilla
[email protected]
Mechanical Engineering
Texas A&M University
College Station, TX 77843-3123
Phone: (979) 458-4829
1
Introduction
Definitions
y1 (t) = g1 (x1 , x2 , . . . , xn ; u1 , u2 , . . . , um ; t)
y2 (t) = g2 (x1 , x2 , . . . , xn ; u1 , u2 , . . . , um ; t)
..
.
yr (t) = gr (x1 , x2 , . . . , xn ; u1 , u2 , . . . , um ; t)
6
• In compact form, we can write the state differential equations
and outputs as
ẋ(t) = f (x, u, t)
y(t) = g(x, u, t)
where x(t) is the state vector, u(t) is the input vector, and
y(t) is the output vector.
7 A: n × n state matrix
x: n × 1 state vector
B: n × m input matrix
u: m × 1 input vector
C: r × n output matrix
y: r × 1 output vector
D: m × m direct transmission matrix
x(k + 1) = Gx(k)+Hu(k)
y(k) = Cx(k)+Du(k)
Remarks
• State models are not unique. One can choose many different sets of
state variables to describe the system in state space form.
8
• Commonly used variables include:
– variables associated with energy storage elements;
– sets including one variable and its successive derivatives;
– variables that give a canonical form for the state space
representation.
x
k
9 m u(t)
b
x1 = F k
x2 = v
ẋ1 = x2 (9)
k b 1
ẋ2 = − x1 − x2 + u (10)
m m m
y = x1 (11)
• Notice that the solution consists of two parts: the first part is
due to the initial state x(t0 ) and the second part is due to the
external input u(t).
• Also, the solution procedure does not restrict b to be
time-invariant. Therefore, b can be time-varying.
18 – eA0 = I
– eAt1 eAt2 = eA(t1 +t2 )
– (eAt )−1 = e−At
• How does one compute eAt ?
• Consider the infinite series expansion of eat , that is,
(at)2 (at)3
e at
= 1 + at + + + ··· (20)
2! 3!
then
eλ1 t 0 0
eAt =
0 eλ2 t 0 .
0 0 eλ3 t
Example
ẋ = Ax + Bu, x(0) = x0
y = Cx + Du
Therefore,
h i
−1 −1
Y (s) = C [sI − A] x0 + C [sI − A] B + D U (s)
X
k−1
xf orced (k) = Φ(k, j + 1)Hu(j)
j=0
Φ(k, k) = I
Φ(k, j) · Φ(j, l) = Φ(k, l)
Explicit Computation of Gk
• G is diagonal
g11 0 0
32
G = 0 g22 0
0 0 g33
k
g11 0 0
Gk =
0
k
g22 0
k
0 0 g33
35 x2 (k) and x3 (k) are zero for all k, which means that
the (2, 1) and (3, 1) element of Gk are zero for all k.
zero.
x3 (k) = λkm
x2 (k) = kλk−1
m
X
k−1
k(k − 1)
37 x1 (k) = λk−j−1
m jλj−1
m = λk−2
m
j=0
2
k(k−1) k−2
λkm kλk−1 λm
m 2
Gk =
0 λkm kλk−1
m
0 0 λkm
λk1 0 ··· 0
λk2 · · ·
−1 k 0 0
T GT = Λ =
k
.. .. ... ..
. . .
0 0 ··· λkn
Notice that
40
k
T−1 GT = T−1 GT T−1 GT · · · T−1 GT
= T−1 Gk T
=⇒ T−1 Gk T = Λk
=⇒ Gk = TΛk T−1
• To find Gk , we have to find both λi´s and T.
Also,
41 det(zI − Λ) = det T (zI − Λ) T−1
= det zI − TΛT−1
= det [zI − G]
TΛT−1 = G or TΛ = GT
Let
| | |
T=
v1 v2 · · · vn
| | |
⇒ Gvi = λi vi
Recall,
X(z) = (zI − G)−1 zx0 + (zI − G)−1 HU (z)
Also
43 X
k−1
x(k) = Gk x0 + Gk−j−1 Hu(j)
j=0
Sylvesters Expansion:
∑
∞
If f (G) is a polynomial function of G, f (G) = ck Gk , and eig(G)
k=0
are distinct, then f (G) can be expressed as
∑
n
f (G) = f (λi )Fi
i=1
" #
0.7 0.3
G=
0.1 0.5
⇒ λ1 = 0.8; λ2 = 0.4
• v1 corresponding to λ1 = 0.8 is given by
" #
0.1 −0.3
[0.8I − G] v1 = v1 = 0
−0.1 0.3
" #
3
⇒ v1 = α
1
• v2 corresponding to λ2 = 0.4 is given by
" #
46 −0.3 −0.3
[0.4I − G] v2 = v2 = 0
−0.1 −0.1
" #
1
⇒ v2 = β
−1
Gk = TΛk T−1
(0.75) (0.8)k + (0.25) (0.4)k (0.75) (0.8) − (0.75) (0.4)
k k
=
(0.25) (0.8)k − (0.25) (0.4)k (0.25) (0.8)k + (0.75) (0.4)k
" #
σ ω
G=
−ω σ
det(zI − G) = (z − σ)2 + ω 2
= z 2 − 2σz + σ 2 + ω 2 = 0
48
λ1,2 = σ ± jω
= r · e±jθ
where
p
ω
r = σ2 + ω2; θ = arctan
σ
Gk = TΛk T−1
" #
cos (kθ) sin (kθ)
= rk
− sin (kθ) cos (kθ)