Control Book
Control Book
Fourth Edition
2017
I
COPYRIGHT
All rights reserved except as permitted by the author, no part of this book may be
reproduced or disturbed in any form or by any means, or stored in a data base or
retrieval system without the prior written permission of the author.
II
About The Author
Gurashi A. Gasmelseed received his [Link]. in Chemical Engineering from University
of Khartoum. He worked for the leather industry corporation for seven years at the
White Nile Tannery. After earning his [Link]. in 1978 at the University of Khartoum,
Prof. Gurashi worked for the Chemical Engineering department, University of
Kuwait as a laboratory Engineer process control, mass transfer, heat transfer and
fluid mechanics. He was awarded his Ph.D in Chemical Engineering at the
University of Aston in Birmingham-UK in 1985. After earning his Ph.D Prof.
Gurashi worked as a director of research assessment together with teaching process
control. From 1990 to date he joined University of Juba and University of Science
and Technology for teaching mass transfer and heat transfer as well as process
dynamics and control.
Prof. Gurashi published over 20 technical papers and has authored three……. Books.
Prof. Gurashi has supervised over 50 graduate thesis 12 for PhD and more than 40
[Link]. He has devoted over 30 years to his profession as a teacher, researcher, author
and practicing engineer.
III
Dedication
This book is dedicated to Dr. M. E. Abu-Goukh of the University of Khartoum,
Chemical Engineering department. Abu- Goukh is the Pioneer in process dynamics
and control and through his efforts proper process control fundamentals, design of
controllers, tuning and system stability are made available. Before Abu-Goukh,
process control courses are just on measurements and very naïve, he introduces an
integral course for underground and graduate students. His textbooks are now at
most of the Chemical Engineering Departments, they are clear with many illustrative
examples, in facts, we learnt much from him.
IV
Table of Contents
Title Page
Copyright II
Dedication IV
Table of Contents V
2.1 Linearization 10
V
3.1 Introduction 59
VI
Chapter seven: Controllers Tuning
VII
9.6 Nyquist plots 239
VIII
11.8 Inferential control 337
IX
13.4 A fuzzy logic control systems 441
References
References 446
X
Chapter One
Introduction
CHAPTER ONE
Introduction:
The purpose of this book is to make clear the importance of process control to
the control engineers. This book covers the conventional control theories as
well as digital control systems. The procedure to develop the mathematical
process models that help in the analysis, design and operation of control
systems are covered with simple clear examples. It explains how the basic
components of the control system work. Feedback controller transfer
functions are determined with emphasis on their role, advantages and
disadvantages. Deign and tuning of feedback controller is covered using
Routh Hurwitz; root locus, Bode and Nyquist plots. Advance control system,
system interaction and decoupling and dead time compensation are illustrated
and analyzed. Having studied the fundamental of the dynamic of the process
control systems MATLAB is used for determination and analysis of the
system. The adjustable parameters are thus determined by using Ziegler-
Nicolas techniques. Part one of this book present two mathematical tools that
are particularly useful for analyzing process dynamics and designing of
control systems. Laplace transforms and linearization’s, when combined
together allow us to gain insight into dynamic response of a wide variety of
processes and instruments. Laplace transform is a method of solution of linear
differential equations. Since differential equations that represent most
dynamic processes are nonlinear, linearization is required to approximate
nonlinear differential equations with linear ones that can be solved using
Laplace transform. In this part the block diagram rules and signals are
represented. The purpose is to determine the overall transfer function from the
block diagram using block diagrams rules. Block diagram algebra is not
recommended, but in some cases a combination of the two make things easier.
1
INTRODUCTION
The responses and system orders are included; these response are related to
the parameters of the process transfer functions so that the important
characteristic of the responses can be inferred directly from the transfer
functions without having to reinve them each time.
In part two of this book, the type of conventional controllers and their
combination are presented and investigated, with emphasis on On-Off, two
positions controller, P, PI and PID actions. Controllers tuning with different
techniques is presented including reaction curve (Cohen-Coon), quarter decay
ratio, first-order with dead time approximation of PID-Controller and Ziegler-
Nicolas methods. Stability analysis with Routh-Hurwitz and root-locus are
presented with examples. Frequency domain dynamics, determination of
amplitude ratio, phase angle and Bode-plots using low and high frequency
asymptotes are illustrated with examples. MATLAB plots are used for Bode
diagram and consequently tuning using ultimate gain and periods obtained
from the cross-over frequency.
In part three advance control systems are presented, these include, Cascade
control, auctioneering, adaptive and inferential controls. In this part
introduction is made to computer-digital control in SI/SO and MI/MO using
multiplexers. The interface between continuous and discrete-time control is
presented and explained. The Z-transforms which is a method of solution of
difference equations is introduced with examples similar to those dealt with
Laplace transforms. This part covers transformation from continuous-time to
discrete-time response of dynamic systems, their responses with various types
of digital controllers, and disturbances. It included pulse transfer function,
stability regions in S-plane and in Z-plane. This part also covers the design of
digital feedback controllers.
2
CHAPTER ONE
It is hoped that this book will help the undergraduate and graduate students to
understand the principle of process control and its application in various type
of industries.
Regards
Gurashi Abdalla Gasmeelseed
3
INTRODUCTION
3. Industrial Applications:
i. Chemical and nuclear industries
ii. Power industry
iii. Metallurgical industries
iv. Automobile industry
v. Agricultural industry
vi. Transportation applications
4
CHAPTER ONE
a) Health.
b) Environmental conditions.
c) Fatigues
Fatigue less concentration lower efficiency
d) Limited period of time, the automatic controller is capable of acting logically
for very long period of time.
e) Productively Gains:
Automation considerably improves productivity
Automation improvement of labor productivity
Skilled labor transferred to other jobs lower production cost.
f) Process efficiency will be set constant at the required levels.
Automation high process efficiency maximum
production.
g) Energy saving.
h) Safety.
5
INTRODUCTION
Classification of Control:
Control
Manual Automatic
Feedback Forward
6
CHAPTER ONE
Symbol used:
Tc Temperature controller
Lc Level controller
Pc Pressure controller
Fc Flow controller
TT Temperature transmitter
7
INTRODUCTION
Pneumatic line
Electric Line
8
CHAPTER ONE
output
Transfer Function
input
Transfer function
y s
G s 1.1
x s
d: discrete-time signal
c: continues signal
9
Chapter Two
Mathematical Tools
CHATER TWO
2.1 Linearization:
A number of techniques are available for the solution of linear problems, but
there are no general mathematical techniques for treating nonlinear problems
and no general analysis is therefore possible.
Linearization methods depend on the simple fact that any nonlinear system
(function) is approximately linear if considered over a sufficiently narrow
range.
Process control systems normally operate with several variables held normally
at constant operating levels. These variables are subject to some departure
from these levels due to disturbances, but if the system is well designed these
perturbations from the normal values are relatively small, and the dynamic
behavior of the system can be described reliably by linear differential
equations even though the basic process equations are nonlinear. Therefore,
systems can be adequately represented by linear relation.
1/ 5 6 6 linear
2/ √ nonlinear
3/ 10 nonlinear
Method of Linearization:
10
MATHEMATICAL TOOLS
, , , , 2.1
, ,
, , , , · ·
1! 2!
, ,
, ,
· ·
1! 2!
, ,
, ,
· ·
1! 2!
, ,
,
·
1!
,
,
· 2.2
2!
,
, ,
, , . , , , · ·
1! 1!
, ,
,
· 2.3
1!
,
Example 2.1:
|
1!
Example 2.2:
Linearize the following nonlinear function:
11
CHATER TWO
, 3
Solution:
2 | 2 |
54 6 |
54 54 3
108 54
Example 2.3:
Linearize the following nonlinear function:
, 2
Solution:
5
2 5 2 2
32 80 2
32 80 160
128 80
Example 2.4:
Linearize the following eq.:
F k√h
The system is at steady state h
Solution:
F kh
The linearization:
∂
F kh kh h h
∂h
12
MATHEMATICAL TOOLS
1
k h kh h h
2
1 1
k h k h h
2 h
Example 2.5:
Linearize the Arrhenius temp dependence of the specific reaction rate k which is
highly nonlinear:
T T T
T T
T T T T
T T T T
T
T T T
T
Example 2.6:
Linearize the following non-linear function:
f ,F F
Solution:
The linear function, the steady-state are: and F:
f f
,F ,F ,F F F
,F
F ,F
f f
,F ,F F F
,F
F ,F
13
CHATER TWO
Example 2.7:
Let: m , n
eq becomes
mh n
n n | n
n 2n
Example 2.8:
.
Linearize the following non linear eq.:
3
The steady-state value is h.
Solution:
.
∂ .
h h
3 ∂h 3
14
MATHEMATICAL TOOLS
.
1.5 .
h h h
3 3
. .
h h h h
3 2
Example 2.9:
Linearize the following nonlinear equation: ,
, 2 , , 3
Solution:
, | , , , , , , ,
, , , ,
4 27 2 ,
2 3 ,
3
31 4 2 27 3
31 4 27 81
4 27 58
2.2 Computer simulation:
Digital simulation is a very useful tool for solving equations describing chemical
engineering systems.
Over the years number of digital simulation packages have been developed, the
simulation languages relieve scientists and engineers of knowing anything about
numerical integration. These packages make it easier for them to set up and solve
the problems.
Numerical integration methods:
1. Netwon-Raphson method:
15
CHATER TWO
f
T T 2.4
f
Where:
f value of f at T T
f derivative, at T T
Example 2.10:
Using Netwon-Raphson method determine the roots of the following using the direct
evaluation.
P 4 17.4 39 47 a
P 12 38.8 39 b
Solution:
P 4 8 17.4 4 39 2 47 6.6 c
P 4 8 17.4 4 17.4 d
First approximation:
6.6
2 2.3793
17.4
The second approximation is:
16
MATHEMATICAL TOOLS
2.3793
P . 1.16763
P . 24.13318
1.16763
2.3793 2.3309
24.13318
The third approximation is:
P . 0.02526
P . 23.0818
0.02526
2.3709 2.3298
23.0818
The forth approximation is:
P . 23.05858
P . 9.89723
23.05858
2.3298 2.3298
9.89723
Euler method:
17
CHATER TWO
∆
Slope 2.5
∆T
∆
Slope 2.6
∆T
∆ ∆T 2.7
∆ ∆T 2.8
Let ∆
18
MATHEMATICAL TOOLS
If ∆T (The step size or the integration intrval) is small enough, this estimate of
will be very close to the current value.
∆ ∆
Slope 2.9
∆t ∆
∆ ∆ ∆t 2.10
Let ∆
∆t 2.11
∆
∆t
19
CHATER TWO
∆t 2.12
∆
Example 2.11:
Use Euler method to solve the following eq:
Solution:
∆t 2.12
1
1
Let 0
Let 1
20
MATHEMATICAL TOOLS
Time = 2.0
Time x dx
dt
. . .
. . .
. . .
The smaller the step size, the more accurate is the integration.
21
CHATER TWO
Interval halving:
This method depends on initial guess of the parameter that is used to calculate a
certain value through a mathematical model. The calculated value is then compared
with the given value, and if does not converge, the guessed parameter is increased
or decreased until convergence with a limit, say 10 .
Example 2.12:
Data given:
The pressure, P.
22
MATHEMATICAL TOOLS
ln a
P P , P 1 x P
y yP, y 1 y P
P P P
23
CHATER TWO
until the sign changes, then make the temp to be ( T ∆T ) and so on until
convergence.
Optimization
− Optimum conditions
− One variable
Example 2.13:
The total cost of insulation depends on the thickness of insulation
CT a b d
Where:
a, b, c and d constants
CT Total variable cost
x insulation thickness
Solution:
24
MATHEMATICAL TOOLS
CT
0
If 64 16
64
2
16
CT 2 2 64
2
16
optimum point 0 ve
Example 2.14:
Determine the optimum value for the two independent variables
11,900
CT 2.33 1.86 10 a
Determine the values of x and y which will give the least total cost
Solution:
CT 11,900
2.33 0
25
CHATER TWO
CT 11,900
1.86 0
11,900
2.33 0 b
11,900
1.86 0 c
26
MATHEMATICAL TOOLS
Definition:
LF T F s 2.13
Where:
Re s , Real
Im Imaginary
√ 1 or √ 1
Example 2.15:
U( ) = 1
0
1 0
27
CHATER TWO
- Unit step:
LF T F s 1 0
Example 2.16:
Solution:
LF T F s 0
28
MATHEMATICAL TOOLS
Example 2.17:
Determine the Laplace transformation of unit step function delayed by a unit of time,
which is of the following function:
f t 1 a
Solution:
Lf t 1
e 0
Example 2.18:
F t
Solution:
29
CHATER TWO
Lf t
Example 2.19:
F t sin
Solution:
sin
1
Lf t L sin It
2
1
Lf t
2
I II
- Taking term I:
30
MATHEMATICAL TOOLS
0—
1
II
2
1 1
·
2 jω s
1 1 1 1
0—
2 jω s 2 jω s
1 1 1 1
2 s jω 2 jω s
1 1 2
2 2
Example 2.20:
F t cos
31
CHATER TWO
Solution:
Lf t cos
1
cos
2
1
cos
2
1
2
I II
Taking term I:
1
I
2
1 1
·
2 s jω
1 1 1 1
0
2 s jω 2 s jω
32
MATHEMATICAL TOOLS
1
II
2
1 1
·
2 jω s
1 1 1 1
0
2 jω s 2 jω s
1 1 1
cos
2 s jω jω s
1 1 2
2 2
Example 2.21:
Solution:
What is the ramp function; it is that function which is represented graphically from
the above equation:
33
CHATER TWO
Lf t . a
. | b
Let t = u
Let:
34
MATHEMATICAL TOOLS
1 1
. .
1
0
1 1 1
·
Example 2.22:
Solution:
35
CHATER TWO
- This means that the height is very long compared with the area.
- Represent the unit step function by:
1 a
∞
As at ∞ approach zero, we may just play a trick to realize a
solution.
0 b
c
∞
0 lim d
∞
36
MATHEMATICAL TOOLS
1
lim 1
1
F t 2.14
F t L 0 2.15
Example 2.23:
F t
Solution:
L 0
- by comparison f t
37
CHATER TWO
L ·
f s
f 0 1
2] Theorem 2:
L 0 0
Or
L 0 0
3] Theorem 3:
L 0 0
38
MATHEMATICAL TOOLS
Example 2.24:
i- Lt
ii- L
iii- L sin
Solution (i):
L 0
F(t) = t
F(0) = 0
L 0
1 0
Solution (ii):
Let:
F t
39
CHATER TWO
F(0) = 1
L 1
L 1
L 1
L 1
Solution (iii):
Applying theorem 2:
L 0 0
Let:
f t sin
cos
sin
F(0) = 0
L sin sin 0
40
MATHEMATICAL TOOLS
Rearranging:
L sin sin
L sin
L sin
Example 2.25:
5 6 6
Solution:
L 0 0
2 2
L 5 5 5 0
5 10
6 6
41
CHATER TWO
6
L6
2 2 5 10 6f s
5 6 2 12
2 12 6 2 12 6
5 6 3 2
Taking the initial conditions:
y 0 0 0
5 6
5 6
Example 2.26:
Solution:
L 0 0
42
MATHEMATICAL TOOLS
2 0 2
L 0
L .
2 2
2 2
F t 2.16
L 2.17
43
CHATER TWO
Integrating by parts:
In general:
. |
Let:
218
2.19
Let :
2.20
2.21
e.g.
44
MATHEMATICAL TOOLS
2.22
Where:
Polynomial in S of order m
Polynomial in S of order n
1- Expansion:
2.23
2.24
Where:
Example 2.27:
45
CHATER TWO
Solution:
- Fractional expansion
b
1 1 2
c
Determine the constants , :
To determine :
6
d
1 1 2 1 1 2
1 1 1
6
1 2
1 1 6
1 1 1 2
6
3
2
46
MATHEMATICAL TOOLS
- To determine :
6
1 1 1
1 1 2 1 2
6
f
1 2
- To determine :
2 2 2
Example 2.28:
47
CHATER TWO
1
a
2 5
Solution:
Factorization of by inspection:
2 5 1 2 1 2
1
b
1 2 1 2 1 2 1 2
L c
Let:
1 2
And
1 2
f
1 2 1 2
Putting the values of a and b from equations (d) and (e) into equation (g):
48
MATHEMATICAL TOOLS
Example 2.29:
The initial and final values of the f(t) can be obtained without first inverting the
Laplace transform, F(s). This is done by using the initial and final- value theorems.
6 3
F s
1 4 5
49
CHATER TWO
Solution:
- Initial value:
lim lim . a
6 3
lim . lim
1 4 5
6 18
lim b
10 29 20
= lim 6
0 0 0
lim 6
lim lim .
6 3 6 18
lim lim 0.0
1 4 5 10 29 20
50
MATHEMATICAL TOOLS
Worked examples:
Example 2.30:
Solution:
1
L
1
L
4
1
4
1
4
1
1 4
Example 2.31:
3 2 8
Initial conditions: 0
51
CHATER TWO
Solution:
1
L t
2
L 2t
Lk
8
L8
2 8 2 8
3
2 8
3
2 8
3
Example 2.32:
Invert the following eq. from L.T. domain to time domain using partial fraction.
1
1
Solution:
1
a
1 1
52
MATHEMATICAL TOOLS
1 1 1 1
1 1 1 1 b
1
Set S = 0:
1 0 B 0
B 1
eq a becomes:
1
1 1
Set 1 0 , 1
1 0 0
1
1 1
Set S = -1:
1
A B
2 2
1 2A 2B C
1 2A 2 1
53
CHATER TWO
2A 2
A 1
eq a becomes:
1 1 1 2
1 1
1 t 2e
Example 2.33:
Solution:
Set 0 ,
54
MATHEMATICAL TOOLS
A 0 d
2
1
2
1
sin wt
2
Unit impulse: 1 1
Unit step 1
Ramp: f t at
f t t n!
s 1
Exponential f t e 1
f t te 1
f t sin ω
s
55
CHATER TWO
f t cos s
s
f t 1 e
f t sin e ω
2
MATLAB format:
>> syms t
>> laplace(f)
where:
laplace(f): is the Laplace transform of the function F with default
independent variable t.
syms: shortcut for constructing symbolic objects.
Example 2.34:
56
MATHEMATICAL TOOLS
Solution:
>> syms k t
>> laplace(sin(k*t))
ans =
k/(k^2 + s^2)
Inverse of Laplace transform:
MATLAB format:
>> syms s
>> ilaplace(L)
where:
ilaplace(L) is the inverse Laplace transform of the function L with default
independent variable s.
Example 2.36:
Determine the inverse of the function: Y(s) = 5/
Solving ordinary differential equations:
Solution:
MALAB format:
>> dsolve('equation', 'initial condition1', ' initial condition2', ………….. )
Where:
dsolve is the symbolic solution of ordinary differential equations.
Example 2.37:
4 5 2 2 0, 0, 0
57
CHATER TWO
Solution:
>> syms x
>>dsolve('D3x+4*D2x+5*Dx+2*x=2','x(0)=0',
'Dx(0)=0','D2x(0)=0')
ans :
1 - (2*t)/exp(t) - 1/exp(2*t)
58
Chapter Three
Mathematical Models and Simulations
MATHEMATICAL MODELS AND SIMULATIONS
3.1 Introduction:
This is proved to be useful for design & optimization of physical, chemical and
biological processes. The use of simulation has expanded rapidly during the previous
three decades because of the availability of high speed computers and computer
workstations. All engineering computations will shortly be computerized and
engineers need to understand the principles behind software and to effectively use
the software to solve pertinent problems, engineer should develop the following
skills:
1. A sound understanding of engineering fundamentals. The engineer should be
familiar with the physical system and its mechanisms in order to be able to
simulate a real process and evaluate the simulation.
2. The engineer has to be able to develop a set of mathematical relations that are
adequately describing the process behavior.
3. Rapid solution to simulation problems must be obtained. The engineer must
be evaluate and use correctly the available commercial software packages.
Benefits of process industry simulation:
1. Economic desirability:
59
CHATER THREE
60
MATHEMATICAL MODELS AND SIMULATIONS
For obtaining solution to process simulation problem, the engineer has several levels
of compilation ranging from solution by inspection to analytical& high -speed
computer solution. Numerical methods for the solution of sets of algebraic eq. ode
and partial differential eq’s (pde) are modeled.
A practically useful and well documented if the software’s are available Additional
software package such as Matlab are also now available which have excellent
graphical capabilities and ease the programming of certain problems.
5) Interpretation of the results:
The real payoff of the simulation of a process is in intelligent interpretation of the
results by the engineer.
At this point, the engineer must ascertain whether the model is valid representation
of the actual data or whether it needs revision.
Limitation of the process simulation:
The engineer should aware of the following:
1. Lack of good data and knowledge of the process mechanism.
2. Solution of the model which might pose a problem, a model that cannot be
solved is useless.
3. The danger of under looking the assumptions.
Usefulness of process simulation:
61
CHATER THREE
1. Basis: The bases for mathematical model are the fundamental physical and
chemical laws, such as laws of conservation of mass, energy and momentum.
2. Assumptions: This depends on engineering scientific judgment such taking
constant density, specific heat …. etc. An extremely rigorous model that
includes every phenomenon down to microscopic details will be difficult to
solve and is useless. An engineering compromise between rigorous and
simple assumptions to get an answer that is good enough is always required;
this has been called optimum sloppiness. it involves making as many
simplifying assumptions which are reasonable without throwing out the baby
with the bath water.
The units of all terms of the must be consistent i.e. use (SI) units i.e. kg, m, s.
62
MATHEMATICAL MODELS AND SIMULATIONS
It must be proved that the model describes the real-world situation. At the design
stage this sometime cannot be done because the plant has not yet been built, data can
be collected from similar plants. A pilot plant can also be built in which some
experimental data can be obtained.
3.3 Fundamental laws
1. Continuity equations (Mass balance eq’s ):
Total continuity eq. (mass balance):
The principle of the conservation of mass when applied to a dynamic system says:
The right hand side of eq. (3.1) will either be a partial derivative or ordinary
derivative with the mass inside the system with respect to the independent
variable t.
Example 3.1:
63
CHATER THREE
Example 3.2:
Assumptions:
1. Constant diameter cylindrical pipe.
2. Flow is laminar i.e. plug flow.
3. No radial gradients in velocity or properties, but axial gradients can exist.
4. Density and velocity can change as the fluid flows in the axial or z- direction.
5. There are two independent variables, time t, and axial position z. density and
velocity are functions of both t and z i.e. , , , .
Apply the continuity eq. to a system consists of small slice shown in the fig. above,
is now a microscopic one:
- The differential element (slice) has a thickness dz and x-sectional area equal to x-
sectional area of the pipe, A . .
64
MATHEMATICAL MODELS AND SIMULATIONS
Eq’s development:
kg/sec
kg/sec
The last expression for the flow at ( ) may be thought of as a Taylor series
expansion of a function f (z) - around z. The value of the function at a spot away
from z is:
∂F ∂ dz
F z dz f z dz
∂z ∂z 2!
If is small the series can be truncated after the first derivative term:
Let:
, in Taylor series,
f dz
65
CHATER THREE
Example 3.3:
66
MATHEMATICAL MODELS AND SIMULATIONS
component B:
Let:
Note that we have used ordinary derivative since time, t, is the only independent
variable in this lumped system. The right hand side of the eq. is the dynamic part of
the system.
Example 3.4:
A microscopic system shown below is used for the following reaction:
Reactant A goes to B at the specific reaction rate, but B can react to form
component C at specific reaction rate; develop the mathematical model for the
system.
67
CHATER THREE
Example 3.5:
68
MATHEMATICAL MODELS AND SIMULATIONS
, ( )
Appling the component continuity eq. for reactor A to a small differential slice of
width, as shown above.
The diffusive flux of , is given by Fick’s law of diffusion:
Where: diffusion coefficient, the – ve sign is to show that diffusion takes place
from high to low concentration.
Molar flow of A into the boundary at z = bulk flow and diffusion flow
.
Molar flow of A out of the slice boundary at
69
CHATER THREE
But
70
MATHEMATICAL MODELS AND SIMULATIONS
Assumptions:
71
CHATER THREE
The boil-up rate in the rectifying section and stripping sections are considered to
be equal
and therefore there is no need for energy balance.
Vapor-liquid equilibrium relationship:
1 1
Let us now develop the state q′ that describe the dynamic model of a distillation
column. The fundamental quantities are the total mass of components.
1. Feed tray ( ):
72
MATHEMATICAL MODELS AND SIMULATIONS
=
Component balance, A:
1. Top tray N:
Component, A, balance:
73
CHATER THREE
2. Bottom tray ( 1)
Component, A, balance:
1. tray ( 1, 2, … . 1 and i f)
74
MATHEMATICAL MODELS AND SIMULATIONS
Component, A, balance:
2. Reflux drum:
75
CHATER THREE
Component balance:
3. Column base:
76
MATHEMATICAL MODELS AND SIMULATIONS
Component, A, balance:
All the eq’s above are state eq’s and describe the dynamic behavior of the
distillation column.
′
To complete modeling of the column in addition to the state , we need the
following relationship:
1. y f( …… 1, 2 … f … …
′
When all the modeling is sloved, we will find how the flow rates and
compositions of the two product streams (top and bottom) change various input
variables.
Energy equation:
The first law of thermodynamic put forward the principle of conservation of energy,
written for a general open system it says:
77
CHATER THREE
Example 3.7:
A CSTR is cooled by a cooling coil inside the tank to remove the exothermic heat
of reaction (j/mole of A reacted).
Solution:
78
MATHEMATICAL MODELS AND SIMULATIONS
3.4
79
CHATER THREE
Example 3.8:
Solution:
80
MATHEMATICAL MODELS AND SIMULATIONS
#1
. Hold-up mass
Let:
1
1
1 1
1 1
81
CHATER THREE
. 0.35 1000
466.67
0.75
. . .
Tank #2
Putting
1
e
1
Tank #3
Putting
82
MATHEMATICAL MODELS AND SIMULATIONS
1 1
h
1 1
1 1 1 1
1 1 1 1
1 1 1
i
1 1 1
, , (To be calculated)
= given
= given
=given
Then we invert eq. (i) into time domain and solve for and tray time (t), at s-s ,t ∞
83
CHATER THREE
2. To plot the data y and x Vs. time ,t , for transient response data
3. Once the data are plotted, you look for the best curve that fits the points that
is referred to as curve fitting:
84
MATHEMATICAL MODELS AND SIMULATIONS
Linear regression:
85
CHATER THREE
3.5
Let represent the actual experimental data; then the difference between
calculated and experimental data are:
3.6
3.7
Since there is no more than one possibility for fitting the data, the common
acceptable method of determining the best fit is to calculate the values of and
that minimize the sum of the squares of the error , ,namely:
, 3.8
Note that the value of and are known while and are to be found so as to
minimize , the sum of square of the errors.
86
MATHEMATICAL MODELS AND SIMULATIONS
The estimates of and found for specific data set are referred to or designated
as:
And
For a linear model and r data points, values of and that minimize eq. (3.8) are
found by setting the derivatives of with respect to and equal to zero. Since
there is a quadratic function, this approach leads to two linear in two unknowns
and . This least square estimation approach, also called linear regression can be
extended to more general models:
0 2
3.9
r
1 2
3.10
Where:
x , x 3.11
y , xy 3.12
87
CHATER THREE
Example 3.9:
An experiment has been run to determine the steady-state power delivered by a gas
turbine driven generator as a function of fuel rate.
x y
1.0 20
2.3 4.4
2.9 5.4
4.0 7.5
4.9 9.1
Solution:
3.5
First determine and using eq’s (3.9), (3.10), (3.11), and (3.12)
x 54.71
88
MATHEMATICAL MODELS AND SIMULATIONS
y 28.4
102.37
7.977
0.175
45.54
83.01
1.823
45.54
0.175 1.823
To compare the data predicted (calculated) by the mathematical model a gains the
experimental data we apply eq. (3.6) putting the experiment value
Point (1):
Point (2):
Point (3):
Point (4):
Point (5):
89
CHATER THREE
, , exp %
90
Chapter Four
Block Diagram and Block Diagram Rules
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
1. Distribution Point:
2. Summing point:
Transfer function
91
CHAPTER FOUR
Transfer function
I
4.1
4.2
4.3
4.4
5. Branching connection:
92
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
4.5
4.6
4.7
4.8
6. Series connection:
4.9
4.10
4.11
7. Feedback connection:
93
CHAPTER FOUR
Algebraic Method:
4.12
4.13
4.14
- Back substitution:
4.15
4.16
4.17
1
4.18
1
94
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
Example 4.1:
Solution:
∑
a
,
95
CHAPTER FOUR
Example 4.2:
Reduce the block diagram shown below to a single block diagram with an overall
transfer function :
96
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
(Figure 1)
Solution:
In this case we apply a combination of block diagram algebra and block diagram
rules:
Taking loop 1:
– a
a E b
b E c
c E d
M E
(Figure 2)
e
1 1
97
CHAPTER FOUR
(Figure 3)
(Figure 4)
· · 1
1 1 · 1 ·
1
98
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
1
1
1
1
·
1 1 ·
1
Example 4.3:
Determine the overall transfer function for the fig. shown below:
99
CHAPTER FOUR
(Figure 1)
100
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
The overall transfer function of parallel paths (feed forward-loop) is given by:
Example 4.4:
(Figure 1)
Solution:
(Figure 1) can be represented in an equivalent block diagram:
101
CHAPTER FOUR
(Figure 2)
- (Figure 2) consists of a single feedback loop with two parallel. Feed forward
paths.
- Applying the block diagram rules:
∑
a
1
e
1
102
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
Example 4.5:
Solution:
a)
∑
, a
1 ∑ ,
Equation (a) represents the general multi-path, multi-loop rule which considers m
path that pass through the n loops together with “P” direct feed forward paths.
103
CHAPTER FOUR
, d
, e
, f
g
1 1
b)
1 h
1
i
1 1
j
1
104
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
= sin
Example 4.6:
105
CHAPTER FOUR
Solution:
0.5 0.5
1 a
1 3 1 3
0.5 0.25
1 0.5
1 3 1 3
0.25 1 3 0.25
1 1
1 3 1 3
- Replace loop (3) by it is transfer function, we will get the following figure:
- The overall transfer function is:
106
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
b
1 ∑ ,
1 0.3
0.3 c
0.2 1 0.2 1
1 0.5 0.25
0.5 d
0.2 1 3 1.25 0.2 1 3 1.25
For loop 1:
1 0.3
, 0.3 e
0.2 1 0.2 1
107
CHAPTER FOUR
I
0.3
0.2 1
0.25 0.3
1
0.2 1 3 1.25 0.2 1
II
Untying envelope II
.
. . . . . .
. .
III
0.3 3 1.25
2
0.2 1 3 1.25 0.25 0.3 3 1.25
IV
0.2 1
+ 3 1.25
108
BLOCK DIAGRAM AND BLOCK DIAGRAM RULES
3 0.6 3
3 0.6 3
. .
. . . . .
109
Chapter Five
Process Dynamics
CHAPTER FIVE
5.1
1. Zero-order systems:
0 5.2
5.3
Let:
Process gain
5.4
110
PROCESS DYNAMICS
2. First-order systems:
1 5.5
5.6
5.7
Let:
, where is the time constant. The time constant is the time required for the
5.8
1
5.9
1
111
CHAPTER FIVE
Example 5.1:
Surrounding temperature
y = thermometer reading
Solution:
112
PROCESS DYNAMICS
Assumptions:
Constant
0.0
113
CHAPTER FIVE
Accumulation
m a
m hA b
Let:
1
d
1
114
PROCESS DYNAMICS
Forcing function:
1
f
1
1 g
1 h
115
CHAPTER FIVE
0.0 0.0
1.0 ∞
When = 1
0.632
116
PROCESS DYNAMICS
Example 5.2:
Solution:
98 90 8
100 90 10
10 1
10
8 10 1 .
0.8 1
1 0.8 0.2
Example 5.3:
117
CHAPTER FIVE
Assumptions:
1- Laminar flow
2- Constant density
Rate of accumulation
Let:
118
PROCESS DYNAMICS
, time constant
1
1
Making the inversion of the last equation:
3. Second-order systems
2 5.10
5.11
Dividing by :
119
CHAPTER FIVE
5.12
Let:
2 5.13
Taking L.T.:
2 1 5.14
5.15
2 1
1
5.16
2 1
120
PROCESS DYNAMICS
Equation (5.16) can be transformed from Laplace domain to the time domain
according to the degree of the dampness i.e. the numerical value of . There are three
different values of , these are:
1, 1, 1
2 1 0 5.17
√ 4
, 5.18
2
2 4 4
2
2
1
2
1
1 5.19
1
1 5.20
121
CHAPTER FIVE
2. 1 system is overdamped
In this case 1 real +ve value
3. 1 system is underdamped
122
PROCESS DYNAMICS
1 1:
2 1:
System is overdamped, slow and sluggish, hardly reaches the final value.
3 1:
System is underdamped, overshoots the set point value, oscillates round the set point,
decaying and finally settled.
123
CHAPTER FIVE
1. Overshoot :
exp
1
2. Decay ratio:
2
exp
1
3. Rise time:
the time required for the response to first reach its ultimate value.
4. Response time:
124
PROCESS DYNAMICS
2
1
The sensor produces a signal, mechanical or electric related to the process variable
it measures. The transmitter in turn converts this signal into a signal that can be
transmitted. Thus the purpose of the sensor-transmitter combination is to generate a
signal. The transmitter output is related to the process variable linearly, this is the
case for example with pressure, level and temperature transmitters.
125
CHAPTER FIVE
The low value 20 psig is often referred to as zero of the instrument, for example
the zero is 20 psig.
/ 1 , , 1.0
Industrial sensors:
1. Pressure sensors:
Bourdon tube:
One end is sealed, and the other end is connected to the pressure source. The tubing
tends to straighten as pressure is applied, and if the pressure is released the tube tends
to turn back.
126
PROCESS DYNAMICS
. .
2. Flow sensors:
Orifice meter:
DS
T. F. e
127
CHAPTER FIVE
Area of orifice.
Orifice coefficient.
Liquid density.
3. Level sensors:
i. Differential pressure
ii. Float
iii. Air-bubbler
DS
T. F. e
DS
T. F. e
128
PROCESS DYNAMICS
Defects the change in buoyant force on a body immersed in the liquid. The force is
then converted into a signal.
DS
T. F. e
This is a hydrostatic pressure sensor. It consists of an air or inert gas pipe immersed
in a liquid. The air or gas flows through the pipe is regulated to produce a continuous
stream of bubbles. The pressure requires to produce the continuous stream is bubbles
is the measure of the liquid level.
DS
T. F. e
4. Temperature sensor
Thermocouples:
129
CHAPTER FIVE
DS
T. F. e
5. Composition:
Electrophometers:
Chromatogram:
DS
T. F. e
130
PROCESS DYNAMICS
131
CHAPTER FIVE
Example 5.5:
1. Should be A-O and fails closed so that there will be no steam, and the liquid
will not boil dry and burns the coil.
2. Should be A-O, fails closed, this will not give any chance for the column to
be completely empty, the operator will have chance to stop the feed rate.
3. (3)Should be Air-to-closed, it fails open so that there will be no pressure
build-up and burst in tubes or the flash drum.
The selection of the fail position of control valves is part of the procedure known
as (HAZAN), hazard analysis. Team of engineers performs such as a procedure
at process design stage.
132
PROCESS DYNAMICS
The position of the stem is determined by the balance of all forces acting on it.
Force exerted by the compressed air at the top of the diaphragm; where:
Hooke’s constant
C / Friction force exerted upward and resulting from the closed contact of
the stem with valve packing; where C is the friction coefficient between stem and
packing.
133
CHAPTER FIVE
or b
Let:
2 d
2 e
f
2 1 2 1
Let:
134
PROCESS DYNAMICS
j
1 1
Where:
135
Chapter Six
Continuous Control Systems
CONTINUOUS CONTROL SYSTEMS
B = Measured Value
P-Action Equation:
6.1
6.2
6.3
/ 6.4
136
CHAPTER SIX
1
. 100
Offset:
Offset is the deviation from steady- state upon the introduction of forcing function
i.e. in set point or in load variable and denoted by .
137
CONTINUOUS CONTROL SYSTEMS
Example 6.1:
By considering the proportional control of the first-order system shown in the figure
a) Determine the offset for a step change with magnitude A in the desired value
b) Determine the offset upon a step change of magnitude α in the load variable.
Solution:
138
CHAPTER SIX
a
1
As the feedback signal is negative eq. (a):
b
1
c
1
1.0 d
1
1
1 1 e
1 1
Putting equations (c) and (e) into eq. (b):
1
/ f
1 1 1
Let:
g
1
and
h
1
i
1
Making step change in the set point:
139
CONTINUOUS CONTROL SYSTEMS
k
1
Offset:
Є l
lim
lim m
1
Є 1 n
But
o
1
Putting eq. (o) into eq. (n):
1
1 p
1 1 1
1
Є q
140
CHAPTER SIX
a
1
b
1
c
1
1
1 1 d
1 1
Putting eq's (c) and (d) into eq. (a):
1
e
1 1 1
1
Let:
f
1
141
CONTINUOUS CONTROL SYSTEMS
1
h
1
The offset:
Є i
For any change in the load variable or disturbance, u, the controlled variable, C(t),
should not be affected if the system behave ideally , that is:
0 j
lim k
Putting the value of C(s) from eq. (h) into eq. (k) and substitute 0:
1
lim l
1
1
Offset:
Є 0.0 m
1 1
1
Є n
Example 6.2:
Solution:
142
CHAPTER SIX
1 1 0
1 1 0 b
² ² 2ξ 1 0 c
Where ξ = damping coefficient
d
1 1
143
CONTINUOUS CONTROL SYSTEMS
ξ e
1 1
1
f
1
ξ g
1
ξ i
6.4
Where:
144
CHAPTER SIX
Proportional gain
Integral time
6.6
6.7
6.8
6.9
6.10
1
6.11
²
145
CONTINUOUS CONTROL SYSTEMS
6.12
It is observed that:
0 ∞
Integral time has the capability of completely eliminating the offset or the residual
error.
146
CHAPTER SIX
Example 6.3:
Determine the offset for an integral control action used as in the following figure
upon a step change in the load variable:
Solution:
a
1
b
1
1.0 c
1
1
1 d
1
147
CONTINUOUS CONTROL SYSTEMS
/ e
1
0 g
1 0
² ² 2 1 0 h
2 i
1 1 √
2 2 2
148
CHAPTER SIX
Offset investigation.
lim .
lim . 00
Integral action increases the order of the system by one degree as seen from eq. (f).
149
CONTINUOUS CONTROL SYSTEMS
6.12
6.13
6.14
0 6.15
0 6.16
150
CHAPTER SIX
This means the D- action gives the same output m(t), whether e(t) = 0.0 or a constant
D-action alone is incapable for excreting control and a combined PD, PID must be
used.
6.4 Commercial Controller:
These are a combination of two or three modes together. They are usually in form
of:
- P – Only
- PI
- PD
- PID
The method of combination is to combine the relevant mode in a simple controller
such as:
1- Proportional (P), T.F, .
1
1
Definition:
Derivative time is the time taken by the P-action to produce the initial step of the
D- action.
151
CONTINUOUS CONTROL SYSTEMS
The derivative action anticipates the proportional action by an immediate step before
the proportional response starts, it shifts P- action a head by a time.
Example 6.4:
Discuss the effect of derivative time by considering the following block diagram
upon a step change in the load variable.
Solution:
152
CHAPTER SIX
a
1
b
1 1
1 c
1 1
Where:
1 f
1 1
The standard Characteristic equation is:
2 1 0 g
h
1
153
CONTINUOUS CONTROL SYSTEMS
1
i
2 1
For PD-action:
The main advantage of adding D-action is that it will permit increase in the gain to
reduce the offset to a value that integral control which eliminates the offset is not
required.
Offset:
1
k
lim . m
1
154
CHAPTER SIX
0.0
Є N
1
But,
Є
1
Which is always 1
155
CONTINUOUS CONTROL SYSTEMS
Basic Requirements:
When the level reaches x, the valve will shift to the higher flow and the level starts
to rise.
When the level reaches y, the valve will shift to the lower level and the level at y
will fall until the level at x and so on.
156
CHAPTER SIX
System dynamics:
1- Rising level:
Flow rate = which is
6.17
2- Falling level :
Flow rate = which is
2 0
6.18
Response of level in case of two- position control for the system shown above.
Mass balance:
157
CONTINUOUS CONTROL SYSTEMS
Generally
[input rate] – [output rate] = Time rate of accumulation or depletion
6.19
Or
Let (capacitance)
6.20
Oscillation Period, P:
P Rising period Falling Period 6.21
Distance
Period
Velocity
Distance
Velocity
6.22
158
CHAPTER SIX
But
1 0
Example 6.5:
The level in a tank of 0.75m cross –sectional area is controlled by a two
position controller with a differential zone of 70 mm at a desired value of 1.25
m. The tank is discharged through a constant underflow of 30 L/s and it has
two inflows:
= 36 L/s
= 24 L/s
the system has a delay time of 2.5s:
159
CONTINUOUS CONTROL SYSTEMS
Data given:
160
CHAPTER SIX
Due the time of lag (the effect of dead time) the system will behave as shown
below:
∆ 8 2.5 20 mm
∆
∆
∆ 8 2.5 20 mm
161
CONTINUOUS CONTROL SYSTEMS
and are the actual and lower values of the levels (h) in the presence of dead
time .
x and y are the values of the level without dead time , L=0
the actual differential zone , is evaluated as :
∆ ∆
70 20 20 110 mm
From the fig:
∆ ∆
The period of oscillation
1 1
1 1
110 27.5
8 8
162
Chapter Seven
Controllers Tuning
CHAPTER SEVEN
7.1 Introduction:
They must be chosen to ensure that the response of the controlled variable remains
stable and returns to its steady-state value (disturbance rejection), or move to a new
desired value (set point tracking), quickly. However the action of controller tends to
introduce oscillations.
163
CONTROLLERS TUNING
2 5
10 4
40
164
CHAPTER SEVEN
P 0.5 - -
PI 0.45 -
.
PID 0.6
165
CONTROLLERS TUNING
∆
, where change in input at steady state
∆
Where ∆ is the final change in the output (the controlled variable) and ∆ is the
initial change in the input (the manipulated variable). The tangent line is drawn as a
tangent to the point of inflection. The dead time and process time are as shown
in figure (7.1).
166
CHAPTER SEVEN
The settings obtained by this method are good initial estimates but are not optimal
and some returning may be necessary as for the Continuous Cycling method.
P ⁄ 1 ⁄3 - -
PI ⁄ 0.9 ⁄12 ⁄ 30 3 ⁄ 9 20 ⁄ -
PID ⁄ 1.33 ⁄4 ⁄ 32 6 ⁄ , 13 8 ⁄ 4 ⁄ 11 2 ⁄
The simple performance criteria are based on some characteristic features of the
closed-loop response of the system. The most often quoted are:
167
CONTROLLERS TUNING
[Link]
[Link] time
[Link] time
[Link] ratio
- Any one of the above characteristics can be used by the designer as basis
criteria for selecting the controller and the values of its adjusted parameters
i.e. ( , ,
From all the above, the decay ratio has been the most popular by practicing
engineers. Experience has shown that a quarter decay ratio is reasonable trade-off
between a fast rise time and a reasonable setting time:
1
Decay Ratio
4
- Take same step change in the set point at P, PI, PID, select the lowest decay
ratio:
168
CHAPTER SEVEN
1
4
7.1
Where:
Set point
Measured value
169
CONTROLLERS TUNING
ISE 7.2
IAE 7.3
IATE 7.4
Procedure:
Select any of (ISE, IAE or ITAE) according to the following guide lines:
170
CHAPTER SEVEN
Note that the optimum controller settings are different depending on whether
step disturbance are made on set point or load variable. Design relations of similar
form have been developed for ISE and IAE. The following table shows the controller
design relation on the ITAE performance index and a first-order plus time delay
Model.
171
CONTROLLERS TUNING
Design Relation:
Where:
Dead time
time constant
The letter (b) on top of (1.03 , 0.796 , 0.165 , -0.1465 indicate the following:
For the set point changes, the design relation for integral mode is:
Example 7.1:
Use the integral error approach to obtain alternative controller settings for a process
with T.F.:
10
a
2 1
Solution:
172
CHAPTER SEVEN
For P-Controller:
A = 0.859
B = - 0.977
K = 10
.
0.859 1.69
1.69
.
0.169
.
0.674 1.08
1.85
.
173
Chapter Eight
System Stability
SYSTEM STABILITY
8.1 Introduction:
Routh – Hurwitz Method
The stability of a linear system is determined from the system
characteristic equation.
Consider the following overall transfer function:
1
1
8.1
The characteristic equation is the den of the overall transfer function equated
to zero.
0 8.2
Procedure:
1. First lock at the chr. eq. If there is any negative, the system is unstable,
no further calculations.
2. If all the terms in the chr. eq. are positive, then proceed as follows:
- Number of rows = n+1
- Develop the following array.
Table (1) construction of Rooch array
Row Coefficient
1
2
3 ……
4 ……
1
174
CHAPTER EIGHT
Rule (1):
If there is no change of sign the system is stable, if there is change of
sign the system is unstable. The number of sign changes give the number of
roots of the chr. eq that lie on the RhP (right half plune or S. plane. on Argand
Diagram.
175
SYSTEM STABILITY
Rule (2):
If the coefficient of the last row is, zero the chr. eq has one root or the origin.
Rule (3):
If the coefficient of the last two rows are zeros, then the chr. eq has a
double roots at the origin.
Example 8.1:
Determine the stability of the system with the following chr. eq.
5 15 10 a
Solution:
Dividing eq. (a) by 5.
3 2 0
Putting into Rooch Array:
Number of rows = 5
1 2
2 0
3 0
0 0
0 0
176
CHAPTER EIGHT
Since the coefficient of the last two rows are zeros, the chr. eq will have two
roots at the origin and the system is critically stable.
If some of the roots lie on the LHP and others on imaginary axis, the
system is critically stable.
Example 8.2:
3 4 12 0 a
177
SYSTEM STABILITY
Solution:
Putting eq. (a) in Routh array”
- Number of rows = 4
Table (8.1) matrix (b)
Rows Coefficient
1 1 4
2 3 12
3 0
4 0
3 4 1 12
0
3
To determine , put
178
CHAPTER EIGHT
12
12
1
3
0
12
To determine the root of the chr. eq. take row (n-1) and equate it to zero.
3 12 0
4 0 4
, 2
179
SYSTEM STABILITY
Solution:
Row Coefficient
1 1 10 5
2 5 10 3
3 0
4 0
5 0
6 0 0
180
CHAPTER EIGHT
Example of calculation
5 10 1 10
8
5
5 5 1 3
4.4
5
8 10 5 4.4
7.25
58
7.25 4.4 8 3
1.09
7.25
Taking the first column
1
5 all positive, The system is stable
8 (i.e. no change of sign), all the roots
7.25
of the chr. eq. Lie on the LHP)
1.09
3
Example 8.4:
Solution:
Number of rows = 5 1 6
Row Coefficient
1 1 3 4
2 2 7 4
181
SYSTEM STABILITY
3 0
4 0
5 0
6 0 0
Putting the coefficients of the chr. eq in Routh Array.
1 3 4
2 7 4
0.5 2 0
15 4 0
2.13 0 0
4 0 0
2 3 1 7
0.5
2
5 4 1 4
2
2
0.5 7 2 2
15
0.5
0.5 4 2 0
4
0.5
15 2 0.5 4
2.13
15
0
Taking the first column of the array:
1
2 There is one change of sign, from
0.5 positive to negative, and from negative
15 to positive. the system is unstable, and
2.13 the roots Lie on the RHP
4
182
CHAPTER EIGHT
Example 8.5:
Use Routh criterion to determine the stability of the system which has the
following chr. eq.
4 6 6 9 3 1 0
Solution:
- Number of rows = 6
Row Coefficient
1 4 6 3
2 6 9 1
3 0
4 0
5 0
6 0 0
6 6 4 9
0
6
6 3 4 1 7
6 4
0
Routh Array becomes:
Row Coefficient
1 4 6 3
2 6 9 1
183
SYSTEM STABILITY
3 7
0 0
3
4
5
6
1 1 1 1 1
4 6 6 9 3 1 6
4 6 6 9 3 0
Or
3 9 6 6 4 0
Number of rows = 5 1 6
Row Coefficient
1 1 9 6
2 3 6 4
3 14
7 0
3
184
CHAPTER EIGHT
5 7
0 0
6 3
4 0 0
You will find that, There is one change of sign and the system is usable, two
roots Lie on RHP. Other solution, you can put 0 and proceed to complete
the 6 rows.
Example 8.6:
4 4 4 0 a
Solution:
Number of rows 7 1 8
Routh Array:
Row Coefficient
1 1 1 4 4
2 1 1 4 4
3 0 0 0 0
4
5
6
185
SYSTEM STABILITY
4 4 0 b
6 4 8 c
3 2 4 0 d
Replace the zeros by the coefficients of the derivative of the auxiliary eq;
The Array becomes:
Row Coefficient
1 1 1 4 4
2 1 1 4 4
3 3 2 4 0
4 1/3 8/3 4 0
5 22 32 0 0
6 2.182 4 0 0
7 4 0 0 0
There are negatives and the system in unstable, the number of roots that lie
on RHP are two.
186
CHAPTER EIGHT
system; the method specifies the position of the roots of the characteristic
equation on Argand diagram which clearly tells the condition of stability. On
the other hand the solution of the linear differential equation in Laplace
transform gives exactly the values of stability, which is faster and accurate.
The question is can we consider that Routh criterion for stability is obsolete?
and that it can be superseded by computer solution for the roots of the
characteristic equation.
Example 8.7:
Use Routh criterion to determine the adjustable parameters for tuning a PID-
controller:
2 3 1 a
Solution:
Putting eq. (a) in Routh-array:
No. of roots: 4 1 5
Routh-array:
Rows coefficient
1 3 1
2 1 0
2.5 1 0
0.5 2
0 0
2.5
1 0 0
187
SYSTEM STABILITY
0.5 2 /2.5 0
0.5 2 0
2 0.5
0.25
Set:
Putting the value of in eq. (a) using the value obtained for :
2 3 1.25 0 c
188
CHAPTER EIGHT
Since the relative stability of system is dictated by the location of the root of
the characteristic equation, a first approach using an S-plane formulation is to
extend the Routh criterion to ascertain relative stability.
To determine how many zeros (roots) of the characteristic equation lie in right
of some vertical line, a distance | | from the imaginary axis (i.e. to determine
the numbers of zeroes that have a real part greater than where " " may be
positive or negative depending upon whether the new axis the - plane).
Transform the characteristic equation by substituting ( for (S), and
apply Routh’s criterion as described before. The number of changes sign in
189
SYSTEM STABILITY
the first column for this new equation is equal to the number of zeros which
are located to the right of the vertical line through ( ).
For example the zeros of the polynomial, P(S), are shown in figure.
Construction of the Routhian array would show that there are no roots of
characteristic equation in right half of the S-plane. If the imaginary axis is
shifted to the left by the amount | |there are four roots to the right of the new
axis. This information is available from the Routh criterion when it is applied
after shifting the axis to the new -plane.
The shifting of the S-plane axis in order to ascertain the relative stability of a
system is a useful approach, particularly for high-order systems with several
pairs of closed-loop complex conjugate roots.
Shifting the imaginary axis of the origin to the left by the amount | | requires
a change of variable:
190
CHAPTER EIGHT
; where 0
i.e. substituting ( for (S) in polynomial P(s) in order to get the new
polynomial .
Example 8.8:
Determine the number of the roots that lie to the right of the imaginary axis
of Argand diagram, and then determine the number of the roots that have a
real part 4, for the following [Link].
3 4 6 a
Solution:
Row coefficient
1 1 4
2 3 6
3 2 0
4 6 0
5 0 0
Since all roots in first column are positive with only one root lies on the
origin, the system is critically stable.
191
SYSTEM STABILITY
Thus Routh criterion provides only the absolute stability i.e. stable, unstable
or critically stable.
13 64 136 104 0 d
(3) Put the new eq. i.e. eq (d) into Routh array:
Row coefficient
1 1 64 104
2 13 136 0
3 53.384 104 0
4 112.676 0 0
5 104 0 0
192
CHAPTER EIGHT
From Routh array after transformation to relative stability there are 4 changes
of sign in the first column there are 4 roots in the RH of the -plane i.e. the
shifted plane.
These roots are 4 0 , note that Routh array will not give any
information of the value of relevant roots, but the relative stability determines
the region in which the roots are located.
193
SYSTEM STABILITY
Example 8.9:
Determine the number of roots that lie on or to the right of the imaginary axis,
and then determine the number of roots have a real part 4 for the
following [Link]:
F(s) = 2 6 2 5
Solution:
Rows Coefficient
1 1 6 5
2 2 2 0
3 5 5 0
4 0 0 0
5 5 0 0
Since there is no change of sign over the zero, then there are two roots on the
imaginary axis and the system is critically stable.
4 2 4 6 4 2 4 5 0 a
194
CHAPTER EIGHT
14 78 206 221 0 b
Routh array of eq. (6)
Row coefficient
1 1 78 221
2 14 206 0
3 63.289 221 0
4 157.11 0 0
5 221 0 0
There are 4 changes in the first column of the array, there are 4 roots on the
right half of the -plane where the imaginary axis is shifted to (-4).
Therefore the original polynomial, F(S) =0, has 4 roots to the right of the
vertical line through (-4), or it has 4roots that have a real part -4.
Example (8.10):
Repeat example (8.9) considering a vertical line through (-1) as a test line.
Solution:
1
1 2 1 6 1 2 1 5 0 a
Expand eq. (a):
2 6 8 8 0 b
Routh array of eq. (b)
195
SYSTEM STABILITY
Rows Coefficient
1 1 6 8
2 2 8 0
3 2 8 0
4 0 0 0
5 8 0 0
1. That there are two changes of sign and therefore two roots of the
original eq. lie to the right of the (-1) line.
2. Since there is no change of sign over zero, it follows that there are two
roots on the vertical line through (-1).
These roots are:
2 6 2 5 0
Set
2 6 2 5 0
Taking the imaginary part:
2 2 0
2 2 0
2 0
1
1
196
CHAPTER EIGHT
At the origin 0
By inspection
1 2 1 2
2 6 2 5
1 2 0
1 2 1 2
197
SYSTEM STABILITY
1 2 1 2
On Argand diagram:
Example 8.11:
Determine the number of roots in the following regions:
a) 0 -2
b) 0 - 0.5
198
CHAPTER EIGHT
Row Coefficient
1 4 202 1209 1315
2 42 599 1639 450
2
2
2
199
SYSTEM STABILITY
2
2
2
This is a tedious method and time consuming we need to use synthetic
division, the [Link]. Will be:
0 b
Putting eq. (i) into the following format using synthetic division:
200
CHAPTER EIGHT
3 28 15 13 0
4 13.5 13.5 0 0
5 13 13 0 0
6 0 0 0 0
7 0 0 0 0
8 0 0 0 0
1. There are 3 sign changes in the first column, which indicates that 3 roots
lie to right of the shifted axis through x= -2
2. All the elements of the last 2 row are zeros, i.e. there are 3 roots on the
shifted axis, two complex roots together with a third at the origin.
3. The two complex roots can be determined using the auxiliary eq. since
all elements of the sixth row ( are zero, the auxiliary eq. is
obtained from the 5 row or the 4 row ( :
13 13 0
0
1 0
0
,
The transformed poly-nominal, of eq. (c) is reduced to:
4 14 34 21 17 7 13
201
SYSTEM STABILITY
- The root- locus are the plots, in complex plane, of the roots of the OLTF.
- They are very useful to determine the stability of closed-loop system as the
gain changes.
Example 8.12:
a
1 1
1,
1 1 0 b
1 1
1 0
c
1 1
=k
0
1 1
1 0
1 1
1 0
202
CHAPTER EIGHT
As K increases from zero the roots of the chr. eq. of the closed loop is given by:
1 1 0
1 0 d
Using the above information we can construct the root locus of the system as
follows:
points , 0 and ,0
203
SYSTEM STABILITY
Evan Rules:
Example 8.13:
Sketch the root –Locus plot for the closed –loop system with the following
charlatanistic equation,
1 3 6 0 a
Solution:
1 3 6 0
6
1 0 b
1 3
1 0 c
6
0 d
1 3
6
0 e
1 3
204
CHAPTER EIGHT
1, 3
This is an imaginary axis crossing, this will get the critical or ultimate value
of the gain , it will also gives the cross-over frequency. Any gain will
let the roots of the open-loop charlatanistic eq Lie on the RHP indicating that the
system is unstable.
1 3 6 0
4 3 6 0
4 3 6 0
205
SYSTEM STABILITY
1 3 6
4 0
3 6 0
1
4
3 6
If is not negative, then it is obvious that all elements of the first column are
+ ve regardless of the value of K and three is no cross-over frequency.
The system is uncondionally stable, it is sable for all values of ., all the roots of
the open-loop charlatanistic eq. Lie on the LHP.
Example 8.14:
1. 2 3 2 1 0 a
2. 1 2 1 2 0 b
Solution:
1 0 d
2 1
0
2 3
206
CHAPTER EIGHT
2 0, 2
3 0, 3
The zeros:
1 0, 1
1 2S 1 K S 2 0
2 3 S 1 4K S 4K 0
2 1 4
3 4
0
0
207
SYSTEM STABILITY
3 K 1 4K 8K
3 K
4K
2 1 4
3 4
3 1 4 8
0
3
4 0
Taking row 1
3 1 4 8
0
3
4 5K 3 0
b) 1 2S 1 K S 2 =0
2
1 0
1 2 1
2 2
1 2 1 1 2 1
0, 0
208
CHAPTER EIGHT
1 0, 1
2 1 0, 0.5
3 0, 3
2 3 K S 1 4K S 4K 0 a
Routh array:
2 1 4
3 4
0
0
3 K 1 4K 8K
3 K
209
SYSTEM STABILITY
3 1 4 8
0
3
3 1 4 8 0
4 5 0
b √ 4
,
2
√25 48
5 0.625 0.599
8
The system become critically stable only when the gain K has a complex value, for
all real values of K the system is stable.
1
1 0
100
1
100
MATLAB format
1 0 1;
1 0 , 1 0 100 ;
210
CHAPTER EIGHT
MATLAB format:
>> num= [ ];
>> den=[ ];
>> rlocus(sys)
where:
rlocus(sys): calculates and plots the root locus of the open-loop SISO model sys.
211
SYSTEM STABILITY
Example 8.15:
Sketch the root locus for the system with the following OLTF:
1
1 3
Solution:
>>sys=tf(num,den);
>>rlocus(sys)
212
CHAPTER EIGHT
Since root locus plot lies completely on the LHP of the complex plane, system is
stable.
Example 8.16:
Sketch the root locus for the system with the following OLTF:
1
3 2 2
Solution:
>>den=conv(a,[1 2 2]);
>>sys=tf(num,den);
>>rlocus(sys)
213
SYSTEM STABILITY
Since part of root locus plot lies on the RHP of the complex plane,
Example 8.22:
Solution:
214
CHAPTER EIGHT
function RSC=routh(poly,epsilon)
poly=[1 1 2 2 6 6];
dim=size(poly);
coe=dim(2);
RSC=sym(zeros(coe,ceil(coe/2)));
for i=1:coe,
RSC(2-rem(i,2),ceil(i/2))=poly(i);
end
r=coe-2;
index=zeros(r,1);
for i=1:r,
index(r-1+1)=ceil(I,2);
end
for i=3:coe,
if(all(RSC(i-1,:)==0)),
a=coe-i+2;
b=ceil(a/2)-rem(a,2)+1;
t1=RSC(i-2,1:b);
215
SYSTEM STABILITY
t2=a:-2:0;
RSC(i-1,1:b)=t1.*t2;186
end
for j=1:index(i-2),
end
end
ans =
[ 1, 2, 6]
[ 1, 2, 6]
[ 4, 4, 0]
[ 1, 6, 0]
[ -20, 0, 0]
[ 6, 0, 0]
216
Chapter Nine
Frequency Domain Dynamics
CHAPTER NINE
When a linear system is subjected to a sinusoidal input, its ultimate response will
also be a sustained sinusoidal wave. In frequency response we are interested in
determining how the features of the output sinusoidal wave (amplitude ratio and
phase shift) change with the frequency of the input sinusoidal.
Suppose that the input is m (t) which is introduced as a sine wave to the process:
9.1
= Amplitude
9.2
The output will lag or lead the input, and the phase angle will be negative if the
output lags the input and it will be positive if the output leads the input. The angle
is defined as the angular difference between the input and the output. If is the
angular difference between the input and output:
2 In radians 9.3
217
FREQUENCY DOMAIN DYNAMICS
s=
218
CHAPTER NINE
√ 9.5
1
9.6
Example 9.1:
Find the frequency response of a first-order process with the following transfer
function:
a
1
Solution:
Set s=
b
1
1 1
. 1–
1 1 1
1
c
1 1
and
1 1
219
FREQUENCY DOMAIN DYNAMICS
d
1
tan
1
tan ·
1
1
tan e
Example 9.2:
Solution:
Set:
220
CHAPTER NINE
0 b
1
tan tan c
0
tan ∞ 90°
Example 9.3:
Find the amplitude ratio and phase angle of N-noniteracting capacities in series with
the following transfer function:
· a
1 1 1
Solution:
Set:
221
FREQUENCY DOMAIN DYNAMICS
The amplitude ratio and phase angle for these first-order processes are:
, ,
1 1 1
b
1 1 1
The overall :
Example 9.4:
a
2 1
Solution:
Set:
2 1
2 1
222
CHAPTER NINE
1 2
Let: 1
tan tan
223
FREQUENCY DOMAIN DYNAMICS
b
1 2
2
tan c
1
Example 9.5:
Solution:
Set:
cos sin b
cos
sin
cos sin √1 1
sin
tan tan
224
CHAPTER NINE
θ tan tan
Example 9.6:
Find the amplitude ratio and phase angle for P, PI, PID Controllers:
i. P –action,
ii. PI-action, 1 )
iii. PID-action, 1 )
Solution:
i. Set:
0
tan tan tan 0 0°
ii. Set:
1 1 )
√ 1
225
FREQUENCY DOMAIN DYNAMICS
K
tan tan tan
iii. Set:
1 )
1
1 1
1
1
tan tan
226
CHAPTER NINE
Example 9.7:
Use low and high frequency asymptotes to plot Bode diagram for the first-order lag:
Solution:
Set:
tan
.
1
.
1
As ∞
227
FREQUENCY DOMAIN DYNAMICS
log 1 log
If 1
log = log 0
0.0 0.0
∞ 90°
System Stability:
When you analyze the plot, if the phase angle does not reach 180°, the system is
stable.
Example 9.8:
228
CHAPTER NINE
2 1
Solution:
Set:
1 2
tan
As ∞, will dominate:
This is an equation of straight line of slope = -2 and it cuts the y-axis at , and
229
FREQUENCY DOMAIN DYNAMICS
τω =1
If 1
log 2 log
0.0 0.0
180°
∞ 360
230
CHAPTER NINE
At the phase angle of -180° the frequency is equal to the cross over frequency and
AR = 1
From AR =1, and you can obtain, the ultimate gain , and ultimate period
231
FREQUENCY DOMAIN DYNAMICS
Example 9.9:
1 6
·
2 1 5 1
, tan
Setting
·
√ √
tan 2 tan 5
232
CHAPTER NINE
Example 9.10:
Plot Bode diagram and find the limit of stability and the adjustable parameters
( , , ) using Ziegler-Nicolas Criterion.
233
FREQUENCY DOMAIN DYNAMICS
Solution:
∏ of OLTF
∑ of OLTF
tan
· · ·
√ √ √ √
log
√
Plot:
AR °
0.0
∞ 90
234
CHAPTER NINE
- Extend a horizontal line from (-180°) to cut the phase angle curve at the
point .
- Drop a vertical line from point (a) to cut the x-axis at point (b).
- The reading at point (b) on the x-axis is the cross-over frequency.
AR = 1
Putting AR =1, the value of you can obtain the ultimate gain:
at AR = 1 and
235
FREQUENCY DOMAIN DYNAMICS
In this example:
0.0373
168.45
.
5.25
Type of controller
P 2.628 - -
PI 2.365 140.125 -
Example 9.11:
Take the pervious OLTF, use MATLAB to plot Bode diagram and obtain the
ultimate gain and period.
Solution:
OLTF
60 1 30 1 20 1 15 1
» num=[1];
236
CHAPTER NINE
At 180° , 0.0373
5.25
Calculate:
168.45
.
237
FREQUENCY DOMAIN DYNAMICS
Gain Margin:
Where K is the product of all gains (overall gain) of all other elements in the
loop, or the gain margin:
Phase Margin:
The phase margin is the difference between (-180°) and the phase angle at the
frequency for which AR = 1:
180° |
238
CHAPTER NINE
Example 9.12:
The ultimate gain of a controller is determined to be, = 12.8 and the gain margin,
GM = 2 use these data to tune a proportional controller.
Solution:
. .
2 6.4
A Nyquist plot also called a polar plot of G-plane plot is a plot of amplitude ratio
versus phase angle (polar plot) as the frequency is varied from zero to infinity.
Example 9.13:
a
1
Solution:
Set
, tan b
When 0
tan 0 0°
239
FREQUENCY DOMAIN DYNAMICS
1
When
, tan 1 45°
√
AR
0.0 0
1 √2 45°
∞ 0 90°
Plot AR versus :
240
CHAPTER NINE
Rule:
If a polar plot of the total OLTF of the system wraps a round (-1,0) point in the s-
plane as the frequency goes from zero to infinity, the system is closed-loop
unstable.
The following polar plots show that system A is closed-loop unstable where as
system B is closed-loop stable.
Example 9.14:
241
FREQUENCY DOMAIN DYNAMICS
Use a proportion controller to plot the Nyquist plot and determine the stability of the
system.
Solution:
OLTF
1 0
The roots lie on LHP and the system is open-loop stable and there is no need to
plot Nyquist diagram.
It must be observed that Nyquist plot is a unique characteristic of the system (i.e it
is like a finger print).
242
CHAPTER NINE
Matlab format:
>> num= [ ];
>> den=[ ];
>> sys=tf(num,den)
>> bode(sys)
where:
Example 9.15:
>> num=[2];
>> bode(num,den)
243
FREQUENCY DOMAIN DYNAMICS
244
CHAPTER NINE
Example 9.16:
Draw a Nyquist plot for the following open loop transfer function:
1
0.5 1
>> num=[1];
>> nyquist(num,den)
• Level and B.O.D. control in constructed wetland, produced water in oil field
245
FREQUENCY DOMAIN DYNAMICS
• Loop1:
2
0.15 1
0.8 1
1.5 1 0.05 1
246
CHAPTER NINE
2 0.8 1.6
. .
0.15 1 1.5 1 0.15 1 1.5 1
1.6 1
. .
0.15 1 1.5 1 0.05 1
1.6
0.15 1 1.5 1 0.05 1
247
FREQUENCY DOMAIN DYNAMICS
Multiply by 10:
Rows Coefficients
0.1125 17
3.075 10 16
16.63 0.59 0
10 16 0
0.1125 3.075 17 10 16 0
0.1125 17 0
0.1125 17
248
CHAPTER NINE
17
12.3 rad/sec
0.1125
3.075 12.3 10 16 0
28.5
2 2
0.51 sec
12.3
16
OLTF
0.1125 3.075 17 10
MATLAP format:
>> num=[16];
>> rlocus(num,den)
249
FREQUENCY DOMAIN DYNAMICS
2 2
0.51 sec
12.3
16
OLTF
0.1125 3.075 17 10
MATLAP format:
>> num=[16];
250
CHAPTER NINE
>> bode(num,den)
• From the figure at -180˚ and the phase angle curve read the cross-over
frequency.
12.2 rad/sec
2 2
0.515 sec
12.2
251
FREQUENCY DOMAIN DYNAMICS
A ‘property editor’ window will appear. Select ‘units’ option and then change
AR from (db) to (abs). Then find the value of AR at from the new curve.
0.0367
1 1
27.25
0.0367
252
CHAPTER NINE
Ziegler-Nichols tuning
Type of controller
P 0.5 - -
PI 0.45 -
1.2
PID 0.6
2 8
P-Controller:
14.105
PI-Controller:
, 0.511
12.69 , 0.426
1.2 1.2
PID-Controller:
16.92
253
FREQUENCY DOMAIN DYNAMICS
, 0.511
0.256
2 2
, 0.511
0.064
8 8
For P-controller:
1.6
0.15 1 1.5 1
1.6
1
0.15 1 1.5 1 0.05 1
1.6 0.05 1
0.01125 0.3075 17 1 1.6
14.105
1.6 0.05 1
0.01125 0.3075 17 1 1.6
1.128 1 22.57
0.01125 0.3075 1.7 23.57
MATLAB is used to plot the step response from the closed loop transfer
function for P, PI, PID:
MATLAB format:
254
CHAPTER NINE
>> step(num,den)
255
FREQUENCY DOMAIN DYNAMICS
Constructed wetland
256
CHAPTER NINE
Control strategy
3
0.2 1
1
0.5
3 1 1
0.8
0.5
4 1 1
257
FREQUENCY DOMAIN DYNAMICS
3 1
.
0.2 1 3 1 1
1.5
0.2 1 3 1 1
3
0.2 1 3 1 1 1.5
1.5
1 0
0.2 1 3 1 1
0.2 1 3 1 1 1.5 0
258
CHAPTER NINE
Rows Coefficients
0.6 4.2
3.8 1 1.5
4.04 0.237 0
1 1.5 0
4.04 0.237 0
17.05
0.6 4.2 0
4.2
2.64 rad/sec
0.6
259
FREQUENCY DOMAIN DYNAMICS
2 2
2.38 sec
2.64
Comparison between the gain obtained from Routh and direct substitution:
1.5
OLTF
0.2 1 3 1 1
MATLAP format:
>> num=[1.5];
>> rlocus(num,den)
260
CHAPTER NINE
2 2
2.39 sec
2.62
Bode plot
MATLAP format:
>> num=[1.5];
261
FREQUENCY DOMAIN DYNAMICS
>> bode(num,den)
2.63 rad/sec
2 2
2.39 sec
2.63
262
CHAPTER NINE
0.0609
1 1
16.4
0.0609
Ziegler-Nichols tuning:
263
FREQUENCY DOMAIN DYNAMICS
3 0.8
. .
0.2 1 3 1 1 1.5 4 1
3 0.4
. .
0.2 1 3 1 1 1.5 4 1
3 0.4
1 . 0
0.2 1 3 1 1 1.5 4 1
8.385
264
CHAPTER NINE
Expand eq.:
This eq. can be solved by Routh or by direct substitution method using the same
procedure.
1.2 1
OLTF .
0.2 1 3 1 1 1.5 4 1
10.062
OLTF
2.4 15.8 20.6 58.512 13.578 10.062
MATLAP format:
>> num=[10.062];
>> rlocus(num,den)
265
FREQUENCY DOMAIN DYNAMICS
2.83 0.847rad/sec
2 2
7.41 sec
2.62
Bode plot:
1.2 1
OLTF .
0.2 1 3 1 1 1.5 4 1
10.062
OLTF
2.4 15.8 20.6 58.512 13.578 10.062
MATLAP format:
>> num=[10.062];
266
CHAPTER NINE
>> bode(num,den)
0.842rad/sec
2 2
7.458 sec
2.62
267
FREQUENCY DOMAIN DYNAMICS
0.429
1 1
2.33
0.429
The remainder of the procedure is left for the student to solve using the same
procedure.
268
CHAPTER NINE
Treatment technique:
269
FREQUENCY DOMAIN DYNAMICS
Tricking filtration
Aerated lagoon
The aerated lagoon consists of an earthen tank; the aeration is accomplished with
diffused air. Detention time varied from 3 to 5 days.
8. Oxidation ditch
This is an extended aeration system with low organic loadings and high mixed
liquor suspended solids concentration of the order of 400 mg/l .
270
CHAPTER NINE
Control strategy
3
0.2 1
3
0.1
3 1 4 1
1.5
0.3 1
0.85 1
4.5 1 2 0.2 1
271
FREQUENCY DOMAIN DYNAMICS
0.9
OLTF
0.2 1 3 1 1 0.1 1
0.9
1 0
0.2 1 3 1 1 0.1 1
272
CHAPTER NINE
Rows Coefficients
0.98 4.3 0
3.95 1 0.9 0
16 0.882 0 0
3.95
1 0.9 0 0
16 0.882
0
3.95
18.14
0.98 4.3 0
273
FREQUENCY DOMAIN DYNAMICS
4.3
2.09 rad/sec
0.98
2 2
3.0 sec
2.09
0.9
OLTF
0.2 1 3 1 1 0.1 1
0.9
OLTF
0.06 0.98 4.22 4.3 1 0.9
MATLAP format:
>> num=[0.9];
>> rlocus(num,den)
274
CHAPTER NINE
2 2
2.39 sec
2.14
Bode plot
MATLAP format:
>> num=[0.9];
275
FREQUENCY DOMAIN DYNAMICS
>> rlocus(num,den)
2.09 rad/sec
2 2
3 sec
2.14
276
CHAPTER NINE
0.0.0598
1 1
16.722
0.0598
The remainder of the procedure is left for the student to solve using the same
procedure.
277
Chapter Ten
Interaction and Decoupling
INTERACTION AND DECOUPLING OF CONTROL LOOPS
10.1 Introduction:
Two characteristics should be clear concerning the design of control systems for
processes with multiple inputs and multiple outputs (M/I) and (M/O):
278
CHAPTER TEN
These two characteristics dictate the content of this chapter. In particular, we will
study:
Consider a process with two controlled outputs and two manipulated inputs. The
input-output relationships are given by
279
INTERACTION AND DECOUPLING OF CONTROL LOOPS
10.1
10.2
Let us form two control loops by coupling with and with as show in
Figure 10.1b. To simplify the presentation, we have assumed that the transfer
functions of the measuring devices and final control elements in both loops are equal
to 1 if and are the transfer functions of the two controllers, the values
of the manipulations are given by:
.SP 10.3
.SP 10.4
To understand the nature of interaction between two control loops and how it arises,
we will study the effects of input changes on the outputs when 1. one loop is closed
and other is open, 2. both loops are closed.
1. One loop closed: Assume that loop1 is closed and loop 2 is open. Also
assume that constant [i.e., 0,
280
CHAPTER TEN
281
INTERACTION AND DECOUPLING OF CONTROL LOOPS
make a change in the set point . . After substituting eq. (10.3) into eqs. (10.1)
and (10.2) we take
. 10.5
1
. 10.6
1
It is clear, then, that any change in the set point . will affect not only the behavior
of the controlled output , but also the uncontrolled output . The dashed lines in
Figure 10.2a indicate schematically the routes through which . affects the two
outputs. Similar conclusions are drawn if we consider loop 1 open and loop 2 closed.
The situation becomes more complex when both loops are closed.
2. Both loops closed (10.2b): Initially, the process is at steady state with both
outputs at their desired values. Consider a change in the set point .
only, and keep the set point of loop 2 the same (i.e., . 0 . then the
following things happen:
(a) The controller of loop 1 will change the value of in such a way as to
bring the output to new set point value. This is the direct effect of
on through loop1, and is shown schematically by the dashed line in
(10.2b).
(b) The control action of will not only attempt to bring to the new set
point, but will also disturb from its steady-state value. Then the controller
of loop 2 attempt to compensate for the variations in by changing
appropriately the value of the manipulated variable . But a change in
, in turn, affects output . This is an indirect effect of on through
282
CHAPTER TEN
The regulatory action of a control loop deregulates the output of another loop (in
the same process), which in turn takes control action to compensate for the variations
in its controlled output, disturbing at the same time the output of the first loop.
1 . . 10.7
1 . . 10.8
Solve eqs. (10.7) and (10.8) with respect to the controlled outputs and and take
the following closed –loop input-output relationships:
. . 10.9
. . 10.10
Where:
283
INTERACTION AND DECOUPLING OF CONTROL LOOPS
and
1 1 1.11
It observed that:
. .
1 1
The closed-loop stability of the two noninteracting loops depends on the roots of
their characteristic equations. Thus if the roots of the two equations have negative
real parts, the two noninteracting loops are stable.
1 0, 1 0 10.12
Thus if the roots of eq. (10.13) have negative real parts, the two interacting loops are
stable.
284
CHAPTER TEN
4. Suppose that the two feedback controllers and are tuned separately
(i.e., keeping the loop under tuning closed, and the other open). Then we
cannot guarantee stability for the overall control system, where both loops
are closed. The reason is simple: Tuning each loop separately, we force the
roots of the characteristic equations (10.12) for the individual loops to
acquire negative real parts. But the roots of these equations are different from
the roots of the characteristic equation (10.13) which determine the stability
of the overall system with both loops closed.
5. Normally, we tune the two controllers in such a way that the roots of all eqs.
(10.12) and (10.13) have negative real parts. Such tuning guarantees stability
when both loops are closed [roots of eq. (10.13)], or only one is closed while
the other is open [roots of eq. (10.12)], due to a hardware failure.
6. The previous discussion indicates that the interaction between control loops
is a significant factor and affects in a very profound manner the “goodness”
of a control system. For this reason, a control designer attempt to couple the
manipulated variables with the controlled outputs in such a way as to
minimize the interaction of the resulting control loops. If strong interactions
persist for any possible pairing, the control engineer will design a special
control system which eliminates the interaction (decoupling and loops.
A stirred tank heater. Figure 3 shows the two control loops: loop 1 controls the
liquid level by manipulating the effluent flow rate, and loop 2 regulates the
temperature by manipulating the stream flow rate. Let us see how the two loops
interact:
1. When the inlet flow rate (load) or the desired value of liquid level (set point)
change, loop 1 attempt to compensate for the changes by manipulating the
285
INTERACTION AND DECOUPLING OF CONTROL LOOPS
value of the effluent flow rate. This, in turn, will disturb the temperature of
the liquid in the tank and loop 2 will compensate by adjusting appropriately
2. If, on the other hand, the temperature of the inlet stream (load) or the desired
value of the temperature (set point) changes, loop 2 will adjust the steam flow
rate to compensate for the changes. This will leave the liquid level
undisturbed.
Thus we notice that loop 1 affects loop 2, but not vice versa. In other words, the
interaction is in a single direction.
286
CHAPTER TEN
In the CSTR of Figure 10.4, the temperature is controlled by the flow of coolant
in the jacket while the effluent concentration and temperature are at their desired
values.
287
INTERACTION AND DECOUPLING OF CONTROL LOOPS
It is clear from the above that loop1 interacts with loop 2 in both directions (unlike
the loops of the stirred tank heater, which interact in a single direction).
Assume that the input-output relationships of a process with two controlled outputs
and two manipulated inputs are given by:
1 5
0.1 1 1
1 2
0.5 1 0.4 1
Solution:
From two loops by coupling with and with . The closed-loop input-
output relationships are given by eqs. (10.9) and (10.10), where
1 5 1 2
, , ,
0.5 1 1 0.5 1 0.4 1
1. Tuning each loop separately: The characteristic equation of loop 1 (when loop
2 is open) is given by
1 1 0
0.1 1
and yield the closed-loop pole
288
CHAPTER TEN
10 1 0
Therefore, when loop 2 is open, loop1 is stable for any value of gain .
Similarly, the closed-loop pole for loop 2 when loop 1 is open is given by
2.5 1 0
and consequently, loop 2 is stable for any value of when loop 1 is open.
2. Tuning with both loops closed: When both loops are closed, the characteristic
equation is given by eq. (1.13) and for this example takes the following form:
2 5 1
1 1 0
0.1 1 0.4 1 1 0.5 1
or
According to the first test of the Routh-Hurwitz criterion for stability eq. (10.14) has
at least one root with positive real part if any of its coefficients are negative. Thus
the closed-loop behavior of the process is unstable if and take on such
values that make the last term of eq. (10.14) negative [all other terms in eq. (10.14)
are always positive]:
1 2 3 0 10.15
Inequality (10.15) places restrictions on the value that and can take, to
render a stable performance when both loops are closed. This is in direct contrast to
our earlier result [see (10.1) above], whereby all values of and were
acceptable if each loop were tuned separately.
289
INTERACTION AND DECOUPLING OF CONTROL LOOPS
Note: The allowable range of values that and which render stable
responses when both loops are closed, can be found by applying the second test of
the Routh-Hurwitz criterion. The reader is encouraged to complete this example and
find the range of values of and , which render stable response.
Definitions
Consider a process with two outputs and two inputs. Then do the following two
experiment:
1. Assume that remains constant (Figure 5a). Introduce a step change in the
input of magnitude ∆ and record the new steady-state value of output
. Let ∆ be the change from the previous steady-state. It is clear that it has
been caused only by the change in . The open-loop static gain between
and when is kept constant is given by:
∆
∆
290
CHAPTER TEN
2. In addition to the static gain computed above, there is another open-loop gain
between and when varies by a feedback loop controlling the other
output, (Figure 5b). Thus, introducing a step change ∆ we record a
change ∆ in the steady-state value of . In general, ∆ will be different
from ∆ for the following reason: The input change ∆ affects not only
but also . Then the control loop attempts to keep constant by
varying , which in turn affects the steady-state value of . Therefore
∆ is compound result of the effects from and . Let the new open-
loop gain between and , when is kept constant by the control loop,
291
INTERACTION AND DECOUPLING OF CONTROL LOOPS
be given by:
∆
∆
The ratio of the two open-loop gains computed above defines the relative gain, ,
between output and input :
∆ /∆
10.16
∆ /∆
292
CHAPTER TEN
∆ /∆
relative gain between y and m
∆ /∆
∆ /∆
relative gain between y and m
∆ /∆
∆ /∆
relative gain between y and m
∆ /∆
The values of these gains can also be used as measure of interaction for the
corresponding cases, in a similar way as it was done above for .
293
INTERACTION AND DECOUPLING OF CONTROL LOOPS
For a process with two outputs there are two different loop configurations, shown
in figure 10.2. Let us see how we can use the relative gains to select the
configuration with minimum interaction between the loops.
It can be shown that the sum of the relative gains in any row or column of the array
is equal to 1. Thus
1 1
and 10.17
1 1
Therefore, we need to know only one of the four relative gains, while the other three
can be easily computed. For example, if 0.75, then 0.25 and
0.75.
1 0
0 1
and it is obvious that we can have two noninteracting loops: coupled with and
coupled with (Figure 10.2a).
294
CHAPTER TEN
0 1
1 0
The l’s in the off-diagonal elements indicate that we can form two noninteracting
control loops by coupling with and with (Figure 10.2b).
0.5. Then
0.5 0.5
0.5 0.5
and the amount of interaction between the two loops is the same in both
configurations of Figure 10.2. In other word, it does not matter how we couple inputs
and outputs; the degree of interaction remains the same.
0.25 0.25
0.75 0.75
The two larger numbers (i.e. 0.75) indicate the recommended coupling with smaller
amount of interaction. Thus we couple with and with (Figure 10.2b).
0.8 0.2
0.2 0.8
295
INTERACTION AND DECOUPLING OF CONTROL LOOPS
In other words, the response of the outputs is held back by the interaction from
the other loop, and the larger the value of the relative gains above unity, the
larger the “holding back” effect will be. Thus we need larger values for the
controller gains.
2. If you couple with and with , the corresponding values for
and are negative. In this case, the interaction will take the controlled
outputs in the opposite direction from that desired by the control effort and
control will be lost altogether. Therefore, never form loops by coupling to
outputs with negative relative gains.
We can summarize all the forgoing observations with the following rule for
selecting the control loops:
Select the control loops by pairing the controlled outputs with the
manipulated variables in such a way that the relative gains are positive
and as close as possible to unity.
296
CHAPTER TEN
1 5
a
1 0.1 1
0.2 0.8
b
0.5 1 1
Solution:
1 1 1 0.2 1 1
, lim lim
1 0.1 1 0.8 0.5 1
1.25
297
INTERACTION AND DECOUPLING OF CONTROL LOOPS
∆ /∆ 1
0.8
∆ /∆ 1.25
Two streams with flow rates and and compositions (mole percent)
80% and 20% are mixed in a vessel (Figure 10.6a). We would like to form
two control loops to regulate the product composition x and flow rate F. Let F
and be the two controlled outputs, while and are the two
available manipulated variables. There are two possible control configurations with
different pairings between the inputs and outputs, and they are shown in Figure 10.6b
and c. Which one should be preferred?
Solution:
298
CHAPTER TEN
299
INTERACTION AND DECOUPLING OF CONTROL LOOPS
Remarks:
300
CHAPTER TEN
and we need to examine all of them before we can select the set of two loops with
minimal interaction. (Note: In general, , ,etc.)
3. There are two ways to obtain the relative gains of a process: a computational
approach using a steady state input-output model for the process and an
experimental approach. When a steady-state model is available, we can
obtain the numerator and denominator of the relative gain [see eq. (10.16)] in
a very simple manner. This way we can express the relative gains in terms of
the controlled and manipulated variables themselves, which enables us to
evaluate the interaction across a range of operating conditions.
4. For an existing process we can evaluate the relative gains experimentally by
performing the following two experiments:
(a) Experiment 1 (all loops open): Keeping all loops open, make a small step
change ∆ in , keeping constant. Record the changes in the steady-
state values of and (i.e., ∆ and ∆ ). Then compute
∆ ∆
and
∆ ∆
Return the system to the initial steady state and repeat the same experiment
by varying by ∆ . Record the changes ∆ and ∆ and compute
∆ ∆
and
∆ ∆
301
INTERACTION AND DECOUPLING OF CONTROL LOOPS
Repeat the same experiment, but now keep constant through a control loop
with . Record the change ∆ and compute the gain
∆
∆
5. The definitions of the relative gains and their use in selecting the control
loops are not limited to systems with two inputs and two outputs. The
extension to general processes is straightforward. Thus the relative gain
between an output and a manipulation is defined by:
∆ /∆
∆ /∆
The subscript denotes constant values for all manipulations except
(i.e., all loops open), while subscript indicates that all outputs except are
kept constant by the control loops (i.e., all loops are closed). Similarly, the
relative-gain array is given by:
...
...
...................
...
302
CHAPTER TEN
(Note: We have neglected the energy balance because the temperature of the
product stream is not our operating requirement.) The desired steady state for
operational purposes is
mol
200 and 60% by moles
hr
With these values we find the following steady-state solution of eqs. (a) and (b):
Therefore,
Δ 1 Δ 0.0012
1 0.0012
Δ 1 Δ 1
Therefore,
Δ 1.67
1.67
Δ 1
303
INTERACTION AND DECOUPLING OF CONTROL LOOPS
∆ /∆ 1
0.6
∆ /∆ 1.67
0.6 0.4
0.4 0.6
1. The two loops with minimum interaction are formed when we couple with
and with (Figure 10.6b).
2. Although the interaction between the two selected loops is smaller than that
of the alternative configuration (Figure 10.6c), it is still significant. Thus any
control action to regulate will seriously disturb , and vice versa.
Example 10.6:
Consider the transfer function model:
F R
2 1.5
xd
10 1 1
1.5 2
T
1 10 1
Use the RGA approach to determine the recommended controller pairing based on
steady state considerations.
Manual Solution:
The corresponding steady state gain matrix is:
304
CHAPTER TEN
2 1.5
1.5 2
1
1 12 21
11 22
1
1.5 1.5 0.64
1 2 2
0.64 0.36
Λ
0.36 0.64
y Vs m
1. Enter the steady state gain matrix (k) to the command window:
>> b=inv(k)
b=
0.3200 0.2400
0.2400 0.3200
3. Obtain the transpose of the inverse of the steady state gain matrix (c):
>> c=b'
c=
305
INTERACTION AND DECOUPLING OF CONTROL LOOPS
0.3200 0.2400
0.2400 0.3200
RGA =
0.6400 0.3600
0.3600 0.6400
y Vs m
Example 10.7:
Based on the following steady state gain matrix,
1. Enter the steady state gain matrix (k) to the command window:
>> b=inv(k)
306
CHAPTER TEN
b=
7.4214 11.0767 0.1262
1.8830 4.6522 0.4680
5.5383 15.7288 0.40583
3. Obtain the transpose of the inverse of the steady state gain matrix (c) :
>> c=b'
c=
RGA =
y Vs m
y Vs m
307
INTERACTION AND DECOUPLING OF CONTROL LOOPS
The relative-gain array indicates how the inputs should be with the outputs to
form loops with the smaller amount of interaction. But the persisting interaction,
although it is the smallest possible, may not be small enough. In such a case, the two
control loops still affect each other’s operation very seriously, and the overall control
system is characterized as unacceptable.
When the designer is confronted with two strongly interacting loops, he or she
introduces in the control system special new elements called decouplers. The
purpose of decouplers is to cancel the interaction effects between the two loops and
thus render two noninteracting control loops. Let us now study how we can design
the decouplers for a process with two strongly interacting loops.
Consider the process whose input-output relationships are given by eqs. (10.1)
and (10.2). From two control loops by coupling with and with (see
Figure 10.1b).
Assume that initially both outputs are at the desired set point values. Suppose that
a disturbance or set point change causes the controller of loop 2 to vary the value of
. This will create an undesired disturbance for loop 1 and will cause to deviate
from the desired value. However, we could change by such an amount as to
cancel the interaction effect from . But the question arises: How much should we
change ?
From eq. (10.1) we find that in order to keep constant (i.e., 0), should
change by the following amount:
308
CHAPTER TEN
10.18
which uses the value of as input and provides as output the amount by which we
should change , in order to cancel the effect of on . This dynamic element
called decoupler and when it is installed in the control system (Figure 10.7a) it
cancels any effect that loop 2 might have on loop 1, but not vice versa.
To eliminate the interaction from loop 1 to loop 2, we can follow the same
reasoning as above and we find that the transfer function of the second decoupler is
given by:
10.19
309
INTERACTION AND DECOUPLING OF CONTROL LOOPS
310
CHAPTER TEN
The block diagram of the process with two feedback control loops and two
deccouplers is given in Figure 10.7b.
From the block diagram of Figure 10.7b it is easy to develop the following two
closed-loop input-output relationships:
/
. 10.20
1 /
/
. 10.21
1 /
The last two equations demonstrate complete decoupling of the two loops since the
controlled variable of each loop depends only on its own set point of the other loop.
Figure 10.7c shows the net block diagram of the two noninteracting loops describe
by eqs. (10.20) and (10.21). It is completely equivalent to that Figure 10.7b.
Remarks:
1. Two interacting control loops are perfectly decoupled only when the process
is perfectly known, because only in this case are the transfer functions ,
, and known exactly. Since this requirement is rarely specified in
practice, the decouplers, offer only partial decoupling, with some weak
interaction still persisting between the two loops.
2. As we have mentioned repeatedly, chemical processes are mostly nonlinear
and nonstaionary (i.e., the values of their parameter change). Therefore, even
if the decoupling is initially perfect, as the desired operating conditions
change, the decoupling deteriorates. One solution to this problem is to use
adaptive decouplers. Thus as the process changes, we estimate the new
transfer function , , and and compute new decouplers. How to
311
INTERACTION AND DECOUPLING OF CONTROL LOOPS
design new adaptive decouplers is quite complex and goes beyond the scope
of this text.
3. Perfect or very good decoupling allows independent tuning of each controller
without risking the stability of the overall system.
4. A close examination of Figure 10.7b reveals that for all practical purposes the
decouplers are essentially feed forward control elements. Thus decouplers
measures the changes in and takes appropriate action to cancel the effect
that would have on before it has been felt by .
5. If the decouplers are designed using steady-state models for the process, we
talk of steady-state or static decoupling. Equations (10.18) and (10.19)
provides the design dynamic decouplers. It should be emphasized that of
severely interacting loops, static decoupling is better than no decoupling at
all.
6. For a general process with two inputs and two outputs, we need two
decouplers to produce noninteracting loops. Whenever we use only one
decoupler .despite the fact that two are needed, we talk about partial or one
way decoupling. Such systems allow the interaction to travel in one direction.
Figure 10.7a shows a partial decoupling of the loops. Thus disturbance
entering loop 2 cannot disturb loop 1 due to decoupler . On the other hand,
disturbances originating in loop 1 may enter loop 2 but cannot be returned.
Let us return to the mixing process we studied in example 5. Suppose that the
operating requirements allow small variations in the product flow rate F, while
dictating very tight control on the concentration x, leaving the simple feedback
loop to regulate the value of the product flow rate, F.
312
CHAPTER TEN
Solution:
Assuming that x is kept at the desired value of 0.6, eq. (b) yields
0.8 0.2
or
The last equation describes the necessary steady-state decoupler which cancels
any effects that the flow control loop might have on the composition control loop.
Solution:
From two control loops by coupling with and with . Then the transfer
functions of the two decouplers are given by eqs. (10.18) and (10.19):
1 .
2
0.5 1
1 .
2
0.5 1
313
INTERACTION AND DECOUPLING OF CONTROL LOOPS
.
Decoupler is physically unrealizable because the term implies that we
need a future value of , which is not available at the present time now.
314
Chapter Eleven
Control Systems with Multiple Loops
CHAPTER ELEVEN
11.1 Introduction:
The feedback control configuration involves one measurement (output) and one
manipulated variable in a single loop. There are other simple control configurations
which may be used.
If there are more than one measurement and one manipulated variable or one
measurement and more than one manipulated variables in such case the control
systems with multiple loops may arise. Typical example is the cascade control.
In a cascade control configuration we have one manipulated variable and more than
one measurement.
Single Loop
315
CONTROL SYSTEMS WITH MULTIPLE LOOPS
Single Loop
316
CHAPTER ELEVEN
11.1
1
1 1
317
CONTROL SYSTEMS WITH MULTIPLE LOOPS
1 0
1 0
The overall T.F with change in set point can be obtained and analyzed.
Example 11.1:
Consider a process with the following . for its primary and secondary
processes:
,
. .
318
CHAPTER ELEVEN
Solution:
1 1
OLTF 1 a
0.1 1 0.5 1 1
319
CONTROL SYSTEMS WITH MULTIPLE LOOPS
b) The cross-over frequency can be found from the equation when we set the
total phase lag 180°
Taking each term in equation (a) and get the phase angle (all are first-order except
term (1 )
b
1
tan c
For 1
Put:
1 1
1 1 d
tan tan
320
CHAPTER ELEVEN
1
1 e
tan f
180°
1 · · ·
. . √
4.45
1 1 · · ·
. . . . . .
11.88
321
CONTROL SYSTEMS WITH MULTIPLE LOOPS
Example 11.2:
Show the procedure how to tune the cascade control system using the following
diagram:
Solution:
1
OLTF a
0.1 1
Proportional-action
322
CHAPTER ELEVEN
Large gain can be used to make the response faster without crossing over the zone
of stability.
OLTF b
1
323
CONTROL SYSTEMS WITH MULTIPLE LOOPS
It measures the controlled variable, sends a signal to the controller to make the
appropriate correction to track the desired value (S.P.).
324
CHAPTER ELEVEN
It measures the inlet stream and adjusts appropriately the manipulated variable so
that the manipulated variable will track the set point value before it enters the
process.
Example 11.3:
Heat- Exchanger
325
CONTROL SYSTEMS WITH MULTIPLE LOOPS
- The feedback loop measures the temperature of the controlled variable and
sends a signal to the controller; the controller output will track the s.p. On the
other hand the feed forward-loop measures the temperature of the feed before
it enters the tank heater and sends a signal to controller 2. Controller2 will
track the set point and sends a signal to a summing point where it will be added
with the feedback signal, the resulting signal will adjust the flow rate of the
heating media so as to keep the outlet temperature as near as possible to both
set points.
326
CHAPTER ELEVEN
All the dynamic components of the closed-loop may have significant time delays
in their response, thus:
2. The measuring element may require long period of time for sampling and
analysis such as the gas chromatograph.
3. The final control element may need some time to develop the actuating signal.
4. A controller whether analog or digital may need time to take the proper control
action.
327
CONTROL SYSTEMS WITH MULTIPLE LOOPS
11.2
0.5 1
If ‘ 0.01 min
328
CHAPTER ELEVEN
- For simplicity, 1
Then the open-loop response:
329
CONTROL SYSTEMS WITH MULTIPLE LOOPS
11.3
a 1 11.4
b a 11.5
b 11.6
b 11.7
330
CHAPTER ELEVEN
The feedback control configuration involves one measurement (input) and one
(output) in a single loop. But there may be more than one measurement and one
manipulated variable or one measurement and more than one manipulated variables.
It is a control situation to change from normal control action and attempt to prevent
a process variable from exceeding an allowable upper or lower limit. This can be
achieved through the use of special type of switches. The High Selector Switch
(HSS) is used whenever a variable should not exceed an upper limit, and Low
Selector Switch (LSS) is employed to prevent a process variable from exceeding a
lower limit.
Example 11.4:
331
CONTROL SYSTEMS WITH MULTIPLE LOOPS
Solution:
If it is required that the low level should not go below 20% of the set point level, this
means that when the level is above 20%, the level controller will work normally
within the set point, at the same time the signal from the level transmitter will always
be reported to LSS. If the level goes below 20%, the LSS switch will override the
level controller and reduce the steam rate so that the column will not boil dry. When
the level goes above 20% the level controller will then work normally and so on.
332
CHAPTER ELEVEN
Ratio control is special type of feed forward control where two disturbances (loads)
are measured and held in constant ratio to each other. It is mostly used to control the
ratio of flow rates of two streams. The stream whose flow rate is not under control
is referred to as wild stream, while the stream under controlled is termed
manipulative stream, the following figure shows the physical block diagram of a
ratio control system:
333
CONTROL SYSTEMS WITH MULTIPLE LOOPS
Adaptive control system is the system that can adjust its adjustable parameters
automatically in such a way as to compensate for variation in disturbances of the
process it controls.
Examples are decay of catalysts activity in a reactor and overall heat transfer
coefficient in a heat-exchanger due to scales and fouling. These changes lead to a
deterioration of the performance of the process, which was designed and tuned using
some nominal values from Z-N, to cope with these changes, this may need adaptation
of the adjustable parameters continuously and automatically as the changes may
require. This may need adaptive tuning of the controller using any one of the
following performance criteria:
i- - decay ratio
334
CHAPTER ELEVEN
For example, variation in process parameters may lead to decay ratios higher than ,
in such case the adaptive mechanism will adjust the controller parameters in such a
way that the process response gives a decay ratio of .
Where:
1
1 11.8
11.9
1
335
CONTROL SYSTEMS WITH MULTIPLE LOOPS
11.10
1
11.11
1
OLTF 11.12
11.13
In this case the control valve may exhibits a nonlinear character, and in such a case
its gain will depend on the current steady-state.
2.14
Equation (11.14) yields the adapation mechanism of this simple gain scheduling
adaptive controller. The following figure shows the control structure:
336
CHAPTER ELEVEN
Often, the controlled variable cannot be measured directly, therefore we cannot use
feedback. If the disturbance that make the control upset can be measured and that an
adequate process model is made available, we could use feed forward control to keep
the unmeasured output at its desired value or set point.
337
CONTROL SYSTEMS WITH MULTIPLE LOOPS
If neither the disturbance nor the controlled variables can not be measured,
338
CHAPTER ELEVEN
11.15
11.16
Similarly
11.17
From equation (11.17) we can solve for which is the unmeasured disturbance:
11.18
Substituting equation (11.18) into equation (11.16) to find the following relation:
11.19
Equation (11.19) provides the required estimator that relates the unmeasured
controlled variable to the measured quantities likes m and z.
The following figure shows the structure of the resulting control system:
339
CONTROL SYSTEMS WITH MULTIPLE LOOPS
Note that the estimated value of the unmeasured output plays the same role as the
regular measured output.
This type of control select among several similar measurements taking the one with
the highest value and feed it to the controller which acts accordingly.
Example of such type of control is the regeneration of a catalyst. The catalyst in the
catalytic reactor undergoes deactivation as the reaction proceeds due to
carbonaceous deposit on it. It can be regenerated by burning off these deposits with
air or oxygen. To avoid destruction of the catalyst due to high temperature during
the combustion of the deposits, the following auctioneering system is designed:
340
CHAPTER ELEVEN
341
Chapter Twelve
Digital Control
DIGITAL CONTROL
12.1 Z-Transforms
The use of Z-Transforms offers a very simple an elegant method for solving linear
difference equations that result from the conversion of continuous-to discrete time
models.
Z-Transforms play the same role for discrete-time systems as that played by Laplace
transforms for dynamic analysis and design of continuous open or closed loops
systems.
Definition:
0 , , 2 …………… 12.1
0 , , 2 ∑ 12.2
∑ 12.3
Example 12.1:
F(t) = 1, Z( where =1
342
CHAPTER TWELVE
Solution:
∑ a
1 c
For| | 1, eq. (c) is a finite difference series that converges and gives:
Example 12.2:
Solution:
Taking n = 0, 1, 2, 3
343
DIGITAL CONTROL
Again if | | 1
Example 12.3:
Solution:
Taking n = 0, 1, 2, 3
0 2 3
1 2 3
As 1 2 3
Provided that | | 1
344
CHAPTER TWELVE
Example 12.4:
Solution:
sin a
But:
1
b
2
1
c
2
The Z-transform of (
1,
1 1 1
2 1 1
1 1 1
2 1 1
345
DIGITAL CONTROL
1
2 1
sin
1
sin
1 2 cos
Example 12.5:
Solution:
Let D kT
346
CHAPTER TWELVE
Let
∑ e
n=0 x = -k
I
But term I is just the Z-transform of
Linearity of Z-Transforms:
The z-transform is a linear function. thus if and are constant parameters, then:
Z[ =∑
347
DIGITAL CONTROL
t ∞ and 0
In Z-transform:
lim lim 1 ]
t 0, s ∞
Z= ∞
lim lim 1 ]
Z-Transforms of an integral
348
CHAPTER TWELVE
– 1
Area = 1
349
DIGITAL CONTROL
Z-Transform of a derivative:
1
Slope
1
Example 12.6:
Solution:
350
CHAPTER TWELVE
1
a
1 1
0 b
1
1 1
1 0 1 c
1
1
1 0 1 d
1 1
f
1
1 1
1
351
DIGITAL CONTROL
1
1
Inversion of Z- Transform:
, , ,………….. 12.4
1. The inverse Z-transform yields the values of function at the sampling instants
only.
2. The inverse Z-transform does not help to determine the sampling period T.
1. 12.5
Where:
= zero’s of order m
= Poles of order n
2. Expand the
3. 12.6
352
CHAPTER TWELVE
………… 12.7
12.8
Example 12.7:
4 3
Solution:
a
1 4 3
By factorization:
b
1 4 3 1 1 3
c
1 1 3 1 1 3
1 1
1 1 3 1 3
353
DIGITAL CONTROL
0
1 3
1 1
1 3 2
Similarly multiply equation (c) all through by (1-3 ) and set (1-3 )=0
1
3
And:
354
CHAPTER TWELVE
Properties of z-Transforms:
Like the Laplace transforms, z-transforms possess certain properties that we will
find very useful in dealing with discrete-time systems. Let us examine these
properties.
Unit step
Ramp:
!
lim 1
Exponential:
355
DIGITAL CONTROL
The overall transfer functions using analog system are differential equations inverted
to Laplace-domain which can effectively be used for analysis and design.
The introduction of a digital computer in the process control introduces the need for
handling information on a discrete-time basis at particular time instant. The
following must be observed:
- The sampler is a physical switch, which stays closed for a short finite time,
∆t.
356
CHAPTER TWELVE
How to convert continuous signals and models to discrete-time equivalent and vice
versa?
The line is interrupted by a switch, called a sampler, which closes every T seconds
and remains closed for infinitesimally short period, a time point.
357
DIGITAL CONTROL
T = Sampling time
Example 12.8:
Sampling the response of a first-order system with and without dead time?
Solution:
358
CHAPTER TWELVE
At 1
y = 0.632
To be well within the process dynamics of a first-order system take the sampling
time T = 0.1
359
DIGITAL CONTROL
To be well within the dynamic of the process take the sampling time:
0.1
Or 0. 1
Example 12.9:
Solution:
0.1
0.1
Example 12.10:
Solution:
360
CHAPTER TWELVE
Sampling an oscillating signal more than two time per cycle, (seconds)
2
The expression for the sequence of impulses coming out of the impulse sampler in
Laplace domain is:
361
DIGITAL CONTROL
Signals are changing over a large period of time with almost a constant slope of the
changing signal:
362
CHAPTER TWELVE
- Long sampling period between two successive time values to average the
response. This period should be shortened as far as possible for improvement.
1 1
Example 12.11:
Solution:
1
a
363
DIGITAL CONTROL
figure:
1
1
1
e
364
CHAPTER TWELVE
1 f
Eq. (g) is referred to as difference equation due to use of finite difference of the
approximation of integral and derivatives.
Example 12.12:
Determine the discrete time model of a linear first-order process described by:
Solution:
365
DIGITAL CONTROL
1 d
Example 12.13:
2 a
Solution:
366
CHAPTER TWELVE
1
2 c
2 2 d
2 1 2 1 f
367
DIGITAL CONTROL
- The above methodology cannot be used for dynamic analysis of digital control-
loops as these processes are discrete element (Digital-Control algorithm) and
discrete time signals.
These are two primary distinct components whose responses are very important
in the dynamic analysis of control systems
1- Digital-Control algorithm:
This is a discrete element of the DDC-Loop with discrete-time input and output
signal.
368
CHAPTER TWELVE
Once we know how to handle separately the response of these systems, we should
closed the loop and examine the dynamic response of the closed-loop digital
control systems.
- Discrete is a system whose input and output are discrete-time signals. Such as
a digital control algorithm and digital filter.
12.9
369
DIGITAL CONTROL
- The input and output signals of discrete system are related through a linear
differences equation of the general form:
12.10
̂ ̂ ̂ ̂ ̂
̂ 12.11
̂
12.12
̂ 1
Example 12.14:
Solution:
370
CHAPTER TWELVE
For n = n-1
2 c
̂ 1 ̂ ̂ 2 ̂ ̂
1 ̂ 1 ̂ ̂ 1 2 d
1 e
Eq. (e) is the discrete T.F. of the PID Controller and referred as velocity PID control
algorithm.
Example 12.15:
1 a
Where:
371
DIGITAL CONTROL
Discrete-time output from the filter i.e. the signal without noise.
Solution:
1 b
12.13
For discrete system with multiple input/outputs, we define the discrete T.F. matrix
as follows:
372
CHAPTER TWELVE
……
……
……
̂ ̂ 12.14
̂ ̂ 12.15
Example 12.15:
373
DIGITAL CONTROL
Solution:
The signal from the D/A convertor to the valve and process is discrete, it is must
be changed into continuous by the hold element such as follows:
1
a
· c
· 1
374
CHAPTER TWELVE
1 d
From Z-T-Label
e
1
1
·
1 1
f
1
lim 1 · ∞
This means that the system reaches no steady-state under a unit step change.
375
DIGITAL CONTROL
Example 12.16:
Solution:
1
· a
1
376
CHAPTER TWELVE
1 · b
1
Factorization:
c
1 1
·
1
· d
1
1 1 1
1 1
f
1 1
From Z-table:
g
1
377
DIGITAL CONTROL
1
· h
1 1
From Z-table:
in eq. (f)
1
· i
1
1
H 1
1
1 j
1
1
1
1 1
1 k
1 1
378
CHAPTER TWELVE
1
1
1
1 1 1
·
1
1 1
At steady state
1
1 1
lim 1
1 1
Example 12.17:
Make the appropriate digital analysis for two noninteracting first-order processes in
series
379
DIGITAL CONTROL
a
1 1
Solution:
1
· b
1 1
1
1 c
1 1
1 1 1
1 d
1 1
380
CHAPTER TWELVE
Or
1 f
1
g
1
lim lim 1
lim 1
0 0
lim
Example 12.18:
a
2 1
Solution:
381
DIGITAL CONTROL
1
b
c
́ 1 ́ 1
́ 1 0 ́
́ 1 0 ́
1 Critically damped
1 Overdamped
1 Underdamped
1
d
́ 1 ́ 1
382
CHAPTER TWELVE
2 1 1
e
1 1 2 1
Example 12.19:
Determine the offset for a first-order process under proportion digital control:
, Load T.F.
Assume zero=order hold the pulse T.F. of the hold element is:
Solution:
383
DIGITAL CONTROL
1
a
1
For P-Controller:
b
The discrete-time Closed-Loop response of a direct digital control loop
(DDC) is:
H
c
1 H 1 H
384
CHAPTER TWELVE
1 1
d
1 1
1 1
1 1
1
e
1 1
Where: b
1
f
1
1 1
g
1 1 1
The offset:
385
DIGITAL CONTROL
1 1
lim 1
1 1 1
1 1
1 1 1 1
1
1 h
1 1
Example 12.20:
Determine:
a) The response if the impulses enter the process without passing through the hold
element upon a unit step change.
b) The response if the impulses enter the process with the hold element upon a unit
step change.
Solution:
a)
386
CHAPTER TWELVE
1
1
1
1
1
1
1 1
387
DIGITAL CONTROL
H 1
H 1
= 1
388
CHAPTER TWELVE
lim lim 1
389
DIGITAL CONTROL
Example 12.21:
Determine the offset upon a unit step change in the controller output.
Solution:
390
CHAPTER TWELVE
H 1
̂ 1 1
1
1 1
H
̂
1 1
1
1
1
1
̂ 1
lim 1 =1
Offset = ̂
1 1
391
DIGITAL CONTROL
Example 3.22:
Solution:
A/D
392
CHAPTER TWELVE
H ·
393
DIGITAL CONTROL
Let
lim 1
lim 1 ·
The offset = 1
394
CHAPTER TWELVE
rearrangement:
Let
395
DIGITAL CONTROL
12.16
̂ 1
̂ 12.17
Where:
, ,………, are the roots (poles) of the characteristic equation which is:
1 12.18
1 Where 1, 2, … ,
The function is bounded when the root lies inside or on a unit circle in the
complex plane as shown in the following figure:
396
CHAPTER TWELVE
The stability of any system is determined by the location of the roots of its
characteristic equation of its transfer function. The characteristic equation of the
continuous system is a polynomial in the complex variable S. If all the roots of this
polynomial lie in the LHP of the S-plane, the system is stable.
The region of stability in the Z-plane can be found directly from the region of
stability in the s- plane using the basic relationship between the complex variable S
and Z:
397
DIGITAL CONTROL
12.19
12.20
12.21
| | 1
398
CHAPTER TWELVE
| | 1
The LHP of the S-plane maps into the inside of the unit circle in the Z-plane as
shown in the following figures:
Example 12.23:
Determine the conditions of stability of the OLTF with a zero hold and proportional
digital controller and first order process:
399
DIGITAL CONTROL
Solution:
1 1
H a
1
Let
1
H b
But b = which is 1
The root of the open-loop characteristic equation is b which lies inside the unit
circle and the system is open-loop stable.
1 0 c
1+ 0
1 0
400
CHAPTER TWELVE
There is a single root. It lies on the real axis in the Z-plane and its location depends
on the value of the controller gain, .
Example 12.24:
a) Analysis the stability of a digital control system with the following specifications:
1) The process transfer function is:
Where:
T = Sampling period
Proportional gain
b) Use :
0.10, 1.0, T 1
And determine the roots of the characteristic equation, comment on the stability.
c) Keep:
401
DIGITAL CONTROL
d) Keep:
Solution:
1 10
H a
0.1 1 2 1
10 50 1000
1 95 95 b
10 0.5
10 50 1000
H 1 95 95 c
1 1 1 .
1 0 d
H ·
1 H 0 , where 1
402
CHAPTER TWELVE
1 1 .
1
0 e
The closed loop characteristic equation and the value of the sample period T in
addition to , , , therefore we have to be careful in selecting the sampling
period, T to be very small.
b) Let:
0.10, 1.0, T 1
Solving for Z =
Since the magnitude of all roots is 1, it is concluded that the digital control-loop
is stable.
c) If:
0.10, 1.0, 50
It is found that one the poles moves outside the unit circle and the system is unstable,
this shows clear the destabilizing effect of the sampling period.
d) Keeping:
T = 1 and 1 with 0.01, it is found that the loop becomes unstable when
1.00 and 0.01 .
403
DIGITAL CONTROL
Example 12.25:
.
.
Solution:
1 0
.
1 0
.
1 0.368 10 1 0.368 0
4.95 0.368 0
√
,
b = 4.95, a = 1, c = 0.368
0.076, 4.876
As one root of the characteristic equation has an absolute value 1 the system is
unstable.
For characteristic equation in polynomial Z in higher order, it is not easy to solve for
Z, in such case, put:
404
CHAPTER TWELVE
Introduction:
The figure bellows shows the typical continuous feedback system that we have been
considering so far in the tutorial. Almost all of the continuous controllers can be built
using analog electronics.
405
DIGITAL CONTROL
Difference types of signals in the above digital schematic can be represented by the
following plots.
406
CHAPTER TWELVE
The purpose of this digital control tutorial is to show you how to use MATLAB to
work with discrete functions either in transfer function or state-space form to design
digital control systems.
Zero-Hold Equivalence:
In the above schematic of the digital control system, we see that the digital control
system contains both discrete and the continuous portions. When designing a digital
control system, we need to find the discrete equivalent of the continuous portion so
that we only need to deal with discrete functions.
For this technique, we will consider the following portion of the digital control
system and rearrange as follows.
407
DIGITAL CONTROL
The clock connected to the D/A and A/D converters supplies a pulse every T seconds
and each D/A and A/D sends a signal only when the pulse arrives. The purpose of
having this pulse is to require that have only samples u(k) to work on and
produce only samples of output y(k); thus, can be realized as a discrete
function.
The philosophy of the design is the following. We want to find a discrete function
so that for a piecewise constant input to the continuous system H(s), the
sampled output of the continuous system equals to discrete output. Suppose the
signal u(k) and holding it to produce a continuous signal . the sketch below
shows that is held constant at u(k) over the interval to 1 T. This
operation of holding constant over the sampling time is called zero-order hold.
408
CHAPTER TWELVE
The zero-order held signal goes through and A/D to produce the output
u(k) that will be the piecewise same signal as if the discrete signal u(k) goes through
409
DIGITAL CONTROL
By placing , we can design digital control systems dealing with only discrete
functions.
Note: There are certain cases where the discrete response does not match the
continuous response due to a hold circuit implemented in digital control systems.
For information, see lagging effect associated with the hold.
There is a MATLAB function called c2d that converts a given continuous system
(either in transfer function or state-space form) to a discrete system using the zero-
order hold operation explained above. The basic command for this in MATLAB is
The sampling time (Ts in sec/sample) should be smaller than 1/(30*BW), where BW
is the closed-loop bandwidth frequency.
Transfer Function
Solution:
410
CHAPTER TWELVE
M 1;
b 10;
k 20;
s tf ‘s’ ;
Ts 1/100
sys_d
4.837e‐05 z 4687e‐05
For continuous systems, we know that certain behaviors results from different pole
locations in the s-plane. For instance, a system is unstable when any pole is located
to the right of the imaginary axis. For discrete systems, we can analyze the system
411
DIGITAL CONTROL
behaviors from different pole locations in the z-plane. The characteristics in the z-
plane can be related to those in the s-plane by the expression
12.23
The Figure below shows the mapping of lines of constant damping ratio (zeta) and
natural frequency (W ) from the s-plane using the expression shown above.
412
CHAPTER TWELVE
If you noticed in the z-plane, the stability boundary is no longer imaginary axis, but
is the unit circle and unstable when any pole is located outside.
For analyzing the transient response from pole locations in the z-plane, the following
three equations used in continuous system designs are still applicable.
4.6
12.24
1.8
12.25
ln % /100
12.26
ln % /100
Where,
Damping ratio
W = Natural frequency (rad/sec)
Ts Settling time
Mp = Maximum overshoot
Important: The natural frequency W in z-plane has the unit of rad/sample, but
when you use the equations shown above, the W must be in the unit rad/sec.
1
0.3 0.5
Create an new m-file and enter the following commands. Running this m-file in the
command window gives you the following plot with the lines of constant damping
ratio and natural frequency.
413
DIGITAL CONTROL
numDz 1;
pzamp sys
axis ‐1 1 ‐1 1
zgrid
414
CHAPTER TWELVE
From this plot, we see poles are located approximately at the natural frequency of
(rad/sample) and the damping ratio of 025. Assuming that we have a sampling
time of 1/20 sec (which leads to 28.2 rad/sec) and using three equations
shown above, we can determine that this system should have the rise time of 0.06
sec, a settling time of 0.65 sec and a maximum overshoot of 45% (0.45 more than
steady-state value). Let’s obtain the step response and see if these are correct. Add
the following commands to the above m- file and rerun it in the command window.
You get the following step response.
415
DIGITAL CONTROL
As you can see from the plot, the rise time, settling time and overshoot came out to
be what we expected. This shows how you can use the locations of poles and the
above three equations to analyze the transient response of the system.
The root-locus is the locus of points where roots of characteristic equation can be
found as a single gain is varied from zero to infinity. The characteristic equation of
an unity feedback system is
1 0 12.27
The mechanics of drawing the root-loci are exactly the same in the z-plane as in the
s-plane. Recall from the continuous root –locus tutorial, we used the MATLAB
function called sgrid to find the root-locus region that gives an acceptable gain (K).
For the discrete root-locus analysis, we will use the function zgrid that has the same
characteristics as sgrid. The command zgrid (zeta, ) draws lines of constant
damping ratio (zeta) and natural frequency ( ).
0.3
1.6 0.7
and the requirement are a damping ratio greater than 0.6 and a natural frequency
greater than 0.4 rad/sample (these can be found from design requirements, sampling
time (sec/sample) and three shown in the previous section). The following
416
CHAPTER TWELVE
commands draw the root-locus with the lines of constant damping ratio and natural
frequency. Create a new m-file and enter the following commands. Running this m-
file should give you the following root-locus plot.
numDz 1 ‐0.3 ;
axis ‐1 1 ‐1 1
zeta 0.4;
Wn 0.3;
zgrid zeta, Wn
417
DIGITAL CONTROL
From this plot, you should realized the system is stable because all plots are located
inside the unit circle. Also, you see two dotted lines of constant damping ratio and
natural frequency. The natural frequency is greater than 0.3 outside the constant-
line, and the damping ratio is greater than 0.4 inside the constant-zeta line. In this
example, we do have the root-locus drawn in the desired region. Therefore, a gain
(K) chosen from one of the loci in the desired region should give you the response
that satisfies design requirements.
A data aquisition system is used for measurement and processing of plant signal
data before it is displayed on the operator desk or permanently recorded.
418
CHAPTER TWELVE
3. The output of the signal conditioner is fed to the multiplexing device for
multiplexing, the multiplexed data are converted to digital converter
(A/D), then to the computer for further processing, computation, storage
….. etc. the final and process data can be displayed on display panel or
recorded.
Definitions:
1. Backup systems:
Backup systems are used to allow the system to safely shutdown, allow for limited
production when the control system fails, and allow for continued plant operation.
2. Redundancy:
419
DIGITAL CONTROL
3. Algorithms:
Algorithms are set of several equations that are used in process control field for
implementation of P, PI or PID.
5. Modem:
6. Field-buses:
Field-buses are used to link sensors and actuators to DCS Systems and PLC’s so that
the information they supply can flow into plant information system.
7. Robustness:
The discrepancy between a system and its mathematical model may lead to violation
in closed-loop instability. We say the system is robust if the design performs
satisfactory under variations in the dynamics of the plant.
420
CHAPTER TWELVE
9. Stochastic inputs:
421
DIGITAL CONTROL
Unlike the situation of a direct digital control we may use the computer to change
only the set points or values of adjustable parameters for the local controllers. The
resulting system is known as supervisory control.
422
CHAPTER TWELVE
423
DIGITAL CONTROL
Assignment:
Example 1:
Solution:
, ,
, , ,
P action
I action
D action
424
CHAPTER TWELVE
Example 2:
Solution:
425
DIGITAL CONTROL
Divided by
1 h
Example 3:
2 a
Solution:
1
c
1
2 d
426
CHAPTER TWELVE
2
2 e
2 1 2 1 f
Example 4:
Solution:
2 d
427
DIGITAL CONTROL
2 e
1 1 2 f
1 1 2
Dividing by and 1
1 1 2
1 h
1 1
Example 5:
Develop a discrete time response of a first order digital filter. The input-output
relation of a digital filter is:
428
CHAPTER TWELVE
Discrete time input to the filtering algorithm i.e. the measurement signal
corrupted with process or measurement noise.
Discrete time output from the filter which is free from noise.
Solution:
or
1 1
1 1
Example 6:
1-
429
DIGITAL CONTROL
Solution:
The signal coming to the process should be continuous; a hold element must be
added
But
From table
Z-transform putting
430
CHAPTER TWELVE
1
1 1
Z-transform of
1
1 1 1
, 0 1
lim 1 lim 1 ∞
1
431
DIGITAL CONTROL
1
1
1 1
From table
1
1 1
432
CHAPTER TWELVE
Or
1
1
1
1 1
, 1
1
1
1 1
1
1
1 1
1
1
1
1
1
433
DIGITAL CONTROL
1 1
1
1
1 1
1
lim 1
1 1
lim
Example 7:
Solution:
1
1 1
434
CHAPTER TWELVE
1 1
1 a
1 1
1
1
1
1
1
from the table of Z Transform:
1 1
1
1 1
1
1
b
1
1 1
1 1
1
1 1 1
1
1
1
1
1
1
1
let
1 1
435
DIGITAL CONTROL
1
1 1
1
c
1 1
1 1
1
1 1
1
1
1
1 1
1 1
1 1 1
, 1 ∞ 1
lim 1
lim 1 .
436
CHAPTER TWELVE
1 1
lim
1 1 1 1
1
1 1
1
1
1 1
437
Chapter Thirteen
Fuzzy Logic Controller
FUZZY LOGIC CONTROLLER
13.1 Introduction:
There has been a rapid growth in the number and variety of applications of fuzzy
logic:
Fuzzy Logic is synonymous with the theory of fuzzy sets, a theory which relates to
classes of objects with unsharp boundaries in which membership is a matter of
degree.
The basic concept underlying fuzzy logic is that of a linguistic variable, i.e., a
variable whose values are words rather than numbers.
Another basic concept in fuzzy logic is that of a fuzzy if- than rule, or simply, fuzzy
rule, and the calculus of fuzzy rules.
Fuzzy logic does a good job of trading off between significance and precision-
something that humans have been managing for a very long time.
Fuzzy logic is both old and new! The modern and methodical science of fuzzy logic
is still young, yet the concepts of fuzzy logic reach right down to our bones.
438
CHAPTER THERTEN
Fuzzy logic is conventional way to map an input space to an output space, with
emphasis on the word convenient.
439
FUZZY LOGIC CONTROLLER
440
CHAPTER THERTEN
441
FUZZY LOGIC CONTROLLER
The rule-base holds the knowledge, in the form of a set of rules, of how best
to control the system.
The inference mechanism evaluates which control rules are relevant at the
current time and then decides what the input to the plant should be.
The fuzzification interface simply modifies the inputs so that they can be
interpreted and compared to the rules in the rule base.
If the output from the defuzzifier is not a control action for a process, then the system
is a fuzzy logic decision support system.
The fuzzy controller itself is normally a two-input and a single output component. It
usually a MISO system.
442
CHAPTER THERTEN
A fuzzy logic controller usually has 2 inputs and 1 output for a SISO plant.
The 2 inputs are used for accessing the current conditions of the process such that
the necessary action can be taken by providing the correct signal (which is its
output).
443
FUZZY LOGIC CONTROLLER
The inputs to the fuzzy controller is usually the error (e) which measures the system
performance and the rate at which the error changes ( ) and the output is the change
of the control signal ( ).
A fuzzifier then transforms the crisp values of e and De into corresponding fuzzy
values (usually there are several fuzzy values of e and De).
From the rule base, the fuzzy values of e and De determine which rules are to be
fired through an inferencing algorithm.
The actual control signal is obtained by adding Du to the past value of u which is
send to the plant.
13.6 Fuzzification:
444
CHAPTER THERTEN
It can be observed that in fuzzy logic control the transition from one set to
another provides a smooth transition from one control action to another.
If there is no overlapping in the fuzzy sets then the control action would
resemble bivalent control (transition from one error region to another is rather
abrupt).
On the other hand if there is too much overlap in the fuzzy sets, there would
be a lot of fuzziness and this blurs the distinction in the control action.
445
References
REFERENCES
References:
Dale, E, Edgar, T.F and Duncan, A.M “ Process Dynamic and Control. John Willey
and Sons, New York, 1998.
446