Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

State Space Control of Discrete Systems

The document discusses the state-space representation of discrete systems, detailing how systems are modeled using first-order difference equations and state variables. It explains the advantages of state equations over traditional methods, including ease of simulation and the ability to handle nonlinear systems. Additionally, it covers concepts such as eigenvalues, eigenvectors, controllability, and observability, providing mathematical formulations and examples for various canonical forms of state-space representation.

Uploaded by

Emmanuel Muoka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

State Space Control of Discrete Systems

The document discusses the state-space representation of discrete systems, detailing how systems are modeled using first-order difference equations and state variables. It explains the advantages of state equations over traditional methods, including ease of simulation and the ability to handle nonlinear systems. Additionally, it covers concepts such as eigenvalues, eigenvectors, controllability, and observability, providing mathematical formulations and examples for various canonical forms of state-space representation.

Uploaded by

Emmanuel Muoka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

State-Space Representation of discrete systems

A large class of systems (linear, nonlinear, time-varying, non-time-varying, etc.) is


analyzed using the methodology of the state space, where the system is described
by a set of first-order difference equations, describing the state variables. The state
variables x1(n), x2(n), …xk (n) are defined as a (minimum) number of variables,
such that we know
1. Their values at time instance n0
2. The system input for n ≥ n0
3. The mathematical model
to determine the system status at any time n ≥ n0.
The state difference equation gives the relationship between the system
inputs, system state, and rate of change.
The advantages of the system description using the state equations method in
comparison to the conventional methods are
• The simulation and scheduling in computer systems is quite easy since they
represent a linear difference equations system.
• They facilitate the solution of control problems, such as stability and optimized
control.
• Besides the linear systems, they are also able to describe nonlinear systems,
which cannot be performed using the transfer function.
• There is the possibility of describing the state of the entire system each time;
unlike the transfer function, which connects the input with the output.
Discrete-Time State-Space Equations
The state equation of a discrete-time system is a first-order difference equation
system of the form
x (k+1) = Ax(k) +Bu(k)
(1)
The system output vector y(k) is
y(k) = C x(k) +Du(k)
(2)
The matrices A, B, C, D are called state-space matrices. Specifically, the matrix A is
a square matrix of dimension nxn, it is called the state matrix and represents the
physical (actual) system; the matrix B of dimension nxr is called the input matrix;
the matrix C of dimension mxn is called the output matrix; and the matrix D of
dimension mxr is called the feedforward matrix. In the case of a single input–single
output (SISO) system, where r = m = 1,
the system is described by the difference equations
x (k+1) = ax(k) +bu(k)
y(k) = cTx(k) +du(k)
x(0) = x0 (3)
where
c is a column vector with n elements
b is a column vector with n elements
d is a scalar and
x(0) = xo is a column vector of the initial conditions of state variables. In practice, it
is impossible to measure all the system states. But if the system mathematical

1
model is available, then we can calculate (estimate) the state vector, by using the
already measured inputs and outputs.
Eigenvalues and Eigenvectors
The elements of the system matrix depend on the components comprising the
system. Consider an n order system with column vectors x = xi (i = 1, 2…, n) and
real or complex values for the parameter λ, which satisfy the equation
Ax= λx⇒ (λ I −A) x = 0 (4)
The matrix (λ In − A) is called characteristic matrix of the system. The values of
parameter λ satisfying (λIn − A)x = 0 represent a column vector and are called
eigenvalues or characteristic values of the system, which arise from the
solution of the linear system. Eliminating the determinant of the characteristic
matrix, the characteristic polynomial of the system is revealed, such as
P (λ)=det (λI − A) = λn + an-1 λn-1+……. +a1 λ+ a0=0
(5)
The roots of P(λ), namely, its eigenvalues, denote the poles of the closed system.
The characteristic equation of the system is given by
[zI−A]=0 (6)
Solution of State Equations
1. Solution in time domain
The general solution of state vector is
k−1

