Professional Documents
Culture Documents
Abstract
In this paper, an adaptive fuzzy temperature controller is proposed for a class of continuous stirred tank reactors (CSTRs) based on
input–output feedback linearization. Since for control implementation concentrations of all species are needed, based on the
observability concept, a fuzzy logic system is used to estimate the concentration dependent terms and other unknown system parameters
in the control law, using temperature measurements. It has been shown that the HN tracking control performance with a prescribed
attenuation level is achieved, by using the proposed controller. Finally the effectiveness of the proposed controller has been demonstrated
by applying it to a benchmark chemical reactor through computer simulation.
r 2008 Elsevier Ltd. All rights reserved.
Keywords: Feedback linearization; HN performance; Adaptive control; Fuzzy logic systems; Chemical reactors
0967-0661/$ - see front matter r 2008 Elsevier Ltd. All rights reserved.
doi:10.1016/j.conengprac.2007.12.005
ARTICLE IN PRESS
1102 S. Salehi, M. Shahrokhi / Control Engineering Practice 16 (2008) 1101–1108
modified adaptive controller has been proposed for the approximator. First, fuzzy logic systems are universal
temperature tracking of CSTRs given by Eq. (4). approximators with arbitrary accuracy for any given
In the first step of design, the system of Eq. (4) is continuous function (Wang & Mendel, 1992). Second,
transformed into the normal form (Isidori, 1995; Khalil, fuzzy logic systems are constructed from fuzzy IF-THEN
1996; Slotine & Li, 1991). Under this transformation, rules using some specific fuzzy inference, fuzzification, and
Eq. (4) can be written as defuzzification strategies, hence, linguistic information
8 from human experts (in the form of the fuzzy IF-THEN
~_
>
>
> c¼~ qð~c; ~xÞ; rules) can be directly incorporated into the approximator
>
< x_ ¼ x ;
1 2 design.
(5) xÞ is a function of available (temperature measure-
að~
>
> _
x2 ¼ að~ xÞ þ bð~
xÞu;
>
> ments) and unavailable states (concentrations). It is
:
y ¼ x1 ;
assumed that the system is observable through reactor
where ~ x ¼ ðx1 ; x2 Þ 2 <2 is the external state vector, ~
c2 temperature measurements. By taking into account the
< n2
is the internal state vector, a and b are given by observability concept, it can be concluded that the species
following equations: concentrations, ~ x1 , can be estimated from the system
output (x2). Consequently, að~xÞ can be approximated using
xÞ ¼ L2f~hð~
að~ ~ jÞ=q~
xÞ ¼ ðf 1 þ f 2 ÞqðDH~ x1 temperature measurements (x2, x3). If estimate of að~ xÞ is
ðF r =V r þ gr Þf 2 þ gr f 3 , denoted by a^ , then the estimator can be constructed as
T
xÞ ¼ L~g Lf~hð~
bð~ xÞ ¼ gr ðx3;in x3 Þ=V j . a^ ðx2 ; x3 Þ ¼ ~
ya ~
Bðx2 ; x3 Þ, (10)
T T
As can be seen, the relative degree of the system is two. where ~
ya ¼ ð~
y1;a ; . . . ; ~
ym;a ÞT is a fuzzy parameter vector, and
Defining e ¼ yyr and ~ e ¼ ðe1 ; e2 ÞT ¼ ðe; e_ÞT , where yr is ~ BT1 ðx2 ; x3 Þ; . . . ;~
Bðx2 ; x3 Þ ¼ ð~ BTm ðx2 ; x3 ÞÞT is the fuzzy regres-
the desired output, the tracking error dynamic can be sive vector with the regressor ~ Bi ðx2 ; x3 Þ and m is the number
expressed as of fuzzy rule bases (Chen et al., 1996; Wang, 1997).
However, if a fuzzy approximator is used for estimating
e_ ¼ Ao~
~ ~ xÞ þ bð~
e þ bðað~ xÞu y€ r Þ, (6)
xÞ, then the minimum approximation error depends on
bð~
where control input and therefore, the HN tracking performance
cannot be achieved (Basar & Berhard, 1990; Doyle, Glover,
0 1 0
Ao ¼ ; b~ ¼ . Khargonekar, & Francis, 1989; Francis, 1987; Kang, Lee,
0 0 1
& Park, 1998; Stoorvogel, 1992; Van der Schaft, 1992). To
Choosing matrix K~ ¼ ðk2 ; k1 Þ 2 <12 such that A Ao solve this problem, bð~ xÞ is approximated differently.
~~
bK is Hurwitz, Eq. (6) becomes: Considering the functionality of bðx3 Þ ¼ gr ðx3;in x3 Þ=V j ,
the following approximator is chosen:
e_ ¼ A~
~ e_ þ bð
~ K~
~e þ að~ xÞu y€ r Þ.
xÞ þ bð~ (7)
^ 3 Þ ¼ y1;b þ y2;b x3 .
bðx (11)
If the system mathematical model is exactly known and
there is no model uncertainty, by applying the following By selecting the above approximator, the minimum
nonlinear control law: approximation error does not depend on the control input
~e að~ which will be shown later.
u ¼ ðy€ r K~ xÞÞ=bð~
xÞ, (8)
By substituting estimates of a and b in Eq. (8) and
the error dynamic becomes adding additional term v, the following control law is
obtained:
e_ ¼ A~
~ e. (9)
u ¼ ðy€ r K~ ^ 3 Þ,
~e a^ ðx2 ; x3 Þ þ vÞ=bðx (12)
This error dynamic equation is asymptotical stable because
A is Hurwitz. It should be noted that for implementation of where v, to be defined later, is considered to achieve the
control law (8), concentrations of all species in the reactor HN tracking performance. By substituting Eq. (12) into
and system parameters are needed. But in practice, Eq. (7), the following closed loop error dynamic is
concentrations are not measured because composition- obtained:
measuring devices are expensive and include lag. Usually,
exact kinetic model is not available and there are e_ ¼ A~
~ ~ xÞ a^ ðx2 ; x3 Þ þ ðbðx3 Þ bðx
e þ bðað~ ^ 3 ÞÞu þ vÞ. (13)
uncertainties in the system parameters. To make the
Let us define the optimal parameter estimates ~ ya as
problem more realistic, it is assumed that all of the required " #
data such as Kst, ~ ~ gr and gj are not available.
j, DH,
~
y ¼ arg min sup k^aðx2 ; x3 Þ að~ xÞk , (14)
One way to solve the above problem is to estimate að~ xÞ a
~ ~
x2Ox
ya 2Oa
and bð~xÞ by appropriate estimators. In this work, a fuzzy
approximator is used to estimate að~ xÞ. There are two main where Oa and Ox denote a set of suitable bounds on ~
ya and
reasons for using the fuzzy logic as basic building blocks of ~
x. By using Eq. (14), the minimum approximation error is
ARTICLE IN PRESS
1104 S. Salehi, M. Shahrokhi / Control Engineering Practice 16 (2008) 1101–1108
defined as 4. Simulation
w ¼ að~
xÞ a^ ðx2 ; x3 j~
ya Þ. (15) The process considered for simulation is the one used by
As can be observed, w does not depend on the control other researchers (Chen, Kremling, & Allgöwer, 1995;
input. Using the above equation in Eq. (13), the closed loop Gopaluni et al., 2003; Klatt & Engell, 1998). It involves
error dynamic can be rewritten as production of cyclopentenol (B) from cyclopentadiene (A)
by acid-catalyzed electrophilic addition of water in dilute
e_ ¼ A~
~ ~ aðx2 ; x3 j~
e þ bð^ ya Þ a^ ðx2 ; x3 j~
ya Þ solution. Because of the strong reactivity of the reactant A
^ 3 ÞÞu þ v þ wÞ. and product, dicyclopentadiene (V) is produced by
þ ðbðx3 Þ bðx (16)
Diels–Alder reaction as a side product, and cyclopentane-
Defining ~ yb ¼ ½y1;b ; y2;b T , ~
¼ ½gr x3;in ; 1T =V j and using
yb diol (C) is generated as a consecutive product through the
Eqs. (10) and (11), Eq. (16) becomes addition of another water molecule. The complete reaction
T
scheme is
~~ ~T
e_ ¼ A~
~ e þ bð y~ a ~
Bðx2 ; x3 Þ þ y~ b ~
Zðx3 Þu þ v þ wÞ, (17)
H2 O=Hþ H2 O=Hþ
~ ~ C5 H6 ! C5 H7 OH ! C5 H8 ðOHÞ2 ;
where y~ a ¼ ~ya ~ ya , y~ b ¼ ~yb ~yb and ~ Zðx3 Þ ¼ ½1; x3 T .
Theorem. Consider the control law (12) with 2C5 H6 !C10 H12 :
1 T
v ¼ b~ P~
e, (18) The reactor inflow contains only the reactant A. Constant
q
density and an ideal residence time distribution within the
_ T reactor are assumed. The dynamics of the reactor can be
~
ya ¼ ga b~ P~
e~
Bðx2 ; x3 Þ, (19) descried by the set of Eqs. (1)–(3). x11 and x12 represent
components of A and B, respectively, their corresponding
_
~ T
vector is ~ xT1 ¼ ½x11 x12 , and the inlet vector is
yb ¼ gb b~ P~
e~
Zðx3 Þu, (20) T
~
x1;in ¼ ½x11;in x12;in . For this system Kst, ~ ~ are as
j and DH
where ga, gb and q are positive constants and P ¼ PT40 is follows:
the solution of the following Riccati equation:
1 0 1
2 T 1 T K st ¼ ,
PA þ AT P þ Q Pb~b~ P þ 2 Pb~b~ P ¼ 0, (21) 1 1 0
q r
where Q ¼ QT40. 2 3
If w 2 L2 , then the HN tracking performance is achieved k10 x11 eE 1 =x2
6 7
with a prescribed attenuation level r for the closed loop error ~ x1 ; x2 Þ ¼ 4 k20 x12 eE 2 =x2 5,
jð~
dynamic given by Eq. (17). k30 x211 eE 3 =x2
Proof is given in Appendix A.
~¼ 1
Remark 1. The Riccati equation (Eq. (21)) has a positive DH ½DH AB BC
R DH R DH AD
R ,
rp cp
semi-definite solution if and only if 2r2 Xq (Chen et al.,
1996). where ki0’s are reaction constant rates, Ei’s are activation
energies, rp and cp are density and heat capacity of the
Remark 2. In order to constraint ~ ya ; ~
yb to some predefined
reactor content. Values for the physical and kinetic
sets ðOa ; Ob Þ, the projection algorithm can be used to
parameters are given in Table 1. By constructing the
modify adaptation laws (19) and (20) (Goodwin & Mayne,
observability matrix, it can be shown that the system is
1987; Luenberger, 1984; Narendra & Annaswamy, 1989).
observable if the reactor temperature is measured. k1 and
It should be noted that as r decreases, q is decreased k2 are set to 50 and 120, respectively. By choosing Q ¼ I,
resulting in a higher control action. On the other hand, in 2r2 ¼ q and solving the Riccati equation (Eq. (21)), P is
all physical applications, actuators are constrained and obtained as
therefore the attenuation level is limited in practice.
0:2184 0:5
Finally in order to complete the stability analysis of the P¼ .
closed loop system under control law of Eq. (12), the 0:5 1:21
stability of internal states, ~ c, must be checked. For CSTRs
The fuzzy rule bases of Eq. (10) are designed as follows:
it has been shown that all concentration trajectories
~
x1 ðt; ~ x1;o 2 <nþ of the system of Eq. (4) are bounded
x1;o Þ, ~
(Alvarez-Ramirez, 1995). As a result, the internal dynamic Rði;jÞ : if x2 is F j2 and x3 is F i3 then a^ is yi;j
are bounded and therefore the stability proof is completed. for 1pip10 1pjp4.
ARTICLE IN PRESS
S. Salehi, M. Shahrokhi / Control Engineering Practice 16 (2008) 1101–1108 1105
8
> 1=ð1 þ expð0:16 ðx 350ÞÞÞ; i ¼ 1;
<
2
mF i3 ðxÞ ¼ expððx ð25 ði 1Þ þ 350ÞÞ =50Þ; 2pip3;
>
: 1=ð1 þ expð0:16 ðx 440ÞÞÞ; i ¼ 4:
Using the above memberships and the fuzzy rule bases, the
fuzzy approximator of Eq. (10) is constructed and can be
written as
P10 Q4
i¼1 j yi;j mF i2 ðx2 ÞmF j3 ðx3 Þ
a^ ðx2 ; x3 Þ ¼ P10 Q4 ,
i¼1 j mF i2 ðx2 ÞmF j ðx3 Þ 3
~
ya and ~
B are
~
ya ¼ ðy1;1 ; . . . ; y1;4 ; y2;1 ; . . . ; y2;4 ; . . . ; y10;4 ÞT ,
Fig. 2. (a) Reactor temperature transient responses from an initial
T condition to the desired value: r ¼ 0.05 (solid line), r ¼ 0.5 (dashed line),
~
Bðx2 ; x3 Þ ¼ ðB1;1 ; . . . ; B1;4 ; B2;1 ; . . . ; B2;4 ; . . . ; B10;4 Þ PID (dotted line), set-point (dash-dot line) and (b) corresponding control
where actions.
Adebekun, A. K., & Schork, F. J. (1991). On the robust global Kosanovich, K. A., Piovoso, M. J., Rokhlenko, V., & Guez, A. (1995).
stabilization of nth order reactions. Chemical Engineering Commu- Nonlinear adaptive control with parameter estimation of a CSTR.
nications, 101, 1–15. Journal of Process Control, 5, 133–148.
Alvarez-Ramirez, J. (1995). Observers for a class of continuous tank Lee, S. Y., Coronella, C. J., Bhadkamkar, A. S., & Seader, J. D. (1993).
reactors via temperature measurement. Chemical Engineering Science, Modelling and temperature regulation of a thermally coupled reactor
50(9), 1393–1399. system via internal model control strategy. Industrial & Engineering
Basar, T., & Berhard, P. (1990). HN optimal control and related minimax Chemistry Research, 32, 3029–3036.
problems. Berlin, Germany: Birkhauser. Limqueco, L. C., & Kantor, J. C. (1990). Nonlinear output feedback
Brown, L.J., Gonyie, G., Schwber, E., & James, S. (1998). Non-linear PI control of and exothermic reactor. Computers Chemical Engineering,
control inspired by biological control. In Proceedings of the IEEE 14(4/5), 427–437.
conference on decision and control (Vol. 1, pp. 1040–1045). Luenberger, D. G. (1984). Linear and nonlinear programming. Reading,
Chang, Y.-C. (2001). Adaptive fuzzy-based tracking control for nonlinear MA: Addison-Wesley.
SISO systems via VSS and HN approaches. IEEE Transactions on Narendra, K. S., & Annaswamy, A. M. (1989). Stable adaptive systems.
Fuzzy Systems, 9(2), 278–292. Englewood Cliffs, NJ: Prentince-Hall.
Chen, B. S., Lee, C. H., & Chang, Y. C. (1996). HN tracking design of Ratto, M. (1998). Theoretical approach to the analysis of PI-controlled
uncertain nonlinear SISO systems: Adaptive fuzzy approach. IEEE CSTR’s with noise. Computers & Chemical Engineering, 22, 1581–1593.
Transactions on Fuzzy Systems, 4, 32–43. Salehi, S., Shahrokhi, M., & Salahshoor, K. (2006). Adaptive fuzzy output
Chen, H., Kremling, A., & Allgöwer, F. (1995). Nonlinear predictive feedback control of an unstable reactor. In Proceeding of IEEE
control of a benchmark CSTR. In Proceedings of the 3rd European international conference on control application (pp. 1374–1379),
control conference. Munich, Germany.
Doyle, J., Glover, K., Khargonekar, P. P., & Francis, B. A. (1989). State Santos, L. O., Afonso, P. A. F. N. A., Castro, J. A. A. M., Oliveira, N. M.
space solution to standard HN control problems. IEEE Transactions C., & Biegler, L. T. (2001). On-line implementation of nonlinear MPC:
on Automatic Control, 34, 831–847. An experimental case study. Control Engineering Practice, 9(8),
Fileti, A. M. F., Antunes, A. J. B., Silva, F. V., Silveira Jr., V., 847–857.
& Pereira, J. A. F. R. (2007). Experimental investigations on fuzzy Sistu, P. B., & Bequette, B. W. (1992). A comparison of nonlinear control
logic for process control. Control Engineering Practice, 15(9), techniques for continuous stirred tank reactors. Chemical Engineering
1149–1160. Science, 47(9–11), 2553–2558.
Francis, B. A. (1987). A course in HN control theory: Lecture notes in Slotine, E., & Li, W. (1991). Applied nonlinear control. Englewood Cliffs,
control information science. Berlin: Springer. NJ: Prentice-Hall.
Goodwin, G. C., & Mayne, D. Q. (1987). A parameter estimation Stoorvogel, A. (1992). The HN control problems: A state space approach.
perspective of continuous time model reference adaptive control. Englewood Cliffs, NJ: Prentice-Hall.
Automatica, 23, 57–70. Van der Schaft, A. J. (1992). L2-gain analysis of nonlinear systems and
Gopaluni, R. B., Mizumoto, I., & Shah, S. L. (2003). A robust nonlinear nonlinear state feedback HN control. IEEE Transactions on Automatic
adaptive backstepping controller for a CSTR. Industrial & Engineering Control, 37, 770–784.
Chemistry Research, 42, 4628–4644. Wang, L. X. (1993). Stable adaptive fuzzy control of nonlinear system.
Haugwitz, S., Hagander, P., & Norén, T. (2007). Modeling and control IEEE Transactions on Fuzzy Systems, 1(2), 146–155.
of a novel heat exchange reactor, the open plate reactor. Control Wang, L. X. (1994). Adaptive fuzzy systems and control: Design and
Engineering Practice, 15(7), 779–792. stability. Englewood Cliffs, NJ: Prentice-Hall.
Huaguang, Z., & Cai, L. (2002). Nonlinear adaptive control using Wang, L. X. (1996). Stable adaptive controllers with application to
the Fourier integral and its application to CSTR systems. IEEE inverted pendulum tracking. IEEE Transactions on Systems Man and
Transactions on Systems Man, and Cybernetics Part B, 32(3), Cybernetics Part B, 26, 677–691.
367–372. Wang, L. X. (1997). A course of fuzzy system and control. New York:
Isidori, A. (1995). Nonlinear control systems (3rd ed.). Berlin: Springer. Prentice-Hall.
Jadot, F. (1996). Dynamics and robust nonlinear PI control of stirred tank Wang, L. X., & Mendel, J. M. (1992). Fuzzy basis functions, universal
reactors. Ph.D. thesis, CESAME, Universite Catholique de Louvain, approximation, and orthogonal least squares learning. IEEE Transac-
Belgium. tions on Neural Networks, 3, 807–814.
Kang, H.-J., Lee, H., & Park, M. (1998). Comments on HN tracking Wu, W. (1999). Adaptive nonlinear control of non-minimum phase
design of uncertain non-linear SISO: Adaptive fuzzy approach. IEEE processes. Chemical Engineering Science, 54, 3815–3829.
Transactions on Fuzzy Systems, 6(4), 605–606. Yu, D. L., & Gomm, J. B. (2003). Implementation of neural network
Khalil, H. K. (1996). Nonlinear systems. Upper Saddle River, NJ: predictive control to a multivariable chemical reactor. Control
Prentice-Hall. Engineering Practice, 11(11), 1315–1323.
Klatt, K. U., & Engell, S. (1998). Gain-scheduling trajectory control of a Zhang, T., & Guay, M. (2001). Adaptive nonlinear control of
continuous stirred tank reactor. Computers and Chemical Engineering, continuously stirred tank reactor system, In Proceedings of the
22(4/5), 491–502. American control conference (pp. 1274–1277).