Xn| State equations: A set of n simultaneous, first-order differential equations with n variables, where the n variables to be solved are the state variables Output equation: The algeb
Trang 1p SYSTEM DYNAMICS & CONTROL
TP.HCM
CHAPTER 6 STATE SPACE MODELING
Dr Vo Tuong Quan HCMUT - 2011
Trang 2State Space Modeling
`
State: The state of a dynamic system is the smallest set of variables
State Variables: The state variables of a dynamic system are the variables making up the smallest set of variables that determine the state of the dynamic
system
State Vector: If n state variables are needed to completely describe the behavior
of a given system, then these n state variables can be considered the n
components of a vector x
x= [x, xX Xn|
State equations: A set of n simultaneous, first-order differential equations with
n variables, where the n variables to be solved are the state variables
Output equation: The algebraic equation that expresses the output variables of a system as linear combinations of the state variables and the inputs
© 2011 — Vo Tuong Quan
Trang 3Any An2 + Ann by!
Depending on how we chose the state variables, a system can be described by many different state equations
© 2011 — Vo Tuong Quan
Trang 4fy State Space Modeling
Consider the mechanical system shown in Figure We assume that the system is linear The external force u(t) 1s 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
Find the block diagram of the mechanical system and state space equation
Trang 5
+2 From the diagram the system equation 1s ° 3
my+by+ky=u
This system is of second order This means that the system involves two
integrators Define state variables x,(t) and x2(t) as
x(t) = y(t), x2(t) = y(t)
We obtain: X14 = X2
X2 = ky — by) + u
The output equation is y = x,
Vector matrix form can be written as
Trang 7State Space Modeling
Trang 8fy State Space Modeling
Find the state equations for the translational mechanical system shown in Figure
Frictionless
© 2011 - Vo Tuong Quan
Trang 9State Space Modeling
Now let a2 =— and — > =—
Select x1,X2,X3 and vz as state variable
Add — = = v, and ax 7, = V2 to complete the set of state equations
© 2011 — Vo Tuong Quan
Trang 10State Space Modeling
© 2011 - Vo Tuong Quan
Trang 11State Space Modeling
Trang 12fy State Space Modeling
The state-space representation of the translational mechanical system 1s
Trang 13State Space Modeling
BK
ca Method for establishing state equations from differential equations
Case#1: the differential equation do not involve the input derivatives
The differential equation describing the system dynamics 1s:
+ Aany(t) = bou(t)
Xn (t) = Xn-1(0)
13
© 2011 — Vo Tuong Quan
Trang 14State Space Modeling
Trang 15State Space Modeling
BK
ca Method for establishing state equations from differential equations
Write the state equations describing the following system:
2y(t) + Sy(t) + 6y(t) + 10y(t) = ult)
Trang 16Bk State Space Modeling
ca Method for establishing state equations from differential equations
Case #2: the differential equation involve the input derivatives
Consider a system described by the differential equation
Ao qẹn + 11-1 Fee FAn-4 dt + agy(t)
Define the state variables: The first state is the system output and The i““ state
(i = 2 n) is chosen to be the first derivative of the (i — 1)" state minus a
quantity proportional to the input:
x(t) = y(t)
X2(t) = x1(t) — Byr(t) x3(t) = x2(t) — Bor (t)
© 2011 — Vo Tuong Quan
Trang 17State Space Modeling
Trang 18State Space Modeling
Trang 19State Space Modeling
BK
ca Method for establishing state equations from differential equations
Write the state equations describing the following system:
2y(t) + Sy(t) + 6y(t) + 10y(t) = 10u(t) + 20u(t)
Trang 20State Space Modeling
—15
© 2011 - Vo Tuong Quan
20
Trang 21đà State Space Modelin
c2 State space equation in controllable canonical form : 3
Consider a system described by the differential equation
Or equivalently by the transfer function:
bos™ + bys™ 1 + + Dy_1s + bm
G(s) =
(s) đoS” + a+s~† + - + an_1S + dạn
21
© 2011 — Vo Tuong Quan
Trang 22đà State Space Modelin
c2 State space equation in controllable canonical form : 3
Trang 23đà 2 State space equation in controllable canonical form State Space Modelin : 3
Write the state equations describing the following system:
2y(t) + y(t) + Sy(t) + 4y(t) = ù(t) + 3u(t)
Trang 24
c3 State space equation in controllable canonical form : 3
Establish the state equations describing the system below:
Trang 25đà State Space Modelin
c2 State space equation in controllable canonical form : 3
Define the state variables as in the block diagram:
Trang 26State Space Modeling
=> xX3(t) = —x,(t) + r(t) Combining all of them we ha the state equations:
Trang 27đà State Space Modelin
c2 Convert from state equations to transfer functions - 3
Trang 28State Space Modeling
ca Convert from state equations to transfer functions
Trang 29đà State Space Modelin
c2 Convert from state equations to transfer functions - 3
Solution to the state equation: x(t) = Ax(t) + Bu(t) is:
Trang 30
c3 Convert from state equations to transfer functions - 3
Example 2: Find the state-space representation in phase-variable form for the transfer function shown in Figure below:
Trang 31
c3 Convert from state equations to transfer functions - 9
Trang 32
c3 Convert from state equations to transfer functions - 3
Select the state variables: Xj = Cc
Trang 33fy State Space Modeling
Convert from state equations to transfer functions
Example 3: Give the system defined follow equation, find the transfer
Trang 34State Space Modeling
Convert from state equations to transfer functions
Trang 35
c3 Convert from state equations to transfer functions - 9
Example 4: Find the state-space equation and output equation for the system defined by
Trang 36đà State Space Modelin
c2 Convert from state equations to transfer functions - 3
Trang 37đà State Space Modelin
c2 Convert from state equations to transfer functions - 3
Example 5: Find the state-space model of the system shown in Figure below:
© 2011 — Vo Tuong Quan
37
Trang 38
Solution: We obtain
Which can be written as
© 2011 — Vo Tuong Quan
State Space Modeling
Convert from state equations to transfer functions
X; (5) 10 Xs) s+5
X3(5) _ 1
U(s)— X3(s) - s
X:(s) _ 1 Xi(s) s + Y(s) = X,(s)
sX,(s) = —5X,(s) + 10X,(s) sX,(s) = —X,(s) + U(s)
sX3(s) = X,(s) — X3(s)
Trang 39fy State Space Modeling
Convert from state equations to transfer functions
By taking the inverse Laplace transforms of the previous four equations, we