Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
a r t i c l e
i n f o
Article history:
Received 7 August 2014
Received in revised form 25 March 2015
Accepted 4 June 2015
Available online 9 July 2015
Keywords:
Transesterication
Optimal control
Nonlinear model predictive control
Parameter estimation
a b s t r a c t
The objective of this work is to enhance the economic performance of a batch transesterication reactor
producing biodiesel by implementing advanced, model based control strategies. To achieve this goal,
a dynamic model of the batch reactor system is rst developed by considering reaction kinetics, mass
balances and heat balances. The possible plant-model mismatch due to inaccurate or uncertain model
parameter values can adversely affect model based control strategies. Therefore, an evolutionary algorithm to estimate the uncertain parameters is proposed. It is shown that the system is not observable with
the available measurements, and hence a closed loop model predictive control cannot be implemented
on a real system. Therefore, the productivity of the reactor is increased by rst solving an open-loop optimal control problem. The objective function for this purpose optimizes the concentration of biodiesel,
the batch time and the heating and cooling rates to the reactor. Subsequently, a closed-loop nonlinear
model predictive control strategy is presented in order to take disturbances and model uncertainties
into account. The controller, designed with a reduced model, tracks an ofine determined set-point reactor temperature trajectory by manipulating the heating and cooling mass ows to the reactor. Several
operational scenarios are simulated and the results are discussed in view of a real application. With the
proposed optimization and control strategy and no parameter mismatch, a revenue of 2.76 $ min1 can be
achieved from the batch reactor. Even with a minor parameter mismatch, the revenue is still 2.01 $ min1 .
While these values are comparable to those reported in the literature, this work also accounts for the
cost of energy. Moreover, this approach results in a control strategy that can be implemented on a real
system with limited online measurements.
2015 Elsevier Ltd. All rights reserved.
1. Introduction
Growing economies and the increasing need for mobility of people and goods result in a rising demand for energy resources. One
of these energy resources in the transport sector is diesel fuel.
Because petrodiesel is a limited commodity, biodiesel can be used
as a renewable substitute [1]. Biodiesel can be produced from vegetable oils, such as soy bean oil or palm oil, waste cooking oil, animal
fat, as well as algal oil. A drawback is the lack of cost competitiveness against conventional fuels [2]. Therefore, the existing process
steps in the production of biodiesel have to be optimized to make
biodiesel more cost competitive [3]. The transesterication of the
triglyceride from oils using short chain alcohol in the presence of a
catalyst is an essential part of the process. This reaction can be carried out in a continuous or batch reactor [4]. The batch process is
often preferred because it is exible and facilitates the operator to
accommodate variations in feedstock type, composition as well as
quantity, and to satisfy specic product requirements [5]. The initial
capital and infrastructure investments are low [6]. Major drawbacks of the batch reactor are the intensive energy requirements
[6] and the complexity of the system due to the highly nonlinear
and time varying character of the batch process [7]. This behavior
makes an advanced optimization and control strategy a necessity.
Literature shows burgeoning interest in advanced model based
control of a transesterication reactor [5,816]. An approach to
determine an optimal temperature trajectory for a batch reactor was presented in [5]. They formulated and solved an optimal
control problem (OCP) to nd a control law such that a certain
optimality criterion was achieved. The study was extended by
[13], and the productivity of the reactor under feedstock composition uncertainty was maximized. However, constraints were
not directly taken into account. Furthermore, the OCP was solved
128
before the operation of the reactor, and therefore the approach was
an open-loop control strategy, where the output of the controlled
process was not considered. Consequently, deviations between the
desired and actual states occurring during the process cannot be
corrected and disturbances cannot be compensated. A method to
overcome these drawbacks of open-loop control was presented
by [14]. In this work, the economic performance of a semi-batch
reactor for the production of biodiesel was optimized by using a
nonlinear model predictive control (NMPC) strategy. In each time
step, all states were estimated from measurements, and the optimal
methanol feed ow rate and the optimal heat duty were computed.
However, the heat exchange between the reactor and the jacket
was not further investigated in their work. Moreover, the observability of the system was not examined. It is doubtful that there
is enough online information available on real plants to estimate
all states, which is necessary for the NMPC strategy. The literature
review, therefore, shows that although there have been some studies exploring advanced control of the transesterication reaction,
they are limited in terms of their applicability to an actual reactor.
The objective of this paper is to address this research gap.
This work provides a comprehensive and realizable strategy
to optimize and control a batch transesterication reactor. This
is achieved by rst using optimal control theory to develop an
open-loop control strategy using reactor temperature as the control variable. An objective function representing the productivity
of the batch reactor is used for this purpose. Subsequently, this
optimal reactor temperature trajectory is tracked by using nonlinear model predictive control (NMPC). The NMPC problem is solved
using a reduced model of the batch reactor that considers only the
heat balance. The advantage of such an approach is that online
measurements for all the state variables of the reduced model are
available and hence the model is completely observable. This property enables the proposed approach to be implemented on a real
batch reactor. Since model parameter values may change over time
or may not be known accurately, a batch to batch parameter estimation using evolutionary algorithm is proposed, which uses ofine
measurements available at the end of the batch. An overview of the
structure of this work is given in Fig. 1.
This paper is organized as follows: The next section describes
the theoretical foundation of this work. This includes the development of the batch reactor model, discussion on the measurements
and observability, description of the evolutionary algorithm for
parameter estimation, and the formulation of the advanced control problems. Section 3 describes the simulation results of this
work, including those for batch to batch parameter estimation as
well as the optimal control and NMPC application. The approach is
k3
k5
(1)
(2)
(3)
Ea,i
RTR
for i = 1, . . ., 6,
(4)
k0,1
k0,2
k0,3
k0,4
k0,5
k0,6
Table 2
Values of parameters used in the heat balances.
bi [K]
7
b1
b2
b3
b4
b5
b6
129
6614.83
4997.98
9993.96
7366.64
3231.18
4824.87
V [m3 ]
R [kg m3 ]
MR [kg kmol1 ]
c m,R [kJ kmol1 K1 ]
x 8 =
dTJ
1
=
mJ
dt
1
860
391.40
1277
h Th + m
c Tc (m
h+m
c )x8
m
18 500
450
99.69
4.21
AU
(x8 x7 ) ,
c W
(13)
dcTG
= k1 x1 x5 + k2 x2 x4
dt
(5)
x 2 =
dcDG
= k1 x1 x5 k2 x2 x4 k3 x2 x5 + k4 x3 x4
dt
(6)
x 3 =
dcMG
= k3 x2 x5 k4 x3 x4 k5 x3 x5 + k6 x6 x4
dt
(7)
x 4 =
dcE
= k1 x1 x5 k2 x2 x4 + k3 x2 x5 k4 x3 x4 + k5 x3 x5 k6 x6 x4
dt
(8)
x 5 =
dcA
= x 4
dt
x 6 =
dcGL
= k5 x3 x5 k6 x6 x4 ,
dt
(9)
(10)
b
i
ki = k0,i exp
TR
for i = 1, . . ., 6,
(11)
dTR
MR
=
(V rH
r + AU(x8 x7 ))
VR c m,R
dt
(12)
where x7,8 stand for the respective temperatures, MR for the molar
mass of the reactor content, V for the reactor volume, R for the
density of the reactor content, c m,R for the molar heat capacity of
the reactor content, r for the rate of reaction, Hr for the heat of
reaction, AU for the product of the heat exchange surface A and
the thermal transmittance U, mJ for the mass of water inside the
reactor jacket, and c W for the specic heat capacity of water. The
rate of reaction is modeled as:
r =
dcE
dx4
=
.
dt
dt
(14)
0 0
C = 0 0 0
0 0 0
1 0
0 .
1
(15)
(16)
130
TR,sp
NMPC
uc
M
OCP
uh
FC
FC
M
.
mh
.
mc
Motor
TR
TJ
Reactor
TR
.
Q
cA
Stirrer
Jacket TJ
Fig. 2. Scheme of a batch reactor with controlled heating and cooling system; solid arrows indicate material ow while dashed arrows indicate information ow.
x(t)
= Ax(t) + Bu(t)
(17)
y(t) = Cx(t),
16
k0,16
712
b16
13
R
14
AU
15
c m,R
16
MR
17
Hr
(18)
Rnx nx
Rnx nu
where A
stands for the state matrix and B
for the
input-to-state matrix. It is assumed that the system is in a steady
state at each time step. The resulting system (A, C) is observable if
the following condition, called Hautus criterion, holds true for all
eigenvalues:
Table 3
Estimated parameters.
i I A
C
= nx
i = 1, . . ., nx ,
(19)
Min JPE
x 5,i
1
=
1
x5,i
n
i=1
+ 1
+
x 8,j
2
1
+
m
2
+
x8,j
x 6,tf
x6,tf
1
j=1
x 1,tf
x1,tf
x 7,j
2
x7,j
2
+ +
x 4,tf
2
x4,tf
2
,
(20)
of the decision
operators are mutation and selection. The vector
variables, model parameters in this case, is called an individual. The rst generation of individuals consists of vectors with
randomly distributed numbers as entries between a dened lower
and upper bound for each parameter. The tness of each individual
is evaluated by computing the value of Eq. (20). Subsequently, the
individuals within each generation are ranked, corresponding to
1 , the sectheir tness value. The ttest individual is denoted as
2 , and so on. To generate the children, the highest
ond ttest as
ranked individuals are selected and mutated by adding a standard
normal distributed random value to each vector component. The
added absolute value decreases from generation to generation to
improve the convergence. The size of the population p is dened
1 :
by the number of children k1 of the ttest individual
p = k12 .
(21)
i
is dened as:
The number of children ki N+ of an individual
ki = k1 i + 1.
(22)
k1 (k1 + 1)
.
2
(23)
For example, if the ttest individual has four children, the second
ttest individual has three children, and so on, the total number
of children is K = 10 and the population size is p = 16. Furthermore,
the ttest individual is passed to the next generation without mutation to avoid the possibility of worsening the solution, e.g. in case
that the optimum is found. The remaining ve empty slots of the
population are lled with new random individuals to refresh the
gene pool, which is especially important for non-convex optimization problems. This method can be seen in Fig. 3. The number of
children and the number of generations depend on the available
computational time between two runs and have to be adjusted.
The evolutionary algorithm has several advantages in comparison with derivative-based optimization algorithms. For example,
the evolutionary algorithm is suitable for solving non-convex optimization problems and can provide the global optimum, whereas
the solution of derivative-based algorithms is strongly dependent
on the supplied initial value. Furthermore, due to the mutation
operator, the global optimum can be found even if it is outside the
initially specied bounds.
2.6. Optimal control problem formulation
In order to enhance the cost competitiveness of biodiesel, it
is important to increase the productivity of the batch reactor for
transesterication. In this work, the productivity is dened as:
productivity =
revenue from biodiesel cost of feedstock cost of energy
,
time per cycle
(24)
where the revenue is generated from selling the biodiesel, the cost
of feedstock includes the cost of vegetable oil or animal fat and
alcohol, the cost of energy equals the sum of the cost of heating
and cooling, and the time per cycle is the sum of the batch time
and an additional setup time for each batch. The cost for catalyst is
ignored. The capital cost for building the plant or other expenses for
the operation of the plant except the cost of energy are not included
in Eq. (24). Furthermore, the cost for post-processing is assumed to
be constant and independent of the nal concentration of FAME
due to its small fraction of the total expenses [28]. Moreover, the
131
(25)
The second objective function considers the batch time but ignores
the cost of energy and is given as:
productivity =
(26)
dTR
MR
=
(V rH
r + AU(x8 x7 ))
VR c m,R
dt
x 8 =
dTJ
1
=
mJ
dt
c Tc (m
h+m
c )x8
h Th + m
m
(27)
AU
(x8 x7 ) .
c W
(28)
132
children from
children from
*1
individual
*2
children from
*3
children from
*4
*1
random individuals
Fig. 3. Individuals of a population of the proposed evolutionary algorithm in a particular generation for k1 = 4.
cA,k cA,k1
ts
(29)
2
kt s +T
+
kt s
h (t) m
h (kt s ))
[q2 (m
2
(30)
where q14 denote the weighting factors, T the time horizon and x7,sp the reactor set-point temperature. The rst term
2
c (kt s )) + q4 (m
c (t)) ]dt
c (t) m
h (t)m
+ q3 (m
2
zon. The integration of the penalty term uh,c (t) uh,c (kt s ) avoids
fast change rates of the inputs. This is important due to the fact
that a heavy oscillating or bang-bang behavior of the inputs cannot
be realized and damages the valves. Finally, the integration of the
penalty term (uh (t)uc (t))2 prevents heating and cooling at the same
time. The deviation of the reactor temperature from the set-point
is minimized only at the end of the prediction and control horizon in Eq. (30). This reduces the computational load of the NMPC
optimization problem, which is important for its online implementation. Minimization of deviation over the complete time horizon
will add to the computational load. Moreover, such a formulation provides more exibility for the NMPC solution and results
in smoother dynamics of the reactor in case of model parameter
mismatch, especially if the parameter mismatch is signicant. With
this approach, bounds on the control variable can be taken into
account more easily and the solution is more likely to converge
[31]. A prediction and control horizon of 60 seconds was used
in the simulation studies, and consequently, the error introduced
by this approximation was not observed to be signicant. The
4.70 107
6.92 105
4.70 1012
1.18 1010
6.42 103
1.72 104
1032
1532.40
360
b1 [K]
b2 [K]
b3 [K]
b4 [K]
b5 [K]
b6 [K]
MR [kg kmol1 ]
Hr [kJ kmol1 ]
5290
6000
12 000
8840
2580
5790
313.12
14 800
Table 5
Values of parameters required to calculate the productivity of biodiesel production
as per the optimal control problem objective function.
0.25
pE [$ l1 ]
pTG [$ l1 ]
pA [$ l1 ]
ph [$ MJ1 ]
T0 [K]
TG [kg m3 ]
E [kg m3 ]
0.2
0.15
0.89
0.57
0.19
0.00330
293.15
926
880
ME [kg kmol1 ]
MTG [kg kmol1 ]
MA [kg kmol1 ]
pc [$ l1 ]
Tin [K]
A [kg m3 ]
292.2
920
32.04
8.9554 1004
363.15
791.8
0.1
0.05
Batch Run
Fig. 4. Value of the objective function JPE after each batch.
is = 55 min. The possibility to run the parameter estimation algorithm during the run in parallel with the NMPC strategy is not
considered but advisable, especially when a machine with better
hardware is used. Moreover, the computational time is expected to
reduce with every batch since the starting guess would be closer
to the actual parameter values, and hence the convergence would
be faster. The objective function in Fig. 4 decreases by almost an
order of magnitude in only ve runs, which indicates an excellent
performance by the proposed approach.
It is expected that larger errors in initial parameter estimates
would require more batch runs for the objective function to reduce.
In such cases, either a larger population size or more generations
could improve convergence, as long as the optimization problem
can be solved within the limited time available between each batch.
The proposed approach can also be useful in handling changes in
feedstock. A change in feedstock will primarily affect the composition, such as the composition of different TGs (different chain
lengths and saturation levels), with subsequent impacts on kinetic
parameter values. The compositional details of the new feedstock
can be obtained from the supplier, literature, or by performing
experimental analysis. The new data can be used to update the
initial guesses and dene the search region of the evolutionary algorithm. This will ensure that the evolutionary algorithm converges
faster. If such data are not available, parameter values from the previous run must be used, which will delay the convergence. The rst
batch in such cases is expected to be inferior.
In summary, the advantages of an evolutionary approach and
its good performance in this case make this a highly useful strategy
for parameter estimation.
The optimal inputs uh,c (t) for the OCP and the resulting FAME
concentration and temperature proles can be seen in Figs. 5 and 6,
respectively. The nal concentration of FAME equals cE (tf ) =
0.8317 mol l1 . The maximum value of the objective function
equals JI = 138.55 $. If this value is divided by the sum of the batch
time tf = 100 min and a setup time between the cycles tset = 10 min
[5] the following value, which expresses the economic performance
of the batch reactor, is obtained:
JI
tf + tset
138.55 $
$
.
= 1.26
110 min
min
(32)
The batch time is an important parameter of the economic performance of a batch reactor [2]. However, it is neglected in JI . Moreover,
since the cost of heating and cooling is neglected, the respective
proles show uctuations as well as simultaneous use of heating
and cooling. This is highly undesirable and must be avoided.
120
90
uh(t) [kg/min]
133
60
30
25
50
75
100
75
100
Time [min]
(a) Heating mass flow
ME
MTG
MA
JI = pE x4 (tf )
V pTG x1 (t0 )
V pA x5 (t0 )
V,
E
TG
A
(31)
where pE,TG,A stand for the respective price. These prices and other
required parameter values are reported in Tab. 5 [32,33,5,34,1,22].
90
uc(t) [kg/min]
60
30
25
50
Time [min]
134
120
90
uh(t) [kg/min]
cE(t) [mol/L]
0.8
0.6
0.4
60
30
0.2
25
50
75
100
10
15
Time [min]
(a) Heating mass flow
20
10
15
Time [min]
(b) Cooling mass flow
20
Time [min]
(a) Concentration of FAME
120
350
uc(t) [kg/min]
T(t) [K]
90
320
60
30
TJ(t)
TR(t)
290
25
50
75
100
Time [min]
(b) Temperatures
Fig. 6. Optimal FAME concentration and reactor and jacket temperature proles for
the OCP problem solution using JI objective.
Max JII =
TG
tf + tset
Fig. 7. Optimal mass ows of heating and cooling liquids recommended by the OCP
solution using JII objective.
(33)
Please note that the cost of heating and cooling is again ignored.
Because of the non-convexity of the problem, the initial values
for the optimization are selected by an automated trial and error
method. The optimal inputs uh,c (t) as well as the resulting trajectories can be seen in Fig. 7 and 8, respectively. The nal concentration
of FAME equals cE (tf ) = 0.7162 mol l1 and the optimal batch time
is tf = 23.30 min. The maximum value of the objective function
equals JII = 3.14 $ min1 . Comparison with results for case A show
that the nal concentration of FAME is about 14% lower for case
B. However, the nal productivity in $ min1 is still almost 150%
more for case B. This is due to the signicant reduction of batch
time by 76.5%. From an application perspective, this result recommends operating more batches of shorter time even though the
nal concentration of FAME for each batch is lower. The time saved
by operating shorter batches will compensate for the lost revenue
due to lower nal FAME concentration. Please note that this ignores
the cost of FAME separation, which will be more if the nal concentration is lower.
Fig. 7 shows that the issue of simultaneous heating and cooling
is still encountered for this case. Furthermore, the mass ows and
therefore the valves are exposed to oscillations. This is due to the
fact that the cost of heating and cooling is neglected. For a real
application, these cost have to be included.
Max JIII =
ph
tf
t0
TG
tf + tset
tf
t0
uc (t)dt
(34)
120
90
uh(t) [kg/min]
cE(t) [mol/L]
0.8
0.6
0.4
60
30
0.2
135
10
15
20
10
15
Time [min]
Time [min]
20
120
350
uc(t) [kg/min]
T(t) [K]
90
320
60
30
TJ(t)
TR(t)
290
10
15
20
Time [min]
had been included, the actual value of objective function JII would
equal JII = 2.01 mol l1 . This is due to the excessive costs for heating
and cooling, as shown in Fig. 7.
Objective function JIII is superior to the objective functions discussed before because all important variables for the optimization
of a batch reactor for transesterication are regarded. Furthermore,
it is applicable to a real reactor. Therefore, objective function JIII is
used in the following NMPC approach.
10
15
20
Time [min]
(b) Temperatures
Fig. 8. Optimal FAME concentration and reactor and jacket temperature proles for
the OCP problem solution using JII objective.
N
1
2
RMS =
x7 (k) x7,sp (k) .
N+1
(35)
k=0
Fig. 11(a) shows that the controller tracks the desired set-point
temperature with high precision. The deviation accounts for
RMS = 0.1551 K. It should be noted that the closed-loop response
generally slightly differs from the open-loop solution due to
the different time horizons and because in this case different
objective functions for the open-loop and closed-loop NLP problem are used. Therefore, a value of RMS = 0 is most unlikely
[37]. The nal concentration of FAME predicted by the OCP is
cE (tf ) = 0.7320 mol l1 , while that achieved by simulation of the
NMPC strategy is cE (tf ) = 0.7331 mol l1 . Fig. 12 shows that the
computational time (k) that is needed to solve the optimization
problem, described in Eq. (30), is one order of magnitude smaller
than the sample time. This is crucial for the real-time feasibility of
an NMPC strategy. The productivity accounts for JOCP = 2.76$ min1 .
It was seen that the deviation error between the desired temperature trajectory and the actual reactor temperature within the time
horizon was negligible due to the fact that the prediction and control time horizon was short.
3.4.2. Case II scenario: Minor parameter mismatch
The case II scenario simulates a slight parameter mismatch to
reproduce realistic operating conditions. This is due to the fact
that it is impossible that the evolutionary algorithm for parameter
estimation fully converges in nite time. Furthermore, there will
136
cE(t) [mol/L]
0.8
0.6
0.4
0.2
10
15
20
Time [min]
T(t) [K]
350
320
TJ(t)
TR(t)
290
10
15
20
Time [min]
(b) Temperatures
Fig. 10. Optimal FAME concentration and reactor and jacket temperature proles for the OCP problem solution using JIII
objective.
always be a mismatch due to the alteration from run to run and the
highly uncertain operating conditions. All other settings are similar to the case I scenario. The estimated parameters, as described in
Table 3, are assumed to differ from the real parameters as follows:
117 = 117 0.1117 ,
(36)
340
TR
TR,sp
330
340
320
310
300
290
10
TR
TR,sp
330
320
310
300
290
20
137
10
Time [min]
uc
80
60
40
20
uc
80
60
40
20
10
20
10
Time [min]
20
30
40
Time [min]
The case II scenario proves that the control strategy still yields
excellent results in case of a slight parameter mismatch. However,
it also shows that the solution of the open-loop OCP, which determines the set-point temperature prole, is strongly dependent on
the estimated parameters. Therefore, a parameter mismatch in the
system can substantially inuence the operation of the batch reactor and the product quality.
3.4.3. Case III scenario: Signicant parameter mismatch
In the case III scenario, a signicant parameter mismatch is
simulated to evaluate its effect on the optimization and control
0.8
1.4
0.7
1.2
Computational Time [s]
40
uh
100
Mass Flow [kg/min]
120
uh
100
0.6
0.5
0.4
0.3
1
0.8
0.6
0.4
0.2
0.2
0.1
30
120
20
Time [min]
0
0
100
200
Time Step
Fig. 12. Computational time (k) for the NMPC problem solution assuming no
parameter mismatch.
100
200
300
400
Time Step
Fig. 14. Computational time (k) for the NMPC problem solution assuming minor
parameter mismatch.
138
TR
TR,sp
330
5
Computational Time [s]
340
320
310
300
290
4
3
2
1
20
40
60
80
100
120
Time [min]
200
400
600
800
1000
1200
Time Step
120
uh
uc
100
mismatch can lead to an increased computational time. The condition ts is nearly violated at some time steps and the real-time
feasibility is no longer given. Therefore, the case III scenario shows
the limits of the presented optimization and control strategy. The
reaction kinetics k0,16 and b16 should be chosen as exact as possible to successfully compute a set-point temperature trajectory.
The remaining estimated parameters may differ more from the real
parameters. However, this leads to an oscillating behavior of the
system which is undesirable, causes damage to the heating and
cooling components, and will worsen the productivity of the reactor substantially. Therefore, it is advisable to increase the weights
q2,3 on the change rate of inputs in Eq. (30) and/or use a lter in
order to smoothen the output signals of the NMPC strategy.
80
60
40
20
0
20
40
60
80
100
120
Time [min]
strategy. The other settings regarding the simulation are in agreement with the case I scenario. Unfortunately, the solution of the
open-loop OCP cannot converge if the parameter mismatch of
the reaction kinetics k0,16 and b16 exceeds a certain limit of
112 > 112 0.1112 . Therefore, the parameter mismatch of
the reaction kinetics is set to:
112 = 112 0.1112 .
(37)
(38)
4. Conclusions
This work addresses the optimization and control of a batch
reactor for transesterication to enhance the cost competitiveness
of biodiesel. The objective of this work is to develop an advanced
control strategy that can be implemented on a real batch reactor
performing transesterication. To that effect, a nonlinear dynamic
model considering the reaction kinetics, mass balances and heat
balances of the jacketed reactor is developed. It is recognized that
the system is not observable since no online information on the concentrations of the chemical species, except for alcohol, is available.
Consequently, closed loop advanced control of a full state model
is not feasible. The strategy proposed in this work is to rst solve
an optimal control problem ofine based on a full state model to
obtain a set-point reactor temperature trajectory. This trajectory is
tracked online by a nonlinear model predictive controller (NMPC),
based on a reduced model, during the operation of the batch reactor. The values of the inputs of the heating and cooling mass ows,
computed by the NMPC controller, can be easily used as reference
variables for conventional PID controllers. Since an accurate model
is desired, a reliable parameter estimation strategy is introduced to
enhance the model of the system.
The simulation results show that the maximum value of the productivity in case of no parameter mismatch between the model and
the plant with a batch time of tf = 24.64 min is JOCP = 2.76$ min1 . If
the batch time is increased and the reactor temperature kept at its
highest possible value, the maximum achievable yield of FAME is
cE (tf ) = 0.8318 mol l1 . However, this value is not advisable because
these settings reduced the productivity. The simulation of the different scenarios showed that the NMPC strategy is robust in case
of parameter mismatch but the solution of the open-loop OCP is
strongly dependent on the estimated parameters. It is important
to note that the resulting set-point trajectory may be optimal for
the model but not for the real plant. Uncertainties in the model
will alter the solution of the open-loop OCP substantially and may
worsen the protability of the production of biodiesel.
Acknowledgements
The authors would like to thank the German Academic Exchange
Service (Grant name and number: A new passage to India,
56049289) who funded the rst authors stay at IIT Bombay, India.
The authors would also like to acknowledge the valuable inputs
provided by Prof. Sharad Bhartiya, IIT Bombay, India, and Prof. Boris
Lohmann, Technische Universitt Mnchen, Germany during the
course of this research.
References
[1] Y. Zhang, M.A. Dube, D.D. McLean, M. Kates, Biodiesel production from waste
cooking oil: 2. Economic assessment and sensitivity analysis, Bioresour. Technol. 90 (2003) 229240.
[2] D. Klein-Marcuschamer, H.W. Blanch, Survival of the ttest: an economic perspective on the production of novel biofuels, AIChE J. 59 (2013) 44544460.
[3] N. Nasir, W. Daud, S. Kamarudin, Z. Yaakob, Process system engineering in
biodiesel production: a review, Renew. Sustain. Energy Rev. 22 (2013) 631639.
[4] L. Fjerbaek, K.V. Christensen, B. Norddahl, A review of the current state of
biodiesel production using enzymatic transesterication, Biotechnol. Bioeng.
102 (2009) 12981315.
[5] P.T. Benavides, U. Diwekar, Optimal control of biodiesel production in a batch
reactor. Part I: Deterministic control, Fuel 94 (2012) 211217.
[6] B. He, J.V. Gerpen, Reactors for biodiesel production, National biodiesel education program, 2013 http://www.extension.org/pages/26630/reactors-forbiodiesel-production
[7] J. Valappil, C. Georgakis, Nonlinear model predictive control of end-use properties in batch reactors, AIChE J. 48 (2002) 20062021.
[8] F.S. Mjalli, M.A. Hussain, Approximate predictive versus self-tuning adaptive control strategies of biodiesel reactors, Ind. Eng. Chem. Res. 48 (2009)
1103411047.
[9] F.S. Mjalli, L. Kim San, K. Chai Yin, M. Azlan Hussain, Dynamics and control of a
biodiesel transesterication reactor, Chem. Eng. Technol. 32 (2009) 1326.
[10] H.Y. Kuen, F.S. Mjalli, Y.H. Koon, Recursive least squares-based adaptive control of a biodiesel transesterication reactor, Ind. Eng. Chem. Res. 49 (2010)
1143411442.
[11] C.S. Bildea, A.A. Kiss, Dynamics and control of a biodiesel process by reactive
absorption, Chem. Eng. Res. Des. 89 (2011) 187196.
[12] W. Wali, A. Al-Shammaa, K.H. Hassan, J. Cullen, Online genetic-ANFIS temperature control for advanced microwave biodiesel reactor, J. Process Control 22
(2012) 12561272.
[13] P.T. Benavides, U. Diwekar, Studying various optimal control problems in
biodiesel production in a batch reactor under uncertainty, Fuel 103 (2013)
585592.
[14] A.S.R. Brsio, A. Romanenko, J. Leal, L.O. Santos, N.C.P. Fernandes, Nonlinear
model predictive control of biodiesel production via transesterication of used
vegetable oils, J. Process Control 23 (2013) 14711479.
139
[15] R.M. Ignat, A.A. Kiss, Optimal design, dynamics and control of a reactive DWC
for biodiesel production, Chem. Eng. Res. Des. 91 (2013) 17601767.
[16] W. Wali, K. Hassan, J. Cullen, A. Shaw, A. Al-Shammaa, Real time monitoring and intelligent control for novel advanced microwave biodiesel reactor,
Measurement 46 (2013) 823839.
[17] D.Y.C. Leung, X. Wu, M.K.H. Leung, A review on biodiesel production using
catalyzed transesterication, Appl. Energy 87 (2010) 10831095.
[18] H. Noureddini, D. Zhu, Kinetics of transesterication of soybean oil, J. Am. Oil
Chem. Soc. 74 (1997) 14571463.
[19] R. Richard, S. Thiebaud-Roux, L. Prat, Modeling the kinetics of transesterication reaction of sunower oil with ethanol in microreactors, Chem. Eng. Sci.
(2012).
[20] P. Lauenburg, J. Wollerstrand, Adaptive control of radiator systems for a lowest
possible district heating return temperature, Energy Build. 72 (2014) 132140.
[21] D.I. Wilson, M. Agarwal, D.W.T. Rippin, Experiences implementing the extended
Kalman lter on an industrial batch reactor, Comput. Chem. Eng. 22 (1998)
16531672.
[22] T.W. Patzek, A rst law thermodynamic analysis of biodiesel production from
soybean, Bull. Sci. Technol. Soc. 29 (2009) 194204.
[23] R. Luus, O.N. Okongwu, Towards practical optimal control of batch reactors,
Chem. Eng. J. 75 (1999) 19.
[24] E. Sorguven, M. zilgen, Thermodynamic assessment of algal biodiesel utilization, Renew. Energy 35 (2010) 19561966.
[25] W.M. Clark, N.J. Medeiros, D.J. Boyd, J.R. Snell, Biodiesel transesterication
kinetics monitored by pH measurement, Bioresour. Technol. 136 (2013)
771774.
[26] S. Zabala, G. Arzamendi, I. Reyero, L. Ganda, Monitoring of the methanolysis
reaction for biodiesel production by off-line and on-line refractive index and
speed of sound measurements, Fuel 121 (2014) 157164.
[27] I. Rechenberg, Evolutionsstrategie: Optimierung Technischer Systeme Nach
Prinzipien Der Biologischen Evolution, Frommann-Holzboog, 1973.
[28] Piedmont Biofuels, The price of biodiesel, 2013 http://www.biofuels.coop/
price-of-biodiesel
[29] B.R. Dhar, K. Kirtania, Excess methanol recovery in biodiesel production process
using a distillation column: a simulation study, Chem. Eng. Res. Bull. 13 (2010)
5560.
[30] B. Houska, H.J. Ferreau, M. Diehl, ACADO toolkit an open source framework
for automatic control and dynamic optimization, Optim. Control Appl. Meth.
32 (2011) 298312.
[31] Z.K. Nagy, B. Mahn, R. Franke, F. Allgwer, Evaluation study of an efcient output
feedback nonlinear model predictive control for temperature tracking in an
industrial batch reactor, Control Eng. Pract. 15 (2007) 839850.
[32] U.S. Department of Energy, Clean cities alternative fuel price report, 2013
http://www.afdc.energy.gov/uploads/publication/afpr jul 13.pdf
[33] National Biodiesel Board, Chemical weight and formula, 2013 http://
www.biodiesel.org/docs/ffs-performace usage/chemical-weight-formula.
pdf?sfvrsn=4
[34] SImetric, Density, mass, specic gravity of liquids, 2013 http://www.simetric.
co.uk/si liquids.htm
[35] Strategic Energy Technologies Information System, Background report on EU27 district heating and cooling potentials, 2012 https://setis.ec.europa.eu/
system/les/1.DHCpotentials.pdf
[36] California Energy Commission, Cost for cooling water, 2013 http://www.
energy.ca.gov/2006publications/CEC-500-2006-034/CEC-500-2006-034.PDF
[37] F. Allgwer, R. Findeisen, Z.K. Nagy, Nonlinear model predictive control: from
theory to application, J. Chin. Inst. Chem. Eng. 35 (2004) 299316.