k
∑ A k− j−1 Bu ( j), k≥1
x(k)=A x(0) + j=0 (7)
where Ak= Φ(k) = the transition matrix.
The exponential matrix Ak is denoted as Φ(k) and called state transition matrix,
which represents the response of the system only by the influence of the initial
conditions (i.e., the free response of the system).
The output vector is defined as
k−1
∑ Cφ(k− j−1)Bu( j)+Du(k), k≥1
y(k)=C Φ(k) x(0) + j=0
(8)
2. Solution in z-domain
The general solution of state vector is
x(k)= IZT(X(z)) = IZT[z(zI−A)-1 x(0 )+(zI−A)-1 BU(z)]
(9)
The output vector is defined as
y(k)= IZT(Y(z)) = IZT[(C(zI−A)-1 B+D)U(z)]
(10)
The state transition matrix is
Φ(k)= Ak= IZT[z(zI A)-1], k≥1
(11)
The pulse transfer function is presented as
Y(z)
H ( z)= =C ( zI− A )−1 B+D
U(z) (12)
State-Space Representation
1. Direct Form
Consider a system described by the transfer function

2
−1 −2 −m
Y ( z ) b 1 z +b2 z +.. .. . .. .. . .. ..+b m z
H ( z)= =
U(z) 1+a1 z−1 +a2 z−2 +. .. . .. ..+an z−n (13)
Solving with respect to Y(z), we have
Y ( z)=−[ a1 z−1 +a2 z−2 +. .. . .. ..+an z−n ]Y ( z )+(b1 z −1 +b2 z−2 +. . .. .. .. . .. .. .+b m z−m )U ( z)
Or
Y ( z)=(b1 U ( z)−a1 Y ( z)) z−1 +(b2 U ( z)−a2 Y (z ))z −2 +.. ... .. . (14)
The block diagram of the discrete system in direct form is given in Figure below

The state equations are

{x1(k+1)=−a1x1(k)+b1u1(k)¿}{x2(k+1)=−a2x2(k)+b2u2(k)¿}{.¿}{.¿} {}
The state equations and the system output are given in direct form as
(15)

[ ] [ ][ ] [ ]
x1 (k +1 ) −a 1 1 . . 0 x 1 (k ) b1
x 2 (k +1 ) −a 2 0 1 . 0 x 2 (k ) b2
. = . + . u(k )
. . .
x n (k +1 ) −a n 0 . . 1 x n (k ) bn
y (k )=[ 1 0 . . 0 ] x (k ) (16)
Canonical Form
Consider a system described by the transfer function of the expression (13). The
digital diagram is generated after a proper disintegration of the quotient of the
transfer function as shown below. The technique is the separation of the diagram
construction process in two steps which are connected through a new variable W(z).
Y ( z) Numerator Y ( z) U (z )
= = =
U ( z ) Denominator Numerator Denominator (17)
Step 1: Structure of U(z)/denominator =W(z)
U ( z) U ( z)
=W ( z )=
Denominator 1+a1 z +a 2 z−2 +.. . .. .. .+a n z−n
−1
(18)
The solution with respect to W(z) is
W ( z )=−a 1 z −1 W ( z)−a 2 z−2 W ( z)+...... ..+U ( z ) (19)
Step 2: Structure of Y(z)/ numerator =W(z)
Y ( z)=−b1 z−1 W ( z )−b2 z −2 W ( z)+.. .. . .. .+b m z−m W ( z) (20)
Block diagram.

3
The block diagram is illustrated below that reflects the discrete system in canonical
form, which corresponds to the expressions (19) and (20). The state equations are
given by

{x1(k+1)=x2(k)¿}{x2(k+1)=x3(k)¿}{.¿}{.¿}¿{}
And
(21)

y (k )=b m x 1 (k )+b m−1 x2 (k )+.. .+b1 x n (k )


The state equations and the system output in canonical form can be expressed in
vectors/matrices as

