Generalized Predictive Control Using Recurrent Fuzzy Neural Networks For Industrial Processes
Generalized Predictive Control Using Recurrent Fuzzy Neural Networks For Industrial Processes
www.elsevier.com/locate/jprocont
Received 22 February 2006; received in revised form 1 August 2006; accepted 2 August 2006
Abstract
This paper presents a design methodology for predictive control of industrial processes via recurrent fuzzy neural networks (RFNNs).
A discrete-time mathematical model using RFNN is constructed and a learning algorithm adopting a recursive least squares (RLS)
approach is employed to identify the unknown parameters in the model. A generalized predictive control (GPC) law with integral action
is derived based on the minimization of a modified predictive performance criterion. The stability and steady-state performance of the
resulting control system are studied as well. Two examples including the control of a nonlinear process and the control of a physical
variable-frequency oil-cooling machine are used to demonstrate the effectiveness of the proposed method. Both results from numerical
simulations and experiments show that the proposed method is capable of controlling industrial processes with satisfactory performance
under setpoint and load changes.
2006 Elsevier Ltd. All rights reserved.
Keywords: Generalized predictive control; Process control; Recurrent fuzzy neural network; Variable-frequency oil-cooling machine
0959-1524/$ - see front matter 2006 Elsevier Ltd. All rights reserved.
doi:10.1016/j.jprocont.2006.08.003
84 C.-H. Lu, C.-C. Tsai / Journal of Process Control 17 (2007) 83–92
[9] outlined the algorithm for controller reconfiguration of to the solution of the conventional GPC which demands
nonlinear systems, based on a combination of a multiple for large matrix inversion and numerous matrix multiplica-
model estimator and a generalized predictive controller. tions in solving the optimization problems. The second is
Cao [10] proposed a formulation of nonlinear model pre- to establish the convergence of the RFNN model via
dictive control using automatic differentiation. Lyapunov stability theory, and to study the stability of
Neural networks (NNs) have been shown to possess the closed-loop control system. The third is to illustrate
good function approximation capabilities, and have been the uses of this proposed method for control by computer
applied successfully by many researchers [11–15] in model- simulations on a nonlinear discrete-time process and by
ing some poorly understood systems or processes. The experiments on a physical variable-frequency oil-cooling
results in [11–15] demonstrated the feasibility and efficacy machine.
of neural predictive control techniques for identification The remainder of the paper is organized as follows. Sec-
and control of nonlinear dynamic systems. On the other tion 2 presents the RFNN model for a class of nonlinear
hand, fuzzy models of the Takagi–Sugeno (T–S) type have discrete-time processes. In Section 3, the proposed predic-
been proven suitable for the use of nonlinear GPC, because tive control law with integral action is derived, and the
these models are able to accurately approximate complex real-time predictive control algorithm based on the RFNN
nonlinear systems by using data along with a prior knowl- model is presented. Section 4 details the capabilities of the
edge of processes [16]. The studies in [16–21] reported many proposed algorithm for controlling a nonlinear process sys-
successful applications of GPC using fuzzy models. tem utilizing computer simulations. Experimental results
The concept of incorporating fuzzy logics into NNs has for controlling an oil-cooling process to meet the desired
become increasingly important in recent years. In contrast performance specifications are also presented. Section 5
to the pure NNs or fuzzy systems, the fuzzy neural network concludes this paper.
(FNN) combines the capability of fuzzy reasoning in han-
dling uncertain information and the capability of artificial
learning in modeling the processes. In the recurrent fuzzy
2. Nonlinear system modeling using RFNN models
neural networks (RFNNs) [22–25], recurrent neurons in
the form of feedback connections as internal memories
This section aims at developing an RFNN model for a
are used. The RFNN have been shown more suitable for
class of nonlinear discrete-time processes, where the
describing dynamic systems than the FNN, because it can
RFNN structure is shown in Fig. 1. Layer 1 accepts the
deal with time-varying input or output through its own ^
input variable x i ðkÞ; the nodes therein represent input lin-
natural temporal operation. Moreover, such networks
guistic variables. The nodes in layer 2 are respectively
can be functionally interpreted using fuzzy inference mech-
labeled with F ij . In this layer, each node performs a mem-
anism, and they have been shown applicable to many engi- ^
bership function and acts as a unit of memory. F ij is a lin-
neering fields, such as image processing, control, signal
guistic label associated this node, and a Gaussian function ^
processing, robotics, speech recognition and etc. There
is adopted here as the membership function. Notation # ij
are also many existing predictive control strategies based
denotes the feedback gain in the jth term of the ith input
on FNN or RFNN models. For examples, Zhang and ^
linguistic variable x i ðkÞ to the node of layer 2. What is
Kovacevic [26] presented neurofuzzy model-based predic-
worth mentioning is that the input of layer 2 contains the
tive control for the weld fusion zone geometry, Li et al.
memory terms which store the past information of the out-
[27] designed the generalized predictive control using fuzzy
puts from layer 2. Apparently, this is the main difference
neural networks in TS model, and Zhang and Morris [28]
between the FNN and the RFNN. Every node in layer 3
presented a type of nonlinear model-based long-range pre-
is labeled with P, whose output is the product of all the
dictive controller based on the RFNN model. The method
products of the incoming signals. Every node in layer 4 is
presented in this paper is an extension of the predictive
labeled with N; these nodes calculate the ratio of the firing
controllers proposed in [26–28], where the problems of
strength of every rule to the sum of those of all rules. The
the control performance and the computational complexity
outputs from layer 4 are called normalized firing ^ strengths.
associated with the FNN-based or RFNN-based predictive
Every node j in layer 5 is with a node function h j , and every
controllers have not been addressed yet. ^ ^
output from layer 5 has a mathematic expression 1 j h j ,
There are three objectives of this paper. The first is to ^
where 1 j is the normalized firing strength from layer 4.
propose a controller for a class of nonlinear discrete-time
The single node in layer 6 is labeled with R, which com-
processes using GPC with RFNN model, and derive the ^
putes the output y ðkÞ as the summation of all incoming sig-
less computational controller’s expression based on the
nals from layer 5. For a nonlinear dynamic process, the
minimization of a modified predictive performance crite-
following nonlinear autoregressive moving average model
rion. The developed control law with integral action is par-
with an exogenous input (NARMAX model) is considered:
ticularly useful in eliminating steady-state tracking errors
caused from modeling errors or constant external distur-
yðkÞ ¼ f ðyðk 1Þ; yðk 2Þ; . . . ; yðk ny Þ;
bances. The proposed predictive controller takes a less
computational requirement to overcome a major obstacle uðk dÞ; uðk d 1Þ; . . . ; uðk nu ÞÞ þ nðkÞ; ð1Þ
C.-H. Lu, C.-C. Tsai / Journal of Process Control 17 (2007) 83–92 85
z −1
(
ϑ11
F11
(
Σ F11
F1L
(
x1 (k)
(
Π ς 1 θ1
(
N
(
y (k)
Σ
(
x n(k)
(
Π ς θL
(
Fn1 N L
Layer 2
Fig. 1. A configuration of the proposed RFNN architecture.
P ðk 1ÞfT ðkÞðyðkÞ fðkÞhðk 1ÞÞ To ensure a convergent learning, the learning rate g is set
hðkÞ ¼ hðk 1Þ þ ; ð14Þ according to (16) so as to have d‘ðkÞ ¼ ge2 ðkÞko^y ðkÞ=
1 þ fðkÞP ðk 1ÞfT ðkÞ
oW k2 < 0, which implies that the output of the RFNN con-
P ðk 1ÞfT ðkÞfðkÞP ðk 1Þ
P ðkÞ ¼ P ðk 1Þ : ð15Þ verges. With such a convergent RFNN, Theorems 2 and 3
1 þ fðkÞP ðk 1ÞfT ðkÞ in Section 3 will show that the controlled tracking error
C.-H. Lu, C.-C. Tsai / Journal of Process Control 17 (2007) 83–92 87
converges asymptotically to zero and the closed-loop sys- Dzp ep ðz1 Þaðz1 ÞyðkÞ ¼ Dzp ep ðz1 Þbðz1 Þzd uðkÞ þ
nðkÞ;
tem is stable. h ð23Þ
where
3. Derivation and analysis of predictive control law
nðkÞ ¼ Dzp ep ðz1 ÞnðkÞ:
3.1. Predictive control law with integral action
By using (21) and (22), (23) becomes
This subsection is devoted to the derivation of the pre- yðk þ pjkÞ ¼ fp ðz1 ÞyðkÞ þ gp ðz1 ÞDuðk þ p dÞ þ
nðkÞ:
dictive control based on the RFNN model in order to
improve capabilities of tracking performance and distur- ð24Þ
bance rejection for this class of nonlinear industrial pro- Thus, the p step-ahead output prediction ^y ðkÞ is obtained
cesses. The control law is derived so as to minimize the from (25)
following cost function:
^y ðk þ pjkÞ ¼ fp ðz1 ÞyðkÞ þ gp ðz1 ÞDuðk þ p dÞ: ð25Þ
X
Np
J ðkÞ ¼ ð^y ðk þ pjkÞ ui rðk þ pÞÞ
2 To reduce the computational load, the control horizon
p¼d Nu is chosen as unity. Using (25) and setting
Du(k + 1) = = Du(k + Np) = 0, the cost function J in
X
dþN u 1
X
L R ¼ ½ rðk þ dÞ rðk þ d þ 1Þ rðk þ N p Þ T :
bðz1 Þ ¼
b1 z1 þ
b2 z2 þ þ
bnu znu ;
bi ¼ i
xj ðkÞbij z :
j¼1 Because the cost function J(k) is quadratic in Du(k), a min-
imum solution for Du(k) is easily obtained from
Next, given a polynomial ep(z1), polynomials fp(z1) and
oJ eq ðkÞ
gp(z1) can be defined as follows: ¼ 0; ð27Þ
oðDuðkÞÞDuðkÞ¼Du ðkÞ
1 ¼ Dep ðz1 Þ
aðz1 Þ þ zp fp ðz1 Þ; ð21Þ
which yields the following equation:
1 Þ;
gp ðz1 Þ ¼ Dep ðz1 Þbðz ð22Þ
GT ðFyðkÞ þ K URÞ þ ðGT G þ qðz1 Þq0 ÞDuðkÞ ¼ 0: ð28Þ
where From Eq. (28), it leads to
1
D¼1z ; GT ðFyðkÞ URÞ þ GT K þ ðGT G þ q20 ÞDuðkÞ
ep ðz1 Þ ¼ 1 þ ep;1 z1 þ ep;2 z2 þ þ ep;p1 zðp1Þ ; þ q0 ðq1 z1 þ q2 z2 þ qN p zN p ÞDuðkÞ ¼ 0;
fp ðz1 Þ ¼ fp;0 þ fp;1 z1 þ fp;2 z2 þ þ fp;ny zny ;
GT ðFyðkÞ URÞ þ ðGT G þ q20 ÞDuðkÞ
1 1 2 ðpþnu 1Þ
gp ðz Þ ¼ gp;0 þ gp;1 z þ gp;2 z þ þ gp;pþnu 1 z :
X
Np
þ GT K þ q0 qi Duðk iÞ ¼ 0;
Premultiplying (20) by Dzpep(z1) gives the following i¼1
equality:
GT ðFyðkÞ URÞ þ ðGT G þ q20 ÞDuðkÞ þ HðkÞ ¼ 0;
88 C.-H. Lu, C.-C. Tsai / Journal of Process Control 17 (2007) 83–92
1
where Bðz ÞrðkÞ nðkÞ
! lim EfyðkÞ rg ¼ lim E þ lim E
X
Np k!1 k!1 Aðz1 Þ k!1 Aðz1 Þ
HðkÞ ¼ gd;0 gi;1 þ q0 q1 Duðk 1Þ nðk 1Þ
i¼d lim E lim Efrg
k!1 Aðz1 Þ k!1
!
X
Np 1
Bðz ÞrðkÞ EfnðkÞg
þ gdþ1;0 gi;2 þ q0 q2 Duðk 2Þ þ ¼ þ
i¼d
Aðz1 Þ z¼1 Aðz1 Þ z¼1
! Efnðk 1Þg
X
Np
r
þ g2d1;0 gi;d þ q0 qd Duðk d Þ Aðz1 Þ z¼1
i¼d
bðz1 Þzd ðGT G þ kÞ1 Xr
!
X
Np ¼ 1 T
r
D 1 1 d T
aðz Þ þ bðz Þz ðG G þ kÞ G F z¼1
þ g2d;0 gi;dþ1 þ q0 qdþ1 Duðk d 1Þ þ
i¼dþ1
bðz1 Þzd ðGT G þ kÞ1 Xr
! ¼ r
X
Np
bðz1 Þzd ðGT G þ kÞ1 GT F z¼1
þ gN p 1;0 gi;N p 1 þ q0 qN p 1 Duðk N p 1Þ P
Np
i¼N p 1 g
p¼d p;0 p f ð1Þ r
¼ PN p r ¼ 0;
þ ðgN p ;0 gN p ;N p þ q0 qN p ÞDuðk N p Þ: ð29Þ p¼d g p;0 fp ð1Þ
in Section 2. Thus the estimates mij, rij, #ij and hj are con- LðkÞ ¼ lim ðEfr yðk þ p 1ÞgÞ2 ð33Þ
n!1
p¼1
vergent and uniformly bounded. The following theorems
state that the aforementioned control law (30) has zero we have
steady-state tracking errors and the resulting closed-loop
X
n
system is stable. Lðk þ 1Þ ¼ lim ðEfr yðk þ pÞgÞ
2
n!1
p¼1
Theorem 2. Assume that the predictive control law (30) is
applied to the RFNN model (3), the upper bounds for ny, nu X
n
2 2
¼ lim ðEfr yðk þ p 1ÞgÞ ðEfr yðkÞgÞ
and d are known, the estimated parameters of mij, rij, #ij and n!1
p¼1
hj are bounded, and all setpoints are constant, i.e. r(k) = r.
Then the closed-loop system has the following property: þ lim ðEfr yðk þ pÞgÞ2
p!1
1.5
4. Illustrative examples
1
In this section, two illustrative examples are provided to
demonstrate the performance of the proposed RFNN- 0.5
y
1.5 1.5
1 1
y
0.5 0.5
y
0 0 PID controller
GPC controller
-0.5 -0.5
0 100 200 300 400 500 600 700 800 0 100 200 300 400 500 600 700 800
Sample Number Sample Number
4
1.5
2 1
y
0 0.5
u
0
-2 PID controller
-0.5 GPC controller
-4
0 100 200 300 400 500 600 700 800 0 100 200 300 400 500 600 700 800
Sample Number Sample Number
Fig. 4. Performance of the proposed controller in the presence of load Fig. 5. Performance of the PID controller and the GPC controller. (a)
disturbances. Simulation results for setpoint tracking. (b) Setpoint tracking responses
under external disturbances.
R-V Transducer
Pt 100
Expander
Compressor
A/D
D/A
IBM 586 Compatible PC Oil Tank
Pump
Variable-Frequency
Induction Motor
where 25
!r ! !
X
pd X
L X
L
gp;0 ¼ xj ðkÞa1j ðkÞ xj ðkÞb0j ðkÞ ;
24
r¼1 j¼1 j¼1
!r
X
p X
L
up ¼ 1; f p;0 ¼ 1 þ xj ðkÞa1j ðkÞ ; 23
Temperature (ºC )
r¼1 j¼1
!r
X
p X
L
22
fp;1 ¼ xj ðkÞa1j ðkÞ :
r¼1 j¼1
ð37Þ 21
28 Fig. 8. Step response of the proposed controller with the fixed load of
1000 W for k P 570.
26
The second experiment was performed to demonstrate
the temperature regulation in the presence of a heat load
24
change of 1000 W during the time duration k P 570.
Temperature ( º C )
5. Conclusions
16
0 200 400 600 800 1000 1200 This paper has proposed a systematic design methodol-
3 sec/sample
ogy to develop an RFNN-based predictive control with
Fig. 7. Setpoint tracking response of the proposed controller. integral action for a class of nonlinear process systems.
92 C.-H. Lu, C.-C. Tsai / Journal of Process Control 17 (2007) 83–92
The setpoint tracking and load disturbance rejection capa- [15] C.H. Lu, C.C. Tsai, Adaptive neural predictive control for industrial
bilities of the proposed method can be improved by the multivariable processes, Journal of Systems and Control Engineering
218 (7) (2004) 557–567.
modified GPC cost function. Two sufficient conditions [16] S. Mollov, R. Babuška, J. Abonyi, H.B. Verbruggen, Effective
have been established for securing both steady-state perfor- optimization for fuzzy model predictive control, IEEE Transactions
mance and closed-loop stability of the system. The real- on Fuzzy Systems 12 (5) (2004) 661–675.
time control algorithm, including both the RLS estimator [17] J.M. Sousa, Optimization issues in predictive control with fuzzy
and the learning law for the RFNN, has both been success- objective functions, International Journal of Intelligent System 15
(2000) 879–899.
fully applied to a simulated and a real process system, [18] M. Mahfouf, D.A. Linkens, M.F. Abbod, Multi-objective genetic
respectively. Through the results from computer simula- optimization of GPC and SOFLC tuning parameters using a fuzzy-
tions and experiments, the proposed control system has based ranking method, IEE Proceedings—Control Theory and
been proven useful and pragmatic for achieving setpoint Applications 147 (3) (2000) 344–354.
tracking either in the absence or in the presence of external [19] J.M.D.C. Sousa, U. Kaymak, Model prediction control using fuzzy
decision functions, IEEE Transactions on System, Man, and Cyber-
disturbances and load changes. netics—part B: Cybernetics 31 (1) (2001) 54–65.
[20] E. Ali, Heuristic on-line tuning for nonlinear model predictive
Acknowledgements controllers using fuzzy logic, Journal of Process Control 13 (2003)
383–396.
The authors greatly acknowledge the financial support [21] A. Flores, D. Sáez, J. Araya, M. Berenguel, A. Cipriano, Fuzzy
predictive control of a solar power plant, IEEE Transactions on
from the National Science Council of Taiwan, ROC, under Fuzzy Systems 13 (1) (2005) 58–68.
Grant NSC93-2213-E-005-008. We also wish to thank the [22] C.F. Juang, C.T. Lin, A recurrent self-organizing neural fuzzy
editor and the reviewers for their many helpful comments inference network, IEEE Transactions on Neural Networks 10 (4)
and suggestions. (1999) 828–845.
[23] F.J. Lin, R.J. Wai, Hybrid Control using recurrent fuzzy neural
network for linear-induction motor servo motor, IEEE Transactions
References on Fuzzy Systems 9 (1) (2001) 102–115.
[24] S.M. Zhou, L.D. Xu, A new type of recurrent fuzzy neural network
[1] M.A. Henson, D.E. Seborg, Nonlinear Process Control, Prentice- for modeling dynamic systems, Knowledge-based Systems 14 (2001)
Hall, New Jersey, 1997. 243–251.
[2] D.W. Clarke, Application of generalized predictive control [25] P.A. Mastorocostas, J.B. Theocharis, An orthogonal least-squares
to industrial processes, IEEE Control Systems Magazine 8 (1988) method for recurrent fuzzy-neural modeling, Fuzzy Sets and Systems
49–55. 140 (2003) 285–300.
[3] J.B. Rawlings, Tutorial overview of model predictive control, IEEE [26] Y.M. Zhang, R. Kovacevic, Neurofuzzy model-based predictive
Control Systems Magazine (4) (2000) 38–52. control of weld fusion zone geometry, IEEE Transactions on Fuzzy
[4] F. Allgower, A. Zheng, Nonlinear Model Predictive Control, Systems 6 (3) (1998) 389–401.
Birkhauser Verlag, Germany, 2000. [27] X. Li, Z. Chen, Z. Yuan, Generalized predictive control using fuzzy
[5] B. Kouvaritakis, M. Cannon, Nonlinear Predictive Control – Theory neural networks in T–S model, in: Proceeding of the 3th World
and Practice, IEE, London, 2001. Congress on Intelligent Control and Automation, Hefei, PR China,
[6] S. Huang, K.K. Tan, T.H. Lee, Applied Predictive Control, Springer- 2000, pp. 885–889.
Verlag, London, 2002. [28] J. Zhang, A.J. Morris, Recurrent neural-fuzzy networks for nonlinear
[7] G.D. Nicolao, L. Magi, R. Scattolini, Stabilizing predictive process modeling, IEEE Transactions on Neural Networks 10 (2)
control of nonlinear ARX Models, Automatica 33 (9) (1997) (1999) 313–326.
1691–1697. [29] C.C. Hsiao, S.F. Su, T.T. Lee, C.C. Chuang, Hybrid compensation
[8] W.H. Chen, D.J. Balance, P.J. Gawthrop, J.J. Gribble, J. O’Reilly, control for affine TSK fuzzy control systems, IEEE Transactions on
Nonlinear PID predictive controller, IEE Proceedings—Control System, Man, and Cybernetics—part B: Cybernetics 34 (4) (2004)
Theory and Applications 146 (6) (1999) 603–611. 1865–1873.
[9] S. Kanev, M. Verhaegen, Controller reconfiguration for non-linear [30] W. Rudin, Principles of Mathematical Analysis, McGraw-Hill, New
systems, Control Engineering Practice 8 (2000) 1223–1235. York, 1976.
[10] Y. Cao, A formulation of nonlinear model predictive control using [31] C.H. Lee, C.C. Teng, Identification and control of dynamic systems
automatic differentiation, Journal of Process Control 15 (2005) 851– using recurrent fuzzy neural networks, IEEE Transactions on Fuzzy
858. Systems 8 (4) (2000) 349–366.
[11] P.F. Tsai, J.Z. Chu, S.S. Jang, S.S. Shieh, Developing a robust model [32] K.J. Åström, B. Wittenmark, Adaptive Control, Addison-Wesley,
predictive control architecture through regional knowledge analysis New Jersey, 1995.
of artificial neural networks, Journal of Process Control 13 (2002) [33] C.C. Ku, K.Y. Lee, Diagonal recurrent neural networks for dynam-
423–435. ical system control, IEEE Transactions on Neural Networks 6 (1)
[12] J.M. Zamarreño, P. Vega, Neural predictive control, application to a (1995) 144–156.
highly non-linear system, Engineering Applications of Artificial [34] K.R. Sales, S.A. Billings, Self-tuning control of nonlinear ARMAX
Intelligence 12 (1999) 149–158. model, International Journal of Control 51 (1990) 753–769.
[13] A.G. Palos, S. Parthasarathy, A.F. Atiya, Neural-predictive process [35] M.S. Ahmed, Neural-net-based direct adaptive control for a class
control using on-line controller adaptation, IEEE Transactions on nonlinear plants, IEEE Transactions on Automatic Control 45 (1)
Control System Technology 9 (5) (2001) 741–755. (2000) 119–124.
[14] J.Q. Huang, F.L. Lewis, Neural-network predictive control for [36] C.J. Lin, C.H. Chen, A compensation-based recurrent fuzzy neural
nonlinear dynamic systems with time-delay, IEEE Transactions on network for dynamic system identification, European Journal of
Neural Networks 14 (2) (2003) 377–389. Operational Research 172 (2006) 696–715.