Lecture03 (Math Rep1)
Lecture03 (Math Rep1)
Lecture03 (Math Rep1)
University
Mathematical Representation of
Systems
ASTU
Department of EPCE
3.1 Representation of systems
Design procedure of control systems
Step 1 : Performance specification
Objective, stability, reliability, economical efficiency
and performance, such as Mp, tr, ts and .
Step 2 : Selection of components
The control system consists of a plant, a controller,
actuators, and sensors. The components are selected at
this stage. Due to the relationship between design
specifications, reliability, and price, appropriate
compromise is required.
3.1 Representation of systems
Step 3 : Modelling
Physical laws are applied to derive mathematical
relations between elements, which is called a model.
Model structure, order, and parameters are determined
through experiments and experience.
Model Sensor
y(t)
u(t) qi(t)
1 (t)
+
Kscr
- 1 + 𝑇𝑚 𝑠
qo(t)
Kscr, Tm, Ks : unknown
parameters Ks
y(t)
3.1 Representation of systems
(Question) How can we find the parameters of the
mathematical equation?
(Answer) I/O signal data of the actual system are
collected through experiments and the parameters are
determined using data and a parameter estimation
technique.
u(t)
3.1 Representation of systems
u(t) y(t)
Actual system
ym(t) +
Model
-
e(t)
Algorithm
Apply the same input to both the actual system and the
model, and adjust the model parameters to minimize
the error between the two outputs.
3.1 Representation of systems
Reference control
temperature + input Output
Reference
Sensor Actuator
Controller Plant
Output
sensor
My (t ) u (t ) - ky (t ) - y (t )
x (t ) Ax (t ) Bu (t ), x (t0 )
where u (t ) F (t ) y (t ) Cx (t ) Du (t )
3.1 Representation of systems
Laplace Transform of functions
L y (t ) Y ( s )
L y (t ) sY ( s )
L y (t ) s Y ( s )
2
1
L y (t )dt Y ( s )
s
L y (t L) e Y ( s )
Ls
3.1 Representation of systems
Transfer function representation
My (t ) u (t ) - ky (t ) - y (t )
Y ( s) 1
U ( s ) Ms 2 s k
3.1 Representation of systems
I/O relationship can be expressed concisely with
block diagram.
U(s) 1 Y(s)
Ms 2 Bs k
F (t ) ky (t ) y (t ) My (t )
i
Fi (t ) M a (t ) k: Spring constant
: Viscous friction
coefficient
3.2 State Space Representation
Letting F(t)= u(t) and rearranging gives
k 1
y (t ) y (t ) y (t ) u (t )
M M M
x1 (t ) y (t ) x2 (t )
k 1
x2 (t ) y (t ) y (t ) y (t ) u (t )
M M M
k 1
x1 (t ) x2 (t ) u (t )
M M M
Initial
x1 (t0 ) y (t0 ), x2 (t0 ) y (t0 )
Conditions
3.2 State Space Representation
State equation
x1 (t ) x2 (t )
k 1
x2 (t ) x1 (t ) x2 (t ) u (t )
M M M
ICs x1 (t0 ) y (t0 ), x2 (t0 ) y (t0 )
Output equation
y (t ) x1 (t )
3.2 State Space Representation
State equation(vector form)
x1 (t ) 0 1 x1 (t ) 0
x (t ) x (t ) u (t )
2 k / M / M 2 1/ M
x1 (t0 ) y (t0 )
ICs
x2 (t0 ) y (t0 )
Output equation(vector form)
x1 (t )
y (t ) 1 0
x2 (t )
3.2 State Space Representation
Dynamic equation(vector form)
x (t ) Ax (t ) Bu (t ), x (t0 )
y (t ) Cx (t ) Du (t )
where
0 1 0
A , B
k / M / M 1/ M
x1 (t )
C 1 0 , D 0, x (t )
x2 (t )
3.2 State Space Representation
Dynamic equation
x (t ) f [ x (t ), u (t ), t ], x (t0 )
y (t ) g[ x (t ), u (t ), t ]
where
x2 (t )
f [ x (t ), u (t ), t ] k 1
x1 (t ) x2 (t ) u (t )
M M M
g[ x (t ), u (t ), t ] x1 (t )
3.2 State Space Representation
2. Vehicle system
F(t) is the external force as input, y1(t) and y2(t) are the
output of each vehicle, M1 and M2 are the mass of each
vehicle, k is the spring constant and is the viscous
friction coefficient. Applying Newton's second law
here yields
3.2 State Space Representation
F (t ) k[ y1 (t ) y2 (t )] [ y1 (t ) y2 (t )]
M1 y1 (t )
3.2 State Space Representation
k[ y1 (t ) y2 (t )] [ y1 (t ) y2 (t )] M 2 y2 (t )
3.2 State Space Representation
Letting F(t)= u(t), defining the state variables as follows
and differentiating both sides once
x1 (t ) y1 (t ) x1 (t ) y1 (t ) x2 (t )
x2 (t ) y1 (t ) x2 (t ) y1 (t )
x3 (t ) y2 (t ) x3 (t ) y2 (t ) x4 (t )
x4 (t ) y2 (t ) x4 (t ) y2 (t )
y1 (t ) k[ y1 (t ) y2 (t )] / M1
[ y1 (t ) y2 (t )] / M1 F (t ) / M1
y2 (t ) k[ y1 (t ) y2 (t )] / M 2
[ y1 (t ) y2 (t )] / M 2
3.2 State Space Representation
State equation Output equation
x1 (t ) y1 (t ) x2 (t )
y1 (t ) x1 (t )
k
x2 (t ) y1 (t ) x1 (t ) x2 (t ) y2 (t ) x3 (t )
M1 M1
k 1
x3 (t ) x4 (t ) u (t )
M1 M1 M1
x3 (t ) y2 (t ) x4 (t )
k
x4 (t ) y2 (t ) x1 (t ) x2 (t )
M2 M2
k
x3 (t ) x4 (t )
M2 M2
3.2 State Space Representation
Dynamic equation
0 1 0 0
k 0
- k 1
-
M1 M1 M1 M1
x (t ) x (t ) M1 u (t )
0 0 0 1
0
k k
- - 0
M 2 M2 M 2 M2
1 0 0 0
y (t ) x (t ) Initial x (t0 )
0 0 1 0 vector
3.2 State Space Representation
Example 1: The following figure shows a motorcycle
suspension system. Find the dynamic equation by
inputting wheel displacement r(t) and outputting y(t).
Solution:
After separating the m2 y
body and the wheel, ks
vcar
suspension b
applying Newton's
second law gives m1 x
kw
Tire Road surface
r
Inertial reference
3.2 State Space Representation
m2 y k s ( y x) b( y x)
m1 x k s ( y x) b( y x)
kw ( x r )
Defining the state variables and
differentiating both sides once gives
x1 y
x2 y
x3 x
x4 x
3.2 State Space Representation
State equation m2 y k s ( y x) b( y x)
m1 x k s ( y x) b( y x)
x1 y x2
kw ( x r )
ks b
x2 y ( x1 x3 ) ( x2 x4 )
m2 m2 x1 y
x3 x x4 x2 y
x4 x
ks
( x1 x3 )
b
( x2 x4 )
kw
(r x3 ) x3 x
m1 m1 m1
x4 x
Output equation
y x1
3.2 State Space Representation
Rewriting the equations yields
x Αx Bu , x (t0 )
y Cx Du
where
0 1 0 0
k 0
s
b ks b 0
m2 m2 m2 m2
A ,B 0
0 0 0 1
ks b ks kw b kw
m1
m1 m1 m1 m1
C 1 0 0 0 , D 0, u r
3.2 State Space Representation
Newton's second law
(rotational movement)
T (t ) J (t )
i
i
J (t )
3. Rotational system
Applying Newton's second law
yields where (t) is torque as input,
(t) is rotation angle as output, J is
moment of inertia, is the
coefficient of viscous friction, k is
the modulus of elasticity.
3.2 State Space Representation
(t ) k (t ) (t ) J (t )
Letting (t)= u(t), and
(t )
defining the state variables
as follows:
x1 (t ) (t )
x2 (t ) (t )
k (t )
3.2 State Space Representation
State equation
x1 (t ) (t ) x2 (t )
k 1
x2 (t ) (t ) x1 (t ) x2 (t ) u (t )
J J J
(t ) k (t ) (t ) J (t )
Output equation
y (t ) (t ) x1 (t )
3.2 State Space Representation
Dynamic equation
x (t ) Ax (t ) Bu (t ), x (t0 )
y (t ) Cx (t ) Du (t )
0 1 0
A k , B 1
J J J
C 1 0 , D 0
3.2 State Space Representation
4. RLC circuit
Consider a circuit where u(t) is the voltage as input,
y(t) is the voltage as output, R is resistor, L is inductor,
and C is capacitor.
i(t)
3.2 State Space Representation
Applying Kirchhoff's law of voltage and Ohm's law
gives
di (t ) 1
u (t ) Ri (t ) L i (t )dt
dt C
1
y (t ) i (t )dt
C
i(t)
3.2 State Space Representation
State variables State equation
1 1
1 x1 (t ) i (t ) x2 (t )
x1(t)= i (t )dt , C C
C
di (t )
x2(t)= i(t) x2 (t )
dt
1 R 1
i (t )dt i (t ) u (t )
LC L L
1 R 1
x1 (t ) x2 (t ) u (t )
L L L
di (t ) 1
Ri (t ) L i (t )dt u (t )
dt C
3.2 State Space Representation
Output equation
1
y (t ) i (t )dt x1 (t )
C
Dynamic equation
1
0 0
x (t ) 1 u (t ), x (t0 )
C
x (t )
- 1 - R
L
L
L
y (t ) 1 0 x (t )
3.2 State Space Representation
M. Faraday (1791-1867)
3.2 State Space Representation
3.2 State Space Representation
3.2 State Space Representation
5. DC motor
u(t) is voltage as input, (t) is angle as output, i(t)
armature current, eb(t) is counter electromotive force, R
and L are equivalent resistance and inductor of armature
circuit, respectively, J is the moment of inertia and is
the coefficient of viscous friction
3.2 State Space Representation
Applying the Kirchhoff's law to the armature circuit
gives
di (t )
u (t ) eb (t ) Ri (t ) L
dt
eb (t ) K b (t )
where Kb is constant.
3.2 State Space Representation
Applying Newton's law to the rotational system
becomes
τ (t ) Kt i (t )
τ (t ) (t ) J (t )
where Kt is constant.
3.2 State Space Representation
Defining the state variables and differentiating both
sides once gives
x1 (t ) (t ) x1 (t ) (t ) x2 (t )
x2 (t ) (t ) x2 (t ) (t )
x3 (t ) i (t ) di (t )
x3 (t )
dt
di (t )
u (t ) Kb (t ) Ri (t ) L
dt
Kt i (t ) (t ) J (t )
3.2 State Space Representation
Dynamic equation
0 1 0
x1 (t ) 0
Kt
x (t ) x2 (t ) 0 - x (t ) 0 u (t ), x (t0 )
J J
x3 (t ) 1
0 - K b R
-
L
L L
y (t ) 1 0 0 x (t )
3.2 State Space Representation
Bernoulli's equation
h
x
2 2
P1 v1 P2 v2
h1 h2
Daniel Bernoulli 2g 2g
(1700-1782)
Kinetic energy, potential energy
3.2 State Space Representation
P1,v1
P2,v2
2 2
P1 v1 P2 v2
h1 h2
2g 2g
For h1 h2
(v1
2
v2 )
2
P1 P2
2g
3.2 State Space Representation
6. One-tank system qi (t )
The tank head h(t) changes due
to the difference between input
S
and output flow rate. The h(t)
equilibrium equation of the
fluid is h(t)
A
qo (t )
S h(t ) t[qi (t ) qo (t )]
h(t ) 1
[qi (t ) qo (t )]
t S h(t)
S
If t 0, then h(t)
h(t ) dh(t ) A
lim qo (t )
t 0 t dt
1
[qi (t ) qo (t )]
S
3.2 State Space Representation
From the Bernoulli's equation
qi (t )
P1= 0 Atmospheric
v1= 0 pressure
S h1= h(t) P1= P2= 0
h(t)
P2= 0
h(t)
v2= ?
qo (t ) h2= 0
qo (t ) Av2 (t ) A 2 gh(t )
dh(t ) 1
[qi (t ) qo (t )]
dt S
1
[qi (t ) A 2 gh(t ) ]
S
3.2 State Space Representation
dh(t ) 1
[qi (t ) A 2 gh(t ) ]
dt S
Letting x(t)= h(t) and u(t)= qi(t) yields
State equation
1
x(t ) [u (t ) A 2 gx(t ) ] : nonlinear
S
or
x(t ) f [ x(t ), u (t ), t ]
1
where f [ x(t ), u (t ), t ] [u (t ) A 2 gx(t ) ]
S
3.2 State Space Representation
Output equation
y (t ) h(t ) x(t )
or
y (t ) g[ x(t ), u (t ), t ]
S1 S2
Input: qi(t) h1(t)
h2(t)
Output: h2(t)
h1(t) A1 h2(t) A2
q1 (t ) qo (t )
The equilibrium
equations of the fluid
for tank 1 and 2 are
dh1 (t ) 1
[qi (t ) q1 (t )]
dt S1
dh2 (t ) 1
[q1 (t ) qo (t )]
dt S2
3.2 State Space Representation
Applying the
Bernoulli's equation
at each tank
becomes
q1 (t ) A1 2 g[h1 (t ) h2 (t )]
qo (t ) A2 2 gh2 (t )
3.2 State Space Representation
Defining state variables x1(t)= h1(t), x2(t)= h2(t) and
rearranging , , and yields
Dynamic equation
dx1 (t ) A1 1
2 g[ x1 (t ) x2 (t )] u (t )
dt S1 S1
dx2 (t ) A1 A2
2 g[ x1 (t ) x2 (t )] 2 gx2 (t ) ]
dt S2 S2
y (t ) x2 (t )
where u(t)= qi(t) and IC x(t0)= [h1(t0) h2(t0)]T
3.2 State Space Representation
Example 2: Find the dynamic equation of the
pendulum system with torque u(t) as input and rotation
angle (t) as output.
u(t)
Solution:
u (t ) (t ) MgLsin (t ) J (t ) L
(t)
where M: mass
L: pendulum length M
: friction coefficient
Mgsin(t)
g: gravity acceleration (t)
Mg
3.2 State Space Representation
Defining the state variables as
x1 (t ) (t ), x2 (t ) (t )
gives the following equations
x1 (t ) (t ) x2 (t )
x2 (t ) (t )
MgL 1
sin x1 (t ) x2 (t ) u (t )
J J J
ICs x1(t0), x2(t0)
y (t ) (t ) x1 (t )
3.2 State Space Representation
Dynamic equation
x (t ) f [ x (t ), u (t ), t ], x (t0 )
y (t ) g[ x (t ), u (t ), t ]
where x2
f [ x, u, t ] MgL 1
sin x1 x2 u
J J J
g[ x, u, t ] x1
Q&A