Sunteți pe pagina 1din 23

Compurers them. Engng, Vol. 16, No. 1, pp. 2749, 1992 009%1354/92 $5.00 + 0.

00
Printed in Great Britain.All rightsreserved Copyright6 1992 F’ergiunon
Pressplc

CONTROL OF AN UNSTABLE BATCH CHEMICAL REACTOR


G. E. ROTSTEIN and D. R. LEWIN~
Department of Chemical Engineering, Technion, Israel Institute of Technology, Haifa 32000, Israel

(Received 18 September 199O;final revision received 8 July 1991; received for publication 22 July 1991)

Abstrnct-As often experienced in industrial practice, a fixed-parameter PID can do a good job, even for
potentially challenging problems such as open-loop unstable processes. However in such cases, consider-
able a priori process knowledge may be required in order to adequately tune the controller and make the
control performance robust to changes in operating conditions. Adaptive schemes, on the other hand,
require less prior plant information but they should not be regarded as magic solutions to control
problems. In this study, alternative adaptive control schemes are presented for the temperature control
of an open-loop unstable batch chemical reactor in which the sequential exothermic reactions A-B-X
are carried out. The performance of such control systems are compared with that of a PID controller,
designed using IMC-based rules, and detuned to ensure robustness to process parameter changes along
the temperature trajectory. Since the required detuning results in poor disturbance rejection, one would
expect that the adoption of adaptive strategies should improve performance. However, the fact that u
fixed-parameter PID controller can be designed to perform reasonably well does not impiy that a self-tuning
version will do at least as well. A self-tuning scheme combined with a parametric control approach can
successfully deal with the reactor start-up and the regulatory problem, provided that the adaptive scheme’s
process model order is adequately selected. Thus, a self-tuning PID controller, which is based on a
second-order model, is liable to failure if the true process is effectively of higher order.

1. INTRODUmION it is open-loop unstable, control failures can lead to


thermal runaway.
Batch reactors have been used for some time in the A good review on problems and results in batch
pharmaceutical and fermentation industry and, to a reactor control was presented by Juba and Hamer
smaller extent, in the chemical process industry (e.g. (1986). A variety of temperature control schemes
in exothermic polymerization reactions). However, have been proposed as alternatives to conventional
an increase in their application can be expected in the feedback: a feedforward-feedback scheme (Jutan and
future. When compared with continuous reactors, Uppal, I984), generic model control (Cott and Mac-
they have the following main advantages: (i) batch chietto, 1989), and many applications of self-tuning
reactors are flexible, and can be adapted to small and adaptive control techniques (e.g. Kiparissides
production runs of various products; (ii) they present and Shah, 1983; Cluett et al., 1985). In all these
less scale-up problems, allowing complex chemical studies, the performance of the proposed control
synthesis to be conducted essentially in the same way scheme is compared with that of a PID algorithm,
as in the laboratory; and (iii) batch systems are better although very little indication is given about how the
suited to carry out reactions under sterile conditions, PID controller was tuned. Adaptive control is a
and to deal with dangerous materials. The import- nonlinear strategy and significantly more complex
ance of these considerations are apparent in a chemi- than a fixed-parameter PID scheme. It is therefore
cal industry moving in the direction of “expensive valid to question whether comparable performance
chemicals” and which is greatly influenced by the could be obtained with the more traditional PID
rapid changes in market demand and the advent of feedback controller (AstrBm, 1983).
new technology. On the other hand, the control of The start-up of exothermic batch reactors is par-
exothermic batch reactors can result in an extremely ticularly problematic because heat must be applied to
difficult regulatory problem. They usually present raise the batch to reaction temperature and then be
strong nonlinear characteristics brought by the heat removed. This requires two manipulated variables
generation term in the energy balance. Since the and generates an overdetermined problem with too
process outputs must be controlled along a tem- many degrees of freedom. In the adaptive strategies
porally varying trajectory, steady-state operating proposed to date, the start-up problem has been
conditions do not generally exist, and process vari- solved by working with a constant amount of cooling
ables and parameters may exhibit large changes with and manipulating the heating rate (Kiparissides and
time. In addition, if the reactor is operating such that Shah, 1983; Cluett et al., 1985) or by employing a
heating bath at constant temperature and controlling
~To whom all correspondence should be addressed. the cooling flowrate (Tzouanas and Shah, 1985,

27
28 G. E. Ronram and D. R. LENIN

1989). Alternatively, the switching instant from heat- model-plant order mismatch, even simple
ing to cooling in a dual-mode strategy has been linear systems under adaptive control can
calculated based on an adaptive prediction algorithm exhibit very complicated dynamic behavior
(Merkle and Lee, 1989). This particular method was (even chaos). The second issue concerns
experimentally tested on a batch process with no the constraints imposed on the initialization
reaction, essentially a linear system. Prediction prob- algorithm of the adaptive scheme by safety
lems should be expected if the batch process involves considerations, which are specific to the
exothermic reaction. A parametric control approach particular control problem.
(Jutan and Uppal, 1984) was applied to implement a
feedback-feedforward scheme. Here, the number of 2. TUNING FOR OPEN-LOOP UNSTABLE SYSTEMS
degrees of freedom is reduced by allowing both
manipulated variables to change through a single 2. I. Objecrives
parametric variable. Finally, an expert system A design method has recently become available for
(Regev et al., 1989) that can learn the “best” start-up first-order unstable systems with time delay (De Paor
strategy based on operating experience has been also and O’Malley, 1989) where gain and phase margin
proposed as a possible solution. criteria are used. A more comprehensive approach
This paper represents a full account of preliminary has been proposed (Quinn and Sanathanan, 1989)
results previously presented (Rotstein and Lewin, but the resulting controllers cannot in general be
1990) and has the following two objectives: expressed in the three-mode PID form. The problem
of delineating the applicability of PI and PID
(A) The generation of simple systematic rules for controllers for open-loop unstable processes with
the tuning of PI and PID controllers for parameter uncertainty was not addressed by either of
open-loop unstable systems, and the definition these studies. Simple tuning rules for PI and PID
of stability limitations imposed by model controllers have been derived for open-loop stable
uncertainty. This will serve as a systematic systems (Rivera et al., 1986) employing IMC (internal
basis for comparison with more advanced mode control) as the design tool. In the present work,
control strategies, and has not in general been the rules are extended for open-loop unstable sys-
covered adequately in previous published re- tems. Tolerance limits for robust stability tuning
sults. These rules will help to avoid extensive under gain uncertainty and unmodelled dynamics are
on-line tuning and serve as criteria to indicate derived. The theory is tested on a nonlinear open-
when upgrading the PID controller becomes loop unstable system, a model of a batch reactor in
unavoidable. which the exothennic consecutive reactions A-B-C
tw To study the potential performance improve- are carried out.
ments and the implementation difficulties
encountered in the upgrading of a fixed- 2.2. IMC controller design for open-loop stable and
parameter PID scheme to self-tuning con- unstable systems-a comparison
trollers. It is natural to conceive of the idea of Control design is explicitly or implicitly a model-
replacing a conventional PID control scheme based activity. An explicit model-based scheme could
by its adaptive version. Implementing such a be as sophisticated as a set of partial differential
scheme would reduce the necessary tuning equations describing the process solved on a real-time
efforts every time changes take place (e.g. simulator in parallel with the process. At the lowest
plant upsets, different reactions) and eventu- level of complexity, the use of “rule-of-thumb” tuning
ally, cope with the start-up problem. Several rules for PI/PID controllers imply first- or second-
manufacturers already market self-tuning PID order lag approximations of the process. Clearly, the
controllers which are clearly more acceptable quality of control will be intimately related both to
to the conservative chemical industry than the sophistication of the process model and also of its
higher order schemes involving large numbers accuracy. However, even the most detailed model is
of tunable parameters. Is this proposed tran- still only an approximation of reality, and an import-
sition so simple? On the basis of the results ant property of the designed feedback controller is
presented by others, the consensus is that the that it be insensitive to modelling error. The relation-
implementation of self-tuning control can ships between designed controller sophistication,
usually be made to work with relative ease. In model uncertainty and achievable closed-loop per-
this work, a self-tuning PID scheme is intro- formance can be elucidated by using the concept of
duced for the control of a typical exothermic IMC (Morari and Zafiriou, 1989).
batch reactor example. Two implementation The IMC design procedure utilizes the structure
issues are studied which highlight the prob- shown in Fig. la, in which p(s) represents the “true”
lematic associated with utilizing adaptive process, p(s) is the process model and q(s) is the IMC
schemes. The first one is the neglected dynam- controller. After defining the model, the design of
ics problem. It has been recently shown q(s) consists of two steps. Firstly, the nominal con-
(Ydstie, 1986) that in the presence of troller, q’(s) is computed in terms of the proposed
Control of an unstablebatch chenricalreactor 29

