You are on page 1of 6

Copyright @ IFAC Digital Control: Past, Present and

Future of PlO Control, Terrassa, Spain, 2000

TUNING OF PID CONTROLLERS: AN OPTIMIZATION-BASED MEmOD

Carlo! Alfano Neto and Marcelo Embiru~u

Chemical Engineering Department-Federal University ofBahia


Rua Aristides Novis, n2 2, Federa~o, Salvador - Brasil
E-nlail: embirocu@ufba.br and calfano@nitrocarbono.com.br

Abstract: A new technique for tuning Pill controllers is presented in this article. This
technique is based on the solution of an optimization problem. The technique proposed
is applicable to any type of process transfer function and to several types of PlO
controllers. The new methodology also incorporates various types of restrictions
imposed by the process operation. The performance of this technique is compared with
other techniques already available in the literature, and the results show a significant
impIOvement in the closed-loop responses using the parameters obtained by the
proposed approach. Copyright@2000 IFAC

Keywords: Tuning, Controller, PlO, Optimization. Robustness

1. INTRODUCTION (persson and Astrom, 1993). Besides, near 30% of


these loops operate inadequately due to tuning
Proportional-Integral-Derivative (PlO) is the most problems (Arbex, 1998). The proposed method does
industrially used control algorithm, which can be not place any kind of restriction for the
explained by its simplicity, low cost and ability to characterization of the process. So, even nonlinear
solve most of the control problems. Since the models can be used. Moreover, any type of PlO
developments of Ziegler and Nichols (1942) and controllers can be implemented.
Cohen and Coon (1953) several tuning techniques This new method is based on the minimization of a
have been proposed (Almeida, 1998). Astrom and global objective function that incorporates local
Hagglund (1984) used the oscillations of a relay objective functions. With this approach, it is possible
feedback to determine points of the Nyquist curve to consider uncertainties of the model, several control
and to obtain the controller parameters. Rivera and algorithms and different types of disturbances. In this
Morari (1986), and later Chien (1988), developed paper, the theoretical development is discussed,
tuning techniques based on the IMC (Internal Model together with the discussion of computational issues.
Control) structure. Corripio and Smith (1985) have Also, some examples are presented to show the
summarized the results found by Lopez (1967), and superiority of the method, when compared with
others researchers, based on integral criteria. others available in the open literature.
Therefore, there are in the literature a great number
of methods to tune Pill controllers. However, in 2. mEORETICAL DEVELOPMENT
general, the tuning techniques developed presents
many drawbacks. They are not applied for high-order Consider the typical feedback control-loop of the
and/or nonlinear processes. Also, most of the Figure 1, where Gc and Gp are, respectively, the
techniques do not take into account the several PlO controller and process transfer functions, and Gf and
algorithms or the identification error. Moreover, Gm are the transfer functions of the final control
different kinds of disturbances are not considered. element and of the measurement element. The
Though, the tuning parameters obtained by these closed-loop trdIlSfer function is given by equation
techniques are not accurate or flexible, and they are (1).
applied to a limited number of systems.
Due to the limitations of the available techniques and
the absence of a clear methodology for choosing the (1)
best technique to a given problem, some studies
indicates that near 80% of the control loops operate
inadequately, resulting in a low control performance

