02 Systems and Models
02 Systems and Models
02 Systems and Models
The terms:
• “System”
• “System theory”
• “System engineering”
• …
are frequently used in many –different– areas: process control, data
elaboration, biology, economy, ecology, management, traffic control, …
System:
• A set, artificially isolated from the context, possibly made by more
(internal) interacting parts,
• It is desired to study its “dynamic” behaviour
2
1 – 4: connections
1 3
External environment
4
C. Melchiorri (DEI) Automatic Control & System Theory 3
AC&ST
• Measurable attribute:
Feature of the system that can be related to one or more integer, real
or complex numbers, or in any case to a set of symbols
• Mathematical model:
Expression by mathematical equations of the relationship between the
measurable attributes
2
3
1
4
C. Melchiorri (DEI) Automatic Control & System Theory 4
AC&ST
S1 S2
C. Melchiorri (DEI) Automatic Control & System Theory 6
AC&ST
va(t) ve(t) Le
Distributed Lumped
Parameters Parameters
Stochastic Deterministic
Continuous Discrete
time time
Nonlinear Linear
Time Constant
Varying coefficients
Non
Homogeneous
homogeneous
C. Melchiorri (DEI) Automatic Control & System Theory 8
AC&ST
Distributed Lumped
Parameters Parameters
Stochastic Deterministic
Continuous Discrete
time time
Nonlinear Linear
Time Constant
Varying coefficients
Non
Homogeneous
homogeneous
C. Melchiorri (DEI) Automatic Control & System Theory 9
AC&ST
Concept of state
Concentrated elasticity
40
i(t)
V, I
30
20
0
0 50 100 150 200 250 300
Time (s)
0.8
0.2
i(t) C 00 0.5
v
1 1.5 2
v(t) R
vi(t) R2 vu(t)
• Combinational circuit
u1 u2 u3 y
1 1 1 1
R1
R2
u(t) vu(t)
u(t) vu(t)
vc(t) x input output
x state
R2
u(t) vu(t)
u(t) vu(t)
vc(t) x input output
• The description of the system is made with two equations, a differential and
an algebraic one:
Output equation
u x y
• The description of the system is made with two equations, a differential and
an algebraic one:
Output equation
• The equation
valid also for the vector case, is the so-called Lagrange’s formula
with
• Controllability analysis: how to affect the state motion or the output function
acting on the input variable
• The state variables and the state equations are NOT defined uniquely!
• Electrical
• Capacitor (C) and Inductor (L)
• Mechanical (linear)
• Mass (M) and compliance (1/K)
• Mechanical (rotational)
• Inertia (J) and rotational compliance (1/K)
• Fluid flow (hydraulic/pneumatic)
• Fluid Capacitor (Cf) and Fluid Inductor (Lf)
• Thermal
• Thermal Capacitor (Ct)
Definition
• The state of a dynamic system Σ:
• Is an element of the state set X
• It may change in time,
x(t0) at the instant t0, together with the segment of the
• The state
input function u|[t0,t1], uniquely defines the output function y|[t0,t1]
vi(t) vu(t)
i C
2 states
1 output
i4
R1 v1 R2
i2 i3 i5
i1
vi(t) v2 C2 R3 vu(t)
i4
R1 v1 R2
i2 i3 i5
i1
vi(t) v2 C2 R3 vu(t)
2 states
1 output
C. Melchiorri (DEI) Automatic Control & System Theory 29
AC&ST
i4
R1 v1 R2
i2 i3 i5
i1
vi(t) v2 C2 R3 vu(t)
1 1
0.8 0.8
0.6 0.6
0.4
Output discontinuity due 0.4
-0.2 -0.2
-0.4 -0.4
-0.6
-0.6
-0.8
-0.8 0 0.5 1 1.5 2
0 0.5 1 1.5 2
4 states
2 output
C. Melchiorri (DEI) Automatic Control & System Theory 31
AC&ST
1.5
f 1.5
f
1
1
x1 x1
0.5 0.5
0 0
x2 x2
-0.5 -0.5
-1 -1
0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50
Tempo
Tempo
C. Melchiorri (DEI) Automatic Control & System Theory 32
AC&ST
va(t) ie(t)
ve(t) Le if ve = const
vc(t)
Cr(t)
u y
3 states
2 input
1 output
C. Melchiorri (DEI) Automatic Control & System Theory 33
AC&ST
sync
u1 u2
x 00 01 10 11 State transition
function
• Mathematical model 0 0 0 0 1
1 0 1 1 1
u1 u2
x 00 01 10 11 Output
function
0 0 0 0 0
Discrete-time dynamic system 1 0 1 0 0
u(t) R2 vu(t)
vc(t) x
u(k)
T
y(k) T
u(t) R2 vu(t)
vc(t) x
• If the input is a piecewise constant signal, and if the output is sampled
at the same instants of time kT in which the input changes, then:
u
u(2)
u(4)
u(1)
u(3)
u(0)
0 T 2T 3T 4T t
C. Melchiorri (DEI) Automatic Control & System Theory 36
AC&ST
Definition:
d x(t)
The model y(t) = a d t
It is not possible to
implement an
ideal derivative function
-2
-4
0 2 4 6 8 10
A = 1, ω = 4 rad/sec
4
-2
-4
0 2 4 6 8 10
Tempo (sec)
C. Melchiorri (DEI) Automatic Control & System Theory 41
AC&ST
which admits a unique solution for each initial state and for
each admissible input function, and by an output function
2 2
1.5 1.5
1 1
x, y
x, y
0.5 0.5
0 0
-0.5 -0.5
-1 -1
-1.5 -1.5
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
Tempo (s) Tempo (s)
Continuous-time
dynamic system
Discrete-time
dynamic system
u1
Examples:
• Input voltage for an electric motor -Va < v < Va
• Input flow in a tank 0<u<U
• …
Finite set
1) Time orientation: it is defined for t ≥ t0, but not necessarily for t < t0
2) Causality: its dependence on the input function is restricted to the time
interval [t0, t]:
ϕ(t, t0, x0, u1(.)) = ϕ(t, t0, x0, u2(.)) if u1|[t0,t] = u2|[t0,t]
ϕ(t, t0, x0, u(.)) = ϕ(t, t1, x1, u(.))
provided that
x1 = ϕ(t1 , t0 , x0 , u(.)) t0 ≤ t ≤ t1
C. Melchiorri (DEI) Automatic Control & System Theory 52
AC&ST
1.5 Motion
x2" 1
0.5
0
3
2 10
8
1 6
Trajectory 4
2
x1" 0 0 t
C. Melchiorri (DEI) Automatic Control & System Theory 55
AC&ST
• Selecting input at a particular instant of time (for instance, t3) allows different
orientations in space of the tangent to the trajectory at t3, namely of the state
velocity ẋ1 , ẋ2 , ẋ3
x3
t3
t
t1 t2
x(0) x2
x1
t1 t2 t3 t
C. Melchiorri (DEI) Automatic Control & System Theory 56
AC&ST
One obtains:
Output trajectory:
In conclusion:
• A system, once the differential equation of its
mathematical model has been solved, is characterized
by a state transition function
• Example:
R C R
R
vi(t) R R vi(t)
R1 vu(t) R1 vu(t)
θ(t), ω(t)
va(t)
q(t)
cr(t)
Pump: cr = kp ω, q = kq ω
Tank: dz / dt = ks q
When the two models are considered together, two equivalent states are identified (θ, z).
One of them can be ignored: in this case θ since we want to control the liquid level only.
C. Melchiorri (DEI) Automatic Control & System Theory 61
dAC&ST
x(t)
Systems and Models - Definitions
dt
• D.13
ϕ(t, tEquivalent systems:
0 , x0 , u1 (·)) = ϕ(t, t0, xthe
0 , usystems 1 1and
2 (·)) if Σu are
|[t0 ,t] Σ=2 u 2 |[t0 ,t]
equivalent if they are compatible, i.e.
T1 = T2 = T
U1 = U2 = U
Uf 1 = Uf 2 = Uf
Y1 = Y2 = Y
• Example:
L R2
ddx(t)
t
Systems and Models - Definitions dt
ϕ(t, t0 , x0 , u1 (·)) = ϕ(t, t0 , x0 , u2 (·)) if u1 |[t
ϕ(t, t0 , x0 , u1 (·)) = ϕ(t, t0 , x0 , u2 (·)) if u1 |[t0 ,
• As a matter of fact:
L R2 T1 = T2 = T
U1T1 == UT22 =
= T
U
U = U = U
UfU11 == UUf22 = U
vi(t) i0 vu(t) vi(t) vc f 1 v (t) f 2
u= Y
= Uf f
R1 YY11 = Y22 =
= YY
C
x11 ++L1L1uu
− RL1 x
!!
ẋ1ẋ1 == −
yy == R11x
R x11
! ! ẋ2 1 1
= − CR
1 2 x2 + CR12 u
ẋ2 = − CR2 x2 + CR2 u
y = x2
y = x2
m
M = M0 + m t Mass
s 0≤ f ≤F Force
f
input
• Example:
s M = M0 Mass
f
input
0≤ f ≤F Force
s0
N.B. It may happen that not all the states s can be equilibrium states,
because f is limited
Input-state-output
Difference model
Input-state-output
Global model
External
Global model
u(t)
uΔ(t) = u(t-τ) Shifted input function
0 τ
t
In time-invariant systems, the transition function and the response
function verify the following equations:
Linear systems
• Functions ϕ and γ are linear with respect to initial state and
input function
• Moreover:
1. Indistinguishable states in [t0, t1] generate the same free
response in [t0, t1]
2. A Linear System is in minimal form iff for any initial instant of
time t0 no different states generate the same free response
Equivalent statements:
• “the state x0 (or the event (t0, x0)) is controllable to x1 (or to (t1, x1))”
and
• “the state x1 (or the event (t1, x1)) is reachable from x0 (or from (t0, x0))”
D.16 Set of the states reachable at time instant t1 from the state
x0 at t0 (i.e. from the event (t0 , x0) )
D.18 Set of the states controllable at the event (t1 , x1) from the
initial time t0
D.19 Set of the states controllable at the event (t1 , x1) from any
time in [t0, t1]
A property:
x’(t0)
x(t1)
x(t0)
x”(t0) x’(t1)
Trajectory x(t)
corresponding to [t0 t1] x”(t1)
t0 t1 t
x1
x0
t0 t1 t
Let’s define:
Then
Moreover:
Projection along t on P0 of
Projection along t on P1 of
x t0 t1 t
t0 t1 t
C. Melchiorri (DEI) Automatic Control & System Theory 78
AC&ST
x0 x1
x0
t0 t1 t
The term observability denotes the possibility of deriving the initial state
x(t0) or the final state x(t1) of a dynamic system Σ when the time
evolutions of input and output in the time interval [t0, t1] are known.
• The set of all the final states consistent with the functions u(.), y(.) in the
time interval [t0, t1]
where y(.) is not arbitrary, but constrained to the set of all the output
functions admissible with respect to the initial state and the input function.
This set is defined by
• Then:
Observable Reconstructable
system system
Fully Fully
observable reconstructable
system system
1. Control between two given states: given two states x0 and x1 at two
instants of time t0 and t1, where t1 > t0, determine an input function
u(.) such that x1 =ϕ(t1, t0, x0, u(.)).
2. Control to a given output: given an initial state x0, an output value y1
at two instants of time t0, t1, where t1 > t0, determine an input u(.)
such that y1 =γ(t1, t0, x0, u(.)).
3. Control for a given output function: given an initial state x0, an
admissible output function y(.) at two instants of time t0, t1, where
t1 > t0, determine an input u(.) such that y(t)=γ(t, t0, x0, u(.)) for all
t∈[t0, t1].