You are on page 1of 12

Comparison of PID Controller Tuning Methods

Mohammad Shahrokhi and Alireza Zomorrodi


Department of Chemical & Petroleum Engineering
Sharif University of Technology
E-Mail: shahrokhi@sharif.edu

Abstract
Proportional, Integral and derivative (PID) controllers are the most widely-used controller
in the chemical process industries because of their simplicity, robustness and successful
practical application. Many tuning methods have been proposed for PID controllers. Our
purpose in this study is comparison of these tuning methods for single input single output
(SISO) systems using computer simulation. Integral of the absolute value of the error
(IAE) has been used as the criterion for comparison. These tuning methods have been
implemented for first, second and third order systems with dead time and for two cases of
set point tracking and load rejection.

Key Words: PID Controller; Tuning Method; Set Point Tracking; Load Rejection

Introduction:
During the 1930s three mode controllers have compared the performances of several
with proportional, integral, and derivative tuning methods. For simulation study first,
(PID) actions became commercially second and third order systems with dead
available and gained widespread industrial time have been employed and it was
acceptance. These types of controllers are assumed that the dynamics of system is
still the most widely used controllers in known. Simulation study has been
process industries. This succeed is a result performed for two cases of set point
of many good features of this algorithm tracking and load rejection.
such as simplicity, robustness and wide
applicability. Many various tuning Tuning Methods:
methods have been proposed from 1942 up The PID controller tuning methods are
to now for gaining better and more classified into two main categories
acceptable control system response based - Closed loop methods
on our desirable control objectives such as - Open loop methods
percent of overshoot, integral of absolute Closed loop tuning techniques refer to
value of the error (IAE), settling time, methods that tune the controller during
manipulated variable behavior and etc. automatic state in which the plant is
Some of these tuning methods have operating in closed loop. The open loop
considered only one of these objectives as techniques refer to methods that tune the
a criterion for their tuning algorithm and controller when it is in manual state and
some of them have developed their the plant operates in open loop. The closed
algorithm by considering more than one of loop methods considered for simulation
the mentioned criterion. In this study we are::

1
-Ziegler-Nichols method Table 1- Controller parameters for
-Modified Ziegler-Nichols method closed loop Ziegler-Nichols method
-Tyreus-Luyben method Controller kc I D
-Damped oscillation method P 0.5kcu - -
Open loop methods are:
PI 0.45kcu Pu/1.2 -
-Open loop Ziegler-Nichols method PID 0.6kcu Pu/2 Pu/8
-C-H-R method
-Cohen and Coon method
-Fertik method The disadvantages of this technique are:
-Ciancone-Marline method -It is time consuming because a trial and
-IMC method error procedure must be performed
-Minimum error criteria (IAE, ISE, ITAE) -It forces the process into a condition of
method marginal stability that may lead to unstable
Before proceeding with a brief discussion operation or a hazardous situation due to
of these methods it is important to note that set point changes or external disturbances.
the non-interacting PID controller transfer -This method is not applicable for
function is: processes that are open loop unstable.
-Some simple processes do not have
G c (s) = k c (1 + t I /s + t D .s) (1)
ultimate gain such as first order and second
Where kc= proportional gain order processes without dead time.
I= Integral time
D= derivative time Modified Ziegler-Nichols Methods:
For some control loops the measure of
Closed Loop Ziegler-Nichols Method: oscillation, provide by decay ratio and
This method is a trial and error tuning the corresponding large overshoots for set
method based on sustained oscillations that point changes are undesirable therefore
was first proposed by Ziegler and Nichols more conservative methods are often
(1942) This method that is probably the preferable such as modified Z-N settings
most known and the most widely used These modified settings that are shown in
method for tuning of PID controllers is Table 2 are some overshoot and no
also known as online or continuous overshoot.
cycling or ultimate gain tuning method.
Having the ultimate gain and frequency Tyreus Luyben Method:
(Ku and Pu) and using Table 1, the The Tyreus-Luyben [10] procedure is
controller parameters can be obtained. A quite similar to the ZieglerNichols
decay ratio has considered as design method but the final controller settings are
criterion for this method. The resulting different. Also this method only proposes
controller transfer function for PID settings for PI and PID controllers. These
controller is: settings that are based on ultimate gain and
2
4
s + Table 2- Modified ZieglerNichols
Pu settings
G c (s) = 0.75k cu .Pu . (2)
s Controller
Thus the PID controller has a pole at the kc I D
Parameters
origin and double zeros at s =-4/Pu. Some
The advantage of Z-N method is that it 0.33Kcu Pu/2 Pu/3
Overshoot
does not require the process model.
No
0.2Kc Pu/2 Pu/3
Overshoot

