Professional Documents
Culture Documents
Chapter 2:
Chapter 2:
Dynamic Models
Dynamic Models
Part B: Differential Equations in
State-Variable Form
MCEN 467 Control Systems
Material covered in the PRESENT LECTURE
is shown in yellow
I. DYNAMIC MODELING
Deriving a dynamic model for mechanical, electrical,
electromechanical, fluid- & heat-flow systems
Linearization the dynamic model if necessary
II. DESIGN OF A CONTROLLER: Several design methods exist
1. Classical control or Root Locus Design:
Define the transfer function; Apply root locus, loop shaping,
2. Modern control or State-Space Design:
Convert ODE to state equation; Apply Pole Placement,
Robust control,
3. Nonlinear control: Apply Lyapunovs stability criterion
MCEN 467 Control Systems
Motivations for Deriving the Dynamic
Model in STATE-VARIABLE FORM
u kx x b x m + +
u kx bv v m + +
v x
(1)
(1a)
(1b)
(1) (1a) & (1b)
by defining v as:
MCEN 467 Control Systems
State-Variables: Recall Example
'
+ +
v x
u kx bv v m
v x
x and x
v and x
MCEN 467 Control Systems
Deriving differential equations in state-variable form
consists of writing them as a vector equation
as follows:
u J X H y
u G X F X
+
+
1
1
1
1
]
1
n
x
x
x
X
2
1
n
x
x
x
X
2
1
I
m
p
o
r
t
a
n
t
Y
o
u
c
a
n
f
o
r
g
e
t
t
h
a
t
MCEN 467 Control Systems
Deriving the State-Variable Form requires to
specify F, G, H, J for a given X and u
[ ]
input the is u and
output the is u J
x
x
x
h h h y where
u
g
g
g
x
x
x
f f
f
f f f
x
x
x
n
H
n
G
n
X
n
F
nn n
n
n
+
1
1
1
1
]
1
1
1
1
1
]
1
+
1
1
1
1
]
1
1
1
1
1
]
1
1
1
1
1
]
1
2
1
2 1
2
1
2
1
1
21
1 12 11
2
1
MCEN 467 Control Systems
Ex 1: Recall the Satellite
Altitude Control Example
Q: Dynamic model
in state-variable
form?
Assumptions:
Gu FX X +
Ju HX y +
MCEN 467 Control Systems
Ex 1: Dynamic Model
I M d F
D c
+
I
M d F
D C
+
MCEN 467 Control Systems
Example 1 (contd)
Given:
[ ]
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
u and
u y where
u
J
H
G X
F X
1
]
1
with X
MCEN 467 Control Systems
Example 1 (contd)
By definition: . As a result,
I
u
I
M d F
D C
+
D c
M d F u +
(1)
MCEN 467 Control Systems
Example 1 (contd)
Available equations:
'
I u
'
+ +
+ +
u ) I (
u
1 0 0
0 1 0
u y + + 0 0 1
D C
M d F u +
[ ]
D C
J
H
G X
F X
M d F u and
u y where
u
I
+
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
0 0 1
1
0
0 0
1 0
MCEN 467 Control Systems
Example 1: Dynamic Model in
State-Variable Form
[ ] 0 0 1
1
0
0 0
1 0
1
]
1
1
]
1
J H
I
G F
D C
M d F u
X
+
1
]
1
input
state-variables
By defining X and u as: The state-variable form is given by:
MCEN 467 Control Systems
Ex 1: Recall the
Satellite Altitude Control
Example
Q: Dynamic model
in state-variable
form?
Assumptions:
1
]
1
J H
I
G F
D C
M d F u
X
+
1
]
1
Gu FX X +
Ju HX y +
MCEN 467 Control Systems
Ex 2, Q1:Dynamic Model
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
u and
u
v
x
y where
u
v
x
v
x
J
H
G X
F X
x v with
v
x
X
1
]
1
MCEN 467 Control Systems
Example 1 (contd)
By definition: . As a result,
y x
(2)
m
u
v
m
b
v +
m
u
x
m
b
x +
MCEN 467 Control Systems
Ex 2, Q1 (contd)
Available equations:
'
m
u
v
m
b
v
v x
'
,
_
,
_
+
+ +
u
m
v
m
b
x v
u v x x
1
0
0 1 0
u v x y + + 0 1 0
[ ]
u
v
x
y where
u
m v
x
m b v
x
J
H
G
X
F X
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
0 1 0
1
0
0
1 0
MCEN 467 Control Systems
Example 2, Question 1: Dynamic Model
in State-Variable Form
By defining X as: The state-variable form is given by:
[ ] 0 1 0
1
0
0
1 0
1
]
1
1
]
1
J H
m
G
m b
F
1
]
1
v
x
X
MCEN 467 Control Systems
Example 2, Question2: Step Response
using MATLAB?
[ ] 0 1 0
001 0
0
05 0 0
1 0
1
]
1
1
]
1
J H
.
G
.
F
Assumptions: m = 1000 kg and b = 50 N.sec/m.
MCEN 467 Control Systems
Ex 2, Q2: Step Response with MATLAB?
MCEN 467 Control Systems
MATLAB Statements
F = [0 1;0 -0.05];
G = [0;0.001];
H = [0 1];
J = 0;
sys = ss(F, 500*G, H, J);
t = 0:0.2:100;
y = step(sys,t);
plot (t,y)
% defines state variable matrices
% defines system by its state-
space matrices
% setup time vector ( dt = 0.2 sec)
% computes the response to a
unity step response
% plots output (i.e., step response)
MCEN 467 Control Systems
Response of the car velocity to a
step input u of amplitude 500 N
MCEN 467 Control Systems
Example 3: Flexible Disk-Drive
Q: Find the state-variable
form of the differential
equations describing the
dynamics of the system if
the output is the
rotation angle
2
?
Note: Define the state vector to be
[ ]
T
X
2 2 1 1
MCEN 467 Control Systems
Example 3: Dynamic Model
'
+
+
+
) (
I
k
I
b
I
M M
) (
I
k
I
b
D C
2 1
2
2 1
2
2
1
2 1
1
2 1
1
1
MCEN 467 Control Systems
Example 3: Dynamic Model
in State-Variable Form
[ ]
D C
T
M M u X +
2 2 1 1
[ ] 0 0 1 0 0
0
0
1
0
1 0 0 0
0 0 1 0
1
2 2 2 2
1 1 1 1
1
1
1
1
]
1
1
1
1
1
]
1
J H
I
G
I b I k I b I k
I b I k I b I k
F
By defining X and u as:
The state-variable form is given by: