Unit I Discrete State-Variable Technique 9
Unit I Discrete State-Variable Technique 9
ADC: The analog signal is converted into digital form by A/D conversion system. The
conversion system usually consists of an A/D converter proceeded by a sample-and-hold device.
DAC: The digital signal coming from digital device is converted into analog signal.
1
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
State variable model of SISO discrete system consists of a set of first-order difference equations
i. Relating state variables x1(k), x2(k) ,…. xn(k) of the discrete time system to the input
u(k).
ii. Relating output y(k) algebraically to state variables and the input.
Thus, the dynamics of a linear time-invariant system is described by the following two
equations.
x(k 1) Fx(k ) gu (k )
y (k ) Cx(k) du(k)
Where equation (1) is called ‘state equation ‘and equation (2) is called ‘output equation’. The
equations together give ‘state variable model’ of the system.
In equation (1) and (2)
X(k) is called state vector
U(k) is the system input,
Y(k) is output
‘F’ a constant matrix, ‘g’- a constant column matrix and
‘c’ is a constant row matrix
‘d’ is a scalar coupling between input and output.
2
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
g1
g2
g ..
,
..
g
n
c c1 c2 .. .. cn nx1
Where d is a scalar
3
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
4
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
X (k ) 1
ZI F 1
Z x(0)
Also, F k (k ) 1
ZI F Z 1
1
x ( 0)
0
y ( k ) x2 ( k )
0 1
F
0.21 1
F K PK P 1
z 1 1
z z 0.21
2
z z 0.21
2
zI F
1
0.21 2
2
z z 0.21 z 2 z 0.21
z z z z
1.75 z 0.3 0.75 z 0.7 2.5
z 0.3
2.5
z 0.7
zI F 1 z
z z z z
0.525 z 0.3 0.525 z 0.7 0.75
z 0.3
1.75
z 0.7
5
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
zI F
z 0 0 1
0 z 0.21 1
1K 0 .. .. 0
0 2K .. .. 0
P : P 1
:
0 K
0 .. .. n
Where’ is the transformation matrix that transforms ‘F’ into diagonal form
For the previous example, FK can be found as follows using Similarity Transformation method.
Given 0 1
F
0.21 1
z z z z
1.75 z 0.3 0.75 z 0.7 2.5
z 0.3
2.5
z 0.7
zI F 1 z
z z z z
0.525 0.525 0.75 1.75
z 0.3 z 0.7 z 0.3 z 0.7
2 0.21 0
6
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
0 0 1 1
I F
0 0.21 1 0.21 1
1 0.3, 2 0.7
As ‘F’ is in the comparison form, the matrix ‘P’ can be written as
0 .3 0
P 1 FP
0 0.7
1 1 1 1
P
1 2 0.3 0.7
1.75 2. 5
P 1
0.75 2.5
0.3K 0
K
0 0.7 K
Given 0 1
F
0.21 1
(0.3) K 00.3 1
(0.7) K 00.7 1
0 1.75(0.3) K 0.75(0.7) K
1 2.5(0.3) K 2.5(0.7) K
( K ) F K 0I 1F
1.75(0.3) K 0.75(0.7) K 2.5(0.3) K 2.5(0.7) K
(K )
0.525(0.3) K 0.525(0.7) K 0.75(0.3) K 1.75(0.7) K
For the previous example, FK can be found as follows using Caley Hamilton Theorem.
Given 0 1
F
0.21 1
The Eigen values are -0.3 and -0.7. Since, F is of second order, the polynomial will be of
the form
g ( ) 0 1
(0.3) K 00.3 1
(0.7) K 00.7 1
0 1.75(0.3) K 0.75(0.7) K
1 2.5(0.3) K 2.5(0.7) K
( K ) F K 0I 1F
8
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
Therefore, the state diagram, as shown in Figure, consists of a single branch with gain s−1
The necessary and sufficient condition for the system to be completely observable is that the
‘nxn’ observability matrix
c
cF
V cF 2
....
cF n 1
Has rank equal to n, i.e., i.e., (V)=n.
CONTINUOUS STATE SPACE SYSTEM TO DISCRETE STATE SPACE SYSTEM
The continuous state equation of the plant is
x(t ) Ax(t ) bu (t )
y Cx(t )
The Discrete state equation of the plant is
x(k 1) Fx(k ) gu (k )
y (k ) Cx(k )
The transformation is
e At L1 sI A
1. Find 1
2. Calculate F e AT
3. Calculate T
g e A bd
0
Example:
0 1 0
A , b , c 1 0
0 1 1
T 1 sec
The system is
1 1 e t 1 1 e T
e
At
F e AT
0 et 0 e T
T
0 1 e
d
T 1 e
T T
g e bd T
A
1 e T
0
e d
0
LOSS OF CONTROLLABILITY AND OBSERVABILITY DUE TO SAMPLING
The Transfer is
Y ( s) 2
X (s) s 2 2
10
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
U g Fg 2sin T 1 cos T
c
V sin T
cF
The controllability and observability are preserved only if
Re i Re j
2n
Im i j
T
n 1, 2,.......
STABILITY TESTS OF DISCRETE-DATA SYSTEM
Jury's stability test
F ( z ) an z n an 1 z n 1 an 2 z n 2 ..... a2 z 2 a1 z a0
Necessary condition is
F(1)>0 and (-1)nF(-1)>0
The total number of rows are 2n-3
Sufficient condition (2n-3 row will be there)
th
The k element of row-3 is given by
a an k b bn 1 k
bk 0 , ck 0
an ak bn 1 bk
Sufficient conditions
(n-1) conditions
11
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
a0 an
b0 bn 1
c0 cn 2
....
STATE OBSERVER
Determination of observer Gain Matrix (m)
Method -1
1. Check the Observability (Qb)
2. Determine the desired char polynomial
1 2 ...... n n 1 n1 .... n1 n
3. Determine the original char polynomial
I F n a1 n1 a2 n2 .... an1 an
4. Determine the transformation matrix (Po)
Po W QbT ,
c an 1 an 2 .... a2 a1 1
cF a
n 2 an 3 .... a1 1 0
Qb cF 2 , W ... ... .... ... ... ...
.... a1 1 .... 0 0 0
cF n 1 1 0 .... 0 0 0
5. Determine the Observer Gain Matrix (m)
n an
m1 a
m n 1 n 1
m 2 Po1 ....
...
2 a2
mn 1 a1
12
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
I F mg 0
3. Equate the coefficients of polynomials
Method3- Observer design
1. Determine the desired characteristic polynomial
1 2 ...... n n 1 n1 .... n1 n I
2. Determine the matrix ф(F) using the coefficient of desired characteristic polynomial.
( F ) F n 1 F n1 .... n 1F n I
3. Calculate the state feedback gain matrix (K) using Ackermann’s formula.
0
0
m ( F )Qb1 ...
0
1
n 1
P1 F
5. Determine the state feedback gain matrix
K n an n1 an1 .... 2 a2 1 a1 Pc
Note:
If the given system state model is in controllable phase variable form then Pc=I (unit
matrix)
13
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
Example
Design a state feedback controller which will give closed-loop poles at -2, -1±j.
x1 (k 1) 0 1 0 x1 (k ) 0
x (k 1) 0 0 1 x ( k ) 0 u ( k )
2 2
x3 (k 1) 0 2 3 x3 (k ) 10
Solution:
Qc g Fg F 2 g
0 0 10
0 10 30 1000 0
10 30 70
0.1 0 0
Desired characteristics polynomial
1 2 3 2 1 j 1 j
3 4 2 6 4
Here, 3=4, 2=6, 1=4
Original characteristics polynomial
1 0 0 0 1 0
I F 0 1 0 0 0 1
0 0 1 0 2 3
3 3 2 2 0
Here
a3 =0, a2 =2, a1 =3,
P1 0 0 1 * Qc1
P1 0.1 0 0
Pc P1 F 0 0.1 0
P1 F 2 0 0 0.1
The state feedback gain matrix is
K 3 a3 2 a2 1 a1 Pc
4 0 6 2 4 3 Pc
0.4 0.4 0.1
14
EI6801 COMPUTER CONTROL OF PROCESSES Dept. of EIE and ICE
15