2
Table 3- Tyreus Luyben settings These relations are also obtained to
provide a decay ratio. The formulas for
Controller kc I D the gain show that the loop gain, kc km, is
PI kcu/3.2 2.2Pu - inversely proportional to the ratio of the
PID kcu/3.2 2.2Pu Pu/6.3 effective dead time to the effective time
constant.
period are given in Table 3. The PID controller that is tuned by this
Like Z-N method this method is time method gives.
consuming and forces the system to margin 1
( S + )2
if instability. Many other algorithms have d
G c ( s ) = 0.6 m (4)
been proposed to solve these problems Km S
[7,8,9,17] by obtaining critical data Thus the PID Controller has a pole at the
(ultimate gain and frequency) under more
1
acceptable conditions. One of these origin and double zeros at: S =
methods is damped oscillation method d
In using these formulas it is important to
Damped Oscillation Method: note that they are empirical and can be
This method is used for solving problem apply only to a limited range of dead time
of marginal stability. The process is to time constant ratio. This means that they
characterized by finding the gain at which should not be extrapolated outside a range
the process has a damping ratio of . and d
of of around 0.1 to 1.0.
the frequency of oscillation at this point, m
Then similar the Ziegler-Nichols method
these two parameters are used for finding The C-H-R Method:
the controller settings. This method that has proposed by Chien,
Define Hrones and Reswich [1] is a modification
Gd = Proportional gain at decay ratio of of open loop Ziegler and Nichols method.
Pd= Period of oscillation They proposed to use quickest response
Having Gd and Pd and using Table 4, the without overshoot or quickest response
controller parameters are calculated. with 20% overshoot as design criterion.
They also made the important observation
Open Loop Ziegler-Nichols Method: that tuning for set point responses and load
In this technique the process dynamics is disturbance responses are different.
modeled by a first order plus dead time To tune the controller according to the C-
model, given below: H-R method the parameters of first order
k e ds plus dead time model are determined in the
Gm ( s) = m (3)
m s +1
Having the process model and using Table Table 5- Open loop Ziegler-Nichols
5, the controller parameters can be settings
obtained. Controller kc I D
1 m - -
Table 4 Damped oscillation method P .
Km d
relations
0.9 m d -
Controller kc I I PI .
P 1.1Gd - - Km d 0 .3
PI 1.1Gd Pd/2.6 - 1.2 pn
PID 1.1Gd Pd/3.6 Pd/9 PID . 2d 0.5d
Km d

3
same manner of the Z-N method. The Fertick Method:
controller parameters can then be This method uses a first order plus dead
determined from the Tables.6 and 7. The time model for the process:
tuning rules based on the 20% overshoot ke ds
design criterion are quite similar to the Z-N Gm ( s) = (7)
s + 1
method. However when the 0% overshoot then the Fertik controllability F , must be
criteria is used, the gain and the derivative
time are smaller and the integral time is calculated as:
larger. This means that the proportional d T
F = = d (8)
action and the integral action, as well as d + T ps
the derivative action, are smaller. Td = d T ps = d + (9)

Cohen-Coon Method: and then the normalized parameters should


In this method the process reaction curve be read from the set of graphs shown in
is obtained first, by an open loop test as Figures (2) to (4). The parameters may be
shown in Figure 1, and then the process optimized for set point or disturbance
dynamics is approximated by a first order changes. The PID controller is not
plus dead time model, with following recommended for those processes whose
parameters: Fertik controlability is greater than 0.5.
3 These processes are dominated by dead
m = (t 2 t1 ) (5)
2 time. Notice that in Fertik method desired
dm = 2 m (6) performance is minimizing ITAE with an
where 8% overshoot.
t1 = time at which C =0.283 C s
Ciancone and Marline Method:
t1 = time at which C =0.632 C s Ciancone and Marlin (1992) [11] have
C = the plant output. developed a method that enable, engineer
This method that proposed by Dr C. L. to obtain controller parameters by using
Smith [15] provides a good approximation some graphs to satisfy the control objective
to process reaction curve by first order plus given below:
dead time model Minimizing IAE
After determining of three parameters of considering
km , m and d, the controller parameters 1) 25 % change in the process model
can be obtained, using Cohen-Coon [14] parameters.
relations given in Table 8. These relations 2) Limits on the variation of the
were developed empirically to provide manipulated variable.
closed loop response with a decay ratio. These graphs are for both set point
changes and load disturbances and for PI
or PID controllers are available [11]. The
method can provide controller parameters
based on a process dynamic model. The
model they used is a first order plus dead
time model. In summery the tuning method
consists of the following steps:
1) Determining a dynamic model in the
Figure 1- Estimating of parameters of form of equation (3) using any empirical
first order plus dead time process model method, and finding k, d and .

