Professional Documents
Culture Documents
Telemark University College, Kjoelnes Ring 56, N-3918 Porsgrunn, Norway. E-mail: finn.haugen@hit.no
Abstract
This paper demonstrates a number of PI controller tuning methods being used to tune a temperature
controller for a real air heater. Indices expressing setpoint tracking and disturbance compensation and
stability margin (robustness) are calculated. From these indices and a personal impression about how
quick a method is to deliver the tuning result and how simple it is to use, a winning method is identified.
Keywords: PI tuning, air heater, Skogestad’s method, Ziegler-Nichols’ methods, Hägglund and Åstrøm’s
method, Tyreus-Luyben’s method, Relay method, Setpoint Overshoot method, Good Gain method.
Process
be nice to accomplish such real tests with several dif- disturbance
ferent real processes, but that may be the topic of a d Process output
future paper. Control error Control variable
Reference = Ref - Meas signal (temperature )
This paper contains the following subsequent sec- Controller Process o
r [ C] + u [V] y [ C]
o
e [ oC]
tions: Section 2 describes the experimental setup. Sec-
tion 3 describes the methods to be compared. Section
o o
4 defines measures (criteria) used when comparing the ymf [ C]
Filter
ym [ C]
Sensor
tuning methods. Section 5 presents control tunings Filtered Process
(smoothed) measurement
and results. Section 6 gives a summary and a discus- process n
sion while Section 7 gives conclusions. measurement
Measurement
noise
with 2.4 V representing minimum speed. • Skogestad’s Model-based method (or: the SIMC
80
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
method – Simple Internal Model Control) Skoges- where ti is the initial (or start) time and tf
tad (2003, 2004) – both the original method and is the final time, tf − ti = 100 sec. This IAE
a modified method with reduced integral time for index is denoted IAEs . The less IAEs value,
faster disturbance compensation. the better control performance (the response
in the control signal is then disregarded).
• Ziegler-Nichols’ Process Reaction Curve method
(or the Ziegler-Nichols’ Open-Loop method) b) Disturbance compensation: After the tem-
Ziegler and Nichols (1942). perature has settled at the new setpoint, a
disturbance change is applied by adjusting
• Hägglund and Åstrøm’s Robust tuning method the fan speed voltage from 2.4 (min speed)
Hägglund and Åström (2002). to 5 V (max speed). Again the IAE index is
calculated over an interval of 100 sec. This
Closed-loop methods, which are methods based IAE index is denoted IAEd .
on experiments on the already established closed-loop
system (i.e. the feedback control system): 2. Robustness against parameter changes in the
control loop is in terms of stability robustness
• Ziegler-Nichols’ Ultimate Gain method (or the against parameter variations in the control loop.
Ziegler-Nichols’ Closed-Loop method) Ziegler and An adjustable gain, KL , is inserted into the loop
Nichols (1942). (between the controller and the process, in the
LabVIEW program). Nominally, KL = 1. For
• Tyreus-Luyben’s method (which is based on the each of the tuning methods, the KL value that
Ziegler-Nichols’ method, but with more conserva- brings the control system to the stability limit (i.e.
tive tuning), Luyben and Luyben (1997). the responses are sustained oscillations) is found
• Relay method (using a relay function to obtain experimentally. This KL value is then the gain
the sustained oscillations as in the Ziegler-Nichols’ margin, ∆K, of the control loop.
method), Åström and Hägglund (1995). It might be interesting also to insert an adjustable
time-delay, Tdelay , into the loop (between the con-
• Setpoint Overshoot method Shamsuzzoha et al. troller and the process, in the LabVIEW program)
(2010). and find experimentally the time-delay increase in
• Good Gain method Haugen (2010). the loop which brings the control system to the
stability limit. (This is closely related to finding
Each of these methods are described in their respec- the phase margin of the control loop in a frequency
tive subsections of Section 5 of this paper. response analysis.) However, to simplify the anal-
The above list of tuning methods contains well- ysis, only the gain margin is considered here.
known methods (i.e. often refered to in literature), and
also some methods which I personally find interesting. 3. How quick and simple a given method is to use.
For a tuning method to be attractive to a user it
must give good results, but it must also be easy to
4 Measures for Comparing the use (i.e. it must not require lots of calculations)
and the experiments must not take too long time.
Tuning Methods Both the quickness and the simplicity of each of
the methods are evaluated with a number ranging
The measures for comparing the different methods of
from 10 (best) to 0.
PI controller tuning are as follows:
81
Modeling, Identification and Control
trol) is a model-based tuning method where the con- PI-controller tuned as follows:3
troller parameters are expressed as functions of the
T
process model parameters. The process model is as- Kc = (5)
sumed to be a continuous-time transfer function. It K (T C + τ)
ymf (s) 1 This gives good setpoint tracking. But the disturbance
T (s) = = e−τ s (3)
compensation may become quite sluggish. In most pro-
ySP (s) TC s + 1
cess control loops the disturbance compensation is the
where TC is the time-constant of the control system most important task for the controller. To obtain faster
to be specified by the user, and τ is the process time disturbance compensation, you can try e.g. c = 2. The
delay which is given by the process model (the method drawback of such a reduction of c is that there will
can however be used for processes without time delay, be somewhat more overshoot in the setpoint step re-
too). Fig. 3 shows the response in ymf after a step in sponse, and that the stability of the control loop will
the setpoint ySP for Eq. (3). be somewhat reduced (the stability margins will be re-
duced). Both values of c (4 and 2) will be tried in this
paper.
Skogestad suggests setting the closed-loop system
time-constant to
TC = τ (8)
Application to the air heater
To find a proper transfer function model, the process
was excited by a step change of 0.3 V, from 1.5 V to
1.8 V, see Fig. 4.
82
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
TC = τ = 4.0 s (10)
83
Modeling, Identification and Control
The Ziegler-Nichols’ Process Reaction Curve method Ti = 3.3 · L = 3.3 · 4 s = 13.2 s (23)
(Ziegler and Nichols (1942)) is based on characteristics
(Reading off R more directly from Fig. 4 gives R =
of the step response of the process to be controlled
0.025 o C/s, and Kc = 2.7.)
(i.e. the open-loop system). The PID parameters are
Fig. 9 shows control system responses with the above
calculated from the response in the (filtered) process
PI settings.
measurement ymf after a step with height U in the
control variable u. From the step response in ymf ,
read off the equivalent dead-time or lag L and the rate
or slope R, see Fig. 8.
ymf
R
84
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
Kc = 0.45Kcu = 0.45 · 3.4 = 1.5 (33) Kc = 0.31Kcu = 0.31 · 3.4 = 1.1 (38)
85
Modeling, Identification and Control
86
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
The PI parameter values become (To avoid waiting for the response to settle at a steady-
state value, Shamsuzzoha et al. (2010) suggests the es-
Kc = 0.45Kcu = 0.45 · 3.54 = 1.6 (52) timate y (∞) = 0.45 (ymax + ymin ) where ymin is the
value of an assumed undershoot in the response.)
Pu 18 s Define the following parameters:
Ti = = = 15 s (53)
1.2 1.2
Fig. 15 shows control system responses with the above F =1 (57)
PI settings.
(F = 1 for ”fast robust control” corresponding to
TC = τ in Skogestad’s SIMC method, but use F > 1
to detune), and
5.7 Setpoint Overshoot Method which gives a stable response and a reasonable over-
shoot. From the responses we find the actual overshoot
The Setpoint Overshoot method (Shamsuzzoha et al.
as
(2010)) is based on Skogestad’s SIMC method. The
method is similar to the Ziegler-Nichols’ Closed-Loop ymax − y (∞) 35.25 − 35.0
method Ziegler and Nichols (1942), but it is faster to S= = = 0.28 (62)
y (∞) − y0 35.0 − 34.1
87
Modeling, Identification and Control
Figure 18: Reading off the time between the first over-
shoot and the first undershoot of the step
response with P controller.
Figure 17: Setpoint Overshoot method: The responses Due to the inclusion of the integral term, the con-
in the control system. trol loop will get somewhat reduced stability than with
the P-controller only. This can be compensated for by
The IAE indices and the gain margin are reducing Kc to e.g. 80% of the original value:
IAEs = 12.2; IAEd = 36.1; ∆K = 2.7 = 8.6 dB (68) Kc = 0.8KcGG (70)
7 Theclosed-loop system with P-controller is regarded as a sec-
5.8 Good Gain Method ond order system. From the damped oscillations the reso-
nance frequency is estimated. From this resonance frequency
The Good Gain method6 Haugen (2010) is a simple the integral time of the controller is calculated using Ziegler-
method based on experiments with a P-controller, like Nichols’ tuning formula modified for better stability. The
controller gain is calculated by simply reducing the Good
6 The author is responsible for this name. Gain value somewhat.
88
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
89
Modeling, Identification and Control
a gain increase.8 The Ziegler-Nichols’s methods, In certain processes safety must also be taken into
and the Relay method give too poor robustness. account when controller tuning methods are judged as
The Tyreus-Luyben method and the Hägglund- it may be crucial that certain process variables – e.g.
Åstrøm method give the highest robustness. pressure, temperature, level, position – do not come too
close to safety limits. However, in the present bench-
• Quickness (indicated with the Q value). This mark system safety is not an issue. Tuning methods
refers to how quick the controller tuning proce- with potential safety issues are the open-loop meth-
dure can be accomplished. The quickness de- ods because the process output variable may depart
pends of course on the speed of dynamic response too far from the operating point during the input step
of the process to be controlled: If the process is experiment. Also the Ziegler-Nichols’ Ultimate-Gain
sluggish, the tuning may take a long time. For method (and the Tyreus-Luyben’s method) and the
a given process, the quickness depends on how Relay method may cause safety problems because of
long the data must be gathered for the tuning. the oscillatory response required.
In this respect the Relay method is regarded as From the above considerations, which method is the
the quickest method, because the oscillations come best method? As a basis for a conclusion, here are
automatically, without any trial-and-error. Also short comments about each of the methods, focusing
the open-loop methods – the Skogestad’s method, on the drawbacks of the method (a necessary condition
the Ziegler-Nichols’ Process Reaction Curve, and for a method to be useful is that it has no important
the Hägglund-Åstrøm method – are regarded as drawbacks):
relatively quick because only one experiment is
needed (the step response). Among these the • Skogestad’s Model-based method: Drawback
Ziegler-Nichols’ Process Reaction Curve is some- is sluggish disturbance compensation.
what quicker because it does not require the pro-
cess to reach steady-state. The Setpoint Over- • Skogestad’s Model-based method with
shoot method and the Ziegler-Nichols’ Ultimate- smaller integral time for faster disturbance
Gain method, and also the Good Gain method, compensation: No important drawbacks.
are regarded as relatively slow methods because
they require trial-and-error. • Ziegler-Nichols’ Process Reaction Curve
method: Drawback is poor stability margin.
• Simplicity (indicated with the S value): This
refers to how simple the method is to use. A • Hägglund and Åstrøm’s Robust tuning
method is simple if the number of parameters method: Drawback is sluggish disturbance com-
needed to be calculated is small, if the tuning for- pensation.
mulas are simple, and if the tuning method is easy
to understand. In this respect the Setpoint Over- • Ziegler-Nichols’ Ultimate Gain method:
shoot method is less simple than the other meth- Drawbacks are small stability margin, that the
ods. The procedure of the open-loop methods is method may not be quick to use because it requires
simple, but the underlying theory of Skogestad’s trial-and-error, and that the user has to make sure
method is not straightforward since insight into that the control signal does not reach its maximum
systems theory is needed9 . The Relay method and minimum values during the experiement.
may be difficult to apply because an on/off func-
tion must be inserted into the control loop during • Tyreus-Luyben’s method: Drawbacks are
the tuning. The Ziegler-Nichols’ Ultimate-Gain sluggish disturbance compensation, that the
method (and the Tyreus-Luyben’s method) may method may not be quick to use because it requires
be a little difficult to use because the user has to trial-and-error, and that the user has to make sure
carefully make sure that the control signal does that the control signal does not reach its maximum
not reach its maximum and minimum values dur- and minimum values during the experiement.
ing the experiment. The simplest method is the
Good Gain method.10 • Relay method: Drawbacks are a too small sta-
8 Of course, this is a personal view.
bility margin, and that the method can be diffi-
9 It is however fair to claim that everyone who is going to work cult to apply in practical systems due to lack of
with controller tuning should be familiar with this theory. an on/off function in the controller.
10 The motivation behind the Good Gain method is to simplify
PI controller tuning. The favourable evaluation of the Good used the method in several lab assignments. However, the
Gain method regarding its simplicity is honest in the present evaluation may be biased since the method is developed by
paper and supported by feedback from students who have the author.
90
Haugen, “Comparing PI Tuning Methods in a Real Benchmark Temperature Control System”
• Setpoint Overshoot method: Drawbacks are Shamsuzzoha, M., Skogestad, S., and Halvorsen, I. On-
too sluggish disturbance compensation and rela- Line PI Controller Tuning Using Closed-Loop Set-
tively poor quickness and simplicity. point Response. In Proc. IFAC Conf. on dynamics
and control of process systems processes (DYCOPS),
• Good Gain method: Drawback is that the Belgium, July. 2010.
method may not be quick to use because of trial-
and-error to find a good value of the controller Skogestad, S. Simple analytic rules for model reduc-
gain. The method is very simple to use. tion and PID controller tuning. Journal of Process
Control, 2003. 13(4):291–309. doi:10.1016/S0959-
Skogestad’s method with reduced integral time ( c = 2 1524(02)00062-8.
in ( Eq. 17)) is here ranged as the best method. It has no
serious drawbacks. It gives acceptable setpoint track- Skogestad, S. Simple analytic rules for model re-
ing and disturbance compensation, acceptable stability duction and PID controller tuning. Modeling,
margin, and is quick and simple enough to use. 11 Identification and Control, 2004. 2(2):85–120.
doi:10.4173/mic.2004.2.2.
Ziegler, J. and Nichols, N. Optimum settings for auto-
7 Conclusions matic controllers. Trans. ASME, 1942. 64:759–768.
This paper has demonstrated a number of PI controller Åström, K. J. and Hägglund, T. PID Controllers: The-
tuning methods being used to tune a temperature con- ory, Design and Tuning. ISA, 1995.
troller for a real air heater. Indices expressing setpoint
tracking and disturbance compensation, and stability
margins (robustness) were calculated. From these in-
dices and a personal impression about how quick and
simple a method is to use, a winning method has been
identified from the tests reported in this paper and gen-
eral considerations, namely the the Skogestad’s method
(with a modified integral time tuning for faster distur-
bance compensation).
References
Haugen, F. The Good Gain method for PI(D)
controller tuning. TechTeach, 2010. URL
http://techteach.no/publications/articles/
good_gain_method/good_gain_method.pdf.
91