[ ][ ][ ] [ ]
x1 (k +1 ) 0 1 . . 0 x 1 (k ) 0
x 2 (k +1 ) 0 0 1 . 0 x 2( k ) 0
. = . + . u(k )
. 0 0 . . 1 . .
x n (k +1 ) −a n a n−1 . . a 1 x n (k ) 1

y (k )=[ bm b m−1 . . b 1 ] x (k ) (22)


Controllable Canonical Form
Consider a system described by the transfer function of the expression
m m−1
Y ( z ) b 0 z +b1 z +. .. .. . .. .. . .. .+bm
H ( z )= = n
U ( z ) z +a1 z n−1 +a2 z n−2 +. .. .. .. .+a n
(23)
We study the case when m = n.
Let
X̄ ( z ) 1
= n
U ( z ) z +α 1 z +α 2 z n−2 +.. . .. .. .+α n
n−1
(24)
The output Y(z) can be written in terms of X(z)
Y ( z )=( b 0 z m +b1 z m−1 +. .. . .. .. . .. .. .+b m) X̄ ( z )
(25)
or in the time-domain, such as
y (k )=b 0 x̄ ( k +n ) +b 1 x̄ (k +n−1)+. .. .+bn x̄ ( k ) (26)
The block diagram that reflects the discrete system in controllable canonical form is
presented in the figure below.

4
The state equations are given by
x 1 (k+1)=x 2 (k)
x 2 (k+1)=x 3 (k )
.
.
x n ( k+1)=u(k )−a1 x n (k )−a 2 x n−1 (k )−. ..−a n x1 (k ) (27)
And
y (k )=( bn −a n b0 ) x 1 (k )+ ( b n−1 −an−1 b0 ) x 2 (k )+.. .+ ( b 1−a1 b 0 ) x n ( k )+b 0 u(k )
(28)
The matrices at state space are provided by

[ ] []
0 1 . . 0 0
0 0 1 . 0 0
A= , B= . u(k )
0 0 . . 1 .
−a n a n−1 . . a1 1
C=[ b n −an b 0 bn−1 −a n−1 b 0 . . b 1−a1 b 0 ] and D=b0 (29)
Observable Canonical Form
The expression (23) can be written as
( z n+α 1 z n−1+α2 z n−1. . .. .. . .. .+α n) Y ( z )=( b0 z m +b1 z m−1+. . .. .. . .. .. . ..+b m ) U ( z )
Or
Y ( z)=b0 U ( z)−z−1 ( a1 Y ( z)−b1 U ( z))−... ... ..−z −n (a n Y ( z)−b n U ( z))
(30)
The block diagram that reflects the discrete system in observable canonical form is
presented in the following Figure.

