Professional Documents
Culture Documents
CHAPTER 4
4.1 INTRODUCTION
The design of systems using state space model for the design is
called as modern control design and its is having an advantage of providing a
complete (internal) description of the system. The power of state variable
method is the design can be done with more than one control input and also
the inner variables (state variables) are used for feedback for satisfying the
desired performance.
In this chapter, state controller and observer are designed using the
reduced second order model obtained using the suggested technique.
Examples from chapter 2 are considered for the design of state controller and
state observer.
In the control system design, state feedback requires all the state
variables for all the time. In most of the practical situations, the availability of
all the state variables for the measurement is not possible and for such cases,
100
b m s m b m 1 s m 1 b m 2 s m 2 ........ b 0
s n a n 1 s n 1 a n 2 s n 2 .......... .... a 0
G (s) (4.1)
Ax Bu
.
x (4.2)
y Cx Du (4.3)
where,
u is the input
y is the output
ª 0 0 º
« 0 0 »»
1 0 . . .
«
0 1 . . .
« . . »
« »
. . . . .
A is the state vector A « . . »
« . . »
. . . . .
« »
. . . . .
« 0 1 »
« a a n 1 »¼
0 0 . . .
¬ 0 a1 a2 . . .
ª0º
«0»
« »
«.»
« »
B is the input vector B «.»
«.»
« »
«.»
«1 »
¬ ¼
u Kx (4.4)
where,
The closed loop dynamics of the system i. e. the system with state
feedback controller is represented in Equations (4.5) and (4.6):
sI ( A BK ) 0 (4.5)
ª º
« »
0 1 0 . . . 0
« »
0 0 1 . . . 0
« »
« »
. . . . . . .
( A BK ) « » (4.6)
« »
. . . . . . .
« »
. . . . . . .
« »
«( a k ) ( a k ) ( a k ) ( a n1 k n1 )»¼
0 0 0 . . . 1
¬ 0 0 1 1 2 2 . . .
b m s m b m 1 s m 1 b m 2 s m 2 ........ b 0
( a n 1 k n 1 ) s n 1 ( a n 2 k n 2 ) s n 2 ...... ( a 0 k 0 )
G contr ( s )
sn
(4.7)
103
4.2.1 Pseudo Code for the Design of State Feedback Controller for
LTICS
If (system is controllable)
Endif
104
Step 1: Get the higher order original system in state space model as in
Equations (4.2) and (4.3).
Step 3: Convert the state space model into transfer function model using the
Equation (4.8):
G (s) C ( sI A ) 1 B (4.8)
Step 5: Obtain the controllable canonical form (phase variable form) of the
second order reduced model as written in Equations (4.2) and (4.3).
Step 6: Using the state model of reduced system, obtain the characteristic
polynomial of the given system using the Equation (4.9)
sI A 0 (4.9)
s2+a1s+ a2 =0 (4.10)
S2Į1s+ Į2 =0 (4.12)
Step 9: The state feedback gain matrix is calculated using Equations (4.10)
and (4.12) as:
Step 10: The values of gain matrix K are tuned using PSO in such a way that
the desired specifications are met.
Step 11: Using the calculated gain matrix K in Equation (4.13), the
controllable canonical form of the reduced model with state
feedback controller R contr s is constructed and the corresponding
transfer function is also calculated.
Step 12: From the transfer function of reduced model with state feedback
controller obtained in step 11, the transfer function of the original
system with state feedback controller G contr s is constructed by
reversing the procedure of model reduction.
Step 13: By comparing original higher order system shown in Equation (4.1)
and G contr s , controller gain matrix is calculated.
Step 14: Verify the step response of the G contr s , for the desired
specifications.
106
The state model for the discrete system is given in Equation (4.14)
and Equation (4.15).
x( k 1) Ax (k ) Bu( k ) (4.14)
y ( k ) Cx(k ) Du (k ) (4.15)
where,
u (k ) Kx (4.16)
where,
The closed loop dynamics of the system i. e. the system with state
feedback controller is shown in Equations (4.5) and (4.6)
107
4.3.1 Pseudo Code for the Design of State Feedback Controller for
LTIDS
Get the higher order original system in state space model as in
Equations (4.14) and (4.15)
If (system is controllable)
Endif
108
Step 1: Get the higher order original system in state space model as in
Equations (4.14) and (4.15).
Step 2: Check for the controllability of the given system using Ackerman’s
formula.
Step 3: Obtain the transfer function model of the given discrete system using
(4.17) and check for the specifications.
G (z) C ( zI A ) 1 B (4.17)
Step 4: If the specifications are not met, convert into continuous domain
using transformation technique and obtain the reduced model in
continuous domain.
Step 5: Using the algorithm explained in section 4.2.1, design state feedback
controller and obtain the gain matrix K for reduced model. The
values are tuned using PSO in such a way that the required
specifications are met.
Step 6: Convert the continuous model into discrete model using inverse
transformation technique.
Step 7: Construct the higher order discrete time transfer function using the
inverse procedure of model reduction.
4.4 ILLUSTRATIONS
Example 4.1
ª 0 0 º
« 0 0 »»
1 0 0 0 0 0
« 0 1 0 0 0 0
« 0 0 »
« »
0 0 1 0 0 0
« 0 0 »
« 0 0 »
0 0 0 1 0 0
A ;
« »
0 0 0 0 1 0
« 0 0 »
« 0 1 »
0 0 0 0 0 1
« »
0 0 0 0 0 0
¬« 17760 45952 46350 24469 7669 1558 220 21¼»
ª0º
«0»
« »
«0»
« »
«0»
«0»
B
« »
«0»
«0»
« »
«¬1 »¼
D >0@
19655s 194480
499s 2 910s 17760
R2 ( s)
39.39s 389.7395
s 1.8236s 35.5912
R2 (s) (4.18)
2
ª
A «
0 1 º
» ; B
ª0º
«1» ; C >389.7395 39.388]@ ; D >0@
¬ 35.5912 1.8236¼ ¬ ¼
(4.19)
s2+1.8236s+35.5912=0 (4.20)
percentage overshoot2%
s2+10s+41.19=0 (4.21)
111
K=[5.5988 8.1764]
The values of the K matrix are tuned using PSO and the tuned
values of K are obtained as: K= [0 8.44].
39.39s 389.7395
s 2 10.26s 35.59
Rcontr ( s) (4.22)
(4.23)
The gain of the original system is,
The step responses of the original system and reduced system with
the designed state feedback controller are shown in Figures 4.2 and 4.3.
112
16
14
12
Output
10
0
0 2 4 6 8 10 12 14 16 18 20
Time (seconds)
16
14
12
Output
10
0
0 2 4 6 8 10 12 14 16 18 20
Time (seconds)
Example 4.2
ª 0 0 º
« 0 1 »;
1
« »
A 0
«¬ 13 33 13»¼
ª 0º
« 0»
« »
B
«¬1»¼
C >13 46 0@
D 0
The transfer function model for the given system in Equation 4.24
is obtained using Equation (4.8).
46s 13
s 13s 2 33s 13
G( s) 3
(4.24)
42.4154 s 13
12.528 s 2 12.5803s 13
R2 ( s ) (4.25)
114
3.3856s 1.03767
s 2 2.361s 1.03767
R2 (s) (4.26)
s2+2.361s+1.03767=0 (4.27)
The values are tuned using PSO and the tuned values are: K= [0 1.3077]
3.3856s 1.03767
s 2 3.6687s 1.03767
Rcontr ( s) (4.28)
46s 13
s 3 10.5495 2 49.554s 13
G contr ( s) (4.29)
1
Output
0.5
0
0 2 4 6 8 10 12 14 16 18 20
Time (seconds)
1
Output
0.5
0
0 2 4 6 8 10 12 14 16 18 20
Time (seconds)
Example 4.3
ª 0 º
« 0 »»
0 1 0 0 0 0 0
« 0 0 1 0 0 0 0
« 0 »
« »
0 0 0 1 0 0 0
« 0 »
« 0 »
0 0 0 0 1 0 0
A ;
« »
0 0 0 0 0 1 0
« 0 »
« 1 »
0 0 0 0 0 0 1
« »
0 0 0 0 0 0 0
«¬ 0.0022 0.0165 0.0983 0.1935 0.0570 0.0788 0.4185 0.6308»¼
ª0º
«0»
« »
«0»
« »
«0»
«0»
B
« »
«0»
«0»
« »
¬«1 ¼»
(4.30)
(4.31)
117.9429s 63.62
772.8146s 2 117.4470s 64
R2 ( s ) (4.32)
0.1526s 0.08232
s 0.15197 s 0.083
R2 ( s )
2
(4.33)
ª 0 º ª0 º
A « » ; B « »;
1
¬ 0.083 0.15197¼ ¬1 ¼
s2+0.15197s+0.083=0 (4.35)
For the choice of performance specification given in section 3.2.3, the desired
characteristic polynomial is obtained as in Equation (4.36).
s2+10s+41.19=0 (4.36)
Using PSO, the values of the K matrix are tuned and the tuned
values of controller gain matrix K are
K= [0 0.4]
0.1526s 0.08232
s 2 0.552s 0.083
Rcontr ( s ) (4.37)
0.1526 z 0.07028
z 2 1.448z 0.531
Rcontr ( z ) (4.38)
K= [-0.339 0.4]
119
(4.39)
The comparison of step responses of original and reduced systems
with state controller is shown in Figures (4.6) and (4.7). It is depicted that the
system with state feedback controller produces minimum rise time, settling
time and peak overshoot.
Comparison of Step Responses of Original System with and without state controller
1.8
1.6
Original system
1.4 Original system with state controller
1.2
1
Output
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Sampling instant
Comparison of Step Responses of Reduced System with and without state controller
1.8
1.6
Reduced system
1.4
Reduced system with state controller
1.2
1
Output
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Sampling instant
If ( system is LTIDS)
2. Tune the values of Observer gain matrix using PSO and obtain
optimized values.
Endif
Endif
122
Step 3: If the system is observable, convert the state model into transfer
function model by using Equation (4.8).
Step 4: Check for the desired specifications. If the specifications are not
met, derive the reduced model for the given system using the
proposed method of model reduction as in Equation (2.2) and
obtain the observable phase variable form of it.
Step 7: From Equations (4.10) and (4.12) determine the observer gain
matrix as:
ªD 2 a 2 º
«D a »
¬ 1 1¼
G
Step 8: The values of G are tuned using PSO to get the desired
specifications.
Step 9: Using the tunes values of G, obtain the state space model of
reduced system with observer.
Step 10: The transfer function of reduced system with state observer is
obtained from state space model.
Step 11: The transfer function of the original system with state observer is
obtained from reduced system with state observer by applying
inverse procedure of model reduction.
123
4.6 ILLUSTRATIONS
Example 4.4
19655s 194480
499s 2 910s 17760
R2 ( s )
39.39s 389.7395
s 2 1.8236s 35.5912
R2 (s) (4.40)
ª0.0166º
«0.0437»
¬ ¼
G
ª0.040º
«0.023»
¬ ¼
G
124
39.39s 389.74
s 12.36s 35.28
Robs ( s ) 2
(4.41)
(4.42)
The comparison of step responses is given in Figures 4.8
and 4.9. The state observer designed using the proposed second order system
satisfies satisfying the desired specification of response without overshoot.
Hence the design complexity is reduced in the process designing state
observer for a higher order system.
Step Response of Original System without and With state observer
20
Original system
18 Original system with state observer
16
14
12
Output
10
0
0 2 4 6 8 10 12 14 16 18 20
Time
16
14
12
Output
10
0
0 2 4 6 8 10 12 14 16 18 20
Time
s 2 12.36 s 35.28 0
K=[5.91 -2.36]
The values are tuned using PSO and the tuned values are:
K=[0 -2.7838]
Using the tuned gain matrix the transfer function of the reduced order
system with state controller is given in Equation (4.43)
39.39s 389.74
s 9.576s 35.28
Rcon ( s ) 2
(4.43)
16
14
12
Output
10
0
0 2 4 6 8 10 12 14 16 18 20
T ime (seconds)
4.7 SUMMARY