4
2) Calculate the ratio d / ( + d ) , or fractio- feedback control system for IMC structure
nal dead time. is also shown in Figure (6b).
3) Select the appropriate graph depends on The conventional controller transfer
controller type (PI or PID) and type of function can be related to the IMC
input (set point or disturbance). controller as below:
4) Determine the dimensionless tuning GcI (10)
Gc =
1 GcI Gm
values k c k , I , D from the graphs To make the control system more robust,
d + d +
the controller is cascaded with a filter of
5) Calculate the dimensional controller
the following form:
tuning. e.g. kc = (kc.k)/k
The graphs for PID controller are given in
1
Gf = (11)
Figure (5). ( f s + 1) n
Using IMC technique, Morari and
Internal Model Control (IMC): Zafirion [12] proposed PID controller
Morari and his coworkers [12] have settings for a first order plus dead time
developed an important new control model. These settings are given in Table
system strategy that is called Internal (9).
Model Control or IMC. The IMC The choice of the best ratio of / d must
approach has two important advantages: be based on performance and robustness
(1) It explicitly takes into account model considerations. Since for PI controller a
uncertainty and (2) It allows the designer zeroth order Pade approximation is used so
to trade-off control system performance it neglects the dead time so this causes that
against control system robustness to these settings does not provide responses
process changes and modeling errors. The with good performance. This can be
IMC approach is based on the block remedies by incorporating the dead time in
diagram shown in Figure 6. In this diagram the internal model through other means
Gp is the transfer function of the process and leads to the improved PI settings,
and Gm is the transfer function of the shown in third row of Table (9)
process model. Also GcI is the IMC
controller transfer function. The equivalent Tuning Method for Minimum Error
Integral Criteria:
As mentioned before tuning for decay
ratio often leads to oscillatory responses
and also this criterion considers only two
points of the closed loop response (the first
two peaks). The alternative approach is to
develop controller design relation based on
a performance index that considers the
entire closed loop response.
Some of such indexes are as below
1) Integral of the absolute value of the
error (IAE)

IAE= | e( t ) |.dt (12)
0
2) Integral of the square value of the error
(ISE)
Figure 6- Internal Model Control (a)
basic structure (b) equivalent feedback ISE= e 2 ( t ).dt (13)
0

5
3) Integral of the time weighted absolute software, and for two cases of set point
value of the error (ITAE) tracking and load rejection. For all of these
methods we have used a unit step like
ITAE= t | e( t ) | dt (14)
0 input for both set point and load changes.
4) Integral of the time weighted square of Notice that for IMC method, since we do
the error (ITSE) not have an formula for second and third

ITSE= t .e 2 ( t ).dt (15) order systems with dead time so at first we
0 estimate our system with a first order with
Lopez et al [15] developed tuning dead time transfer function using the same
formulas for minimum error criteria based method used for Cohen-Coon and
on a first order plus dead time transfer minimum error tuning methods and then
function. The tuning relations for the settings in given Table (9).
disturbance inputs have given in Table 10.
These formulas indicate the same trend as Results and Conclusion:
the quarter decay ratio formulas except that The IAE values for different methods are
the integral time depends more on the given in Tables (12) and (13). Also to get a
effective process time constant and less on graphical insight, the values of IAE are
the process dead time. plotted against tuning methods in Figures
Again keep in mind that these formulas (7) through (12). Based on the simulation
are empirical and should not be results given in these tables, the best
extrapolated beyond a range of d/ m of performance (based on IAE values), and
between 0.1 and 1.0 their corresponding tuning methods are
The tuning relations for set point tracking summarized in Table 14.
is given in Table 11 which has been Surprisingly it can be seen form Tables
developed by Rovira et al [15], who (12) and (13) that the minimum error
considered that the minimum ISE criterion tuning method for IAE (IAE method) does
was unacceptable because of its highly not result in minimum IAE for none of
oscillatory nature. These formulas are also systems studied. But ISE method for first
empirical and should not be extrapolated order and second order systems when we
beyond the range of d/ m . between 0.1 to have disturbances gives the minimum IAE
1.0. value. The possible reason for this can be
the fact that the proposed controller
Simulation Study: settings for IAE methods have obtained
For simulation purpose the following empirically with a limited number of dyna-
systems have been considered:
Table 14-Summary of comparison of
PID controller tuning methods based on
e 0.2 s
Gp(s) = (16) IAE values
0.5s + 1
system First Second Third
e 0.5 s Input Order Order Order
Gp(s) = 2 (17) Type
s + 1.8s + 1 Set point Damped Modified Z-N
2 e s Changes Oscillation Z-N (Closed
Gp(s) = (18)
( 2 s + 1.) ( s + 1) 2 (Some Loop)
Overshoot)
As can be seen, the second order system is Load ISE ISE Z-N
an under damped system. The simulation is Disturbances (Closed
carried out, using MATLAB (version 6.1) Loop)

