Beruflich Dokumente
Kultur Dokumente
EL 625 Lecture 2
State equations of finite dimensional linear systems
Continuous-time:
x(t)
= A(t)x(t) + B(t)u(t)
y(t) = C(t)x(t) + D(t)u(t)
Discrete-time:
x(tk+1) = A(tk )x(tk ) + B(tk )u(tk )
y(tk ) = C(tk )x(tk ) + D(tk )u(tk )
state x(t) - vector of length n 1
input u(t) - r 1
output y(t) - m 1
A,B,C and D are matrices of sizes n n, n r, m n and m r
respectively.
If A,B,C,D are functions of time timevarying
If these matrices are constant with time time-invariant
EL 625 Lecture 2
iR
vR
EL 625 Lecture 2
iC
vC
EL 625 Lecture 2
iL
vL
EL 625 Lecture 2
Example:
vL (t)
L
iL (t)
+
'$
v2 (t)
+
PP
P
PP
P
P
PP
P
P
C1
R1
i1 (t)
e1 (t)
&%
R2
i2 (t)
'$
C2
v1 (t)
P
PP
PP
P
PP
P
P
P
e2 (t)
&%
EL 625 Lecture 2
The inputs are e1 and e2. The output is the voltage across the
v . Choosing as our states, iL, v1 and v2,
inductor,
iL
x = v1 , u =
v2
e1
e2
, y = [vL]
R2
R1
R1
R1R2
+v1
+v2
+e1+e2
vL = iL
R1 + R2
R1 + R2
R1 + R2
R1 + R2
i L
R2
R1
R1R2
+ v1
+ v2
= iL
L(R1 + R2)
L(R1 + R2)
L(R1 + R2)
1
R1
+e1 + e2
L
L(R1 + R2)
EL 625 Lecture 2
Similarly,
R2
1
1
1
+e
i1 = iL
+ v1
+ v2
2
R1 + R2
R1 + R2
R1 + R2
R1 + R2
v 1 =
1
i1
C1
1
1
R2
+ v1
+ v2
= iL
C1(R1 + R2)
C1(R1 + R2)
C1(R1 + R2)
+e2
C1(R1 + R2)
1
1
1
R1
+v
+ v1
+ e2
i2 = iL
2
R1 + R2
R1 + R2
R1 + R2
R1 + R2
v 2 =
1
i2
C2
R1
1
1
+ v1
+ v2
= iL
C2(R1 + R2)
C2(R1 + R2)
C2(R1 + R2)
+e2
C2(R1 + R2)
EL 625 Lecture 2
x = Ax + Bu
y = Cx + Du
where
A =
R2
C1 (R1 +R2 )
1
C1 (R1 +R2 )
1
C1 (R1 +R2 )
R1
C2 (R1 +R2 )
1
C2 (R1 +R2 )
1
C2 (R1 +R2 )
B =
R1 R2
L(R +R )
1
2
C =
"
D =
"
1
L
R2
L(R1 +R2 )
R1
L(R1 +R2 )
1
C1 (R1 +R2 )
1
C2 (R1 +R2 )
R1 R2
R1 +R2
R1
L(R1 +R2 )
R2
R1 +R2
R1
R1 +R2
R1
R1 +R2
EL 625 Lecture 2
K(t)
z1
z2
-
fK
Damping Element:
fD (t) = D(t)[v2(t) v1(t)]
where:
v1(t) and v2(t) : the velocities of the two ends of the damping element
fD (t)
D(t)
v2
fD
EL 625 Lecture 2
10
Mass:
dM (t)
f
(t)
M (t) dv(t)
=
M
dt
dt v(t)
where:
v(t)
v
M
fM
EL 625 Lecture 2
11
Example:
- x1
M1
- x2
M2
f (t)
x=
v1 = x 1 and v2 = x 2.
x1
x2
v1
v2
EL 625 Lecture 2
12
x = Ax + Bu
y = Cx + Du
where
A =
B =
C =
"
K
M1
K
M1
K
M2
K
M2
0
0
0
1
M2
0 1 0 0
D = [0]
1 0
0 1
D
M1
0 0
EL 625 Lecture 2
13
(1)
(2)
x b = Abx b + Bbu
y = Cbxb + Dbu
(3)
where:
Ab = T AaT 1
Bb = T Bb
Cb = CaT 1
D b = Da
Similarity Transformation: xb = T xa
(4)
EL 625 Lecture 2
14
Simulation Diagrams:
Basic Simulator Elements:
1. Dynamic element
(a) integrator : for analog systems
u(t)
y(t) = y(t0 ) +
Z t
y = D1u
(b) delay : for discrete-time systems
u(tk )
y = E 1u
y(tk ) = u(tk1 )
t0
u( ) d
EL 625 Lecture 2
15
+
-
u1 (t)
u2 (t)
.
..
ur (t)
1
y(t) =
r
X
ui (t)
i=1
+&%
6+
u(t)
HH
HH
K(t)
Example:
...
y + 3t
y + 2y + (t)y = u + etu + u
D3y + 3tD2y + 2Dy + (t)y = D2u + etDu + u
(D is the derivative operator)
y = D
y = D
D (D u 3tD y) + D
D1(etDu 2Dy)
EL 625 Lecture 2
16
+D {u (t)y}
= D
u D (3tD y) + D
D1(etDu) 2y
+D {u (t)y}
Using integration by parts,
u 3ty + D 6y + D
+D {u (t)y}
= D
u 3ty + D
etu + D1(uet) 2y
1
e u + +4y + D {u + ue
(t)y}
EL 625 Lecture 2
17
Simulation Diagram:
A
HH
HH
H
- 1 + et H
?
A (t)
A
A
A
A
A
A
+
-
x3
3t
A
?+
4
A
?
+
-
A
A
6+
?
+
-
x2
6+
A
A
t A
e
x1
x = x2
A(t) =
3t
4
x3
1 0
0 1 ; B(t) =
(t) 0 0
x = A(t)x + B(t)u
y = C(t)x + D(t)u
1
e
1 + et
; C(t) = 0
0
; D(t) = [0]
x1
EL 625 Lecture 2
18
Example:
y(k + 3) + 3ky(k + 2) + 2y(k + 1) + (k)y(k) = u(k + 2) + ek u(k + 1)
+u(k)
E 3y(k) + 3kE 2y(k) + 2Ey(k) + (k)y(k) = E 2u(k) + ek Eu(k)
+u(k)
where E is the delay operator.
y(k) = E
(k)y(k)
= E
+E {u(k) (k)y(k)}
+E {u(k) (k)y(k)}
e(k1)u(k) 2y(k)
EL 625 Lecture 2
19
Simulation Diagram:
A
A
u(k)
(k)
A
A
A
A
A
?
+
-
2
A
A
x3
6+
A3(k 2)
A
A
A
?
+
-
?
+
-
x2
6+
x1
y(k)
A
A
(k1)
A
e
A
A
6
x1(k)
x(k) = x2(k)
x3(k)
EL 625 Lecture 2
20
A(k) =
B(k) =
C(k) =
3(k 2) 1 0
"
0 1
(k)
0 0
1
e(k1)
1
1 0 0
D(k) = [0]
EL 625 Lecture 2
21
x1 = y
x2 = y (1)
x3 = y (2)
...
xn = y
(n1)
x1
x2
x = x3
...
xn
x 1 = x2
x 2 = x3
...
x n1 = xn
x n = n1(t)xn n2(t)xn1 . . . 0(t)x1
+(t)u(t)
y = x1
EL 625 Lecture 2
x =
...
...
...
...
0
...
...
...
...
... ...
0
...
22
0 1 . . . n2 n1
{z
0
x + ... u
...
| {z }
y = 1 0 0 . . . 0 x + |{z}
[0] u
{z
= D
n1D
n1
y n2D
n1y + D
{z
y . . . 1Dy 0y + u
n2y + D1{ . . .
+D (0y + u ) . . . }
|
n2
EL 625 Lecture 2
23
z1 = n1z1 + z2
z2 = n2z1 + z3
...
z=
zn1 = 1z1 + xn
zn = 0z1 + u
y = z1
z=
n1 1 0 . . . . . . 0
n2
...
0 1 0 ...
... . . . . . . . . .
0
...
...
0 ... ... 0 1
{z
A0
"
1 0
z+
0
0
...
0
0
z1
z2
...
zn1
zn
| {z }
B0
y = 1 0 0 . . . 0 z + |{z}
[0] u
|
{z
C0
D0
EL 625 Lecture 2
24
z = Tx
where
n1 1
...
T =
...
...
0
...
. . . 0
.
. . . ..
...
...
. . . n1
. . . . . . n1 1
EL 625 Lecture 2
25
MIMO systems:
y1 + t2y 2 + y 1 + ty1 + y2 = tu1 + u 2
y2 + ty 1 + y2 y1 = tu 1 + u2
From the first equation,
D2y1 + t2Dy2 + Dy1 + ty1 + y2 = tu1 + Du2
Thus,
y1 = D
y2 = D
= D
tDu1 tDy1 + u2 + y1 y2
EL 625 Lecture 2
26
State-space realization:
x 1 = x1 +x2
x 2 = tx1
t2x3
+(2t 1)x3
x 3 = tx1
y2 =
+tu1
+x4 +tu1
x 4 = 2x1
y1 =
+u2
x3
x1
x2
u1 +u2
EL 625 Lecture 2
27
Simulation Diagram
A
A
A
A
u2
H
u1
HH
?
H
t HH
+
6+
@
?
R
+@
x2 -
A
A
?
A
A
A
A
A
y1
x3-
y2
A
A
+
A
A
@
?+
@
R
-
x1-
A
A
2t 1 A
?
x4 +
6+
A
A
t AA
6