5
The state equations are
x n ( k+1)=x n−1 (k )−a1 ( x n (k)−b0 u (k ))+b1 u( k)
x n−1 (k+1)=x n−2 (k )−a2 ( xn (k )−b 0 u(k ))+b 2 u(k )
.
.
x 1 (k+1)=−an (x n (k )−b 0 u(k ))+b n u(k ) (31)
y (k )=x n (k +b n u(k )
The matrices at state space are provided by

[ ][ ]
0 0 . . −an bn −a n b0
1 0 0 . −an−1 bn−1 −a n−1 b 0
A= 0 1 . , B= .
0 0 . . −a2 .
0 0 . 1 −a1 b1 −a1 b
C=[ 0 0 . . . 1 ] and D=b0 (32)
Jordan Canonical Form
The transfer function of the expression (23) can be rewritten in a partial fraction
expansion as
Y ( z) r r r
=b 0 + 1 + 2 +. . .. .. . .. .. . .. .. . .. ..+ n
U ( z) z−λ1 z−λ 2 z−λ n (33)
The parallel implementation of the transfer function of the latter expression is
presented in the Figure below

6
Assuming the outputs of the delay elements as state variables, it can easily be
shown that the model at state space is represented by the following matrices:

[ ] []
λ1 0 . . −an 1
0 λ2 0 . −an−1 1
A= 0 0 λ3 0 . , B= .
0 0 . . −a2 .
0 0 . 0 λn 1

C=[ r 1 r2 . . . r n ] and D=b 0 (34)


Controllability and Observability
The controllability of a system refers to whether it is possible to move a system
from a given initial state to any final state in finite time. Consider the system
described in the state space by Equations.1 and 2. This system will be controllable
when S = n. Matrix S is called controllability matrix and is derived by
S = [ B⋮AB⋮A2 B⋮… An-1 B]
(35)
An example of a noncontrollable system is presented in the Figure below, where we
can see that regardless of the level of influence of the input u1, the variable x2
remains unaffected.

The observability of a system refers to whether each position x(k) can be


determined by observing the output y(k) at a finite time. Such a system is
observable when R = n. Matrix R is called observability matrix and is given by

7
[ ]
CT
CT A
R= .
.
CT A n−1
(36)
A typical example of a non-observable system is presented in the Figure below,
where we cannot acquire information of the variable x1(k), regardless of how much
time we observe the output y(k).

Overall, a system is controllable when we can control the system operation process,
given an initial state, while a system is observable when all the provided
information about the system state must be recovered from knowledge of the
obtained measurements. In a sense, the observability is a tradeoff to the concept of
controllability, which is related to the acquisition of certain controlling tools that
allow us to achieve a desired state. In the automatic control theory, concepts of
controllability and observability are related to the design of the controller, which
solves the problem of regulation through the positioning of the hedged system
poles at desired positions. The digital control engineer selects the appropriate
measuring tools
(transducers, sensors, etc.) and decides the variables to be measured and at what
point, so that the system is observable. Also, the engineer decides how many
directional elements are required in order for the system to be controllable.
State-Space Discretization
The transformation of a continuous-time system to an equivalent discrete time
system, in the state space, is achieved by two methods.
• The first is based on numerical integration and differentiation techniques for
solving the differential equation ẋ (t)= Ax(t)+Bu(t).
• The second method is based on the sampling of input signal u(t) and holding the
sample values u(kT) for a time period equal to the sampling period T (hold
equivalence).
Discretization with the Zero-Order Hold Method
The resultant system, using this method, is expressed as
x ((k +1)T )= Ad x (kT )+Bd u(kT )
y (kT )=C d x (kT )+D d u( kT )
Where

[ ]
A d =e AT =L−1 [ ( sI− A )−1 ] , Bd =(e AT −I ) A−1 B=L−1 ( sI −A )−1 B⋅
1
s t =T if A is invertible. Or
C d =C , D d =D
Example 1

8
Consider the block diagram of the following scheme.
a. Derive the state equations of the given system.
b. Derive the transfer function H(z) = Y(z)/R(z).

Solution
a. Assume the state variables to be x1(k) and x2(k) at the output of the two delay
elements, thus the desired state equations are presented as
x 1 (k +1)=x 2 (k )
x 2 (k +1)=−0. 3 x 1 (k )−1 .1 x 2 (k )+r(k )
and
y (k )=−0. 3 x 1 (k )−1 .1 x 2 (k )+r(k )
Hence, the state equations can be written in vector form as

[ ][
x1 (k +1 ) 0
x 2 (k +1 )
=
−0 . 3
1
−1 .1 ][ ][ ]
x 1 (k ) 0
+ r(k )
x 2 (k ) 1
x 2 (k +1)=−0 .3 x 1 ( k )−1 . 1 x 2 (k )+r (k )
and
y (k )=[ −0. 3 −1 . 1 ] 1
[ ]
x (k )
x 2 (k )
+r(k )

Example 2

9
Solution

b. To calculate the state vector x(k), we have

Example 3
Consider a discrete-time system with the difference equation
y(k + 2) + 5y(k + 1) + 3y(k) = u(k + 1) + 2u(k)
Calculate (a) its transfer function and (b) the state-space model.

10
11

You might also like