6
mic systems. Therefore it is probable that ments of Ziegler Nichols Tuning formula,
the typical systems studied here are IEE Proceedings ,138(2),111(1991)
different from those studied by Lopez et al 6) Jutan A.; A Comparison of Three Closed
[15]. Loop Tuning Method Algorithms, AIChe
J,35,1912 (1989)
For the case of set point tracking the
7) Krishnaswamy P.R., B.E Mary Chan.,and
closed loop Ziegler-Nichols method gives G.P, Rangaish; Closed- Loop Tuning of
good and reasonable results, since the IAE Control Systems, Chem. Eng.
value for this method is very close to the Sci.42,2173(1987)
IAE value for the method that results in 8) Lee J.; Online PID Controller Tuning For
minimum IAE.. Also for load rejection, for A Single Closed Test, AIChe
third order system, closed loop Ziegler- J,32(2),329(1989)
Nichols method gives minimum IAE and 9) Lee J., W. Cho; An Improved Technique
for first and second order systems the IAE for PID Controller Tuning from Closed Loop
values for this method are not very far Tests, AIChe J,36,1891(1990)
from minimum IAE values. This suggests 10) Luyben W.L, M.L. Luyben; Essentials of
Process Control, McGraw-Hill,1997
that the traditional Ziegler-Nichols method
11) Marlin T.E.; Process Control,2nd
can be used confidently for majority of edition,,Mcgraw-Hill,2000
systems, which confirms again wide 12) Morari M., E. Zafirion; Robust Process
applicability of this method. Control, Prentice-Hall, Englewood
Cliffs,NJ,1989
13) Ogata K.; Modern Control
References: Engineering,3th edition, Prentice Hall 1997
1) Astrom K,J, T. Hagllund; PID controllers 14) Seborg, D.E., T.F. Edgar, D.A.
Theory, Design and Tuning ,2nd edition, Mellichamp; Process Dynamics and Control,
Instrument Society of America,1994 John Wiley & sons,1989
2) Chen C.L., A Simple Method for Online 15) Smith,C.A., A.B. Copripio; Principles
Identification and Controller Tuning, AIChe J and Practice of Automatic Process Control,
,35,2037 (1989) John Wiley & Sons,1985
3) Coughanowr D.R.; Process System 16) Stephanopolous,G.; Chemical Process
Analysis and Control,2nd edition McGraw- Control, Prentice-Hall, 1984
Hill,1991 17) Yuwata,M, D.E. Seborg; A new
4) Erickson K.T., J.L. Hedrick ; Plantwide Method for Online Controller Tuning,
Process Control John Wiley & Sons,1999 AIChe J,35,434(1982)
5) Hang C.C., J.K. Astrom, W.K. Ho; Refine-

Table 6- Tuning relations for C-H-R method. Load rejection

Overshoot 0% 20%
Controller
Kc I D Kc I D
Type
0.3 m 0.7 m
P __ __ __ __
Km d Km d
0.6 m 0.7 m
PI 4d __ 2.3d __
Km d Km d
0.95 m 1.2 m
PID 2.4d 0.42d 2d 0.42d
Km d Km d

7
Table.7- Tuning relations for C-H-R method. Set point tracking

Overshoot 0% 20%
Controller
Kc I D Kc I D
Type

0.3 m 0.7 m
P __ __ __ __
Km d Km d
0.35 m 0.6 m
PI 1.2 m __ m __
Km d Km d
0.6 m 0.95 m
PID m 0.5d 1.4 m 0.47d
Km d Km d

Table 8- Cohen-Coon controller settings

Controller kc I D
Type
P 1 m d - -
(1 + )
Km d 3 m
PI 1 m 9
( +
d
)
30 + 3d m / m -
K m d 10 12 m
d
9 + 20d m / m
PD 1 m 5 d - 6 2d / m
( + ) d
K m d 4 6 m 22 + 3d / m
PID 1 m 4 d 32 + 6d / m 4
( + ) d d
K m d 3 4 m 13 + 8d / m 11 + 2d / m

Table 9- IMC based real PID parameters for


k
G p ( s) = e ds
s + 1

