State Space-1
State Space-1
3
State Space Representation
4
State Space Representation
MIMO
system
y (t ) = Cx(t ) + Du (t )
Output equations are defined by users!
(7) State Space Representation: (5)+(6)
(2) Variety:The state variables are not unique, and they can be
selected in numerous ways theoretically.
x(t ) = f ( x(t ), u (t ), t ) x = f ( x, u , t )
or
y (t ) = g ( x(t ), u (t ), t ) y = g ( x, u , t )
10
State Space Representation in Graph
State Equation
Output Equation
11
State Graph
Example 11.1
u
b x
bu x x
+
a
13
State Graph
Example 11.1
x = ax + bu
14
State Graph
Example 11.2
The state space of a third-order system is
x1 = x2
x2 = x3
x3 = −6 x1 − 3 x2 − 2 x3 + u
y = x1 + x2
The state graph is
u x3 x2 x1 y
+
++
-2
-3
-6
15
State Graph
Example 11.2 x1 = x2
x2 = x3
x3 = −6 x1 − 3 x2 − 2 x3 + u
y = x1 + x2
for output equation
u x3 x2 x1 + y
+
++
-2
-3
-6
16
Construct State Space Representation
17
Construct State Space Representation
L R2 duC
diL 1
iL = (u − L ) +C
iL dt R1 dt
u R1 uc
diL duC
L +C R2 + uC = u
dt dt
18
Construct State Space Representation
diL u iL R1 R2 uC R1
Arrange as: = − −
dt L L R1 + R2 L R1 + R2
duC R1 1
= iL − uC
dt C ( R1 + R2 ) C ( R1 + R2 )
选择状态变量
State variables:
Energy storage elements
x1 = iL , x2 = uC ,
dx1 1 R1 R2 R1 x2 u
=− x1 − −+
State equations dt L R1 + R2 R1 + R2 L L
dx2 R1 1
= x1 − x2
dt C ( R1 + R2 ) C ( R1 + R2 )
Output equation y = uC = x2
19
Construct State Space Representation
Written in Matrix
1 R1 R2 R1
− − 1
x1 L R1 + R2 L( R1 + R2 ) x1
+ L u
x = x2
2 R
−
1
C(R + R ) 0
1 2 C ( R1 + R2 )
xR , 2
u R 1
, y R1
20
Construct State Space Representation
1 R1 R2 R1
− − 1
x1 L R1 + R2 L( R1 + R2 ) x1
+ L u
x = x2
2 R
−
1
C(R + R ) 0
1 2 C ( R1 + R2 )
x R2 , u R , y R
1 1
21
Construct State Space Representation
1 R1 R2 R1
− − 1
x1 L R1 + R2 L( R1 + R2 ) x1
+ L u
x = x2
2 R
−
1
C(R + R ) 0
1 2 C ( R1 + R2 )
x R2 , u R , y R
1 1
22
Construct State Space Representation
1 R1 R2 R1
− − 1
x1 L R1 + R2 L( R1 + R2 ) x1
+ L u
x = x2
2 R
−
1
C(R + R ) 0
1 2 C ( R1 + R2 )
x R2 , u R , y R
1 1
23
Construct State Space Representation
Example 11.4
An electric motor system is shown
in the right figure R L
¦È
u = uR + uL + uM
u uf J
diL d Rf
= iR R + L + Ce
dt dt
Rotate angle of
electrical motor
24
Construct State Space Representation
u = uR + uL + uM R L
diL d ¦È
= iR R + L + Ce u uf J
dt dt
Rf
d 2 d
Cm i = J 2 + f
dt dt
viscous friction
coefficient
moment of inertia
electromagnetic torque
constant
25
Construct State Space Representation
u = uR + uL + uM R L
diL d
= iR R + L + Ce ¦È
dt dt u uf J
Rf
d 2 d
Cmi = J 2 + f
dt dt
Then: x1 = x2
f Cm
x2 = − x2 + x3
State variables are selected as J J
Ce R 1
x1 = , x2 = , x3 = i x3 = − x2 − x3 + u;
L L L
26
Construct State Space Representation
Output equation:
y = = x1
State space is written in matrix:
x1 0 1 0 x1 0
x = 0 − f J C J x2 + 0 u
2 m
x3 0 − Ce L − R L x3 1 L
x1
y = 1 0 0 x2
x3
27
Construct State Space Representation
Output equation:
y = = x1
State space is written in matrix :
x1 0 1 0 x1 0
x = 0 − f J C J x2 + 0 u
2 m
x3 0 − Ce L − R L x3 1 L
x1 x(t ) = A(t ) x(t ) + B(t )u (t )
y = 1 0 0 x2
y(t ) = C (t ) x(t ) + D(t )u(t )
x3
x R3 , u R1 , y R
1
28
Construct State Space Representation
Example 11.5
A dynamic motion system is shown as follows
d2s ds
ma = f = u − ks − hv m 2 = u − ks − h
dt dt
x1 = x2
k h 1 x1 = s, x2 = s
x2 = − x1 − x2 + u
m m m
29
horizontal displacement
Construct State Space Representation
Output equation :
y = s = x1
State space is written in matrix :
0 1 0
x1 x1
x = k
h + 1 u
2 − − x2
m m m
x(t ) = A(t ) x(t ) + B(t )u (t )
x1
y = 1 0 y(t ) = C (t ) x(t ) + D(t )u(t )
2
x
x R 2 , u R1 , y R
1
30
Construct State Space Representation
Example 3-3, Ogata (pp.73-74)
State Variables
State
Equation
Output Equation
31
Construct State Space Representation
Summary of Method 1- Based on the physical description
x1 x1 u1
x x u
d 2 2+ 2
=
dt
xn xn um 32
Construct State Space Representation
Summary of Method 1- Based on the physical description
Exceptions
Two of the same type of elements connected together are
treated as one element.
For example, two massed moving together, two springs in
series or in parallel are treated as one element (mass or
spring).
Output Equations
y = C x(t ) + Du (t )
C and D depend on the user selected output signal(s), purely
determined algebraically. No dynamics (do not depend on
the matrices A and B) 33
to be continued………
34