linear model, thus tacitly assuming that it is accurate. processes, the only condition imposed on the filter
The second step is to append a low-pass filter, f(s) f(s) is that it be unity at s = 0, which will ensure
[q(s) = Q(s)f(s)], in order to attenuate the effect of offset-free response. For unstable processes, the filter
model uncertainty, which usually increases with fre- f(s) must in addition be unity at the location of all
quency. This has the effect of detuning the controller, the unstable poles of the nominal model. The follow-
or in other words, reducing the controller gain. ing important consequences from a robust stability
For open-loop unstable systems, the IMC structure point of view can be derived:
shown in Fig. la is internally unstable and thus can 2.2.1. Open-loop stable systems. If the uncertainty
only be utilized as a design tool. The parametrization in the steady state gain is under 100% we can always
for the feedback classical controller: guarantee the existence of a robust feedback con-
troller that can achieve zero tracking error for step
q(s) inputs. In such cases, the IMC titer is a low-pass filter
c(s)= [1 - P(s)q(s)] ’ usually selected to be of the form:
is used to effect the implementation in the classical
1
control structure, shown in Fig. 1b. f(s) = (& + 1)“’
Theorem-Robust stability (Morari and Zafrou,
1989)
where n is selected to ensure proper controller. For
robust stability there exists a trivial solution in A-+ co
The closed-loop system is robustly stable if and (open-loop conditions). When tuning we must simply
only if the controller stabilizes the nominal plant d increase the value of 1 until condition (2) is satisfied,
and: leading to a more sluggish response. Thus, there
1 exists a minimum value of A (&,) that provides
If(
c--_, VW. (2) robust stability for the given level of model uncer-
&l(o) tainty. If we in addition specify some performance
Wheref(s) is the IMC filter and z(s) is the upper- requirement, this is equivalent to imposing an upper

-
bound multiplicative uncertainty: limit on A (A,). Excessively high performance spe-

I”
(iw) j?(k) cification will clearly be unattainable if A_ < &,.
I,(o) 2 Ik(w)l = 7 VW, VP E n, (3) 2.2.2. Open -loop unstable systems. For open-loop
NW)
unstable systems there exists no trivial solution.
where II defines the set of all possible plants in the set: Robust stability cannot be guaranteed by simply
increasing A since a minimum amount of feedback
n = {P(S) IP(S) compensation is needed to avoid instability. Low-
frequency (gain) uncertainty considerations will
a,s”+a,_ls”~‘+...+a,s+~e_8, impose an upper limit on R (A,,), while high-
1 (4)
= b,s”+b,_,.F’+-..+b,s+l > frequency uncertainty (unmodelled dynamics) will
limit its minimum value (&,)_ If the amount of
uncertainty is too high, there may exist no controller
When following the IMC design procedure, the differ- that can guarantee robust stability and a better
ences between open-loop stable and unstable systems model (less uncertainty) is required. Thus, the robust
arise in the selection of the IMC filter. For stable stability problem for open-loop unstable systems is
of the same degree of complexity as the robust
Disturbance performance problem is for stable ones.

Setpoint output 2.3. IMC-based PI and PID tuning rules for open-
loop unstable systems
When tuning according to the IMC design pro-
cedure for step inputs and nonminimum phase un-
stable processes, equation (1) is reduced to:

(a> 1 f
c =3(1--f)
Disturbance
a simple form for the IMC filter f(s) for first- and
setpoint output second-order open-loop unstable processes is (Morari
and Zafirou, 1989):
ys + 1
f(s) = (h + I)2 ’

(b)
Fig. 1. (a) The IMC feedback structure. (b) The classical y=A 1+2, (7)
feedback structure. ( ‘c” >
30 G. E. ROT-STEIN and D. R. LEWIN

Table 1. IMC tuningrules.


for PI and PID controllers [y = I(I/fu + 211

P(s) J-(s) KC% 71 %I


Kp YS + 1
-y 0
Y
-7.9 + 1 (A.9 + 112

K* ys + 1 _dY + q31) YTpl


Y ++p1
(--+.s + l)(s.,s + 1) (As + 112 12 Y++.I

where 7” is the unstable time constant of the model. one unstable pole only, while for a PID controller, it
The tuning rules derived by substituting f(s) and y must have one stable and one unstable pole. In
from equation (7) into (6) are summarized in Table 1. Appendix B, we prove that when there is no dynamic
Here we present tuning parameters for a theoretical uncertainty (i.e. no neglected poles and flxed, known
PID algorithm, which is improper (it has two zeros time constants), robust PI and PID controllers can
and one pole, and is therefore unrealizable). If a always be tuned if there is no change in the sign of
third-order filter is employed using a second-order the process gain Kp. The limit on the level of gain
model, a proper PID (augmented by a lag) would be uncertainty previously found is thus an artifact intro-
obtained. duced by the conservativeness of the multiplicative
For open-loop stable systems, I appears solely in uncertainty robust stability condition.
the controller gain and changing K, is an adequate Restrictions on gain uncertainty (defined as 11 - K I)
tuning method (Rivera et al., 1986). For unstable and r-values are also demonstrated in Appendix B.
open-loop processes, simultaneous changes in all the The time constant of the neglected pole z must always
control modes are needed. We note that IMC tuning be smaller than the time constant of the unstable
parameter jl appears in all the controller coefficients, pole. The results are summarized in Fig. 2 where
explaining the dificulties encountered in tuning con- 11 -Kim, is plotted as a function of A./r, for different
trollers for this type of process. The IMC design values of r /7,. From the graph, the permitted range
approach reduces the problem to a 1-D parameter of 1 can be obtained given the levels of dynamic and
search in both cases; it also provides a robustness gain uncertainty. This delineates the conditions in
analysis method for the tuning of controllers in the which robust stability cannot be guaranteed using PI
presence of model uncertainty. or PID controllers. This is a particularly interesting
result, because it indicates cases in which these tra-
2.4. Robustness anaIysis ditional controllers cannot work and more advanced
The tuning rules presented in Table 1 will be of strategies (e.g. adaptive, which reduces the amount
limited practical use if they are not accompanied by of effective uncertainty by continually updating the
an adequate robustness analysis method. When the process model) would become unavoidable.
modelling error is described in terms of the multi-
plicative uncertainty defined in equation (3), the true 3. APPLICATION TO THE CONTROL OF AN
uncertainty regions in the Nyquist plot are approxi- EXOTHERMIC BATCH REACTOR
mated at each frequency by disk-shaped regions. A
Thus far, the results obtained have been of a
design based on this approximation can add conser-
general nature, and could be applied to any minimum
vativeness to the controller tuning. For open-loop
phase process which has one unstable pole. We shall
stable systems, this additional severity does not seem
now apply these results to a specific example, that of
to be particularly critical (Laughlin et al., 1986).
However, for open-loop unstable systems, it can be
shown (see Appendix A) that PI and PID controllers
tuned according to the IMC-based parameters cannot
satisfy the robust stability criterion based on multi-
plicative uncertainty when gain uncertainty is greater
than 87%.
In order to check the conservativeness introduced
by the disk-shaped regions, the Routh-Hurwitz
method was applied to a process in which there is
gain uncertainty and in which one stable pole is
neglected in the model:

K
P(s)= -----P(s),
(7s + 1)
K = K,/&,, K,GK,GK,. (8) Fig. 2. Robust stability range for PI and PID controllers in
the presence of gain uncertainty and neglected dynamics.
Following the rules given in Table 1, it is obvious that The figure shows contours in the (A/r,, 11 - K I,,) plane for
in order to generate a PI controller, p”(s) must have differentvalues of T./T, (0.0-0.7).
Control of an unstablebatch chemicalreactor 31

a batch exothermic reactor. The study will qualitat- Table 3. Design parameters

ively illustrate the method and indicate the achievable Variable F0llYXllatioIl Nominal value &xamulc)

performance obtained using conventional PI/PID


controllers. These results will later be compared with
the performance of adaptive schemes.
e2
3.1. Mathematical model
In a typical batch reactor, steam is used to raise the
reaction temperature to the desired level after which 3 x lo-‘s-1
cooling water is used to remove the heat of reaction.
For the example process used in this study, the 0 F- I8 x IO-‘s-’
V,
reaction system is the two consecutive first-order
reactions:

Akl-B&C. The nominal values of the design parameters which


(9)
appear in Table 3 were computed from data supplied
The mathematical model presented below is based on by the same source. Assuming pseudo-steady-state
that given by Luyben (1973). The heating and cooling in the concentrations and linearizing around the
mechanisms have been simplified. Instead of intro- followed trajectory (see Appendix C) the system can
ducing a two-phase model to account for steam and be modelled as:
water in the jacket, we shall assume that the cooling
and heating fluids in the jacket are of equal density p(s)=----=
T(s) -s W)
and heat capacity (which are independent of tempera- U,(s) (-GS + 1) (q.lS + 1) (z, + 1) ’
ture) and that the jacket is always filled. These
measures remove several state variables and also where T(s) is the reactor temperature, U,(S) rep-
reduce the description of heat transfer from the resents the coolant flow, rU is the time constant
jacket to the wall to one coefficient. These modifi- corresponding to the unstable pole and T,,~and rpzare
cations do not remove the significant elements of related to the time constants for transients in coolant
the problem and allow us to focus our attention to temperature and reactor walls, respectively. Along
the main issues. The simplified mass and energy the desired trajectory, we can calculate the variation
balances are: on the linear model parameters from the moment the
state derivatives approximate to zero until the end of
dC, the reaction. In this way, the following uncertainty set
-k,C,, k, = a, exp(Ea, /RT), (10)
dr= is obtained:

dCB=_kC 94 < Kp c 1396,


t 1 A -kc 2 B, k2 = a2exdEa21RT), (11)
1368<z, <3516s,
dT
-= k, (TX,4 + k,G?G4
+ h,(T, - T),
dt PC, 168<2,,<57Os,
(12)
T $ z= 50 s (16)

and the nominal parameter values are: $ = 745,


(13) f,, = 2442 s and zip,= 372 s.

3.2. PI and PID tuning simulation results


dT,_ MT, - T,) - h, (r, - T)
(14) 3.2. I. Robust We will first check the
PI control.
dt - 8, possibility of controlling the batch reactor under
The initial conditions were assumed to be those study using a PI controller. To tune a PI controller
supplied by Luyben (1973), and are listed in Table 2. as suggested in Table 1, the two stable poles of the

Table 2. Initial loading conditions Table 4. Kinetic parameters

Variable Value (example) Value (s.i. units) Value


Variable Nominal value (s.i. units)
T 80°F 300K
TlIl 80°F 300 K a1 729.55 min ’ 12.16s-’
7J 80°F 3OQK 6467.6 min-’ 109.5 s-1
G 0.8 lbmol A ft-” 12.8 kgmol mm3 2 - 1.5 x lo4 B.t.u. mol-’ -3.48 x lO’kJmol-
c. 0.0 lbmol B ft-’ 0.0 kgmol m -’ EL2: -2 x lo4 B.t.u. mol-’ -4.64 x 10’ kJ mol-’
T, 80°F 300K A, -4 x 1O’B.t.u. mol-’ -9.28 x lO“kJmo1-’
Th 260°F 400K A, -5 x 10’B.t.u. mol-’ - 11.6 x lti kJ mol-’
32 G. E. ROTSTEIN and D. R. LEw~N

system are neglected. The following nominal model actual Nyquist uncertainty regions has been proposed
and controller parameters are obtained: as an alternative method (Laughlin er al., 1986) in
order to reduce the conservativeness of the robustness
-745 test. In order to guarantee robust stability, the follow-
B(s) =
-2442s+l ing conditions must be satisfied:

& = 3.3y In= and rr=y . (17) Condition 1. The nominal system (p =p) must
be stabilized by the controller. In
this case, p(s)c(s) must do one encir-
The value of R is selected based on robust stability
clement of (- 1,O) in the anticlock-
considerations or can be tuned on-line. However, in
wise direction.
the present case, 0.07 < ~~,/f,, c 0.23, and according
to the robustness criteria obtained in Appendix B
Condition 2. At each frequency w, the uncertain
and summarized in Fig. 2, if the time constant of
process p(s) E II is contained by the
the dominant neglected pole is of the order of 20%
region A(W) in the complex plane.
of the nominal unstable time constant, the maximum
The regions n(o)c(iw) must also
gain uncertainty that can be tolerated is 80%. In the
encircle and exclude ( - 1,0) for all
particular application under study:
frequencies w.

I I
K---W
gain uncertainty = 100 y = 87%. The implementation of this robustness test is clearly
P
more time-consuming than that based on multiplica-
We can therefore conclude that a PI controller cannot tive uncertainty. The additional effort is only justified
be designed to guarantee robust stability. This analy- when working with the approximated disk-shaped
sis has assumed that the effect of the fast pole (at regions is excessively conservative and makes design
7p2 u 50 s) is negligible. It is thus a subset of the impossible. The computation of a range of ;i which
original uncertainty set given in equations (15) and satisfies robust stability involves a lengthy trial-and-
(16). If no PI controller can be robustly tuned for this error search in which the uncertainties in all the
subset determined by gain and neglected dynamics parameters in the set (16) are included. The feasible
uncertainty only, there will exist no robustly tuned range of filter parameter values which guarantee
PI for the complete set. By opting for a PID con- robust stability when only gain uncertainty and one
troller design, the neglected dynamics uncertainty neglected pole are considered (from Fig. 2, this range
is reduced and this increases the level of gain is rl E [30, 7201, with time in seconds) will clearly
uncertainty tolerated. bracket the range of I when time constant uncertainty
3.2.2. Robust PID controller. In order to obtain a is also to be accounted for. The range obtained from
PID controller, only the fast stable pole (Tag) must be Fig. 2 can be used as a bound for the search for filter
neglected. From Table 1 we obtain the following parameter values that guarantee stability for the plant
control parameters: defined by equation (16), the final result being the
- 745 range: A E [60,480].
The conservativeness added by the multiplicative
‘(‘I = (-2442s + 1) (372s + 1)
uncertainty test can be clearly observed in Fig. 4,
where the test has been plotted for A = 240 s. The true
4 = 3 3 (Y + 372) ; 7,=(372+A) (18)
A2 uncertainty regions encircle the point (- 1,O) once in
3727 the anticlockwise direction (thus satisfying the
Nyquist stability criterion, since there is one positive
‘c = (372 + y)’
pole) without including it for any value of o. On
The IMC filter has the same form as in the PI case. the other hand, the disk-shaped regions completely
In this case, sVZ/TU is close to zero and as shown in envelope the point leading to the failure of the robust
Fig. 2, there is virtually no limit on the level of gain stability test (Fig. 3). The additional severity added is
uncertainty. Thus, for this particular set of conditions particularly critical in this case, because it would
and ignoring dynamic uncertainty, a PID controller reject simple PID feedback for the control of the
can always be tuned for robust stability. The use batch reactor temperature.
of Fig. 2 might be particularly useful when gain Simulations were performed with the PID con-
uncertainty dominates and when the tuning of the troller tuned according to equation (18) with a value
control parameters is performed directly on-line. The of A = 240 s (in the center of the permitted working
existence of a working range of ;i for the actual range). A dual-mode start-up strategy (Shinskey,
uncertainty set (16) will now be checked. In Fig. 3, 1979) was adopted. The results are presented later
the robust stability test defined by equation (3) is for performance comparison with the implemented
executed for a PID controller. Here, the conservative self-tuning schemes. We will now turn our attention
multiplicative uncertainty bound eliminates the possi- to a brief review of the design theory for simple
biiity of employing PID control. Tuning with the adaptive controllers.
Control of an unstable batch chemical reactor 33

1.25-

Lm-
l-

30
Frequency (Rad/minl
Fig. 3. The robust stability condition based on multiplicative uncertainty. Shown in the figure is the
frequency-dependent magnitude of the IMC filter f(s) given as equation (7) for 1 = 0.1. 1 and 10 min
(respectively) as well as the multiplicative uncertainty bound F.

4. ADAPTIVR CONTROL the internal control law according to the identified


parameters. This approach can lead directly to con-
An adaptive control scheme can be defined as any
trollers with PI or PID control structures. Perform-
regulatory strategy which can change its behavior in
ance is specified in terms of the desired location of
response to changes in the dynamics of the process or
closed-loop poles and zeros.
disturbances (Astrom, 1983). An adaptive scheme
performs two tasks on the system to be regulated: (i)
4.1. On-line parameter estimation algorithms
on-line parameter estimation (model identification);
and (ii) control law updating. Three distinct ap- The parameter estimation algorithm is the heart of
proaches can be identified: gain scheduling, model any adaptive scheme, and must be efficient and easy
reference control and self-tuning algorithms. We to implement (low computation time requirements).
have opted to apply a self-tuning technique based on Recursive parameter estimation schemes are a class of
pole placement design which leads to controllers of on-line identification methods which are particularly
arbitrary order. This can be considered as being attractive. Here, current values of the model par-
composed of two loops: the inner loop consisting of ameters are calculated as a function of the previous
an ordinary linear feedback controller, and the outer estimations and the actual values of the inputs and
one composed of a recursive parameter estimator and outputs of the system. Common to these algorithms

-.
:_:.-
-..*
a design calculation rule (pole placement) which tunes is the model assumption that supposes the system

2,

1 _,c:;;
2 1 ,_, _....
s 0 --_-_--___+---
.
..‘...
~=o.os‘=..
,,,,

___“-A
_~\
.-_

---4 wzc6‘
_l
-1

K, disk for a= 0.:


I
-8 -7 -6 -S -4 -3 -2 -1 0
R&l 2
Fig. 4. Nyquist uncertainty regions and multiplicative uncertainty disks. Shown in the figure are: (i) three
representative uncertainty regions for the process modelled as equations (IS) and (16), at w = 0.05. 0.1
and 0.5 rad mm-‘; (ii) uncertainty disks computed on the basis of multiplicative uncertainty, of which only
that for w = 0.5 rad min-’ appears on this scale; (iii) the plot pc(iw), where j is the reduced second-order
model appropriate for PID design [equation (18)l.
34 G. E. Rorsrxr~ and D. R. LEWIN

can be represented by a deterministic autoregressive This means that the required closed-loop discrete
moving-average (DARMA) model: characteristic polynomial should be:

A,(z-‘) = 1 + a,,~-’ + u,zV2 + a,sz-‘, (24)

where

a,,,, = [2 exp(-<oh) cos Jm + exp (h/z,)],


where n is the number of poles and m the number of
zeros in the model. One of the most widely used %I2 = exp( - ewh)[2 exp(h/r,) cos ,/-
estimators is the popular recursive least squares
(RLS) algorithm (Goodwin and Sin, 1984). + exp( - twh)l,

4.2. Recursive least squares (RET) algorithm


a,, = exp[ - (2&h + h /T3)1.

The RLS algorithm can be expressed as: Tuning the control law is effected through the selec-
tion of four parameters: h, the sampling interval; <.
Pk-24k-1 the damping coefficient; CIJ,the natural frequency (or
6k=6k-,+ (Y*-4L,&-,)9
1 +dZ-,pk-*4k-, desired bandwidth) and T,. If the two zeros which
appear in B(z -I) in equation (19) correspond to
(20) poorly-damped modes, they cannot be cancelled by
Pk-24k-l4~-lPk-2 the controller [see the discussion in Wittenmark and
Pk-_I = P&2 - (21)
1 +&E-,PPk--2#Jk-, ’ Astrom (1980)]. A new desired denominator P,,, is
defined in order to cancel the plant zeros only when
where Pk is the covariance matrix, & is a vector of it is considered useful to do so:
model parameters and c#J~_. , is a vector of previous
inputs and outputs: r#~_ I = [y(k - 1), Y(k - 2), . . . P,(z -1) = A,(z-‘)B+ (I -1) (25)
y(k -n), u(k - 1), u(k - 2), . . . u(k -m)]. The in-
itial conditions are: 8, and P_ 1= P,,, where PO is and B, (z-l) contains only the well-damped zeros of
an arbitrary positive-definite matrix. Usually, we the denominator that are to be cancelled. The control
take P,, = ~1, where K is a positive constant. Several law is:
variations on the RLS have been proposed for
Ru, = 5, - SY,, (26)
the identification of time varying systems, namely
the covariancc matrix resetting algorithm and the where we choose:
exponential “forgetting factor” method (Fortescue
et al., 1981). Both of these alternatives aim at pre-
serving adequate sensitivity of the identification
algorithm. T = s, + s, + s* + sj.

According to the internal modelprinciple (Francis and


4.3. Pole placement control law
Wonham, 1976), in order to introduce reset in the
Pole placement is a simple design procedure which controller, we define R(z-‘) as:
is well described in the literature (Astrom, 1983). A
feedback law is generated so that the identified model R(z-‘)= R,(z-‘)(l -z-i)
has the desired closed-loop poles and zeros. In the
first part of this work we noted that the linear model =(l+r,z-‘+rz~-~)(l -z-l). (27)
approximation for the reactor temperature response
To obtain the control law parameters the Diophan-
to changes in cooling and heating flow is essentially
tine equation must be solved:
of third-order. Therefore, the pole placement algor-
ithm for a third-order DARMA model is first A(z-‘)R,(z-I)(1 -z-‘)+z-‘B(z-‘)S(z-‘)
described.
= P,(z-‘). (28)
4.4. Pole placement based on a third-order model
This equation can be expressed as a system of linear
We assume a third-order linear model of the form:
equations and requires the inversion of a 6 x 6 matrix
for its solution.

4.5. Pole placement based on the PID form @oUowing


Wittenmark and AstrCm, 1980)
We want to find a feedback law such that the
closed-loop system has the poles of a continuous A self-tuning PID control algorithm can be derived
if a second-order DARMA model is assumed in
system with the characteristic polynomial:
equation (19) (us = b, = 0), in which case r, is selected
(s2 + 2&s + 02) (73 + 1) = 0. (23) as zero. When these values are introduced in equation
Control of an unstablebatch chemical reactor 35

(23) and the parameters for R, are calculated, makes the controller proper, has an “optimal” time
there is a zero present at - b2/b, and B, is defined constant r, in place of being a simple function of ‘cn.
as: The relation between &, r,, 7,, and s,, si, s, can be.
found now by simple comparison of the two control
laws.
B+(z-,)= [(l+$z-‘) -0.1< +0.99, (29)
K, = - (s, +
1
2s, ).
otherwise
1 7D s2
-= --*
and P,,, has the form: h K,

P,(z--1) = 1 +p,,z-r +~,2z-2+pmrZ-3, (30) 71 s, + s, + s2


-=-
h K .
where
4.7. Conditions to avoid the additional fiker
Pm1 =%I1 --z,,
As we have seen when a complete second-order
Pm2 = am2 - amI z,, sampled-data model is employed, a PID with a filter
on Au, is obtained. If we assume a second-order
pm3 = ---a,2z,,
model with no zero (b2 = 0), a PID traditional non-
62
-0.1< $< 0.99, proper structure is derived. The algorithm design is
z,(z-‘) = -b, I now:
{ 0 otherwise.
A(z-‘)= 1 +a,~-i+a~z-~
Thus s, = r2 = 0 in equations (27) and (28) and (34)
B(z-‘) = b, 1
the Diophantine equation solution (28) requires the
inversion of a 4 x 4 matrix: and P,,, = A,,, because of the absence of zeros to be
cancelled. Solving equation (31) for this particular
1 6, 0 case (A, = P,, b, = 0) gives:
a, - 1 b2 4 [;]+EY$:].
0 b2 r, = 0;
s,=(Pl+ 1 -al).
a2 - ai
0 0 b, ’
--a2
[
s = (P2 + a1 - a21 ; s2=a,.
(31) L (35)
b, b,
At each sample interval, the parameters of the poly-
By substituting these values into equation (33), the
nomials A and B are obtained from the identification
following three-mode control law is obtained:
algorithm and we then perform the inversion of the
above matrix in order to calculate the four control (36)
A%= TY,--oY~-I--~Y~-~~
law parameters.
which corresponds to the well-known nonproper PID
4.6. Translation to PID parameters
structure.
Several different structures can be proposed for a
classical PID controller in sample data from (Astrom, 4.8. Selection of the control tuning parameters
1983). If no additional filter is added to force the The selection of the desired closed-loop poles is
controller to be proper, the following incremental equivalent to tuning in conventional control schemes.
form may be stated. In the case of the self-tuning PID shown above, it is
important to provide a clear and simple tuning
procedure. In the absence of such, the control per-
formance attained could only be marginally better

+(I +?>,-I -+-2 ). (32)


than that obtained using fixed-parameter controllers.
The three tuning parameter values are selected in the
following manner. The first step is usually to choose
For the special second-order case detailed above, the the sample interval h taking into account the expected
control law can be expressed as: time constants from previous experience with the
system (e.g. known necessary start-up time). Next, <
(1 +rlz-L)(l-zZ-‘)~k_l=(l +r,z-‘)Auk is selected (a typical value is 0.7). Only the bandwidth
w then remains to be adjusted. This parameter is a
= Ty,--Soy,--sly,-, --s2yk-2. (33)
measure of the confidence we have on the accuracy
Comparing the last two equations we can easily of the process model. It is equivalent to I --( in
identify equation (33) as a classical PID controller the IMC design method (Morari and Zafirou,
with an additional filter on Au,. This fllter, that 1989). Wittenmark and Astrom (1980) proposed the
36 G. E. R~TSTEIN
and D. R. LEWIN

following relationship to estimate an initial value aax is selected as 2 in order to preserve the control
for w: range of both manipulated variables. Past values of
27t Z will be the input of the linear model in the
identification algorithm. The control law should
o =N,hm .
(37) provide the changes to be done in Z (AZ) which
NC = lo-20 are translated by equation (39) to variations in the
1
physical manipulated variables UC and U,,.
Subsequently, fine tuning must be carried out on-line
until a satisfactory response is achieved. As in fixed- 5.2. Initialization of the algorithm
parameter controller tuning, increasing the band-
A method to ensure a rapid start-up is necessary
width provides a faster response but reduces
when poor information on the model parameters is
robustness and increases sensitivity to noise. For the
available. In the present application, maximum heat-
case of a third-order controller, both o and r3 must
ing (Z = 2) is applied for several control steps
be selected. This is the major drawback of higher
(defined as the initialization period, z’) until sufficient
order models in adaptive schemes: the tuning activity
information is accumulated for an adequate esti-
is increased. The computational task for the control
mation of the parameters. From then on, the control
law is also heavier; there are six parameters to be
of Z is transferred to the proposed control law with
estimated and a 6 x 6 matrix to be inverted.
the desired working temperature as the set-point.
A safety analysis is required to guarantee that this
5. SELF-TUNING PID CONTROL OF A EXOTHERMIC
BATCH REAmOR
can be implemented with no risk. Useful design
parameters for temperature trajectory design in
5.1. Confrol variable definition-the start-up problem exothermic batch reactors have been recently pro-
Exothermic reactions can pose a significant control posed (Lewin and Lavie, 1990). Two characterization
problem because often heat must be supplied to raise times have been defined for the reactor start-up:
the batch temperature to attain reaction ignition and
then be removed. This requires two manipulated Minimum “feasible” start-up time, rb-This is the
variables and generates an overdetermined problem time necessary to heat the reactant mass up to the
with too many degrees of freedom. For our adaptive reaction temperature at maximum heating rate
scheme, a parametric control approach (Jutan and (Z = 2).
Uppal, 1984) was considered promising. The number Safe start-up time, rc-This is the time necessary to
of degrees of freedom is reduced by parametric heat the reactant mass up to reaction temperature,
combination of the two manipulated variables. This guaranteeing at all times that cooling capacity
approach provides a smooth transition from heating exceeds the maximum heat generation rate.
to cooling and avoids the hard switch point definition
characteristic of bang-bang strategies or the larger When z h and zc are plotted as a function of the jacket
start-up time and waste of energy introduced by space velocity, there is a value of @ (defined as the
working with one of the utility fluid flows at a critical safe jacket space. velocity, CD’) for which
constant value. As a drawback, heating is still em- zc = th (Fig. 5). When Qi z GS we can define a non-
ployed along the entire batch cycle. Two manipulated hazardous initialization period ti such that:
variables are available in our system: UC and U,,. ri > tC (from the definition of r’),
Through the artificial variabte Z, we can propose a ti -z th (stop maximum heating before reaching
parametric representation of both control variables: reaction temperature).
U,=a,Z -k/3, If the reactor is operating with @ -z CD*,the design of
(38)
Uh=a,Z+B2 >’ a safe initialization algorithm becomes more com-
Z is a parametric variable which by definition lies in plex. If too much heating is applied at start-up, it is
the range: 0 d Z -c Z,, . In this case, a linear func-
tion has been selected for simplicity but more compli-
cated nonlinear forms could also be employed (Jutan
and Rodriguez, 1987). We defme Z = 0 as the control
extreme where cooling is maximized (heating is set to
zero) while Z = Z,, represents the extreme where
heating is maximized (cooling is set to zero). Thus,
equation (38) becomes:

1
“mu
9

Z @(rnif’)
u,=-
zmsx Fig. 5. The definition of safe jacket space velocity 0’.
Control of an unstablebatch chemicalreactor 37

possible that there will not be sufficient cooling Here, ST,(k) is the absolute deviation of the jacket
capacity later in order to remove heat generated and temperature from some base level at sampling instant
the reactor could go into uncontrolled thermal run- k. This is computed using a first-order autoregressive
away. An alternative initialization procedure for this filter:
case will be proposed later.
Tj(k) = eq(k - 1) + (1 - a)q(k)
For the exothermic reactor model under study, the
parameters are given by Lewin and Lavie (1990): at where
nominal operating conditions @* ‘u 0.006 s-l. For the
6q(k) = ITj(k) - Tj(k)l and L = 0.8. (41)
nominal jacket space velocity 0 = 0.018 s-‘: zc < 60 s
and Th u 1200 s. Thus if the initialization period of The supervisory procedure is based on the idea “If it
seven control steps (t’ = 840 s at a 120 s sample works, don’t touch it” (do not reset the control law
interval) is selected, r’ satisfies the safety conditions parameters if the closed-loop performance is ade-
previously defined. quate). Indeed. experience showed that it was useful
to disconnect the identification algorithm in those
5.3. Tracking changes of the linear model parameters periods when only poor dynamic information is
Two methods to preserve the identification scheme’s available from the system. Even though there is
sensitivity to changes in the identified parameters a tuning effort required by the procedure for the
have been mentioned: covariance matrix resetting selection of the maximum peak permitted, a rather
(Goodwin and Sin, 1984) and variable forgetting transparent concept is involved with a clear physical
factor (Fortescue et al., 198 1). Both of these methods meaning. A value of c5TpM= 5.6”C (10°F) was
were tested by simulation as a part of the self- found to give satisfactory results. The initial con-
tuning PID algorithm as applied to the batch reactor. ditions for the RLS algorithm are: g(O) = [O, 0, 0] and
Even though the resulting performances achieved P(-l)=?Cz, K = 100.
when adequately tuned were similar, covariance matrix
resetting was selected because it was more easily 6. SIMULATION RESULTS AND DISCUSSION
tuned than the variable forgetting factor algorithm.
For the RLS with covariance matrix resetting, the 6. I. Self-tuning PID controller
essential tuning parameters are the instants when The self-tuning PID control scheme described
reset must be performed. At first, a fixed resetting above was applied to the simulated batch reactor.
period was selected but this approach is arbitrary and White noise with a maximum magnitude of 0.55”C
introduces unnecessary oscillations in the control (1°F) was added to the temperature signal in order
variable. This was replaced by a more successful to make the control conditions in the simulation
alternative in which a supervisory procedure was more realistic. The self-tuning PID algorithm with
employed to assess when resetting is required. The no additional filter was implemented first, with the
behavior of the jacket temperature rj is employed results shown in Fig. 6a. No covariance matrix
as a measure of the control performance. When resetting was introduced on the RLS. Even though
the mismatch between model and system becomes acceptable performance is achieved at start-up, after
significant, this manifests itself by the appearance of 7500 s the jacket temperature begins to oscillate and
oscillations in the jacket temperature, indicating that eventually, the oscillations propagate to the reactor
the control tuning has become inadequate. Failure to fluid temperature. The performance of this self-
retune the controller at this point could result in the tuning controller is far inferior to that obtained with
propagation of oscillations to the reactor temperature the robustly tuned PID controller (see Fig. lOa). If
itself, possibly leading to a total loss of control of the the simulation is extended above the time of practical
system. Thus, the supervisory procedure continu- interest (e.g. 5-6 h), the oscillations become definitely
ously monitors the jacket temperature. It will invoke unstable. The bandwidth selected was 0.3 min-*.
the identification scheme whenever the amplitude of Further reduction of w is of little help.
the jacket temperature relative to its baseline value As a conclusion we believed resetting was necessary
6q exceeds a prespecified limit 6TFIM (a tunable in order to improve the quality of the model and as
parameter). The identification scheme will be kept a result upgrade the tuning of the controller. The
operational until the control is deemed adequate, as simulation results brought in Fig. 6b were obtained
indicated by two successive samples of STj below the incorporating the supervisory procedure [equation
limit ST,fl” In addition, the supervisory procedure (40)] to choose reset instants. No improvement was
can be summarized by the following rules:

If (ST(k) > 6Ty”) && (IDENTIFICATION = =OFF)


I
RESET(P) and CONNECT (IDENTIFICATION) 1
If {(6T,(k) c STy”) and (6q(k - 1) < sTfr”)}
DISCONNECT (IDENTIFICATION)
J
38 G. E. ROT-STEINand D. R. LEWIN

(0)
400

G
_ 375-
T
w.

if
3 350 -
iY I
K
$ 325 -
k-

I I I I
2400 4800 7200 9600 1.20
Time [ seconds I

-
Y
- 375
a,
5
> 350
0
k
a
z 325
+i

300
0 2400 4800 7200 9600 12
Time Iseconds)
Fig. 6. The response of a self-tuning PID controller in nominal operating conditions: (a) without
covariance matrix resetting; and (b) with covariancematrix resetting.

attained and indeed, from the first reset instant ize the activity of the adaptive scheme, which is
(t = 3000 s) the performance deteriorates completely. activated for the first time at t = 0 as in all cases. In
Since the identification scheme based on a second- this case, the supervisory scheme identifies good
order model is not adequate, a possible explanation performance at about r = 1700 s and disconnects the
might be the inappropriate choice of model order (the adaptive scheme. This is only a temporary measure,
model assumption). for almost immediately, the supervisor identifies poor
performance (by the presence of excessive jacket
6.2. A simplier case: first-order dynamics on T, oscillation) and reconnects the adaptive scheme (until
In order to look for the origin of the problem and t = 3200 s). In this case, the adaptive scheme is also
suggest possible solutions, a simpler case was studied. active in the intervals between 4000 < t < 5600 s and
The energy balance equation on the jacket [equation 9000 < t < 10,800 s. Each time the adaptive scheme is
(13) in the reactor model] was replaced by arbitrary reconnected, the covariance matrix is reset at the first
first-order dynamics on T,: sample instant.
When zj is increased to 1 min (Fig. 8) results
dr,=l comparable to those obtained with the actual process
;(w- rj), (42) model (Fig. 6b) are observed. We note that for the
dt J
nominal working conditions, the jacket space velocity
where Tj, is the manipulated variable. Even though is also in the order of 1 min. The results obtained so
this is not realistic from a physical point of view, it far indicate that even though a fixed-parameter PID
allows independent manipulation of the jacket pole can be tuned to perform acceptably, it cannot be
location. Simulations were performed beginning with directly replaced by a self-tuning version. The process
low values for the jacket time constant, zj = 12 s, nonlinearities can therefore be handled well by
substantially smaller than the time constant of the our proposed scheme including covariance matrix
metal wall (approx. 1 min). As shown in Fig. 7a, the resetting, provided that the identified model order is
self-tuning PID performs well. In Fig. 7b we summar- adequate. Problems can arise if the effective process
Control of an unstable batch chemical reactor 39

100
Time l seconds 1

1.5 (b)
Kc/IO
_____ Reset
l-
-.___ Rote

0.5 -

0 2400 4800 7200 9600 12000


Time I seconds I
Fig. 7. The response of a self-tuning PID controller (with covariance matrix resetting) in nominal
operating conditions with approximate jacket dynamics and rj = 12 s (T, is indicated by the dotted line):
(a) response of reactor temperatures; and (b) adaptive controller parameters. The thick lines marked in
(b) indicate the intervals when the adaptive scheme is connected. The covariance matrix is always reset
at the first sample of each active interval.

order is greater than that of the model (Ydstie, 1986). effectively retuned. Thus, the modification in working
This is precisely what has occurred in the results conditions permits the retention of the PID controller
shown in Fig. 6 as a result of neglected (linear) jacket form. This may require modifications to the physical
dynamics. This problem can be dealt with in one of system and if speeding up the jacket response is
two ways: (i) conserve the simple PID structure by inconvenient, a higher order model for the adaptive
employing a higher jacket space velocity in order algorithm will be necessary.
to reduce the characteristic time constant of the
heating/cooling system; or (ii) change the model 6.4. Self -tuning with actditional f2ter application
assumption (model order) and thus, abandon the When a second-order model with a zero is adopted,
traditional PID form. a first-order filter on Au, is added to the PID algor-
ithm (PID + F). The system can now be more accu-
6.3. Increased jacket space velocity
rately modelled but this requires a richer input signal.
Simulations with a jacket space velocity 250% In order to improve the identification, the step change
higher than the nominal case show that good per- on Z at the start-up initialization was replaced by a
formance can thus be achieved along the entire batch square wave applied until t = ti (during which time
trajectory (Fig. 9). On the onset of oscillations (at Z alternates between the values 2 and 1.6 every two
t N 4000 s), the identification algorithm successfully sample intervals). The system response is slightly
estimates adequate parameters for the model, the slowed down but this procedure is imperative in
level of uncertainty is reduced and the controller is order to adequately estimate the model parameters.

cAcBJ6 sl-D
40 0. E. ROTSTEIN and D. R. Lnwt~

(a)

Y
- 375

L”
3 350
=:

2E- 325

0 24.00 48’00 7ioo 96’00 12


Time f seconds 1

(b)

4000 7200
Time (seconds1
Fig. 8. The response of a self-tuning PID controller (with covariance matrix resetting) in nominal
operating conditions with approximate jacket dynamics and rj = 1 min: (a) response of reactor tempera-
tures; and (b) adaptive controller parameters, with the thick lines indicating the intervals when the adaptive
scheme is connected.

Simulations were performed with the new adaptive 6.5. Resilience to disturbances
scheme for the batch reactor operating at nominal
conditions. For the same bandwidth as before Different scenarios have been stimulated here in
(0.3 min-I), the temperature is successfully controlled order to test the ability of the adaptive and tied-
along the entire batch trajectory, as shown in parameter schemes to overcome changes in process
Fig. lob. Higher bandwidth values are now permit- conditions. At first, the simulations were carried out
ted, revealing more accuracy in the proposed using a self-tuning PID with an additional filter
linear model (Wittenmark and Astrbm, 1980). (PID + F) and a bandwidth of o = 0.3 min-‘.
The control parameter trajectories are shown in 6.5.1. Changes in cooling temperature (T,).
Fig. 10~. Negative values are obtained for the rate Figure 11 shows the simulation of the response of
constant 7D. Similar results have been reported the controlled reactor to a disturbance in the supply
in the adaptive control of a stirred tank heating temperature of cooling water which increased from
system (Cameron and Seborg, 1982). The comparison 300 to 311 K when reactor temperature reached
with the robustly tuned PID controller (Fig. 10a) 361 K (i.e. 10°F short of the target temperature) and
reveals no performance advantage for the adaptive then returned to the normal level after 2 h. Good
version; on the contrary, more oscillations are intro- performance is obtained using the self-tuning con-
duced in the manipulated variable. The success of troller (Fig. 1 lb), far superior to that achieved with
the robustly tuned PID is not surprising; after the robust PID controller (Fig. 1 la). The supervisory
initial adaptive activity in the interval 0 ,( t 4 2400 s, scheme identifies the deterioration in performance
the performance is so good that the supervisory (caused by the coolant temperature change) and
scheme disconnects the adaptive scheme as shown in reco~ects the adaptive scheme as shown in Fig. 1 lc.
Fig. 1Oc. Clearly, the reason for the poor disturbance rejection
Control of an unstable batch chemical reactor 41

(a)
400

325 -

300 I I I I
0 2400 4800 7200 9600 12
Time [seconds 1

tb)
1.5 ,

0.5
4r-J---- ,______________________-.------------......__.......__.__~.~-~__~~~-___-_-

Kc/l0
/
_____Reset_
i/ -.-.-Rate

0 2400 4800 7200 9600 1; !O


Time Cseconds 1
Fig. 9. The responseof a self-tuningPID controller(with covariance matrix resetting) with increased
jacket space velocity @ = 0.042 s-‘: (a) response of reactor temperatures; and (b) adaptive controller
parameters. The thick lines marked in (b) indicate the intervals when the adaptive scheme is connected.

of the fixed-parameter PID controller is the strong origin of the problem a pole placement controller
detuning necessary to guarantee stability along the based on a third-order model should be able to
complex batch trajectory. control temperature at low @-values. It is clear that
6.5.2. Changes in jacket space velocity (@I. The in this case we must completely abandon the PID
second disturbance studied was that of a 50% re- structure.
duction on jacket space velocity from the nominal When the third-order pole placement algorithm
value (Q drops from 0.018 to 0.008 s-l) from the was applied to the batch reactor at nominal working
moment the reaction temperature reaches 361 K. This conditions, good performance was achieved (Fig. 12).
disturbance simulates partial loss of cooling water Higher bandwidth may be used, an indication that
pressure. The new working conditions are still in the the estimated model is more reliable. The new control
region of safe temperature trajectories: 9 = 0.008 > scheme works well in rejecting the impact of a 50%
0.006 s-l = es. However, the simulation showed un- change in the effective jacket space velocity, as shown
acceptable oscillatory performance (qualitively simi- in Fig. 13c, a disturbance for which both the self-
lar to the results shown in Fig. 6b). The explanation tuning PID + F algorithm (Fig. 13b) and the robust
might be that for lower values of 9, the neglected PID controller (Fig. 13a) performs poorly. As ex-
dynamics become important and the system can no pected, neglected dynamics are the cause of the
longer be modelled by second-order dynamics. The deterioration of the performance of the self-tuning
transfer procedure between reactor temperature and PID + F controller for this disturbance. Again, the
the manipulated variables (UC, V, or Z) is essentially advantage of the adaptive scheme is only significant
of third-order; if the neglected dynamics are really the if upsets occur in the plant.
42 G. E. ROT-STEIN and D. R. L.EWIN

la)
400

Y
_ 375-
T
aI
L
3 350-
0
k
2z- 325-

300 I I 1 1
0 2400 4800 7200 9600 12 I00
Time (seconds1

300 y I I I I
0 2400 4000 7200 9600 12 I00
Time Cseconds I

o.5j ( /L_-_-._-_-_____

0
I I;~---!_______.__________.-----._.-.-___.---___________________________
I Kc/l0
__._________Reset
-5__._--.-.-.. _._._RClt.e
--_fiLter
-0.5

-1 ! I I
0 2400 4800 7200 9600 1; 00
Time [seconds1

Fig. 10. Simulation of nominal conditions: (a) performance of a robustly tuned PID controller; remaining
plots-performance of a self-tuning PID controller (with added filter and covariance matrix resetting) with
bandwidth w = 0.3 min-‘; (b) response of reactor temperatures; and (c) adaptive controller parameters,
with the thick lines indicating the intervals when the adaptive scheme is connected.

At this stage of the work, we have already shown third-order controller may be necessary to guarantee
that the replacement of a fixed-PID by an adaptive the performance of the self-tuning algorithm in reject-
version is not straightforward. The introduction of a ing common disturbances. Only plant-model order
Control of an unstable batch chemical reactor 43

325

4800 7200 9600 t 2000


Time fseconds 1

(b)
400 , 1

375 -
T

350 -

325 -

I I ~-----........-___....--____-.----___, I
300 I/ I I I I
0 2400 48bO 7200 3690 12600
Time Cseconds 1
(cl
1.5

c-
l-

0.5 3
I- 2
_---________=________________ ______________-K,/_i~_--_
Id------

o- ____________ Reset
.-.- -._ _ ---.. - _.- R.3t.e

_ - _f iLt,er
-0.5 .-

-1 I I I I
0 2400 4800 7200 9600 12
Time [seconds1

Fig. 11. Simulation of a disturbance in cooling water supply temperature: (a) performance of a robustly
tuned PID controller; remaining plots-performance of a self-tuning PID controller (with added filter and
covariance matrix resetting) with bandwidth w = 0.3 min-‘; (b) response of reactor temperatures; and (c)
adaptive controller parameters. The thick lines indicate the intervals when the adaptive scheme is connected.

mismatch aspects have been taken into account. 6.5.3. Working in the potentially hazardous start-up
We shall now see how safety considerations specific region (@ < 0’). As previously discussed, the im-
to exothermic batch reactors further constrain the plementation of any control scheme, however well
implementation of adaptive strategies. tuned, may be hazardous if the reactor is made to
44 G. E. ROTSTEIN and D. R. LZWIN

Y
- 375 -
T
P
3 350-
:
E.
E 325-
E-

300 y I I I 1
0 2400 4800 7200 9600 12
Time 1
Cseconds
Fig. 12. The responseof an adaptiveschemebasedon a third-orderprocessmodel undernormaloperating
conditions.

operate in such a way that the minimum “feasible” disturbance on the jacket space velocity studied
start-up time (7”) is lower than the safe start-up time above (reduction of @ to 0.008 s-‘) takes place, the
(t’). Even though this is not the case for the nominal batch reactor would be operating in the unsafe
working conditions, we shall see that minor upsets start-up region (rE = 2300 s, th = 1300 s). Indeed,
can change the situation (Lewin and Lavie, 1990). thermal runaway occurred when simulations were
When the heat transfer coefficients h, and h, are carried out using the standard initialization algorithm
reduced by lo%, P increases to 0.012~~‘. If the discussed above.

(a)
400

Q - 0.0180
,_____________________----__.
Q - 0.0083

4800 7200 9600 1;


Time Isecondsl

A”” , I

Q - 0.0083
300 I I I I
0 2400 4800 7200 9600 12000
Time [seconds1

Fig. 13a,b--Caption on facing page.


Control of an unstable batch chemical reactor 45

(cl

325
Q - 0.0180

j.._-..______________________
0 - 0.0083
I I I I
2400 4600 7200 9600 1; 100
Time (seconds I
Fig. 13. Simulation of a disturbance in cooling water supply pressure (50% reduction in @): (a)
performance of a robustly-tuned PID controller; (b) performance of a self-tuning PID controller (with
added filter); and (c) performance of the third-order adaptive scheme.

An alternative initialization procedure for such an 17. CONCLUSIONS


occurrence, indicated schematically in Fig. 14, is to
apply maximum heating until a defined “ignition In this paper IMC-based tuning rules for classical
temperature” (T”) is exceeded. From that moment PI and PID controllers for open-loop unstable sys-
the adaptive control law starts manipulating heating tems have been developed. Tolerance limits to uncer-
and cooling in order to track a ramp setpoint signal. tainties in process gain and unmodelled dynamics
The ramp follows a trajectory from the temperature have been derived, thus generating qualitative criteria
at the ignition instant to the desired working tem- with which to judge when applying more advanced
perature at a selected final time rr which must be strategies becomes unavoidable in the control of
larger than rC. In this way, we guarantee that enough thermal runaway systems. The proposed tuning rules
cooling capacity is available when the reaction tem- have been applied to the control of a simulated
perature is finally reached. The necessity of some kind exothermic batch reactor. Robust stability analysis
of expert supervision (Regev et al., 1989) to design the has been carried out based on the uncertainty set
start-up strategy is apparent from this discussion. It is generated by linearizing the process model around
clear that even a well-designed adaptive scheme could the desired temperature trajectory. We show that the
fail if a safe trajectory is not planned. This expert reactor dynamics can be adequately described by an
supervision should be able to build tC and 7h maps uncertain third-order linear model. On the basis of
and select a suitable initialization algorithm with the the new rules, a PI controller (based on a first-order
corresponding required parameters (ri, lie”, ?). model) is confirmed to be inadequate for the tempera-
An ignition temperature of 340 K was chosen ture control of the example reactor. On the other
with a final time for the setpoint ramp of 3000 s hand, a PID controller can be designed to do the
(higher than 7’). The simulation results shown in job, though significant detuning is necessary in order
Fig. 15 show that reactor temperature can now be to guarantee stability over the entire batch cycle.
successfully controlled; thermal runaway is avoided Despite the fact that the recommended tuning
by slowing down the batch start-up. method does not guarantee stability for the complete
nonlinear system, it greatly reduces the on-line tuning
effort usually required for this kind of process.
Simple adaptive strategies have been applied for
the control of the process under study. A parametric
control approach is employed to solve the over-
determined problem created at the reactor start-up
when heating and cooling are necessary to drive the
temperature to the desired setpoint. A fixed-
parameter PID controller tuned with the proposed
IMC-rules can successfully overcome the changes in
process characteristics (Fig. lOa), but it. must be
Time (mid strongly detuned for robustness, making disturbanoe
Fig. 14. Proposed alternative initialization procedure for rejection sluggish (Figs 1la, 13a). On the other hand,
potentially hazardous start-up. a self-tuning scheme with the same control algorithm
46 G. E. ROTST~INand D. R. LEWIN

,______________-.--------
Q
Q -
- 0.0180

0.0083
300 I I I I
2400 4000 7200 9600 12 100
Time [seconds I
Fig. 15. The response of an adaptive scheme based on a third-order process modei operating in the
potentially hazardous region: heat transfer coefficients are at 90% of the design level and cooling water
supply pressure is temporarily reduced by 50%. The reactor temperature s&point is indicated by
the dotted line.

(PID) is not able to perform adequately along must perform at least as well as a fixed-parameter
the entire batch cycle under the nominal operating version of the same controller. Changes in operating
conditions (Fig. 6). The reason for this is the order conditions or even in the order of the controller may
mismatch between the true process and the assumed be unavoidable in order to get a standard self-tuning
model. This has been confirmed by running simu- PID algorithm to work.
lations in which the jacket time constant has been Finally, the initialization of the adaptive control
significantly reduced as well as by the success of a algorithm is also constrained by case-specific safety
third-order adaptive scheme. The fact that a second- considerations (Fig. 15). Thermal runaway may occur
order adaptive scheme can deal adequately with the if the start-up strategy is not adequately planned
process nonlinearities when the jacket dynamics even if the adaptive algorithm is well designed. An
are negligible but fails to do so when they are not expect system that determines “safe” strategies and
(cf. Figs 7 and 8) are an indication that process- supervises the self-tuning performance appears as a
model order mismatch is the key problem. In order possible solution.
to reduce the effective order of the process, a higher
jacket space velocity could be employed (Fig. 9). If it Acknowledgement-This research was partially supported
is undesirable or infeasible to operate at a higher by the Henri Gutwirth Fund for the Promotion of Research.
nominal coolant flowrate, a scheme based on a more
complex model could be made to work (e.g. a PID NOMENCLATURE
with additional filter or a third-order controller).
A(z-‘) = Denominator polynomial of the identified
Adequately designed adaptive schemes do not ap- linear model
preciably upgrade the performance of robustly tuned CI,= Coefficient of A (I -‘)
PID control for nominal working conditions (Figs 10 A,(z -I) = Desired closed-loop polynomial
and 12). However, the performance for disturbance a,, = Coefficient of A, (z 7’)
B(z - ‘) = Numerator polynomial of the identified linear
rejection is clearly improved (Figs 11 and 13). If there model
is appreciable likelihood of plant upsets that could b, = Coefficient of B(z -‘)
result in reductions in jacket space velocity (i.e. c= Classical feedback controller
changes in the effective order of the process), the use C,, C, = Concentrations of species A and B, respect-
ively (mol mp3)
of a third-order model becomes unavoidable.
C,, C,, C, = Specific heats for jacket fluids, reactor walls
The main conclusion from our study is that while and reactor fluids, respectively (J mol-’ K-‘)
adaptive strategies have the potential for improving Eu, , Ea, = Activation energies for reactions AdB and
performance and reduced tuning effort, they should B+C (J mol-‘)
not be considered a “magic box” that can solve all f= IMC filter
F,, = Maximum flowrate of cooling or heating fluid
our tuning problems. Their implementation is not as (m’ s-l)
simple as would have been expected and the required hiA, = Reactor-wall heat transfer coefficient (J s-’
effort is not always justified. The fact that a fixed- “C’)
parameter PID controller can adequately control the II,, A, = Jacket-wall heat transfer coefficient (J s-l
“C-l
reactor does not mean that it can be easily replaced
h, , h, = Heat transfer conductances for reactor-wall
by a self-tuning PID scheme which does at least as and wall-jacket (s-l)
well. This is contrary to what could be expected: it is Kp = Process steady-state gain
often wrongly assumed that an adaptive PID scheme Kc = Controller gain
Control of an unstable batch chemical reactor 47

k, , k2 = Rate constants for reactions A + B and B + C Francis B. A. and W. M. Wonham, The internal model
(s-l) principal of control theory. Automatica 12, 457-465
AH = Heat generation rate (J m-3 s-l) (1976).
fl. p = NominFl and uncertain process models Goodwin G. C. and K. S. Sin, Adaptive Filtering Prediction
4,q = 155;epzmal and detuned IMC feedback con- and Control. Prentice-Hall, Englewood Cliffs, NJ (1984).
Juba M. R. and J. W. Hamer. Progress and challenges in
Pk = Estimator covariance matrix at instant k batch process control. In Chemical Process Control-
R(z-‘) CPC ZZI(M. Morari and T. J. McAvoy, Eds), pp. 139-183
S(z -1) = Control law polynomials (1986).
T(z - ‘) I- Jutan A. and E. S. Rodriguez II, Application of parametric
T, T,, q = Reactor, metal wali and jacket temperatures, control concepts to decoupler design for a batch reactor.
respectively (“C) Can. J. Chem. Engng 66, 858-864 (1987).
T,,, T, = Hot and cold supply temperautres, respect- Jutan A. and A. Uppal, Combined feedforward-feedback
ively (“C) servo control scheme for an exothennic batch reactor.
Tj = mo%g average value of Tj (“C) Znd. Engng Chem. Process. Des. Dev. 23, 597-602 (1984).
Cr,,, U, = Fractions of total heating and cooling flow Kiparissides C. and S. L. Shah, Self-tuning and stable
adaptive control of a batch polymerization reactor. Auto-
(02 cl;> 1)
z+ = Process input at instant k matica 19, 225-235 (1983).
V,, V= Volume of jacket, reactor walls and reactor, Laughlin D. L., D. E. Rivera and M. Morari, Smith
Vjv

respectively (m3) predictor design for robust performance. Int. J. Control


yk = Process output at instant k 46, 477 (1987).
2 = Parametric control variable Lewin D. R. and R. Lavie, Designing and implementing
z-’ = Backward shift operator trajectories in an exothermic batch chemical reactor. Ind.
Engng Chem. Res. 29, 89-96 (1990).
Greek letters Luyben W. L., Process Modeling, Simulation and Controlfor
Chemical Engineers, pp. 160-167. McGraw-Hill, New
K,, a(2= Frequency factors for reactions A-B and York (1973).
B-C (s-l) Merkle J. E. and W.-K. Lee, Adaptive strategies for auto-
L = Moving average filter constant matic startup and temperature control of a batch process.
Au = Change in controller output at instant k Computers them. Engng 13, 87-103 (1989).
iI& Vector estimate of linear model parameters at Morari M. and E. Zafiriou, Robust Process Control. Pren-
instant k tice-Hall, Engiewood Cliffs, NJ (1989).
reactor wall heat capacity Quinn S. B. and C. K. Sanathanan, Controller design for
8,, O2= Ratios of runaway processes involving time delay. AZChE Ji 35,
reactor fluid heat capacity
923-930 (1989).
and jacket fluid heat apacity Regev 0, D. R. Lewin and R. Lavie, Exothermic batch
reactor fluid heat capacity chemical reactor automation via expert system. Proc. 20th
L = IMC robustness filter (s) Symp. on Computer Applications in the Chemical Industry,
1,, R, = Heats of reaction for reactions A+B and Erlangen (1989).
B-+C (J mol-‘) Rivera D. E., M. Morari and S. Skogestad, Internal model
pj, p,. p = Density of jacket, reactor walls and reactor, control. 4. PID controller design. Ind. Engng Chem.
respectively (mol mm”) Process. Des. Dev. 25, 252-265 (1986).
& _ , = Vector of previous inputs and outputs Rotstein G. E. and D. R. L.ewin, Control system design for
@ = Jacket space velocity (s-l) an exothermic batch chemical reactor. In Computer Appli-
@’ = Critical safe jacket space velocity (s-l) cations in Chemical Engineering, (H. Th. Bussemaker and
< = Desired closed-loop damping factor P. D. Iedema, Eds), pp. 139-144. Elsevier Amsterdam
w = Desired closed-loop bandwidth (1990).
ro = PID controller rate time (s) Shinskey F. G., Process Control Systems. Prentice-Hall,
5, = PID controller reset time (s) Englewood Cliffs, NJ (1979).
zc = Feasible start-up time (s) Tzouanas V. and S. L. Shah, Adaptive pole-placement
gh = Safe start-up time (s) control of a batch polymer reactor. In Adaptive Control of
7i = Initialization period (s)
Chemica/Processes(H.Unbehauen.Ed.),pp. 103-108(1985).
7j = Heating/cooling jacket time constant (s)
Tzouanas V. K. and Shah S. L., Adaptive pole-assignment
control of a batch polymerization reactor. Chem. Engng
Sci. 44, 1183-i 193 (1989).
REFERENCES Wittenmark B. and K. AstrBm, Simple self-tuning con-
AstrBm K. J., Theory and applications of adaptive con- trollers. In Methods and Applications in Adaptive Control
trol-a survey. Automatica 19, 471-487 (1983). (H. Unbehauen, Ed.), pp. 21-29. Pergamon Press, Oxford
Cameron F. and D. E. Seborg, A self-tuning con- (1980).
troller with PID structure. Znt. J. Control 38, 401-417 Ydstie B. E., Adaptive control-session summary. In
(1983). Chemical Process Control-CPC ZII (M. Morari and T. J.
Cluett W. R., S. L. Shah and D. G. Fisher, Adaptive control McAvoy, Eds), pp. 421426 (1986).
of a batch reactor. Chem. Engng Commun. 38, 67-78
(1985).
APPENDIX A
Cott B. J. and S. Macchietto, Temperature control of
exothermic batch reactors using generic model control. Stability Limit in Terms of Multiplication Uncertainty
I&. Engng Chem. Res. 28, 1177-1184 (1989).
De Paor A. M. and M. O’Malley, Controllers of The robust condition based on the multiplicative uncer-
Ziegler-Nichols type for unstable process with time delay. tainty is given by equation (2). The magnitude of the IMC
Int. J. Control 49, 1273-1284 (1989). filter as a function of w and 1 is:
Fortescue T. R., L. S. Kershenbaum and B. E. Ydstie,
Implementation of self-tuning regulators with variable (Al)
forgetting factor. Automatica 17, 831-835 (1981).
48 G. E. ROTSTEINand D. R. LEWD

This has a maximum for a given value of A at: where 2 and ti are perturbations of (x, u) from the trajectory
(x*. u.). We now generate a pseudo-linear model with
reference to the coordinates (x + , u . ) along a trajectory. For
each set [x.(t). I(+ (111, the coefficients of the Jacobian
where d = n/t,. For A 2 0, the minimum attainable peak is matrices A and B are computed for the batch reactor model.
obtained when I-0: From the moment heating is closed (I&, = 0). the nonzero
coefficients of the Jacobians ph and B are:
W(i~)I,lti, = lim
1-o
If(i = 2lJ3. 643)

Now, for gain uncertainty only:

=Irc-11, K=K&

Thus, from equation (2): afi kl.1,


1 a1.4=ac,,=pc,l
iW~)l,,],, < ~ (A4)
IK - II

IK-_I_= 2/a = 0.87. (As)

APPENDIX B
Stabiliiy Limits for Gain Uncertainty and Neglecfed Stable
Pole
The characteristic equation can be derived from the IMC
structure (Fig. la) resulting in a simple expression for the
stability analysis. When tuning from Table 1 we obtain the
characteristic equation:
1 -f +pfi-if= 0. @I) af, fh
a 3*2=K=e,’
Substituting for f(s) and p(s) from equations (6) and (7),
and normalizing all time units by rU, we obtain:
&~~+~~(l --)s2+1[~(L +2)--]s+K =O, (B2)
where 9 =r/z,
Necessary and sufficient conditions for stability are (using
the Routh-Hurwitz criterion): af. Ea, k,. C,.
a+,=== RT: ,
K > 0,

af,
a4,4 = q = -k,.

s^< 1,
P(1 - r^) af; Ea,k,.%-Ea,k,.C,.
a5.I = do, =
K ’ X(X + 2) - (X + 1)9 RT',
We can therefore conclude that:
af5
r a,,=-=k,.,
s^=-<l*str, (B3) ac,.
=u
and afs -k
a x5===

1
2..
f P(1 - ?)
034)
Ktin = max [ 1 + 2 ’ X(X + 2) - (X + l)*T^
or b,=g= -@(q.-T,,).
E.

1
21c- f(l + 21)
I1-Klm~=mi ~~-+2)_-(~+~)2-
7 . (B5)
The nominal values of the kinetic parameters k,, and k2, are
Condition (B5) is plotted in Fig. 2 as ? contours in the computed using the Arrhenius rate expressions computed at
(11 -d,,, X} plane. T = T,. Temperatures are given in K. Taking Laplace
transforms of equation (Cl), we obtain the set:

APPENDIX C (s -a,.,)T= a,.,~~+aa,.,~~+a,.,~~+f,, (C2)


Linearization of the Nonlinear Model
(s -az,z)~j=aa,,,~~+b,~~+f,, (C3)
Linearization of equations (10-14) around a given trajec-
tory generates the linear approximation given by the matrix (~--~,,)~~==~,,~+a,,,~+f,. (C4)
equation:
(~-a,.,)~~==~,,?+~. (C5)
u,)+Af+Bti, (Cl)
(s --~.s)~~s=~.I~+a’5.,~*+~. (C6)
Control of an unstable batch chemical reactor 49

A reduced-order approximation for the linear transfer func- derived. As an estimate of the accuracy of the linear
tions can be derived by assuming pseudo-steady-state for the approximation (C7), one can algebraically derive the relative
transients of cA and et,: error of gain as a function of nonzero transients. The sum
of the second, third and fourth terms of equation (C7), the
“gain linearization error”, canbecomputedfors=Oasa
function of the linear coefficients u,, , and bki (themselves
computed according along a simulated trajectory). We note
that these terms are in temperature units and so can be
usefully compared with the assumed measurement noise
where level.
Equation (C7) relates the effect of nonzcro temperature
transients cf; # 0, i = 1,2,3) to the computed value of the
pseudo-steady-state gain. Thus, assuming that the hneariza-
tion error is insignificant towards the end of the batch cycle,
where the system is almost at steady state, one can compare
the magnitude of the error with that obtained when the
and system is exhibiting significant change (i.e. at the start of the
batch cycle). From a plot of all three components of gain
G,=02.3. linearization error, plotted against time (computed on the
s -42.2 basis of simulated data for nominal operating conditions) it
Whenever the transients I;(x *, I( .) are sufficiently small, is clear that from approx. I = 50 min. the contribution of
steady-state can be assumed and the linear transfer func- linearization error is the same order of magnitude as the
tions relating the reactor temperature f to Cr, can be assumed measurement of noise ( f 1“F) and can be ignored.

S-ar putea să vă placă și