Lecture-7 State Space Lec 1 Abdelbast
Lecture-7 State Space Lec 1 Abdelbast
اﻛﺎدﯾﻣﯾﺔ اﻟﺷروق
اﻟﻣﻌﮭد اﻟﻌﺎﻟﻰ ﻟﻠﮭﻧدﺳﺔ
ﻗﺳم اﻟﻘوى واﻵﻻت اﻟﻛﮭرﺑﯾﺔ
1
5/24/2021
Lecture Outline
Introduction
Modern control theory is contrasted with conventional control theory
in that the former is applicable to multiple-input, multiple-output systems,
which may be linear or nonlinear, time invariant or time varying, while
the latter is applicable only to linear time invariant single-input, single-
output systems.
2
5/24/2021
Electrical Systems
v Ri
di
vL
dt
dv
iC
dt
Mechanical Systems
F ky
dy
FB
dt
d2y
F m 2
dt
3
5/24/2021
T k
d
T B
dt
d 2
TJ 2
dt
System Modeling
• Mechanical Systems – Newton´s second law (inertial frame)
d d
F dt p dt (mv)
i
i
I
i
i 0, V
i
i 0
where I is the algebraic (minus sign for currents leaving the node)
i
i
sum of the currents entering a node and V is the algebraic sum of the
i
i
voltages in a loop
4
5/24/2021
di
v v R v L v C Ri L vC
dt
dv C d 2vC
RC LC vC
dt dt 2
d2y dy
m 2 B ky F
dt dt
5
5/24/2021
d 2 d
J 2 B k T
dt dt
Definitions
• State of a system: We define the state of a system at time t0 as the
amount of information that must be provided at time t0, which,
together with the input signal u(t) for t t0, uniquely determine the
output of the system for all t t0.
• State Variable: The state variables of a dynamic system are the smallest
set of variables that determine the state of the dynamic system.
6
5/24/2021
• The dynamic system must involve elements that memorize the values of
the input for t > t1 .
̇ = ( , ,⋯, ; , ,⋯, ; )
̇ = ( , ,⋯, ; , ,⋯, ; )
̇ = ( , ,⋯, ; , ,⋯, ; )
7
5/24/2021
= ( , ,⋯, ; , ,⋯, ; )
• If we define
( , ,⋯, ; , ,⋯, ; )
( , ,⋯, ; , ,⋯, ; )
= , , =
⋮ ⋮
( , ,⋯, ; , ,⋯, ; )
= ⋮
( , ,⋯, ; , ,⋯, ; )
= ( , ,⋯, ; , ,⋯, ; )
⋮ , , =
⋮
( , ,⋯, ; , ,⋯, ; )
̇ = ( , , ) State Equation
= ( , , ) Output Equation
• If vector functions f and/or g involve time t explicitly, then
the system is called a time varying system.
8
5/24/2021
B C
9
5/24/2021
Example-1
• An electric circuit consisting of a resistor, inductor and capacitor as shown in figure.
Derive a state variable model when: selecting the state variables are Vc(t) and i(t) and
the output is Vc(t)
̇ = − + ̇ =
10
5/24/2021
Example-1
̇ = − + ̇ =
̇ − 1 1
−
= 1 + ( ) State Equation
0 0
̇
0
( )= 0 1 + ( ) Output Equation
0
Example-2
• Consider the mechanical system shown in figure. We assume that the
system is linear. The external force u(t) is the input to the system, and the
displacement y(t) of the mass is the output. The displacement y(t) is
measured from the equilibrium position in the absence of the external force.
This system is a single-input, single-output system.
̈( ) + ̇( ) + ( )= ( )
= ( )
= ̇( )
11
5/24/2021
Example-2
= ( ) = ̇( ) ̈( ) + ̇( ) + ( )= ( )
• Then we obtain
̇ = ()
1
̇ =− ̇ − + ( )
• Or
̇ = ()
1
̇ =− − + ( )
• The output equation is
=
Example-2
1
̇ = () ̇ =− − + ( ) =
• In a vector-matrix form,
x1 (t ) 0 1 x (t ) 0
x (t ) k b 1 1 u (t )
2 m x2 (t )
m m
x (t )
y ( t ) 1 0 1
x 2 (t )
12
5/24/2021
Example-2
• State diagram of the system is
̇ = ()
1
̇ =− − + ( )
Block Diagram
Example-3
• Obtain state equations of following mechanical translational
system and draw the state diagram. Where f(t) is input and x1 is
output.
d 2 x1 dx1 d 2 x2
M1 D Kx1 Kx2 0 f (t ) M 2 Kx 2 Kx1
dt 2 dt dt 2
13
5/24/2021
Example-3
• Now dx1
v1 d 2 x1 dv1
dt dt 2 dt
dx2
v2 d 2 x2 dv2
dt dt 2 dt
• Choosing x1, v1, x2, v2 as state variables
dx1
v1
dt
dv
M 1 1 Dv1 Kx1 Kx2 0
dt
dx2
v2
dt
dv
f (t ) M 2 2 Kx 2 Kx1
dt
Example-3
• In Standard form
dx1
v1
dt
dv1 D K K
v1 x1 x2
dt M1 M1 M1
dx2
v2
dt
dv2 K K 1
x2 x1 f (t )
dt M2 M2 M2
14
5/24/2021
Example-3
dx1 dv1 D K K dx2
v1 v1 x1 x2 v2
dt dt M1 M1 M1 dt
dv2 K K 1
x2 x1 f (t )
dt M2 M2 M2
• In Vector-Matrix form
0 1 0 0 0
x1 K D K x1
0
0
v1 M 1 M1 M1 v
1 0 f (t )
x 2 0 0 0 1 x2
K K 1
v 2 M 0
M2
0 v2
M2
2
End of Lecture 1
15