You are on page 1of 8

Automatica, Vol. 34, No. 4, pp.

513—520, 1998
( 1998 Elsevier Science Ltd. All rights reserved
PII: S0005–1098(97)00218–5 Printed in Great Britain
0005-1098/98 $19.00#0.00

Technical Communique

New Process Identification Method for Automatic


Design of PID Controllers*
SU WHAN SUNG,- IN-BEUM LEE- and JIETAE LEE‡

Key Words—Autotuning; PID; identification; frequency; weighting function.

Abstract—We propose a simple on-line process identification and frequency and then the Z—N tuning rule can be
method for the automatic design of PID controllers. It can used to tune the PID controller. However, the
identify general time-invariant linear systems with time and
frequency weighting, while retaining simplicity. We then use above-mentioned identification methods cannot be
a model reduction method to tune PID controllers using usual done in an on-line manner and require tedious
tuning rules based on the first or second order plus time delay procedures. Moreover, the identification perfor-
model. It can efficiently incorporate initial value problems of
previous identification methods for autotuning by assigning mances are poor frequently due to the effects of
zero weight to the initial state. The proposed method shows an measurement noises or disturbances.
acceptable robustness to measurement noises and disturbances. Many on-line process identification methods for
( 1998 Elsevier Science Ltd. All rights reserved.
the automatic tuning of the PID controller have
been proposed to overcome these disadvantages.
1. INTRODUCTION Roughly speaking, they can be classified into two
categories or relay feedback methods and propor-
Proportional integral derivative (PID) controllers
tional (P) control identification methods according
have been used widely in industry due to robust-
to the types of test signal generators.
ness and simplicity. They show satisfactory control
As ström and Hägglund (1984) identified the ulti-
performance for usual processes. Moreover, Smith
mate gain and the frequency form a relay feedback
predictors and cascade controllers have improved
test. The relay feedback guarantees stable oscilla-
control performances for large time delay processes
tory closed-loop responses only if the process has
and disturbance rejection processes. According to
a stable intersection point with the describing
process dynamics, the tuning parameters should be
function of the relay. Usual stable processes and
tuned appropriately. Therefore, the dynamics of the
integrating processes with one integrator can be
process should be identified before tuning. Many
stabilized by the relay feedback test. Also, it can
on-line process identification methods for continu-
be applied to unstable processes with one unstable
ous-time systems have been developed to tune the
pole only if several moderate conditions are satis-
PID controller or to provide models for the Smith
fied. Since the relay feedback is simple and requires
predictor and the cascade controller.
only information on the sign of the process gain, it
The process reaction curve (PRC) method can
has been applied widely in industry and improved
be used to obtain the first-order plus time delay
by many researchers.
model. Then, the adjustable parameters can be ob-
Li et al. (1991) obtained parametric models from
tained with usual tuning rules for PID controllers
two relay feedback tests. Sung et al. (1995) pro-
such as the integral of time-weighted absolute value
posed a modified relay feedback method to obtain
of the error (ITAE), Cohen—Coon (C—C), Ziegler—
more accurate ultimate data by reducing high-
Nichols (ZN) methods. The continuous cycling
order harmonic terms using a six-step signal. Sung
identification method identifies the ultimate gain
et al. (1996) proposed a new identification method
using the second-order plus time delay model to
identify the process more accurately and a simple
*Received in final form 14 November 1997. This paper tuning rule for the second-order plus time delay
was recommended for publication in revised form by Editor model. Even though it is very simple and composed
Prof. P. Dorato. Corresponding author Prof. In-Beum Lee. of algebraic equations, the performances are almost
Tel. 00 82 562 279 2274; Fax 00 82 562 279 2699; E-mail iblee@
postech.ac.kr. the same as those of the optimal tuning. Shen and
-Department of Chemical Engineering, School of Environ- Yu (1994) and Loh et al. (1993) extended the relay
mental Engineering, Pohang University of Science and Techno- feedback method to multi-input and multi-output
logy, San 31 Hyoja Dong, Pohang, 790-784, South Korea.
‡Department of Chemical Engineering, Kyungpook National (MIMO) cases using the sequential loop closing
University, Taegu 702-701, South Korea. concept. Shen et al. (1996) proposed an improved
513
514 Technical Communiques

relay feedback method to reduce the effects of static Here, if we choose a weight function satisfying the
disturbance. following conditions, the initial and the final value
Yuwana and Seborg (1982) proposed a P control of dn~1y(t)/dtn~1 can be removed from equation (2).
identification method to obtain the first order plus
di~1w(u, 0) di~1w(u, t )
time delay model rather than the ultimate data set " f "0, i"1, 2, 2 , n.
using few transient data points where the process is dti~1 dti~1
activated by a P controller. After them, Jutan and (3)
Rodrigez (1984), Lee (1989), Chen (1989) and Sung Now, consider the following general time-invariant
et al. (1994) improved it. Another P control method linear system:
was proposed to identify the process using the
second order plus time delay model (Lee et al., y(s)
G (s)"
1990). They provide a rational transfer function 1 u(s)
rather than only ultimate data set so that better
b sm#b sm~1#2#b s#b
tuning parameters are available compared to the " m m~1 1 0 . (4)
a sn#a sn~1#2#a s#1
relay feedback method. n n~1 1
However, the identified frequency region by Here, G (s) is proper, that is, m4n. u(s), y(s) denote
previous methods is too narrow compared to the p
the Laplace transforms of the process input (con-
wide operating frequency region of the controller troller output) and the process output, respectively.
so that satisfactory control performances cannot be G (s) represents the transfer function of the process.
achieved frequently. The identified models or ulti- p
The above system (4) can approximate usual pro-
mate information by previous methods show poor cesses including time delay, nonminimum phase
robustness to measurement noises because they use zeroes as accurately as desired. It can be rewritten
several dominant data points. Also, the initial state in time domain and the following algebraic equa-
for the identification work should be a steady state tion can be obtained by applying the transform on
when these identification methods are applied. both sides with the consideration of equations
We propose a new process identification method (1)—(3):
for the automatic design of the PID controller. It
simply overcomes the initial value problems of pre- a M(!1)n½(n)(u)N#a M(!1)n~1½(n~1)(u)N
n n~1
vious identification methods for the autotuning by #2#a M!½(1)(u)N#½(0)(u)
assigning zero weight to the initial state. Since it 1
considers all measured data sets in estimating sev- "b M(!1)(m)º(m)(u)N
m
eral parameters with frequency weighting, it shows #b M(!1)(m~1) º(m~1)(u)N
a good robustness to measurement noises. Even m~1
though it is simple and does not require any com- #2#b M!º(1)(u)N#b º(0)(u). (5)
1 0
plicated numerical techniques it provides better
It should be noted that the algebraic equation (5)
model accuracy compared to previous methods de-
can be derived regardless of the initial conditions
veloped for autotuning.
because the weight satisfies equation (3). Our objec-
tive is to identify the coefficients of a and b. In
2. THEORETICAL DEVELOPMENT OF PROPOSED equation (5), if the weight w(u, t) satisfying equa-
IDENTIFICATION METHOD tion (3) is defined, we can calculate ½( j)(u), º( j)(u)
for various u values using equation (1) with a nu-
Consider the following transform for a signal y(t) merical integration method. Then, we can estimate
before we develop a new process identification the coefficients of a and b from the linear algebraic
method. equation (5) with a least-squares method.
In this paper, we choose n"4 and m"3 since
tf dnw(u, t)
¹ My(t)N"y(n)(u),
n
0
P dtn
y(t) dt. (1) these specifications are sufficient to represent usual
processes with good accuracy and the following
From a simple manipulation, the following equa- weight:
tion can be derived:
G AB
AB AB
t 1 t 2 1 t 3 1 t 4
f(q)" 1# # # #
q 2! q 3! q 4! q
G H G H
dny(t) dn~1y(t)
¹ "!¹
n~1 n dtn~1
ABH A B
dtn 1 t 5 t
# exp ! , (6)
dn~1w(u, t ) dn~1y(t ) 5! q q
# f f
dtn~t dtn~1 w(u, t)"M f (1.5q)!f (q)N exp(!jut). (7)

!
dn~1w(u, 0) dn~1y(0)
. (2) Here, q and u are related to a time weighting and
dtn~1 dtn~1 a frequency weighting, respectively. Consider
Technical Communiques 515

Fig. 1. If we choose a small q value, the weighting u frequency information of the process. In other
value decreases more rapidly with respect to time. words, if we solve the algebraic linear equation (6)
Roughly speaking, only the portion of the signal up using the least-squares method for many frequen-
to the time corresponding to 30 times of q can pass cies (u"u , k"1, 2, 2 ) within a desired fre-
k
through the transform. Also, the transform am- quency region, the coefficients would be adjusted to
plifies the signal of frequency u and filters out other approximate the desired frequency region.
frequency signals. Then, the portion of the signal We recommend the following guidelines to
corresponding to the frequency u is mainly con- choose appropriate q and u values. For example,
sidered when we estimate the above coefficients. assume that we use a biased-relay to activate the
Figure 2 shows the magnitude of the transformed process. Usually, after three or four relay on-off,
output ½(0)(u) with q"2 for the following signal: a cyclic steady state is achieved for usual processes.
The initial part of the relay feedback contains much
y(t)"cos(2t)#sin(2t). (8)
frequency information. But, it should be noted that
A large-magnitude peak appears at the frequency the part of the signal after the cyclic steady state
u"2.0. From Fig. 2, we can recognize that u fre- contains only one frequency information. There-
quency components can pass through the defined fore, it is meaningless to consider more data sets
transform. This implies that the identification after the steady state. Moreover, uncertainties such
method using the transform would mainly fit the as noises or disturbances included in this part can

Fig. 1. Characteristic of weight with respect to q.

Fig. 2. Characteristic of transformed signal with respect to u.


516 Technical Communiques

degrade the accuracy of the model. So, it is obvious q"about t /30 (relay) or about
4
that only the portion of the activated signal before
t /4 (P controller), (12)
the time corresponding to a cyclic steady state #-
should be considered. Therefore, we recommend desired frequency range: from 0 to about 2]2n/P
q as about t /30, here t denotes the time corres- 3
4 4 (relay) or about n/t (P controller), (13)
ponding to the fourth relay on—off. Also, the desired #-
frequency can be inferred directly by measuring the
starting time of the relay on—off or the set point
period of the relay.
Another popular test signal generator is a P con- change: 6q. (14)
troller. In this case, changing the set point of the
controller can activate the process. This type of the Here, P denotes the period of the relay. The objec-
3
generator has an advantage compared to the relay- tive function for the least-squares method is the
type generator. The magnitude of a low-frequency square of the Euclidean norm of the difference
signal included in the activated process output is between the left-hand side and the right-hand side
much larger than that of the relay feedback. There- of equation (5). The optimization problem can be
fore, if we want to enhance the robustness to a static solved directly. Here, we numerically calculate
or low-frequency disturbance it would be better to the integrals of the transforms, ½(i)(u), º(i)(u) at
use the P controller rather than the relay. In this desired frequencies u ’s and then we can estimate
k
case, recommend q as t /4 to consider the part of the coefficients of equation (4) by minimizing the
#- objective function.
the signal from 0 to about 8 times t and the
#- It should be noted that the proposed identifi-
minimum and maximum desired frequency as
0 and n/t , respectively. Here, t denotes the cation method provides much more frequency
#- #- information compared to previous on-line continu-
closed-loop time constant corresponding to about
63% of the steady-state process output for the step ous-time identification methods for the automatic
set point change. tuning of PID controllers and it also does not
To improve the robustness to uncertainties, we require any complicated numerical techniques such
should adjust the starting time of the relay on—off as a repetitive root finding or optimization. Almost
or the set point change. The initial part of the relay all previous on-line process identification methods
on—off or the P control contains more extensive require a steady-state initial condition. Contrarily,
frequency information compared to the later part. the proposed identification method does not care
Therefore, we should assign higher priority to the what the initial state is.
initial part to suppress the effects of uncertainties Discrete-time process identification methods us-
such as noises or disturbances. As shown in Fig. 1, ing an auto-regressive moving average model with
the weighting value becomes relatively large from an exogeneous input (ARMAX) such as recursive
t"6q. So, the time of the relay on—off or the set least square (RLS), prediction error (PE), instru-
point change should coincide with 6q to guarantee mental variable (IV) methods (Ljung, 1987; Söder-
a good robustness to uncertainties. Also, we can ström and Stoica, 1989) can be used to obtain the
adjust the degree of the activation to improve the continuous-time frequency response by reducing
robustness. For example, if we use the P controller the sampling time and then a continuous-time
as the test signal generator the magnitude of the set transfer function can be estimated from the
point should be magnified to reduce the effects of obtained frequency responses. However, these
uncertainties. For the case of the biased-relay feed- methods cannot be applied to a process including
back, the bias or the magnitude of the relay should a long time delay term since it is very difficult to
be chosen as a large value. On the other hand, small infer the time delay with acceptable accuracy by
perturbation is surely preferred in the viewpoint of measuring the process output.
the operator. So, there exists a trade-off relation
between the robustness to uncertainties and the 3. ON-LINE TUNING OF PID CONTROLLERS
preferred operation condition.
For clarity, we summarize the recommended The identified model can be used directly as the
specifications for the transform in this paper as process model in a cascade control, a Smith pre-
follows: dictor or other model-based PID controllers. On
n"4, m"3, (9) the other hand, we should reduce the identified
model to the first or second order plus time delay
t "30q, (10) model to tune the PID controller automatically
f because many developed on-line PID tuning
equation (7) is the chosen weight and their methods are based on these models. Sung and Lee
(1996) proposed a simple model reduction method
derivatives are in the appendix, (11) to reduce a high-order model to a lower one.
Technical Communiques 517

Other approaches can be found for the model error bound, they are not appropriate for the
reduction (Moore, 1981; Glover, 1984). Their autotuning of PID controllers.
methods can reduce high-order models effectively. For the first order plus time delay model, the
However, it should be noted that on-line tuning internal model control (IMC), C—C, ITAE-1, ZN
rules of PID controllers are based on a low-order tuning rules are available. Sung et al. (1996) pro-
rational transfer function with a time delay. Also, posed an ITAE-2 tuning rule for the second-order
the final objective of the autotuning is to determine plus time delay model. Here, the IMC and ITAE-1
the parameters of the PID controller so that the rules are the best among tuning rules based on the
final form of the model reduction should be the first first order plus time delay model for a step set point
or second order plus time delay model. But, their change and a step input disturbance, respectively.
reduction methods provide only a rational transfer On the other hand, it should be noted that the first
function or reduced state space model. Moreover, order plus time delay model has much limitations
they require some complicated numerical tech- in describing high order or underdamped processes
niques such as singular value decomposition compared with the second order plus time delay
(SVD). Therefore, even though their methods can model. Also, the ITAE-2 rule shows almost the
provide a good reduced model within a specified same performance, as that of the optimal tuning

Fig. 3. Activated process output and input by proportional (P) controller.

Fig. 4. Identification results of the proposed identification method.


518 Technical Communiques

and the order of most processes is greater than one. activated process outputs by the P controller with
So, we recommend a simple reduction method and the gain of 2. Here, we choose q and the starting
the ITAE-2 tuning rule based on the second order time of the set point change as 0.7 and 6q as dis-
plus time delay model to tune the PID controller cussed in the previous section. Note that the initial
automatically with the proposed identification process output is not a steady state i.e. the initial
method. process output value and its first derivative value
are 0.3 and 0.5, respectively. Figure 4 compares the
4. SIMULATION RESULTS Bode plots of the real process and the model. From
Fig. 4, we can recognize that the proposed identi-
We chosen the actual process as follows: fication method provides good accuracy regardless
e0.2s of initial conditions. Also, from many simulation
G (s)" . (15) studies, we realize that the identification results are
1 (s#1)3
almost the same for various q values. The obtained
Here, we choose 16 desired frequencies located model is reduced to the second order plus time
equally between 0 and n/0.7. Figure 3 shows the delay model by the model reduction method (Sung

Fig. 5. Control results of the proposed method-ITAE-2 and the relay feedback method-ZN. (a) set point
tracking, (b) disturbance rejection.

Fig. 6. Robustness with respect to the magnitude of the set point change.
Technical Communiques 519

and Lee, 1996). Based on the reduced model, the disturbance of 0.1 is added to the controller output.
PID controller is tuned by Sung et al. (1996)’s As shown in Fig. 6, the robustness to disturbances
tuning rule. Figure 5 shows the control perfor- is much enhanced as the magnitude of the set point
mances of autotuned PID controllers based on the increases.
proposed identification and the relay feedback Figure 7 shows the activated process by an input-
identification method (As ström and Hägglund, biased relay when the measured process output is
1984). Since the proposed identification method corrupted by uniformly distributed random noise
can provide much frequency information, the PID between !0.5 and 0.5. This noise is very large
controller tuned by it shows superior control per- when we consider the practical circumstances.
formances compared to the one tuned by the ZN Here, hysteresis of the same magnitude with the
tuning rule based on the relay feedback identifica- noise is used to prevent a severe fluctuation of the
tion method. relay output. We choose 30 desired frequencies
Figure 6 shows the modeling error with respect located equally between 0.0 and 1.5. Figure 8
to the magnitude of the set point under the compares Bode plots of the model and the process
same conditions of Fig. 3. Here, the static input with noises. The proposed method shows good

Fig. 7. Activated process output and input by an input-biased relay when measured data are corrupted by
$0.5 measurement noises.

Fig. 8. Identification results when measured data are corrupted by measurement noises.
520 Technical Communiques

robustness for the chosen desired frequency range. Shen, S. and C. Yu (1994). Use of relay-feedback test for auto-
We tried other simulations to verify the robustness matic tuning of multivariable systems. A.I.Ch.E. J., 40, 627.
Shen, S., J. Wu and C. Yu (1996). Autotune identification under
to sinusoidal disturbances. The proposed identi- load disturbance. Automatica, 35, 1642.
fication method provided almost perfect model Söderström, T. and P. Stoica, (1989). System Identification.
when the frequency of the disturbances is outside of Prentice-Hall, Englewood Cliffs, NJ.
Sung, S. W. and I. Lee (1996). Limitations and countermeasures
the desired frequency range. From these results and of PID controllers. Ind. Engng Chem. Res., 35, 2596.
the additional many simulations, we can recognize Sung, S. W., J. H. Park and I. Lee (1995). Modified relay
that the proposed method shows an acceptable feedback method. Ind. Engng Chem. Res. 34, 4133.
Sung, S. W., O. J., Lee J., S. Yi and I. Lee (1996). Automatic
robustness to measurement noises and distur- tuning of PID controller using second order plus time delay
bances. model. J. Chem. Engng Japan, 29, 990.
Sung, S. W., H. I. Park, I. Lee and D. R. Yang (1994). On-line
process identification and autotuning using P-controller. First
5. CONCLUSIONS Asian Control Conference, vol. 1, 411.
Yuwana, M. and D. E. Seborg (1982). A new method for on-line
We proposed a new on-line identification controller tuning. A.I.Ch.E. J., 28, 434.
method for the automatic design of the PID con-
troller to overcome the disadvantages of the pre- APPENDIX—DERIVATIVES OF THE WEIGHT IN THIS
vious identification methods. It shows good model RESEARCH
accuracy and robustness to uncertainties such as
noises and disturbances. Also, it does not care no For simplicity, we define the followings for n"0, 1, 2, 3, 4:
matter what the initial state is. To guarantee an dnF dnf (1.5q) dnf (q)
acceptable accuracy to disturbances, we can adjust , ! , (A1)
dtn dtn dtn
the starting time of the relay on—off and the degree
of the activation. From simulation results and anal- dw(u, t) dF
" exp(!jut)#F(!ju) exp(!jut), (A2)
ysis, we can conclude that the proposed method dt dt
provides an acceptable robustness to measurement d2w(u, t) d2F dF
" exp(!jut)#2 (!ju) exp(!jut)
noises and disturbances. dt2 dt2 dt
#F(!ju)2 exp(!jut), (A3)
Acknowledgements—This work was supported in part by the
Korean Science and Engineering Foundation (KOSEF) through d3w(u, t) d3F d2F
the Automation Research Center at Pohang University of " exp(!jut)#3 (!ju) exp(!jut)
dt3 dt3 dt2
Science and Technology.
dF
#3 (!ju)2 exp(!jut)
dt
REFERENCES
#F(!ju)3 exp(!jut), (A4)
As ström, K. J. and T. H. Hägglund (1984). Automatic tuning of
simple regulators with specifications on phase and amplitude d4w(u, t) d4F d3F
margins. Automatica, 20, 645. " exp(!jut)#4 (!ju) exp(!jut)
dt4 dt4 dt3
Chen, C. L. (1989). A simple method for on-line identification
and controller tuning, A.I.Ch.E. J., 35, 2037. d2F
Glover, K. (1984). All optimal Hankel-norm approximations of #6 (!ju)2 exp(!jut)
dt2
linear multivariable systems and their ¸=-error bounds. Int.
J. Control, 39, 1115. dF
Jutan, A. and E. S. Rodriguez (1984). Extensions of a new #4 (!ju)3 exp(!jut)
dt
method for on-line controller tuning. Can. J. Chem. Engng, 62,
802. #F(!ju)4 exp(!jut) (A5)
Lee, J. (1989). On-line PID controller tuning from a single,
closed-loop test. A.I.Ch.E. J., 35, 329. Here,
Lee, J., W. Cho and T. F. Edgar (1990). An improved technique
AB
df 1 t 5 exp(!t/q)
for PID controller tuning from closed-loop tests. A.I.Ch.E. J., "! (A6)
36, 1891. dt 120 q q
Li, W., E. Eskinat and W. L. Luyben (1991). An improved

G AB ABH
autotune identification method. Ind. Engng Chem. Res., 30, d2f 1 t 4 1 t 5 exp(!t/q)
" ! # (A7)
1530. dt2 24 q 120 q q2
Loh, A. P., C. C. Hang, C. K. Quek and V. U. Vasnani (1993).

G AB AB ABH
Autotuning of multiloop proportional-integral controllers us- d3f 1 t 3 1 t 4 1 t 5 exp(!t/q)
ing relay feedback. Ind. Engng Chem. Res., 32, 102. " ! # ! (A8)
dt3 6 q 12 q 120 q q3
Ljung, L. (1987). System Identification. Prentice-Hall,

G AB AB AB ABH
Englewood Cliffs, NJ. d4f 1 t 2 1 t 3 1 t 4 1 t 5 exp(!t/q)
Moore, B. C. (1981). Principal component analysis in linear " ! # ! #
dt4 2 q 2 q 8 q 120 q q4
systems: Controllability, observability, and model reduction.
IEEE ¹rans. Autom. Control, 26, 17. (A9)

You might also like