367
problem under analysis. In other words, different
criteria are obtained for setpoint changes and for load
changes. Besides, different results are obtained for
different types of inlUt signals (e.g.: step, ramp,
pulse, etc.). In this case, defining each combination
of signal type and of problem type (servo or
regulatory) as a control problem (PC), it is posstble
yn'(s) Gm to define each control poblem as:
Figure 1. Typical feedback control loop
min alAE(P,PC)+ a
p
2 • /SE(P, pc) +
The controller Gc(s) has to be designed to furnish
good responses when the process is submitted to + a 3 • ITAE(P,PC)+ a 4 • ITSE(P, pc) + (6)
setpoint ( r(s) ) and load ( d(s) ) distuIbances.
Appropriate parameter tuning is a key procedure to
+ as· Os(p,Pc)+ a6~(P'PC)
reach these objectives.
The purpose of a tuning method. in a general fashion, As well as the objective function can be defined
is to determine the values of the controller through a combination of criteria, this concept can be
parameters that optimize a certain criterion. This generalized for a combination of control problems. In
criterion (J) is a function of the controller parameters this case:
(P) and, therefore, this desire can be expressed
mathematically by: al,j .IAE(p,PcJ+
+ a2,j' /SE(P, PC j )+
minJ(p)
p (2) • N~+a3,j ./TAE(P,PCJ+
Several optimization criteria are applied for tuning
mIn P
L.J ()
j=t + a 4,j . ITSE P, PC j +
(7)
process controllers, such as lSE, IAE, ITSE and ITAE,
all of them based on the minimization of integrals of
+a~,i .os(p,PCj )+
the errors. In this case, it is possible to propose a +a 6,j . L\u(p, pci )
generic criterion, which consists of a linear
combination of these traditional criteria:
In order to simplify the nomenclature, let us define a
generic criterion C, composed of the several control
min at ·/AE(P)+a
p
2 ./SE(P)+ problems (PCj), combined linearly. In this case:

+a 3 ./TAE(P)+a 4 ./TSE(P) (3) N Pe N C

min
P
L rj La';,i 'C;(p,PcJ (8)
In some processes, it is also desired an absence of j=t ;=1

overshoot (OS). Therefore, it is desired to minimize


it. In this case, the function can be augmented to: where N_PC and N_C are the number of control
problems and the number of used criteria.
It should be observed that the objective function
defined earlier is also a function of the model (M)
used to represent the process. In this case:

N PeN C
In most processes, it is also desired the manipulated
variable to change smoothly. In other words, it is
min
P
L j=1
La;,i 'C;(P,PCi,M)
i=1
(9)

desired that the movements of the manipulated


variable are not steep. This objective call be achieved A quite important subject in the controller tuning is
by trying to minimize these movements: to guarantee that the parameters obtained can supply
a robust behavior to the control system. In other
min~ .L4E(P)+a2 • ISE(P) + words, it is necessary to guarantee that the
p implemented control system is stable at all possible
+a3./TAB..P)++a4 ./TSE(P)+ (5) situations. The greatest problem related to the
robustness of the system is the modeling errors.
+a~ .OS(p) + a 6 . Au(P) These errors can lead to parameters that furnish too
sluggish responses or to parameters that furnish too
where ~u is the average of ~u(t). strong actions, resulting on unstable behavior in the
The optimization problem is not just a function of the real plant. So, it is advisable that modeling errors can
controller parameters but, also, of the control be considered in the controller tuning. This problem

368
can be solved naturally in the proposed approach. It N PC N C

is sufficient to increase the objective function to


consider several cases simultaneously, each one with
min
P
L
j=1
Yj La;,j .C;(P,PCj,MJ
;=1
a different model. Therefore, each model can be S.O.:
incorporated in a particular control problem, in
agreement with equation (10): Pram <P<Pmax (13)
•. IJ, .• 1Jn pr
U ram . .-. UVL1.'f .. ' '--j=IN_PC
)< U max
Llu ram <LlU~[l: t f } P, PC j=IN _PC )< Llu max
N PC N C

min L r; La;,; .Cj(P,PC;,MJ (10)


I' )....:.1 OS(P,PC j=l:N _pc)< OSmax
Aside from the requirements discussed above, some In many situations it is desired to specify a decay
plant operation necessities leads naturally to the ratio (1ID) range, which, indeed, is implicit in various
desire of imposing restrictions to the tuning tuning techniques. In this case:
procedure. In some situations, it is desirable tuning
parameters to be constrained within given limits. In N PC N C
addition, this procedure may be important for the
solution of the optimization problem formulated
min
P
L
j=1
Yj La;,j .C;(P,PCj,MJ
;=1
before, as it will be discussed later. In this case, the S.O.:
problem can be formulated as:
Pram <P<Pmax

min
N PC N C

L r; ra;.; .c;(P,PC;,MJ U min < uHJ .t 1P, PCJ=IN _pc)<


j U 0I8X (14)
p ;=1 ;=1 Llu min <LlU~[l: t f }p,PCj=IN _PC )< Llu max
(11)
s.a. : OS(P,PC j =I:N _FC)< OSnlllJ<
Pmin <P<Pmax RDram <RD(P,PCj=IN _pc)< RD rtIZIX

Apart from the controller parameters, in general, it is In many cases, it is not desired a fair setpoint, but
a requirement of the control design to constrain the instead it is allowed a range within which control
manipulated variable and its movements within may be considered satisfactory. In such situations, it
limits. This objective could be indirectly satisfied by is a better alternative to tune the controller to obey
the weights of the objective function, as shown this range, instead of a fair value. It is important
before. Nevertheless, the corroboration of its because one can furnish a greater degree of freedom
satisfaction can be reached including new to the manipulated variables. In other words, it is
constraints: desired to calculate the control errors in the following
way:
r(0r N""

min' f~ yj'fa;,j .C;(P,PCj,MJ e(j) = {(r -y)- f if(r -y) > !


P j~1 ;=1

S.O. :
o if{r- y)<! (15)
(12)
Pram <P<Pmax
The tuning of the controller to act inside the desired
umi."l < uHI: t f Ip,pc j - 1N _'Of:)< un'w.,,; range can be easily treated with the proposed
Llu min < Llu~[l: t f Ip,pcj=IN _pc)< Llu max approach. Since most criteria are functions of the
errors, one can write:

Although already included in the objective function, N PC N C


the overshoot is a criterion often not used in the
minimization sense. Otherwise, it is normally desired
min
P
L
j=1
Yj La;,j .C;(P,PCj,Mj ,/)
;=1
the overshoot to lie within specific bounds. In this
S.O.:
case, the desire to guarantee an overshoot that does
not surpass the allowed maximum overshoot can be Pmin <P<Pmax
achieved through the inclusion of a restriction in tbe rr t f '~ p,PC
u ram < u\fLl: - ' j=IN _pc)<
\ U
max (16)
overshoot, in agreement with equation (13):
1
Llu min < LlU~[l: tf P, PCj=IN _pc)< Llu max
OS(P,PC j=IN _PC )<OSmax
RDmin <RD(P,PC j=l:N _PC )<RDmax

369
Therefore, equation 16 above defines the proposed
tuning method. This method, according to the
min IAE(p) + ISE(P) + ITAE(P)+
p (18)
previous discussion, is capable to solve all the +ITSE(P)
problems associated to the tuning of industrial
controllers, at least on a theoretical point of view. It
The used U; weights of equation (5) was 0., = 0.2 = (l3
is worthwhile to emphasize three other advantages of
the method: = (l4 = 1, and (ls = <X.6 = O.
The results were compared with those ones generated
by the methods of Ziegler-Nichols, Cohen and Coon,
• The formulation does not restrict its application
IAE, lSE, ITAE, IMC, Phase and Amplitude
to any type of model, such as nonlinear or high-
Margins, Dominant Pole, Pole Allocation and
order models;
Cancellation of Poles.
• Its application is direct for cascade systems, no
matter the number of inner loops; 3.1. Example-1
• Its application is direct for any form of Pill
controllers. The process transfer function is given by equation
19:
The resulting optimization problem can be classified
e-20s
as a nonlinear programming problem, which was
Gp(s)=-- (19)
solved by means of the successive quadratic Ss + 1
programming (SQP) algorithm. The examples
presented was run by the software MATLAB, on a
Pentium II with 350 MHz personal computer. For the Figure 2 shows the closed-loop response for a step
solution of the optimization problem it is necessary change in the setpoint, and the response for
an initial estimate of the controller parameters, in disturbance rejection. This figure presents the results
most of cases the convergence was achieved with obtained with the optimization-based method, with
many different estimates. However, it is suggested the Ziegler-Nichols method and with the method of
any method already established in the literature to be best performance, among those cited earlier. Table 1
used, since it presents a reasonable response. shows the Jm3IIleters of the controllers. The results
In spite of the characteristics shown before, one may demonstrate a clear advantage of the proposed
argue that there are too many parameters to be set in method, both regarding to performance and
the proposed method. Hence, in this point, some final robustness. Tt must be pointed out that, albeit the
comments are relevant. The choice of weights 3;j, flexibility of the method in incorporating multiple
which compose the local objective functions, can be control problems, only the setpoint change was used
set based on the desired characteristics of the closed- on the tuning procedure. Hence, the performance of
loop behavior. Moreover, for the choice of the the new method to disturbance suppression is very
weights (Yj), one should consider the importance of significant.
each control problem included in the objective The time to converge was 5 minutes end 25 seconds.
function, models confidence, etc. In both cases, it is
worthwhile a good knowledge of the problem under ....._ - - - - - - - - - - - - . -
study, so that it can be obtained a description as close
as possible of the control problem. This may be an
easy task for a process engineer. Notwithstanding, it
is not difficult to impose default parameters, in the
case of usage by non-expert users. J0.'
- Z iegler-N le hols
3. SIMULATION RESULTS - 0 ptim izUion
..... Cancellation of Pole.

In this section some results are presented, to show the .0 . .0 fo •

superiority of the method, when compared with the


classical ones. This is done through the analysis of
two simulation examples. In both cases it was used a
parallel form of the Pill controller, which is
represented by the following transfer function:

u(s) = Kc[(r _ y) + _(r_-y_) + _T-=--dS....:...(-.. .:. .Y. .:-)] (17)


T;S O,lTdS + 1

For the performance criterion (objective function) it ·1

was used a linear combination of the integral criteria,


without considering any constraints: Figure 2. Closed-Loop Responses for Setpoint and
Load Changes - Example-I.

370
e-5s
3.2. Example-2
Gp( s) =-;-(5-s+-1'"").'-7(4-s-+---1) (21)

The process transfer function is given by Eq. 20:


The system was initially tuning without any
e-5s restriction, and after was tuning with the following
(20) restriction by equation (22):
Gp(S) ='--(5-s+-1'"").-r(4-s-+1""').'-7(3-s-+---1)
(22)
Figure 3 shows the closed-loop responses to setpoint
and load step changes. In a similar way, there are
compared ZN, the best classical method for this case
and the proposed one. Again, although not in a too where .1u....... it is the maximum value of .1u that is
drastic way like the former example, the new allowed by the control element. In this example .1umaz
approach gives superior results. The controller was the maximum .1u obtained in the case without
parameters are shown on Table 1. restriction.
The time to converge was 4 minutes end 29 seconds. Figure 4 shows the closed-loop responses to setpoint
changes with and without restriction on the
Table l. Tuning Parameters - Example 2 manipulated variable.

Z-N 1 . 5 . - - - - - - - - - - - - - - - - - - -_ _
Optimization ITAE Z-N-r
Method
Kc 1,328 1,038 0,869 1,340
"tj 14,840 14,536 13,339 15,350
3,710 3,468 2,901 3,837
:
"td
i
:
Ill:
1.5 -,----------------~ 0.5
-Optimization response
with restriction
.... Optimization response
without restriction
Time
1 o +--..tC-...,....---...,....---...,....---~-__l
: o 10 20 ao 40 50

!D.5 1.8

1.4
TIme! 1.2
o +--.L----,~-__r--___r_--__,_-_____;

o 2lI 40 80 100

0.8
Optlm lZatlon
0.4 without re.trtctlon
-Optlmlzatlon with
0.2 restriction

10 20 30

- Ziegler-Nichols
Figure 4. Closed-Loop Responses for Setpoint
-05 -Optimization Changes use optimization method with restriction on
Zlegler-Nichols-relay u(t) - Example-3.
Time
-1 ~-------------
The time to converge without restriction was 2
minutes end 31 seconds, and with restriction was
Figure 3. Closed-Loop Responses for Setpoint and later 20 seconds.
Load Changes - Example-2. The controller parameters are shown on Table 2.

33. Example-3 Table 2. Tuning Parameters - Example 3

This example shows a case with restriction on the Optimization Optimization Method
manipulated variable. The process transfer function is Method with restriction
given by equation (21): Kc 1,206 0,950
"tj 12,703 11.146
"td 2,638 2,164

371
It can be verified that due to imposed restriction the makes easier the control engineer task. Moreover,
process presented a more slow closed-loop response since the method presents better results than those
and a variation in the variable manipulated softer. obtained with the most used techniques, it may be
It must be stressed that many other systems, claimed its universal use, with an appropriate choice
including non-linear systems and uncertain ones, of objective function and constraints, in agreement
where tested, but results are not shown due to space with each particular case.
limitations, which will be analyzed in a future
communication. In particular, all systems studied by 5. REFERENCES
Almeida (1988) where investigated, and, in all cases,
the present method demonstrated higher Almeida, A F., "Sintonia de Controladores PlO",
performance. Many of the systems studied are in MSc. Thesis - Universidade Federal da
accordance with the benchmark problems proposed Bahia, Salvador, (1998);
by Astrom and Hagglund (1999). Moreover, it must Arbex, R; Pardal, A, "A Diminui~ao do Custo
be pointed out that it was not experienced any Variavel Alraves da R ~ das
problems in the convergence of the method, even Variabilidades dos Processos", Intech-Brasil,
when using a poor initial estimate. In this case, it is nQ 10, Novembro (1998):
strong recommended the use of normalized and Astrom, K. 1. and Hagglund, T., "Automatic Tuning
constrained parameters. of simple Regulators with Specifications on
Phase and Amplitude Margins", Automatica,
4. CONCLUSIONS vol. 20, pp. 645-651, (1984);
Astrom, K. 1. and Hagglund, T., "Benchmark
In spite of the importance of PlO tuning techniques Systems for PlO Control", http://www-
and of the variety of methods proposed, a generic esaiiterrassa. upc.eslpidOO/index.htm, (1999);
methodology is not still available for appropriate Chien, I.-L., "IMC PlO Controller Design - An
selection and robust application of these rules. The Extension", Proc. ADCHEM'88 - IFAC,
methods are developed for specific conditions, which Copenhagen, Denmark, pp. 155-160, (1988);
turns them limited to the situations for which they Cohen, G. H. and Coon, G. A, "Theoretical
were developed. For this reason, the tuning task has Consideration of Retarded control", Trans
been not an easy one for the control engineers, ASlvlE, 75, pp. 827 - 834, (1953);
besides time-consuming. Furthermore, the lack of an Corripio, A, Smith, C. A.; "Principles and Practice
appropriate and general method leads frequently to of Automatic Process Control", John Wiley &
unsatisfactory results. Sons, (1985);
In this paper a new tuning technique, based on the Lopez, AM. and Murril, P. W., "Controller Tuning
solution of an optimization problem, was presented. Relationships Based on Integral Performance
This technique presents a great potential, and is quite Criteria", Instnlmentation Technology, vol.
flexible and robust when compared with its 14, nQ 11, pp. 57, November (1967);
counterparts. Besides, it does not present any Persson, P. and Astrom, K. 1., "PlO Control
limitations regarding the process model or the Revisited", IFAC World Congress, vol. 8, pp.
particular PlO controller used. 241-244, (1993);
The proposed method presented better results when Rivera, D. E., Morari, M. and Skogestad, S.,
compared with several techniques at disposal in the "Internal Model Control. 4. PlO Controller
literature, as it can be seen by the presented Design",Ind Eng. Chem. Res., vol. 25, ~ I,
simulations. Also, the optimization formulation pp. 252 - 265, (1986);
seems to be numerically robust, since convergence Ziegler, J. G., Nichols, N. B., "Optimum Settings for
was achieved in all studied cases. Moreover, it is Automatic Controllers", Trans ASME, vol.
important to point out that not all the potentiality of 64,pp. 759-768, (1942);
the method was used. In addition the proposed
method presents a wide spectrum of benefits, such as:

a) It treats modeling errors;


b) It treats different types of disturbances;
c) It consider constraints in the process variables, in
the movements of the manipulated variable and
in the overshoot;
d) It can be applied to several types of controllers;
Etc.

In view of the great flexibility of the proposed


approach, the technique developed may be regarded
as a tuning methodology, being able to cope with
almost all problems, eliminating the possibility of
using inadequate methods for a given loop, which

372

You might also like