Professional Documents
Culture Documents
Neural Network Predictive Control of A Heat Exchanger
Neural Network Predictive Control of A Heat Exchanger
net/publication/228869422
CITATIONS READS
77 208
4 authors:
Some of the authors of this publication are also working on these related projects:
A new book: Advanced Analytic and Control Techniques for Thermal Systems with Heat Exchangers (Elsevier, Academic Press) View project
All content following this page was uploaded by Anna Vasičkaninová on 15 July 2020.
a r t i c l e i n f o a b s t r a c t
Article history: The study attempts to show that using the neural network predictive control (NNPC) structure for control
Received 15 November 2010 of thermal processes can lead to energy savings. The advantage of the NNPC is that it is not a linear-
Accepted 15 January 2011 model-based strategy and the control input constraints are directly included into the synthesis. In the
Available online 1 February 2011
designed approach, the neural network is used as a non-linear process model to predict the future
behaviour of the controlled process with distributed parameters. The predictive control strategy is used
Keywords:
to calculate optimal control inputs. The efficiency of the described control approach is verified by
Neural network
simulation experiments and a tubular heat exchanger is chosen as a controlled process. The control
Predictive control
PID control
objective is to keep the temperature of the heated outlet stream at a desired value and minimize the
Tubular heat exchanger energy consumption. The NNPC of the heat exchanger is compared with classical PID control. Compar-
Energy saving ison of the simulation results obtained using NNPC and those obtained by classical PID control
demonstrates the effectiveness and superiority of the NNPC because of smaller consumption of heating
medium.
Ó 2011 Elsevier Ltd. All rights reserved.
1359-4311/$ e see front matter Ó 2011 Elsevier Ltd. All rights reserved.
doi:10.1016/j.applthermaleng.2011.01.026
Author's personal copy
2. Controlled process
Table 1
Model-based predictive control (MBPC) includes a broad variety
Heat exchanger parameters and steady-state inputs. of control methods that comprise certain common ideas [19]. A
process model is explicitly used to predict the process output b y for
Variable Unit Value Variable Unit Value
a fixed number N of steps into future and the predictions are
l m 10 r1 kg m3 810
calculated based on information up to time k and on the future
d1 m 0.025 r2 kg m3 8960
d2 m 0.028 r3 kg m3 1000 control actions. A future reference trajectory is known. A future
d3 m 0.05 CP1 J kg1 K1 2100 control trajectory is calculated as a solution of an optimization
h21 W m2 K1 750 CP2 J kg1 K1 418 problem consisting of a cost function and possibly some constraints.
h32 W m2 K1 1480 CP3 J kg1 K1 4186 A receding strategy is used, i.e. only the first control signal u(k) of the
qV1 m3 s1 3.7723 104 qs1in
C 20
qV3s m3 s1 1.1111 104 qs3in
C 75
calculated sequence is applied to a controlled process. A useful
feature of MBPC is that the process constraints can easily be
Author's personal copy
incorporated into the design and therefore MBPC is very interesting The reference trajectory is assumed to be known. If it is not the
for industrial application. MBPC algorithms are also very versatile case, several approaches are possible. The simplest way is to
and robust in process control applications and they usually outper- assume that the future reference is constant and equal to the
form PID controllers. desired set point: yr(k) ¼ yr(N). The preferred approach is to use
The cost function in MBPC comprises future output predictions, smooth reference trajectory that begins from the actual output
future reference trajectory, and future control actions. The standard value and approaches asymptotically via the first order filter to the
cost function used in MBPC contains quadratic terms of control desired set point yr(N): yr(k) ¼ y(k), yr(k þ j) ¼ ayr(k þ j 1) þ
error and control increments on a finite horizon into the future and (1 a)yr(N). The parameter a determines smoothness of the
can have the form (4) trajectory with a / 0 being the fastest and a / 1 being the slowest
trajectory.
X
Nmax h i2 X
Nu
JðkÞ ¼ Pb
yðk þ jÞ yr ðk þ jÞ þl ½Duðk þ j 1Þ2 (4)
3.1. Neural network predictive control
j ¼ Nmin j¼1
where Nu is the control horizon, Nmin and Nmax are the minimum When the future output of the plant in predictive control
and maximum prediction horizons respectively, yr is the reference strategy is predicted using neural network plant model, the neural
trajectory, b
y is the predicted controlled output, l, P are the weight network predictive control (NNPC) is established. The general
factors, and Du is the sequence of the future control increments that control structure for the NNPC is shown in Fig. 3.
have to be calculated. The cost function is minimized in order to The neural network model of the controlled plant is the
obtain the optimum control input that is applied to the non-linear important component of the NNPC methodology. Two-layer
plant. The control input u may be constrained: umin uðk þ jÞ network with sigmoid transfer functions in the hidden layer and
umax ; j ¼ 1; 2; .; Nu . The length of the control horizon Nu must linear transfer functions in the output layer is used in presented
satisfy following constraints: 0 < Nu Numax . The value of Numax NNPC design. The prediction error between the plant output and
should cover the important part of the step response curve. The role the neural network (NN) output is used as the NN training signal.
of the coefficient l is to scale the second sum of squared control The NN plant model uses previous inputs and previous plant
increments against the first sum representing squared predicted outputs to predict future values of the plant output. The structure of
control errors and P scales the predicted controlled output against the neural network plant model is shown in Fig. 4, where u(k) is the
the reference signal. The output sequence of the optimal controller system input, y(k) is the plant output, y ðkÞ is the NN plant model
is obtained over the prediction horizon by minimizing the cost output, the blocks TDL are the tapped delay lines that store
function J with respect to the vector of control inputs. previous values of the input signals, IWi,j is the weight matrix from
the input number j to the layer number i, LWi,j is the weight matrix
from the layer number j to the layer number i.
The first stage in NNPC is the system identification. The identi-
fication means to train a neural network to represent the feed-
forward dynamics of the plant. The network can be trained off line
in batch mode, using data collected from the operation of the plant.
The procedure for selecting the network parameters is called
training the network. The LevenbergeMarquardt (LM) algorithm is
very efficient for training. The LM algorithm is an iterative tech-
nique that locates the minimum of a function that is expressed as
the sum of squares of non-linear functions [20,21].
network model (Fig. 4) to predict future heat exchanger responses 4.2. PID control of the heat exchanger
to potential control signals. The first step in NNPC is training the
network. The parameters of the NN model and the parameters for PID controllers described by the transfer function
identification are chosen as follows. The NN model has 3 delayed
1
plant inputs, 2 delayed plant outputs and 6 neurons in the hidden C ¼ Kp 1 þ þ td s (5)
ti s
layer. The LevenbergeMarquard algorithm is chosen for network
training and the name of the training function in MATLAB is trainlm. with Kp the proportional gain, ti the integral time and td the
The training data were obtained from the controlled process derivative time, were tuned using Cohen-Coon and Strejc methods
with distributed parameters represented by the non-linear model [19,22] on the basis of a linear model of the plant. The model was
of the heat exchanger (1)e(3) with the sampling interval 2 s. Six identified from the step response of the heat exchanger in the form
hundred training samples were used for the neural network of the nth order plus time delay transfer function
training and the number of realized plant training epochs was 6. K
The NN model was trained off line. The results of training are shown S ¼ eDs (6)
ðss þ 1Þn
in Fig. 5 for the training data and in Fig. 6 for the validation data. In
both cases, the prediction error is sufficiently small and the process The transfer function parameters are: the gain K ¼ 3.7 104, the
output and the NN model output fit well. It is possible to state that order n ¼ 3, the time constant s ¼ 18 s and the time delay D ¼ 2.4 s.
the NN training was successful. The other two parameters obtained from identification are
After the NN model is trained, the NNPC starts. The parameters tu ¼ 14.5 s and tn ¼ 66.4 s. Here, tu represents the effective time
for NNPC of the described heat exchanger are chosen as follows: delay, i.e. the time when the tangent line drawn at the inflection
minimum prediction horizon Nmin ¼ 1, maximum prediction point on the step response curve intersects the initial value of the
horizon Nmax ¼ 8, control horizon Nu ¼ 2, weight coefficients in the step response. Analogically, tn represents the effective time
cost function l ¼ 0.5, P ¼ 1, and the parameter for the reference constant, i.e. the time from tu to the time when the tangent line
trajectory calculation a ¼ 0.0022. For computing the control signals intersects the final value of the step response.
that optimize future plant performance, the minimization routine The Cohen-Coon formulae given e.g. in [22] are for the PID
csrchbac was chosen. It is in fact one-dimensional minimization controller parameters
using the backtracking method. The control input constraints were ! !
set: 1.5 104 qV3 3.1 104 m3 s1 and control output 1 tn 4 1 tu 32 þ 6ttun 4
Kp ¼ þ ; ti ¼ tu ; t ¼ t :
constraints: 36 q1out 43 C. The controller block was imple- K tu 3 4 tn 13 þ 8ttun
d u
11 þ 2ttun
mented in MATLAB-Simulink.
Author's personal copy
The Strejc formulae given e.g. in [19] are for the PID parameters in Table 2. The smallest values of ISE and IAE are assured using
NNPC.
1 7n þ 16 7n þ 16 ðn þ 1Þðn þ 3Þ The energy consumption is measured by the total amount of hot
Kp ¼ ;t ¼ s ; td ¼ s
K 16ðn 2Þ i 15 7n þ 16 water consumed during the control process. The situation for NNPC
and PID control is presented in Fig. 8, and it can be stated that the
smallest energy consumption is assured using NNPC structure.
The PID controller parameters obtained using the Cohen-Coon
formulae are Kp ¼ 1.7 104, ti ¼ 32.7 s, td ¼ 5 s and those obtained
using the Strejc formulae are Kp ¼ 6.2 105, ti ¼ 44.4 s, td ¼ 11.7 s.
4.3. Results
ZN ZN
2
ISE ¼ ðeðtÞÞ dt; IAE ¼ jeðtÞjdt (7)
0 0
Fig. 7. Comparison of the outlet temperature of the heat exchanger received using the
Here, e(t) is the error between the reference value yr(t) and the neural network predictive control and PID control: d>d NNPC, dBd Strejc PID
actual process output y(t). The values of ISE and IAE are enumerated controller, dVd Cohen-Coon PID controller.
Author's personal copy
Fig. 8. Comparison of the neural network predictive control and PID control by hot Greek letters
water consumption: d>d NNPC, d;Bd Strejc PID controller, dVd Cohen-Coon PID r density (kg m3)
controller.
s time constant (s)
q temperature ( C)
Table 2
Values of ISE and IAE. Subscripts
Method ISE IAE
1 petroleum
2 copper tube
NNPC 279.35 159.90
PID Cohen-Coon 304.71 212.23 21 from copper tube to petroleum
PID Strejc 297.42 232.96 3 water
32 from water to copper tube d derivative
i integral
5. Conclusion in inlet
min minimum
In this paper, the application of a neural network model based max maximum
predictive control strategy to a tubular heat exchanger as a system out outlet
with distributed parameters is presented. The simulation results p proportional
confirm that NNPC as a not linear-model-based strategy is a good
tool for successful control of heat exchangers. The NNPC is able to
Subscript
assure less oscillating control responses with shorter settling times
s steady state
in comparison to classical PID control. The other advantage of this
approach is that the control input constraints and the controlled
outputs constraints are directly included into the synthesis. Acknowledgements
Because of the optimization procedure used for the control input
calculations, the NNPC is also tool for assuring an optimal or The authors gratefully acknowledge the contribution of the
a nearly optimal behaviour of the controlled process. This fact leads Scientific Grant Agency of the Slovak Republic e grants 1/0537/10,
to smaller consumption of hot water used for heating of petroleum 1/0071/09, the Slovak Research and Development Agency e VV-
in comparison to classical PID control, and it is also confirmed by 0029-07 and the bilateral SK-HU 0023-08 (OMFB-01457/2009)
simulation results. The energy savings would be more significant if Advanced Optimisation and Control Strategies in Energy Saving
the NNPC would be implemented in the frame of the heat Systems.
exchanger network. The NNPC approach can be used also for
practical application. Implementation of NNPC into industrial References
applications is straightforward. The real process is used instead of
the process model and the training data for NN model training are [1] S. Kuntzsch, R. Zwicknagl, A. Berghoff, A. Blesgen, V.C. Hass, Improving the
obtained by measuring corresponding input and output process. energy efficiency of industrial processes using mathematical modelling, Chem.
Eng. Trans. 21 (2010) 97e102. doi:10.3303/CET1021017.
Comparison to classical PID control shows the superiority of the [2] M.H. Panjeshahi, F. Harati, M.M. Nouzari, Improving energy efficiency in
NNPC in both problems, the problem of the set point tracking, as natural gas refineries using exergy analysis, Chem. Eng. Trans. 21 (2010)
well as the problem of energy savings. 121e126. doi:10.3303/CET1021017.
[3] S. Sanaye, H. Hajabdollahi, Multi-objective optimization of shell and tube heat
exchangers, Appl. Thermal Eng. 30 (14e15) (2010) 1937e1945. doi:10.1016/
j.applthermaleng.2010.04.018.
Nomenclature [4] L. Sikos, J. Klemes, Reliability, availability and maintenance optimisation of
heat exchanger networks, Appl. Thermal Eng. 30 (1) (2010) 63e69.
doi:10.1016/j.applthermaleng.2009.02.013.
Symbols [5] S.J. Qin, T.A. Badgwell, A survey of industrial model predictive control tech-
d diameter (m) nology, Cont. Eng. Prac. 11 (7) (2003) 733e764.
[6] M.L. Darby, M. Harmse, M. Nikolaou, MPC: current practice and challenges, in:
D time delay (s) Symposium Preprints of IFAC Symposium on Advanced Control of Chemical
CP specific heat capacity (J kg1 K1) Processes ADCHEM 2009, Part 1, Istanbul, Turkey (2009), pp. 88e100.
Author's personal copy
[7] S. Li, B. Kouvaritakis, M. Cannon, Improvements on the efficiency of linear [14] P. Kittisupakorn, P. Thitiyasook, M.A. Hussain, W. Daosud, Neural network
MPC, in: Joint 48th IEEE Conference on Decision and Control and 28th Chinese based model predictive control for a steel pickling process, J. Process Control
Control Conference, Shanghai, P.R. China (2009), pp. 7394e7399. 19 (4) (2009) 579e590. doi:10.1016/j.jprocont.2008.09.003.
[8] W. Xie, C. Theodoropoulos, An off-line model reduction-based technique for [15] C.H. Lu, C.C. Tsai, C.M. Liu, Y.H. Charng, Neural-network-based predictive
on-line linear MPC applications for nonlinear large-scale distributed systems, controller design: an application to temperature control of a plastic injection
Comp. Aided Chem. Eng. 28 (2010) 409e414. doi:10.1016/S1570-7946(10) molding process, Asian J. Control 12 (6) (2010) 680e691. doi:10.1002/asjc.244.
28069-0. [16] J. Novak, V. Bobal, Predictive control of the heat exchanger using local model
[9] B. ZareNezhad, A. Aminian, A multi-layer feed forward neural network model network, in: 17th Mediterranean Conference on Control & Automation, The-
for accurate prediction of flue gas sulfuric acid dew points in process industries, ssaloniki, Greece (2009), pp. 657e662.
Appl. Thermal Eng. 30 (6e7) (2010) 692e696. doi:10.1016/j.applthermaleng. [17] J.D. Álvarez, L.J. Yebra, M. Berenguel, Repetitive control of tubular heat
2009.11.017. exchangers, J. Process Control 17 (9) (2007) 689e701. doi:10.1016/
[10] Subhra Rani Patra, R. Jehadeesan, S. Rajeswari, S.A.V. Satyamurthy, Artificial j.jprocont.2007.02.003.
neural network model for intermediate heat exchanger of nuclear reactor, Int. [18] K. Varshney, P.K. Panigrahi, Artificial neural network control of a heat
J. Comp. Appl. 1 (26) (2010) 63e69. doi:10.5120/478-785. exchanger in a closed flow air circuit, Appl. Soft Comput. 5 (4) (2005)
[11] Y. Islamoglu, A new approach for the prediction of the heat transfer rate of 441e465. doi:10.1016/j.asoc.2004.10.004.
the wire-on-tube type heat exchanger e use of an artificial neural network [19] J. Mikles, M. Fikar, Process Modeling, Identification, and Control. Springer,
model, Appl. Thermal Eng. 23 (2003) 243e249. doi:10.1016/S1359-4311(02) Berlin, 2007.
00155-2. [20] G. Lera, M. Pinzolas, Neighborhood based LevenbergeMarquardt algorithm for
[12] C.K. Tan, J. Ward, S.J. Wilcox, R. Payne, Artificial neural network modelling of neural network training, IEEE Trans. Neural Networks 13 (5) (2002)
the thermal performance of a compact heat exchanger, Appl. Thermal Eng. 1200e1203. doi:10.1109/TNN.2002.1031951.
29 (17e18) (2009) 3609e3617. doi:10.1016/j.applthermaleng.2009.06.017. [21] K. Madsen, H.B. Nielsen, R. Tingleff, Methods for Non-linear Least Squares
[13] J.Q. Huang, F.L. Lewis, Neural-network predictive control for nonlinear Problems, Lecture Notes. Technical University of Denmark, Lyngby, 2004.
dynamic systems with time-delay, IEEE Trans. Neural Networks 14 (2) (2003) [22] B.A. Ogunnaike, W.H. Ray, Process Dynamics, Modeling, and Control. Oxford
377e389. University Press, New York, 1994.