Chapter - 4
Chapter - 4
4.1 Introduction
Conventional methods are conceptually simple and require only a
reasonable number of compu- tations, but they are applicable only to
linear time-invariant systems having a single input and single output.
They don’t apply to nonlinear systems except in simple cases. The
conventional methods do not apply to the design of optimal and adaptive
control systems, which are mostly time varying and/or nonlinear.
A modern control system may have many inputs and many outputs, and
these may be interrelated in a complicated manner. The state-space
methods for the analysis and synthesis of control systems are best suited
for dealing with multiple input multiple output systems that are required
to be optimal in some sense.
The state-space method is based on the description of system equations
in terms of n first-order difference equations or differential equations,
which may be combined into a first-order vector- matrix difference
equations or differential equations.The use of vector-matrix notation
greatly simplifies the mathematical representation of the systems of
equations.
State: The state of a dynamic system is the smallest set of variables (called
state variables) such that the knowledge of these variables at t = t0, together
with the knowledge of the input for t ≥ t0, completely determines the
behavior of the system for any time t ≥ t0. Note that the concept of state
is by no means limited to physical systems.
State Space: The n-dimensional space whose coordinate axes consist of the x1
axis, x2 axis, . .
. ,xn axis is called a state space. Any state can be represented by a point in the
state space.
2
that are involved in the modeling of dynamic systems: input variables, output
variables, and state variables.
For linear time-varying discrete-time systems, the state equation and output
equation may be simplified to
x(k + 1) = G(k)x(k) + H(k)u(k)
y(k) = C(k)x(k) + D(k)u(k)
where
x(k) = n-vector (state vector) y(k) = m-vector
(output vector)
u(k) = r-vector (input vector) G(k) = n ∗ n matrix (state
matrix) H(k) = n ∗ r matrix (input matrix) C(k) = m ∗
n matrix (output matrix) D(k) = m ∗ r matrix (direct
transmission matrix)
3
where u(k) is the input and y(k) is the output of the system at the kth
sampling instant. Note that some of the coefficients ai (i = 1, 2, ..., n) and bj
(j = 0, 1, 2, ..., n) may be zero.Equation (5.3) can be written in the form of
the discrete transfer function as
Y (z) b0 + b1z−1 + · · · + bnz−n
=
U (z) 1 + a1z−1 + · · · (4.4)
+ an z−n
4
or
Y (z) b0zn + b1zn−1 + · · · +
U (z)= (4.5)
bn
zn + a zn−1 + · · · +
a
1 n
5
x1(k
y(k) =
[b —
b
a —a ··· — a ) + b u(k) (4.7)
b b b ] x2(k
.
b
) .
n n 0 n− n−1 1 1 0
1 0 0
xn(k)
Equations (4.6) and (4.7) are the state equation and output equation,
respectively. The state- space representation given by Equations (4.6)
and (4.7) is commonly called a controllable canonical form.
From Equation (4.4) we have
Y (z)
b0 + b1z−1 + · · · + bnz−n
=
U (z) 1 + a1z−1 + · · · + anz−n
(b1 − a1b0)z−1 + (b2 − a2b0)z−2 + · · · + (bn − anb0)z−n
= b0 + 1 + a z−1 + a z−2 + · · · + a z−n
1 2 n
This equation can be written as follows:
(b1 − a1b0)z−1 + (b2 − a2b0)z−2 + · · · + (bn − anb0)z−n
Y (z) = b0U (z) 1 + a1z−1 + a2z−2 + · · · −n U (z) (4.8)
+ z
+ an
Let us define
ˆ (b1 − a1b0)z−1 + (b2 − a2b0)z−2 + · · · + (bn − anb0)z−n
Y (z) = 1 + a z−1 + a z−2 + · · · −n U (z) (4.9)
+a z
1 2 n
6
From this last equation the following two equations may be obtained:
an
d
Yˆ (z) = (b1 − a1b0)z−1Q(z) + (b2 − a2b0)z−2Q(z) + · · · + (bn − anb0)z−nQ(z)
(4.12)
Then clearly we
have zX1(z) = X2(z)
zX2(z) = X3(z)
.
.
zXn−1(z) = Xn(z)
in terms of difference equations, the preceding n − 1 equations become
x1(k + 1) =
x2(k)
x2(k + 1) = (4.14)
x3(k)
.
.
xn−1(k + 1) =
xn(k)
7
By use of this last equation, Equation (4.10) can be written in the form
8
2. Observable canonical form: The state-space representations for the
discrete-time sys- tem given by Equation (4.3),(4.4), or (4.5) may be
put in the form given by the following equations:
x1(k + 1) 0 0 ··· 0 −an x1(k) bn − anb0
0
x2(k + 1) 1
· · 0 · 0 0 −an−1 x2(k) bn−1 − an−1b0
. = . . . . + . u(k)
. .
. . . . . . . .
x n− (k + 1) 0 0 ··· 1 −a2 xn− (k) b2 − a 2 b0
1 1
xn(k + 0 0 0 −a xn(k) b1 − a 1 b0
1) ·· 0 1 1 (4.1
· 7)
9
x1(k
)
y(k) = [0 0 · · · 0 x2(k
1] + b0u(k) (4.18)
)
.
.
xn−1(k)
xn(k)
Equations (4.17) and (4.18) are the state equation and output
equation, respectively. The state-space representation given by
Equations (4.17) and (4.18) is commonly called a observ- able canonical
form. From Equation (4.4) we have
Y (z)
b0 + b1z−1 + · · · + bnz−n
=
U (z) 1 + a1z−1 + · · · + anz−n
Y (z)−b0U (z)+z−1[a1Y (z)−b1U (z)]+z−2[a2Y (z)−b2U (z)]+· · ·++z−n[anY (z)−bnU
(z)] = 0 or
Y (z) = b0U (z)+z−1 b1U (z) − a1Y (z) + z−1 b2U (z) − a2Y (z) + z−1 [b3U (z) − a3Y (z)
}
+···]
(4.19)
Now define the state variables as follows:
10
equation by z, we obtain
11
1
x 1(k
)
y(k) = [c c ··· + b u(k) (4.23)
x2(k)
c ] .
1 2 n 0
.
xn(k)
The system discrete transfer function can be modified as follows:
Y (z)
U (z)= b0nz + b1n−1
zn−1 + · · · + bn
n
z +a z +···+a
12
1 n
13
Since all poles of the discrete transfer function Y (z)/U (z) are distinct, Y
(z)/U (z) can be expanded into the following form:
Y (z)
= b0 c1 c2 + · · · + c n
U (z) +z − p +z − p (4.25)
1 2 z − pn
Equation (4.25) can be written in the form
c c c
Y (z) = b U (z) + 1 U (z) + 2 U (z) + · · · + n U (z) (4.26)
0
z − p1 z − p2 z − pn
Let us define the state variables as
follows:
1 U
X1(z) =
p z− 1 (z)
1
X2(z) = U (4.27)
p z− 2 (z)
.
.
1
Xn(z) = U (z)
z − pn
Then Equation (4.27) can be rewritten as
zX1(z) = p1X1(z) + U
(z)
zX2(z) = p2X2(z) + U (4.28)
(z)
.
.
zXn(z) = pnXn(z) + U
(z)
x1(k + 1) = p1x1(k) +
u(k)
x2(k + 1) = p2x2(k) + (4.30)
u(k)
.
.
xn(k + 1) = pnxn(k) +
u(k)
an d
14
y(k) = c1x1(k) + c2x2(k) + · · · + cnxn(k) + b0u(k) (4.31)
Rewriting the state equation and the output equation in the form of
vector-matrix equations, we obtain Equations (4.22) and (4.23).
15
4. Jordan canonical form: If the pulse transfer function given by
Equation (4.3),(4.4), or (4.5) involves a multiple pole of order m at z = p1
and all other poles are distinct, then the state equation and output
equation may be given as follows:
x1(k + 1) p1 0 ··· 0 |
0 ·· 0 x1(k) 0
·
1
x2(k + p1 ··· 0 |
0 ·· 0 x2(k 0
1) . . | . ) .
. . · . .
. 0 1 . .
1
. 0 . . · · · p1 |
. 0 .
u(k)
xm(k + = . . xm(k)
0 ·· +
1) 0
· 1
.
0 .
−−−−− − − − − − |
− − −−− −
−
x
xm+1(k + ··· 0 ··· . (k)
|
0 m+1
1) . .
0 0 Pm+1 0
. . . | . .
. . . . . . . .
xn(k + 1) 0 0 ··· 0 |
0 ··· xn(k) 1
(4.32)
pn
0
x1(k)
y(k) = [c c
··· x2(k) + b u(k) (4.33)
c ]
1 2 n . 0
.
xn(k)
The solution of Equation (4.34) for any positive integer k may be obtained
16
directly by recursion, as follows:
x(1) = Gx(0) + Hu(0)
x(2) = Gx(1) + Hu(1) = G2x(0) + GHu(0) + Hu(1)
x(3) = Gx(3) + Hu(3) = G3x(0) + G2Hu(0) + GHu(1) + Hu(2)
.
.
17
Clearly, x(k) consists of two parts, one representing the contribution of
the initial state x(0) and the other the contribution of the input u(j),
where j = 0, 1, 2, ..., k − 1. The output y(k) is given by
Σ
k−1
y(k) = CGkx(0) + C Gk−j−1Hu(j) + Du(k) (4.37)
j=0
as
x(k) = Ψ(k)x(0) (4.39)
where Ψ(k) is a unique n ∗ n matrix satisfying the condition
k−1
Σ
= Ψ(k)x(0) + Ψ(j)Hu(k − j − 1) (4.43)
j=0
k−1
Σ
y(k) = CΨ(k)x(0) + C Ψ(j)Hu(k − j − 1) + Du(k) (4.45)
j=0
18
Taking the z transform of both sides of Equations (4.46), we get
x(k) = Z−1 (zI − G)−1z x(0) + Z−1 (zI − G)−1HU (z) (4.48)
and
Σ
k−1
where k = 1, 2,
3, ...
Notice that the solution by the z transform method involves the process
of inverting the matrix (zI − G), Which may be accomplished by analytically
means or by use of a computer routine. The solution also requires the
inverse z transforms of (zI − G)−1z and (zI − G)−1HU (z).
Example: Obtain the state transition matrix of the following discrete-time
system:
y(k) = Cx(k)
0
−0.1
6
Then obtain the state x(k) and the output y(k) when the input u(k) = 1 for k
= 0, 1, 2, ... Assume that the initial state is given by
" # " #
x1(0) 1
x(0) = =
x2(0
19 −
) 1
From Equation(4.41) and (4.49) the state transition matrix Ψ(k) is
20
Therefore, we first obtain (zI − G)−1:
" #−1
z −1
(zI − G) −1
=
0.1 z +
6 1
z+1 1
(z + 0.2)(z + (z + 0.2)(z +
= 0.8)
0.8)
−0.16 z
(z + 0.2)(z + (z + 0.2)(z +
0.8) 0.8)
4/3 −1 / 3 5/3 −5 / 3
+ +
z + 0.2 z + z+ z + 0.8
= 0.8 0.2
−0.8/3 0.8/3 −1/3 4/3
+ +
z+ z+ z+ z+
0.2 0.8 0.2
The state transition matrix Ψ(k) is now obtained 0.8as follows:
22
(z2 + 2)z
(z + 0.2)(z + 0.8)(z −
= 1)
(−z2 + 1.84z)z
(z + 0.2)(z + 0.8)(z −
1)
−17 z 22 z 25 z
+ +
6 z + 0.2 9 z+ 18 z − 1
= 0.8
3.4 z
−17.6
z+ 7 z z−
18
6 0.8 +1
z
+
z+ 9
Thus, the state vector x(k)0.2 is given by
17 22 25
− (−0.2)k + (−0.8)k +
x(k) = Z [X(z)] =
−1
6 9 18
3.4 17.6 7
(−0.2)k − (−0.8)k +
6 9 18
Finally, the output y(k) is obtained
as follows:
17 22 25
− (−0.2) +
k
(−0.8) +
k
y(k) = Cx(k) = [1 0] 6 9 18
3.4 17.6 7
(−0.2)k − (−0.8)k +
6 9 1
17 22 25 8
=− (−0.2)k + (−0.8)k +
6 9 18
23