Controller Recommended / d
K.Kc I D F
type ( > 0.2 always)
2 + d d d d
PID + >0.25
2( + d) 2 2 + d 2( + d)

PI __ __ >1.7

2 + d d
Improved PI + __ __ >1.7
2 2

8
Table 10-Minimum error integral tuning formulas for disturbance inputs
K e ds
Process Model: G(s)=
s +1

Error Integral: ISE IAE ITAE

b1
a d a1 1.495 1.435 1.357
Kc = 1
K

b1 -0.945 -0.921 -0.947

b2
d a2 1.101 0.878 0.842
1 =
a 2
b2 0.771 0.749 0.738

b3
d a3 0.560 0.482 0.381
D = a 3

b3 1.006 1.137 0.995

Table 11-Minimum error integral tuning formulas for set point changes
K e ds
Process Model: G ( s ) =
s +1

Error Integral: IAE ITAE

b
a d 1
K c = 1 a1 1.086 0.965
K
b1 -0.869 -0.855


1 = a2 0.740 0.796
a 2 + b2 (d / )
b2 -0.130 -0.147
b3
d
D = a 3 a3 0.348 0.308

b3 0.914 0.9292

9
Table 12 IAE values for various tuning methods, Set Point Tracking

System First Second Third


Order Order Order
No Method System 1 System 2 System 3
. Simulation Time
10 20 30
1 Z-N (Closed Loop) 0.47 2.25 4.26
2 Modified Z-N
(some overshoot) 0.71 1.95 7.53
3 Modified Z-N
(no overshoot) 0.71 2.3 9.46
4 Tyreus-Luyben 1.4 4.87 7.6
5 Damped Oscillation 0.44 2.13 5.7
6 Fertik 0.47 3.56 12.22
7 Ciancone 0.59 2.2 9.29
8 Z-N (Open l.oop) 0.51 5.06 8.77
9 C-H-R
(0%overshoot) 0.5 2.51 4.28
10 C-H-R
(20%overshoot) 0.69 3.39 11.9
11 Cohen Coon 0.67 2.29 4.36
12 IAE 0.72 2.26 6.35
13 ITAE 0.68 2.12 5.58
14 IMC 0.6 2.16 4.41

Table 13 IAE values for various tuning methods, Load Rejection

System First Second Third


Order Order Order
No. Method System System System
Simulation Time
10 20 30
1 Z-N (Closed Loop) 0.35 1.64 4.08
2 Modified Z-N
(some overshoot) 0.36 1.68 6.71
3 Modified Z-N
(no overshoot) 0.43 1.82 8.12
4 Tyreus-Luyben 1.37 4.48 13.64
5 Damped Oscillation 0.26 1.15 4.39
6 Fertik 0.35 1.79 7.97
7 Ciancone 0.49 1.68 13.1
8 Z-N(Open Loop) 0.4 1.62 5.56
9 C-H-R (0%
overshoot) 0.48 1.29 8.34
10 C-H-R (20%
overshoot) 0.4 1.58 5.12
11 Cohen-Coon 0.42 1.93 4.58
12 IAE 0.29 1.28 4.18
13 ISE 0.22 1.01 4.2
14 ITAE 0.3 1.34 4.62
15 IMC 0.6 1.98 4.15

10
Figure 2- Fertik controller gain for Figure 3- Fertik controller integral
for PID controller time for PID controller

Figure 4- Fertik derivative time for PID controller

Figure 5- Ciancone correlations for determining tuning constants, PID


algorithm. For disturbance response (a) controller gain. (b) Integral time. (c)
derivative time. For set point response: (d) controller gain (e) integral time (f)
derivative time

11
1.5 6
5
1 4
IAE

IAE
3
0.5 2
1
0 0
1 3 5 7 9 11 13

11

13
1

9
Mehtod Number* Mehtod Number*

Figure 7- IAE values against tuning Figure 8- IAE values against tuning
method for first order system method for second order system
(set point tracking) (set point tracking)
* Refer to Table 12 *Refer to Table 12

1.5

1
IAE

0.5

0
1 3 5 7 9 11 13 15
Mehtod Num ber*

Figure 9- IAE values against tuning Figure 10- IAE values against tuning
method for third order system method for first order system
(set point tracking) (load rejection)
* Refer to Table 12 *Refer to Table 13

5 15
4
10
3
IAE

IAE

2
5
1
0 0
1 3 5 7 9 11 13 15 1 3 5 7 9 11 13 15
Mehtod Number* Mehtod Number

Figure 11- IAE values against tuning Figure 12- IAE values against tuning
method for second order system method for third order system
(load rejection) (load rejection)
*Refer to Table 13 * Refer to Table 13

12

You might also like