Automatic Tuning and Adaptation For Pid Controllers-A Survey
Automatic Tuning and Adaptation For Pid Controllers-A Survey
Ab.dract Adaptive techniques such as gain scheduling, automatic tuning and continuous
adaptation have been used in industrial single-loop controllers for about ten years. This
paper gives a survey of the different adaptive techniques, the underlying process models
and control designs. The paper ends with an overview of industrial adaptive single-loop
controllers.
371
proportional band, minutes or seconds, time or re-
peats/time).
Gain scheduling
By gain scheduling we mean a system where controller
parameters are changed depending on measured oper- y
ating conditions. The scheduling variable can e.g. be
measurement signal, controller output or an external
signal. For historical reasons the word gain scheduling
is used even if other parameters like derivative time or
integral time are changed. Gain scheduling is a very
effective way of controlling systems whose dynamics Figure 1. Block diagram of an indirect adap-
change with the operating conditions. Gain schedul- tive system
ing has however not been used much because of the ef-
fort required to implement and use it. When combined
ate disturbance. Adaptation is therefore particularly
with auto-tuning, gain scheduling is however very easy
useful for feedforward.
to use.
372
a)
r- ...IT
Kpr---------------~~__--------- -- ~ Process r--r-
"'-+ PlO U
a{ ,
-1
W "V
L T
Figure S. The relay autotuner. In the tuning
mode the process is connected to relay feedback
b)
There are many methods available to determine
Kp the parameters in equation (4), e.g. the recursive least
squares method.
process. See Figure 2a. Static gain K p , dominant time Relay ezcitation
constant T and dominant deadtime L can be used to Frequency domain characteristics can be deter-
obtain a first order plus dead time model for the pro- mined from experiments with relay feedback in the
cess as given in equation (1). following way. When the controller is to be tuned, a
relay with hysteresis is introduced in the loop, and the
PID controller is temporarily disconnected. See figure
(1)
3. For large classes of processes, relay feedback gives
an oscillation with period close to the ultimate fre-
The construction in Figure 2a is sensitive because it quency Wl80. The gain of the transfer function at this
relies on drawing a tangent to the step response. An- frequency is also easy to obtain from amplitude mea-
other method is to calculate L as the time interval surements. Details and conditions are given in [Astrom
between the step change and the moment the mea- and Hiigglund, 1984, Astrom and Hiigglund, 1988).
surement signal crosses a certain small level. The time
constant T is then calculated as the time to reach 63% COf'f'elation Method
of the final value. This method is also sensitive, since In this method, a small pseudo random binary
the calculations are based on a few values of the step sequence (PRBS) test signal u(t) is injected and the
response only. resultant process output y(t) is logged. The cross
Another method, which is based on determination correlation, t/> ... (r), between u(t) and y(t) is then used
of areas can be used. See Figure 2b. In this method, to compute the impulse response g( r) of the process
gain Kp is first determined from the steady-state value [Hang and Sin, 1991) as follows
of the step response. Area Ao is then determined. The
average residence time of the system is then
(2)
g(r) = A!h (N: J (t/>",(T) + ~ t/>".. (k») (5)
Area A l , which is the area under the step response up where A is the amplitude of the PRBS signal, h is
to time L + T, is then determined and T is given by the sampling interval and Nh is the period of the
PRBS signal. The impulse response computed is then
(3) numerically transformed into its frequency response
from which the ultimate gain, ultimate period, static
This method is less sensitive to high frequency dis- gain and normalized dead time of the process can be
turbances because it is based on area determination. determined.
More details can be found in [Astrom and Hiigglund,
1988) and [Nishikawa et al., 1984).
A discrete time model as given in equation (4)
can also be used to describe the process. 4. Control Design
The PID control law can be implemented in either the
(4)
parallel or the series form. The parallel form is given
373
below. drawn. The intersections between this tangent and the
coordinate axes give the two parameters a and L. A
simple model of the process which can be derived from
these parameters is given by the transfer function
e = Yr - Y (6) a -.L
Gplf
() = - e (8)
ilL
374
Table 1. Examples of industrial adaptive process controllers.
The choice of W may be critical. The derivative time 1S known from classical control that the damping of
is negative for W < wc. The frequency Wc thus gives the system is related to the phase margin. The phase
a lower bound to the bandwidth. Also notice that the margin is given by
gain increases rapidly with w . The upper bound to the
bandwidth is given by the validity of the simplified (13)
model.
where IGp(iwg)Gc(iwg)1 1, and the amplitude
Cancellation of proceu polu margin is equal to the ultimate gain .
The PID controller has two zeros. A popular
design method is to choose these zeros so that they
cancel the two dominant process poles . The method
is popular since it is simple and gives good response 5. Overview of industrial products
to set point changes . The method will, however, often
give poor response to load disturbances. See [Astrom Commercial PID controllers with adaptive techniques
and Hiigglund, 1988]. have been available since the beginning of the eighties.
In this section, we will classify these products with
Ziegler-Nichol, Frequency Re,pon,e Method respect to their applications and adaptive techniques
This method is based on a very simple character- used.
ization of the process dynamics. The design is based We will distinguish between temperature con-
on knowledge of the point on the Nyquist curve of the trollers and process controllers. Temperature con-
process transfer function G where the Nyquist curve trollers are primarily designed for temperature control,
intersects the negative real axis. For historical reasons whereas process controllers are supposed to work in
this point is characterized by the parameters K,. and not only temperature control loops, but also in other
T. which are called the ultimate gain and the ultimate loops in the process industry such as flow, pressure,
period. These two quantities can be obtained for many level and pH control loops. For some reason, tempera-
systems by using proportional feedback and choosing ture controllers have mostly a quadratic front (96x96
sufficiently high gain until continuous cycling occurs. mm), whereas process controllers normally have a rect-
The ultimate gain K,. is then given by the propor- angular front (72x144 mm) .
tional gain and the ultimate period T ... is given by the
period of the oscillations. The parameters can also be Temperature Controllers
obtained using the relay feedback experiment or the
correlation method presented in Section 3. Most PID controllers are designed for temperature
Ziegler and Nichols derived PID parameters di- control only. These controllers are normally cheaper
rectly as functions of K... and T ... , see [Ziegler and than process controllers. Automatic tuning and adap-
Nichols, 1942]. These formulas were derived to give tation is easier to implement in temperature con-
quarter amplitude damping for load disturbance re- trollers, since most temperature control loops have
sponse. Refined Ziegler-Nichols formulas are given in several common features. This is the main reason why
[Hang et al., 1991]. automatic tuning has been introduced more rapidly in
temperature controllers.
Pha,e and Amplitude margin, In temperature control loops, a serious nonlinear-
Phase and amplitude margins design methods ity may result if the heating and cooling dynamics are
give a measure of the robustness of the system . It different. This nonlinearity should be treated by gain
375
scheduling. The temperature controllers have some- Gain scheduling effectively compensates for non-
times a facility to shift between different controller pa- linearities and other predictable variations in the pro-
rameters when the control action shifts between heat- cess dynamics. Since it is much easier to implement
ing and cooling. than other adaptive techniques, it is surprising that
several adaptive controllers lack this feature.
Process Controllers The adaptive controllers can be divided into
Since the processes that are controlled with process two categories, namely the model based and the
controllers may have large differences in their dynam- rule based. It is interesting to note that there are
ics, tuning and adaptation becomes more difficult com- many successful applications of rule based adaptive
pared to the pure temperature control loops. controllers, although almost all university research has
If a temperature controller is applied to e.g. a been focused on model based adaptation.
pressure loop, the tuning procedure may be very poor, Adaptive feedforward is rarely used in single-
since pressure control loops normally are much faster loop controllers. This is also surprising, since adaptive
and more sensitive than temperature control loops. In feed forward has proven to be very useful in other
the following presentation, we will focus on process applications of adaptive control. Adaptive feedforward
controllers. is also easier to implement than adaptive feedback
In Section 2, different adaptive techniques were control.
discussed. The techniques are: Automatic tuning, gain
scheduling and adaptive feedback and feedforward
control. In Table 1, a collection of process controllers
is presented together with information about their
adaptive techniques.
7. References
Automatic tuning is the most common adaptive
technique in the industrial products. The usefulness ASTR()M, K. J. and T. HXGGLUND (1984): "Auto-
of this technique is also obvious from Section 2. The matic tuning of simple regulators with specifica-
auto-tuning procedures are necessary to obtain a rea- tions on phase and amplitude margins." Auto-
sonably comfortable operation of the other adaptive matica, 20, pp. 645-651.
techniques, i.e. to build gain schedules and to initial- ASTR()M, K. J. and T. HXGGLUND (1988): Automatic
ize adaptive controllers. Most auto-tuning procedures TImings of PID Controllers. Instrument Society
are based on step response analysis. of America, Research Triangle Park, North Car-
The controllers listed in Table 1 belong to the olina.
most advanced category of PID controllers on the BENGTSSON, G. and B. EGARDT (1984): "Experi-
market . It is therefore surprising that gain scheduling ences with self-tuning control in the process in-
is not available in all of them, since the technique is dustry." In Preprints 9th IFAC World Congress,
much simpler to implement than automatic tuning or Budapest, Hungary.
adaptation. Gain scheduling is also found to be more
COHEN, G. H . and G. A . COON (1953): "Theoretical
useful than adaptive control in most situations .
consideration of retarded controL" Trans. ASME,
It is interesting to see that many adaptive con-
75, pp. 827-834.
trollers are rule based instead of model based. The
research on adaptive control at universities has been HANG, C. C., K. J . ASTR()M, and W . K . Ho (1991):
almost exclusively focused on model based adaptive "Refinements of the Ziegler-Nichols tuning for-
control. mula." lEE Proceedings-D, 138:2, pp. 111-118.
Adaptive feedforward control is seldom provided HANG, C. C. and K. S. SIN (1991): "On-line auto-
in the industrial controllers. This is surprising, since tuning of PID controllers based on the cross-
adaptive feed forward control is known to be of great correlation technique." IEEE Transactions on In-
value. See e.g. [Bengtsson and Egardt, 1984]. Further- dustrial Electronics, December. To be published.
more, it is easier to develop robust adaptive feedfor- NISHIKAWA, Y., N. SANNOMIYA, T. OHTA, and
ward control than adaptive feedback control. H. TANAKA (1984): "A method for auto-tuning
of PID control parameters." Automatica, 20,
pp. 321-332.
6. Conclusions
SHIGEMASA , T., Y. lINO , and M. KANDA (1987):
"Two degrees of freedom PID auto-tuning con-
Various adaptive techniques have been implemented
troller." In Proceedings of ISA Annual Confer-
in single-loop PID controllers during the last decade.
ence, pp. 703-711.
In this paper, a summary of these different techniques
has been given together with an overview of industrial TAKATSU, H., T. KAWANO, and K. KITANO
products. (1991): "Intelligent self-tuning PID controller."
Almost all controllers that use adaptive tech- In Preprints IFAC International Symposium on
niques have some form of automatic tuning function. Intelligent Tuning and Adaptive Control, Singa-
The automatic tuning function is not only useful to pore.
help the operator in finding suitable controller param- ZIEGLER, J. G . and N. B. NICHOLS (1942): "Opti-
eters. It is also useful to build gain schedules and to mum settings for automatic controllers." Trans.
initialize adaptive controllers. ASME, 64, pp. 759-768.
376