Sei sulla pagina 1di 16

Ind. Eng. Chem. Res.

1993,32, 866-881

866

Optimal Design and Operation of Batch Reactors. 1. Theoretical


Framework
Masoud Soroush and Costas Kravaris*
Department of Chemical Engineering, The University of Michigan, Ann Arbor, Michigan 48109-2136

In this work, we propose a framework for integrated design and operation of single-stage batch or
semibatch reactors. This includes systematic decoupling of optimization and design through
conceptual decomposition of the reactor dynamics into two subsystems with distinct characteristics.
In this framework, notions of feasibility, flexibility, controllability, and safety of the design for batch
processes are introduced for the first time and some criteria for their assessment are presented. The
proposed framework includes (a) mathematical modeling of the process dynamics, (b) dynamic
optimization that involves simultaneous optimization of loading conditions and operating temperature
and/or concentration profiles, (c) design of the heat exchange and/or feeding system(s) and
investigation of process operability (feasibility, flexibility, controllability, and safety of the design),
and (d) design of a control scheme for automatic startup and optimal operation of the reactor.
Introduction
Batch processes play a very important role in the
chemical process industry. Because of their great flexibility, they are extensively used in the production of fine
and specialty chemicals, pharmaceuticals, polymers, and
bioproducts, as well as other products for which efficient
continuous production is not feasible. Thus, batch processes contribute to a significant proportion of the worlds
chemical production (especially in value). The increasing
technological trends toward the manufacture of specialty
chemicals (Anderson, 1984) make the efficient design and
operation of batch processes even more important.
Batch processes are different from continuousprocesses
in the following major aspects:
1. Mode of operation: Their mode of operation is
intrinsically dynamic (the operating conditions are timevarying).
2. Role of initial loading: The role of initial conditions
(initial loading of batch processes) is very important in
the operation of batch processes, while the loading
conditions of continuous processes becomes a major
operational issue when there is a possibility for existence
of multiple steady states.
3. Flexibility of operation: Batch processes possess
greater flexibility of operation and ability to cope with the
fluctuations in the market conditions.
4. Small-volume production: Batch processes are
usually used for the manufacture of low-volume high-value
products such as pharmaceuticals and other fine chemicals.
5. Finite time of operation (limited batch cycle time).
6. Wide range of operation: This makes the control of
operating conditions difficult and necessitates the use of
measuring instruments with much wider measuring ranges.
Moreover, because a batch process model will have to
describe the behavior of the system over a wide range of
conditions, the requirement for accuracy of the batch
process model is somewhat more rigorous than that of a
continuous process model.
7. Irreversible behavior: Once an off-specification
material was produced, because of an upset in the operating
conditions, they may be no means for any correction, and
this may lead to shutdown of the process and discard of
the reacting mixture. This is in contrast to continuous
processes, where upsets in operating conditions eventually
~~

~~

~~~

* To whom correspondence should be addressed.

wash out of the system and the process can return to the
desired steady state.
During the past decades, there have been significant
contributions in the area of design of continuousprocesses
[see, e.g., the recent review paper by Seider et al. (1991)l.
Steady-state chemical process simulators, which were first
developed in the early 1960s, now play a very significant
role in process simulation and design work in the chemical,
petrochemical, and petroleum industries. Also, for continuous processes, on-line calculation of the optimum
steady-state control is rapidly becoming state-of-the-art
in several companies, e.g., IC1 and Shell (Fisher et al.,
1988b).
Because of the transient mode of operation of batch
processes, the contributions in the area of continuous
process design (e.g., Grossmann and Morari, 1983; Lang
et al., 1988; Fisher and Douglas, 1985; Palazoglu et al.,
1985; Birewar and Grossmann, 1989) are usually not
applicable to batch processes. On the other hand, in the
area of batch process design, a major research direction
has been the study of batch scheduling (e.g., Wellons and
Reklaitis, 1989;Karimi and Modi, 1989;Faqir and Karimi,
19891, that is, optimization of a set of batch equipment in
which each equipment is counted as a static system. In
todays competitive industry, efficient design, planning,
and operation of batch chemical plants have become
extremely important due to competitive pressure, increasing difficulties in discovering new products and
obtaining official approval for their production (Rippin,
1983).
In many batch reactors, because of the higher value of
the product compared to the value of reactants and the
cost of energy, the process economics depend much more
on the product quality and/or yield than the amount of
energy or reactant used. Thus, significant economic
benefits can be realized from maximizing product quality
and/or yield rather than minimizing the capital and/or
operating cost(s). For example, a key factor that should
be considered in the selection of a design candidate for
polymer products is the product quality as reflected in
the polymer molecular weight and composition distribution
(Malone and McKenna, 1990). On the other hand, only
computation of the optimal operating conditions [as in
Thomas and Kiparissides (1984), Tsoukas et al., (1982),
and Wu et al. (198211 of a batch reactor does not guarantee
the feasibility of implementation of such optimal trajectories. Manoquinand Luyben (1973)have addressed some

0 1993 American Chemical Society


0888-5885/93/2632-0S66~0~.~/0

Ind. Eng. Chem. Res., Vol. 32, No.6,1993 887


of the practical problems related to the implementation
of these optimal profiles. In this paper, by considering
the above process-economic reality, the general term
'optimization" is used as maximization of the product
quality and/or yield of the batch process.
It has always been recognized that in deeiding on the
best operatingconditions,the problem of control will have
a direct effect on whether and how the optimal conditions
will be realized. Juba and Hamer (1986) have reviewed
some of the difficulties involved in the control of hatch
processes. For example, in a hatch cycle, these is no steady
state and, therefore, no "nominal" condition a t which
controllers can he tuned. Moreover, the requirement for
startup and shutdown control in batch processes demands
good dynamic response over the entire operating range of
the controlled variables. This contrasts with the precise
control over a small range that is required in many
continuous processes.
The static and dynamic behavior of a process is directly
influenced hy the design of ita control system. Because
of this interaction between process design and control,
the synthesis of a control structure should be confronted
during the stage of the process design (Stephanopoulos,
1983). In the area of continuous processes, recently there
have been some attempts to remove the discontinuity
which currently exists at the interfacebetween design and
control (Fisher et al., 1988a-c).
Considering the whole range of the previowly-mentionedchallengingproblemsrelatedto hatchreactors, one
can see that dynamic optimization, design, control, and
optimaloperationof a hatch reactor arenot separate hues,
and theymustheconfrontedatonestage. Inthisdirection,
we propose an integrated methodology in which the issues
of design, modeling, dynamic optimization,and control of
batch reactors are investigated in a unified framework. In
this framework, the above tasks are mathematically
formulated,organized,and performed interactively. More
specifically,
1. The reactor model is partitioned systematically into
twosuhsystemswhich posseas distinct characteristics. One
includesonlyintensivevariahles (itwillbecalledthe'inner
system"), and the other one includes both intensive and
extensive variables (it will be called the 'outer system").
The optimization of a quality index is formulated only in
terms of the intensive variables of the inner system and
is, therefore, independent of the design. The design
parameters appear as tunable parameters of the outer
system, which acta as a feedback loop around the inner
system. Consequently, dynamic considerations will have
to be accounted for in the design.
2. Notions of feasibility, flexibility, safety, and controllability for batch processes are introduced for the first
time, and some criteria for their assessment are developed.
3. The proposed frameworkclarifies theroleof dynamic
modeling in optimization and design, and the interaction
between design and control becomes explicit.
There are three levels of modeling in the proposed
framework (see Figure 1). In the first level (modelo), the
model has the lowest level of information and is used as
a basis for making somepreliminaryoperationaldecisions.
In the second level (model I; inner system), the model is
more complete and is used for dynamic optimization. In
the third level (model II; overall model), the model has
the highest level of information which characterizes the
overall dynamics of the reactor and is used for design
purposes.
An overview of the proposed design and operation
framework is depicted in Figure 2; it shows the logical

P..

..

.............

..........

Modeling

Design

,--

Figure 1. Different levels of modeling and their roles in preliminary


decisions, optimization, design, and control stapes.

Kinetic Data & Physical Parameters.


Yield h Product Quality Objectives

Mathematical Model 0

Reactor Sizing

<

Mathematical Model I1

Formulation of Control Proble


& Synthesis of Control Law

Figure 2. Flow diagram of the design and opsration methodology.

sequence of steps, based on the intuitive considerations,


which one should follow. As we proceed through the
discussion of the steps, one should realiie the theoretical
and practical issues in each step, the logic of sequencing
of the steps, and the interaction between the steps.
In this paper, the steps of the methodology will be
discussed in detail, and the main focus will be the
theoretical formulation. In part 2 of this study, the

868 Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993

integrated design and operation methodology will be


illustrated through application to a batch polymerization
reactor.
Design and Operation Methodology
In order to use the proposed integrated design and
operation methodology, one either needs to know the
kinetic rate laws of the reactions which take place in the
reactor and the related thermodynamic and physical
properties, or should have enough experimental data from
lab or pilot plant experiments to obtain the necessary rate
laws and properties. Moreover, it is assumed that (a) the
production rate of the batch reactor (i.e., the volume/
mass of the desired product per unit time) and (b) a set
of objectives related to product quality and/or yield are
specified.
In what follows, the proposed steps of the design
framework are discussed one by one.
1. Development of Model 0. The purpose of the
development of model 0 is to (i)understand the interactions
among the different variables of the system and how these
variables affect the yield and/or product quality objectives
(which will be precisely formulated in the next step) and
(ii) define the operation variables which characterize the
operation of the reactor.
These considerations will lead to the selection of the
mode of operation of the reactor (batch or semibatch) in
the next step. Throughout this paper, mathematical
models appear as sets of ordinary differential equations.
Model 0 consists of a set of differential equations that
describe the system under closed (no feeding into the
reactor) and adiabatic conditions. As a typical situation,
consider a batch reactor in which liquid-phase reactions
with no significant density change take place. (As will be
seen in part 2, when density changes, the design procedure
and the related theoretical analysis remain the same.)
Under the assumptions of s independent concentrations
and constant density and heat capacity of the reacting
mixture, model 0 of this typical reactor is of the general
form:

...
dCs - Rs(Cl,...,C,,n
-dt
dt
PC
In other words, model 0 essentially consists of all the rate
expressions that describe the physical and chemical
phenomena in the reactor. The variables of model 0
(dependent variables of the ordinary differential equations) will be called the operation variables, since they
characterize the operation of the reactor. It is of course
understood that, for a complete model, one must be able
to precisely specify all performance indices (which will be
defined in the next step) in terms of the operation variables;
this will be done in the next step.
2. Formulation of Performance Indices and Selection of Mode of Operation. The purpose in this step
is to do the following:

Table I. Typical Polymer Product Quality Indices and


Performance Indices (Nunes et al.. 1982)
product quality index
performance index
(end use polymer properties)
flow properties
average molecular weights
tensile stress
average molecular weights
melting point
average molecular weights
stress crack resistance
copolymer composition
corrosion resistance
copolymer composition

(i) Translqte the given product quality objectives into


a set of performance indices which can be formulated in
terms of the operation variables.
(ii) Select a subset of the operation variables (that will
be called the optimizing variables), which have a reasonably
strong and direct effect on the performance indices and
can be easily manipulated. By continuous adjustment of
these variables, the optimal operation of the batch reactor
will be realized.
(iii) Select the mode of operation (batch or semibatch)
on the basis of the optimizing variables selected in (ii).
In every optimal design, there is at least one objective
which should be maximized or minimized. The purpose
of this step is first to find a relationship between the given
objectives and a set of performance indices which can be
defined in terms of the operation variables of process.
The necessity for this translation arises whenever the
objectives are defined in an abstract form and not in
terms of operation variables. For product quality objectives, in most cases, there is an empirical relationship
between the quality objective (actual customer specifications) and a performance index which can be defined in
terms of the reactor operation variables. Typical product
quality indices and the corresponding performance indices
for the case of polymerization are given in Table I. Because
of the complexity of polymerization processes (Ray, 1983;
Nunes et al., 1982), for a given polymer/copolymer, a
product quality index cannot usually be characterized
completely by a single performance index. Rippin (1983)
has studied the optimization of bioreactors, polymerization
reactors, and other reactors, and tabulated some typical
performance indices. A list of typical performance indices
is given in Table 11.
Once the performance indices are formulated, one needs
to find a subset of the operation variables, which have
reasonably strong and direct effect on the performance
indices and can be easily manipulated. This is done on
the basis of our knowledge of the process and/or model 0.
This subset of the operation variables will be called the
optimizing variables (Rippin, 1983). The vector of the
optimizing variables is denoted by W. Typical optimizing
variables corresponding to certain performance indices
are also given in Table 11. The proper selection of the
performance indices and the optimizing variables W is a
crucial step in the design methodology. A necessary
condition for an operation variable to be an optimizing
variable ui is that there should exist an external input
(e.g., inlet flow or heat input) by which any profile of the
optimizing variable Wi(t) can be enforced during the batch
period. For instance, if an optimizing variable candidate
is the concentration of a reactant in the reactor, practically
one should be able to enforce the concentration profile
Ui(t) to the reactor, independent of the reactor operating
conditions, through addition of the reactant to the reactor.
If reactor temperature is an optimizing variable, it can be
manipulated by building a heat exchange. Nonisothermal
temperature trajectories are common means for optimizing
the throughput of many batch reactors (Thomas and
Kiparissides, 1984;Horak and Jiracek, 1983;Kiparissides

Ind. Eng. Chem. Res., Vol. 32, No. 6, 1993 869


Table 11. Typical Performance Indices and Optimizing Variables.
reaction type

performance index

optimizing variables

polymerization
polymerization
polymerization
polymerization
polymerization
polymerization
polymerization
polymerization
polymerization
bioreaction
bioreaction
bioreaction
bioreaction
bioreaction
classical reactions
A+P,E1 # Ez
A * P, E1 =El
A + P + W , E i #E2
A+P+W,El=Ez

PDI
PDI
end time
end time
copolymer comp drift
copolymer comp drift
AMW drift
AMW drift and conversion
AMW and PDI drifts
final enzyme activity
final conversion
yield of product
biomass growth
yield of product

temperature
temperature and initiator concn
temperature
temperature and initiator concn
temperature
monomer concentration
temperature and initiator concn
temperature and initiator concn
temperature
temperature
temperature
temperature and pH
substrate concentration
substrate concentration

yield of product (P)


yield of product (P)
yield of product (P)
yield of product (P)

temperature
concentrations of A and/or P
temperature
concentrations of A and/or P

selectivity

concentration of A

selectivity

temperature

El and Ez = activation energies; AMW = average molecular weight; PDI = polydispersity index.

and Shah, 1983)and could be enforced by a heat exchanger


system. A good understanding of the physics and chemistry of the process is very important in the selection of
the proper operation variables as optimizing variables.
Once the optimizing variables are selected, this immediately specifies the mode of operation of the reactor. For
example, if one of the selected optimizing variables is a
concentration, then feeding will be needed and the mode
of operation will be semibatch.
Remark 1: From the point of view of control, we would
like an optimizing variable to be measurable or to be
accurately inferred from some measurements. In this case,
we will be able to use closed-loop control to enforce a
desirable profile of the optimizing variable to the process.
Otherwisewe have to use open-loopcontrol, which provides
poor tracking performance in the presence of process
disturbances. The superiority of closed-loopcontrol over
open-loop control implies that an optimizing variable,
which can be measured or accurately inferred from some
measurements, is preferred to an optimizing variable which
does not have this property.
Remark 2: In case closed-loopcontrol is used to enforce
desirable optimizing variable profiles Cul(t), ..., Cu,(t) to
the process, there is a tradeoff between number of
optimizing variables Cuis and the simplicity of the control
law which will later by synthesizedat the controller design
step. Although a higher number of optimizing variables
Wi)s provides a better product (in terms of the defined
performance indices) and probably smoother optimal
profiles of optimizing variables Uis, when it comes to
tracking the optimal profiles of Cuis, more measurements
and control loops (a multivariable controller with higher
dimensionality) will be needed.
3. Development of Model I (Inner System). The
objective of the development of model I is to obtain a
quantitative mathematical description of the impact of
the optimizing variables 41 on the performance indices for
the selected mode of operation. The description must be
exact and at the same time of minimal order to facilitate
computation of the solution of the dynamic optimization

problem. This can be performed in two substeps: (i)


modification and extension of model 0, on the basis of the
mode of operation selected in step 2, to obtain the
nonadiabatic and/or open dynamic model of the reactor;
(ii) reduction of order of the model; the balances for the
optimizing variables will not be included in model I,
because the optimizing variables will have to be viewed as
inputs to model I. Also, there may be a need for a variable
transformation in the model.
The development of model I is illustrated by considering
the typical situation examined in the developmentof model
0. In order to modify the model for nonadiabatic and/or
open conditions, one must include the rate of heat addition
to the reaction (8)in the energy balance equation and the
feeding rate of species j (Fj)in the species mass balance
equation of the model of eq 1. For simplicity,we consider
the case where only species 1is added to the reactor. Then,
the reactor model takes the form

dC2
= R2(Cl,&,T)
dt
...

- Fl
TC2

Note that when there is no feeding to the reactor (F1=


0), the volume of the reacting mixture V does not appear
as a variable in the model of eq 2.

870 Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993

On the other hand, when F1 # 0, it is convenient to


perform change of variable for some of the variables in the
model of eq 2. Defining the new variables, "relative
concentrations," as

....
..

(iii) Semibatch [FI# 01, nonisothermal operation and


the optimizing variables are T and C1: From eq 3, by
"setting aside" the first two and last equations we obtain

...
. . I

...
and assuming Cl,, # C1for all t 1 0 (for semibatch reactors
usually CI,, > Cl), the model of eq 2 becomes

I n all the cases (i, ii, iii), the reduced-order model has the
optimizing Variables as inputs. In general, a reducedorder model of the form

...

In order to illustrate the development of model I, it is


instructive to consider the following three cases:
(i) Batch operation [F1=01 and the optimizing variable
is the reactor temperature T: The first equation of eq 2
immediately leads to V = constant and therefore V is no
longer a state variable. Furthermore, with T being viewed
as input, the last equation in eq 2 is no longer relevant.
This leads to

...
-dCs
=
dt

R,(C I,...,

c,,n

(4)

(ii) Semibatch, isothermal operation [F1 # 0, T =


constant] and the optimizing variable is C1: Since T =
constant, the last equation in eq 3 and the dependence of
the Rj's on T drop out. Furthermore, with C1being viewed
as input, the first two equations of eq 3 are no longer
relevant. These lead to

i = 3,(z,"u)
(7)
is obtained. Here "u is the vector of optimizing variables,
and z is the vector of remaining operation variables (not
included in "u). 31is a vector function. The dynamic
system of eq 7 is called the inner system for reasons that
will become clear later. At this point one must note that
the inner system depends on the physics and chemistry
only and not on the design parameters of the system.
Also, all the variables of the inner system are intensive
variables.
Remark 3: One must emphasize once again the
advantage of reduction of order of the model: It helps
encounter fewer numerical difficulties in the computation
of optimal operating profiles or possibly finds an analytical
solution for the problem. It is also a basis for the
decoupling of optimization from design as will be seen
later. One must also point out that this model reduction
is standard in the theoretical optimal control literature.
The above change of variables is a special case of Kelley's
transformation (Kelley, 1964).
Remark 4: The development of the reduced-order
model (eq 7) and then the calculation of the optimal
operating conditions in terms of a subset of operating
conditions ("u), which are independent of design, is in
complete analogy with the calculation of optimal operating
conditions for continuous systems in a stage prior to the
design stage. For example, operating conditions of a
continuous tank reactor are usually defined in terms of
reactor temperature, concentrations, etc. (intensive variables), rather than the steam pressure and flow rate in the
jacket and flow rate of the reactants and products. These
desirable operating conditions (intensive variables) are
usually fixed prior to the design stage.
4. Dynamic Optimization (Computationof Optimal
LoadingConcentrations and OperatingConditions).
In this step, we formulate an optimization index J to be
minimized as well as the pertinent constraints. The
optimization index will be one of the performance indices
or a weighted sum of some performance indices. The
constraints will include the inner system (eq 7), the
remaining performance indices which were not included

Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993 871


in the optimization index J (that must be within given
limits), and safety, operational and other constraints,
expressed as bounds on z and U.
In a typical situation, the dynamicoptimization problem
can be mathematically formulated as
minimize J = K(z(t,),t,,z(O))
+ JotfL(z(t),U(t))dt

(8)

subject to
8 0 ) = S,(z(t),W(t)) (inner system)

Uj,IU j ( t )IUjh, j = 1, ...,q

(optimizing variable constraints)

h(z(t),t)I O

(state inequality constraints)

g,(z(O),O) = 0, go E Rjo

gf(z(tf),tf)= 0, g f E RJf

(initial constraints)
(terminal constraints)

The optimization problem can involve calculating the


optimal optimizing variable profiles U * ( t ) ,the optimal
loading conditions z*(O), and the optimal final time tf* so
that Jis minimized and the remainingperformance indices
(which were considered as constraints in eq 8) are within
the wanted bounds. This is a standard dynamic optimization problem [e.g., Bryson and Ho (197511. For the
purpose of completeness, a brief review of necessary
conditions for optimality is given in the Appendix.
Remark 5: In some cases it may be meaningful to
mathematically formulate a multiobjective dynamic optimization problem, i.e., have more than one J to be
minimized. An example of this type is given in Tsoukas
et al. (1982). For the sake of simplicity, the treatment
here will be limited to a single optimizing index.
Remark 6: In the cases of existence of some infeasible
optimal profiles (because of the sharp changes of the
optimal profiles), one may have to introduce constraints
(lower and/or upper bounds) on the time derivative of
some of the Ut's. This can be done by defining an
appropriate extension of the system (the time derivative
of some UCi(s become new inputs and the corresponding
Uj's become states) and considering the optimization of
Jsubject to the extended dynamic system with additional
constraints on the new state and input variables.
Remark 7: The selection of the initial and terminal
constraints should be performed with enough care. There
may be cases for which there are no optimizing variable
profiles within given constraints which take the batch
reactor from the given initial conditions to the requested
terminal conditions. In other words, the operating conditions of the reactor at the end of batch time should be
reachable from the operating conditions of the reactor at
the beginning of batch cycle by use of profiles of the
optimizing variables within the given limits. In the optimal
control theory [e.g., Leitmann (196711,this issue is referred
to as reachability of the terminal conditions.
The dynamic optimization of eq 8 can calculate the
optimal batch time tf*, the optimal profiles of the
optimizing variables U,*(t),..., U,*(t), and the optimal
loading conditions z*(O). As expected, in general, U * ( t )
and z*(t) [ z ( t )corresponding to z(0) = z*(O) and U ( t )=
U * ( t ) ]are not constant and vary with time. A computed
optimaloptimizingvariable profile [Ui*(t)l,can be smooth

and time-varying, constant, piecewise constant (bang-bang


type), or a combination of these.
The optimality of the batch time (tf*)and the operating
conditions [U*(t)and 2*(0)1 for a given reactor model
depends on how accurate the model of the inner system
is. An analysis of the sensitivity of the optimal operating
conditions to modeling errors and disturbances in the inner
system is very important and should be taken into
consideration in any optimization study. The general
treatment of the parametric sensitivity of optimization
results is an open issue and beyond the scope of this paper.
The existence of varying and uncertain parameters in
adynamic process model and the sensitivity of the dynamic
optimization results to these parameter variations have
motivated the development of an on-line dynamic optimization method (Palanki et al., 1992). This mathematically rigorous method involves on-line dynamic optimization of aclass of processes using nonlinear state feedback
laws.
5. Reactor Sizing. After the optimization problem is
solved,we know (a)tf*,the optimal batch time, (b) Cp*(tf*),
the optimal product concentration at the end of the batch
cycle, and (c) cv*(tf*),the volume-increase factor during
the optimal operation of the batch reactor (V(tf*)/VO).
In the case of semibatch operation, where only component 1 is fed, this is given by

tv*(tf*)=

Then given the desired production rate P, the initial


volume (VO)is calculated from

and the reactor vessel size V , is obtained from


(1 + +,)q"*VO I

v,

where av,1 0 is the vessel size over-design margin and


aEV*
is the maximum value of ev*(t) during the optimal
operation, Le., 8,,* = supt cv*(t) for 0 I t I tf*. tb and
t,, are, respectively, the loading/startup time and the
shutdown/cleaning time for each batch cycle. Because tb
and t,, depend on the initial loading volume VO,one may
need to perform some iterations to obtain the value of VO.
The loading/startup time ( t k ) is s u m of two time periods,
the time needed to load the reactor and the time required
for startup (usually heatup). Both depend on the reactor
the latter also depends on the
initial loading volume (VO);
maximum available heating rate through the heat exchanger. Here, the startup part of tk is guessed and later
a better estimate can be obtained when the design is
completed (step 6).
6. Design of Heating/Coolingand Feeding Systems
and Selection of Actual Manipulated Inputs. In this
step, one must find ways of forcing the reactor to follow
the optimal trajectories of the optimizingvariables through
the use of external inputs. This includes the design of
heating/cooling (H/C) and/or feeding systems, and the
selection of the actual manipulated inputs.
In step 2, the optimizing variables Uwere selected among
the operation variables of the process. Associated with
these optimizing variables, there must be a set of manipulated inputs denoted by u(t) which directly affect
them and can actually enforce the optimal operation to
the process. Therefore, a necessary condition for the actual

872 Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993


Table 111. Typical Optimizing Variables and
Corresponding Actual Manipulated Inputs
"u

reactor temperature
reactor temperature
reactor temperature
reactor temperature
reactor temperature
concentration of species y"

coolant flow ratea


steam flow ratea
coolant and steam flow ratesa
current input to heatera
jacket temperaturea
rate of addition of component "j"

a The choice of u also depends on kind of the H/Csystem which


is designed in step 6.

manipulated inputs ui's is that each "ui should be accessible


(Morari and Stephanopoulos, 1980) at least from one ui.
The effect of u ( t )and "u will be through the heat exchange
and/or feeding systems which must be designed. Onemust
assure that the chosen set of manipulated inputs u ( t )affect
V ( t )strongly enough to force W ( t )to track the precalculated U*(t). In other words, U ( t )must be controllable
(in a strong enough sense) by u(t). One can usually find
more than one ui which affect Vi. However, the actual
manipulated variable which has the strongest effect on
"ui(t) is chosen as ui. The selection of the actual
manipulated inputs ui)sdepends on the H/C and/or feeding
schemes that will be used. For instance, when the reactor
temperature is an optimizing variable, we need a heat
exchange system, Depending on the heat exchangescheme
we select, the actual manipulated input can be steam
pressure, heating fluid flow rate, current input to an
electrical heater, etc. In general, when the reactor
temperature is an optimizing variable, a heat exchange
system is needed, and when the concentration of the species
"j" is an optimizing variable, a feeding system is required.
Typical optimizing variables and the corresponding actual
manipulated inputs are given in Table 111. For example,
a good actual manipulated input candidate for the
optimizing variable Cj is the rate of addition of the chemical
species"j" to the reactor (Fj). However,there is an inherent
disadvantage associated with these addition rates (Fis)
as manipulated inputs, that is, Fj(t) 2 0, for all t 1 0 (the
species "j" cannot be removed arbitrarily from the reactor).
This lower limit of the Fj(t)'s may result in lack of
controllability in some situations. An advantage associated
with the feedings is the higher effective heat-removal
capacity of the reactor when the feed is cold enough.
Remark 8: There may exist cases in which for tracking
of a "ui(t)more than one ui(t) are required. This usually
happens when the optimal Ui*(t)profile is not smooth
enough. A tradeoff like the one mentioned in remark 2
exists between the dimensionality of u and the simplicity
of the control law which will be synthesized later. Higher
dimensionality of u provides "more controllability", which
results in better tracking of the optimal profile "ui*(t).
The substeps, which one must follow here, are the
following:
(i) Decide on the method of cooling and/or heating,
coolant and/or heating fluid, heater, feeding, etc. The
resulting decisions, naturally, depend on the optimal
operating conditions and the size of the reactor vessel.
There are numerous standard and nonstandard H/C and
feeding schemes available in the literature [e.g., Liptak
(1986)1, that one can choose from.
(ii) Decide on the actual manipulated inputs which the
H/C and feeding systems offer, once the H/C and feeding
systems are specified.
(iii) Specify the design parameters (those that are
inherently constant because of the design and those which
are adjustable), based on the selection of the method of
H/C and/or feeding. Those design parameters which are

UiO),tl(Oi

=FoTo(z,U,~,u:Pd)

Outer System

Figure 3. Block diagram of the overall dynamic model.

adjustable are denoted by P d . The design parameters P d


may be determined through some iterations. Initially some
reasonable values are chosen for them, and if the design
does not satisfy some of the operability requirements
(which will be given later), they have to be readjusted.
Remark 9: An increase in the heat exchange surface
area may be accompanied by a rise in the heat exchanger
holdup. This increases the sluggishness of the exchanger
dynamics which is undesirable. Also,despite the increase
in the heat exchanger area, the expected rise in the rate
of heat exchange will not always be achieved. Marroquin
and Luyben (1973) have shown that there is an optimum
(in the sense of maximum rate of heat removal capacity)
heat exchanger size for a jacketed reactor.
After designing the H/C and the feeding systems, we
have enough rough knowledgeof the overall reactor system.
This knowledge will be used in the next step to develop
the overall process model.
7. Development of Model I1 (Overall Model). In
step 3, the model of the inner system, 6 = 3,(z,Y) was
developed. Now, after designing the H/C and/or feeding
systems, one can develop a dynamic model which describes
the relationship between "ui's and uj's. This model will
have the general form of

where 90is a vector function. Here 7 is the vector of the


states of the H/C and/or feeding systems (e.g., jacket
temperature) as well as the dynamics which were not
included in model I (e.g., jacket dynamics). u is the vector
of actual manipulated inputs. The dynamic system of eq
9 is called the outer system. Figure 3 shows how the inner
and outer systems are interconnected. The outer and inner
system have interesting characteristics. The inner system
is independent of the design. However, the outer system
directly and strongly depends on the design. The objective
is to design the outer system and later the controller to
force the system to track the optimal profiles "u,*(t),...,
"u,*(t) during the time period 0 ,< t S tf.
Remark 10: As can be seen from Figure 3, the outer
system acta as a feedback loop around the inner system.
It will therefore affect the stability characteristics and
the speed of response of the overall system. The design
parameters of the H/C and feeding systems can be viewed
as tunable parameters of this feedback mechanism.
Because of the effect of design parameters of the outer
system on the overall dynamics of the batch reactor,
dynamic criteria (stability and speed of response) must be
incorporated in the design of the outer system. As will be
seen, the design scheme and values of the corresponding
design parameters ( P d ) are finalized when some operability
requirements are met.
Combining the inner system (eq 7) and the outer system
(eq 91,we obtain the complete dynamic model of the reactor

...

Figure 4. Schematic diagram of the cooling and feeding systems.

dTj-- -(U A T - Tj) + Few-(


P w T,, - Tj)
dt c,m,
m,
%=Fl
which will be called model 11.
In order to illustrate the notion of outer system, let us
consider the typical case described by eq 2 in which both
the concentration of species "1"and the reactor temperature are chosen as optimizing variables and the reactions
are exothermic (only cooling is needed during the operation). The inner system of this case is given by eq 6.
Suppose the scheme shown in Figure 4 is chosen as the
cooling and feeding systems for this typical reactor. Here
the actual manipulated inputs (u1 and UZ) are the flow
rate of cooling water (FW)and the inlet flow rate of solution
of species "1" (Fl),respectively. An energy balance for
the cooling system gives (assuming heat transfer only to
the reactor)
d Tj
Pw
= F,.,-(Tov
dt
m0

UA
- Tj) + -(
T - Tj)
cwmo

By including the above heat balance to the set of ODES


which were not included in development of the inner
system (eq 6), we obtain the outer system, i.e.,

dTj
dt

PW

F,-(TCw
m,

UA
- Tj) + -(T

cwmo

dt

which is in the general form of

8. Assessment of Feasibility, Flexibility, Safety,


and Controllability of the Design. In this step, one
must check whether the H/C and feeding systems were
properly designed or not. The basis for this analysis is
that the designed H/C and feeding systems should be
flexible, controllable, and safe and must, of course, also
guarantee feasibility of the computed optimal trajectories.
In what follows, we will introduce notions of feasibility,
flexibility, controllability, and safety for batch processes.
These will be defined in mathematical terms in the context
of the proposed design framework and will account for the
dynamic nature of batch processes. It will be seen that
feasibility, flexibility, safety, and controllability are technically different concepts and constitute important operability conditions in batch processes.
Here, the general term "feasibility" is used to describe
the ability of the plant to perform satisfactorily under
nominal design and optimal operating conditions, Le., no
modeling error and no disturbances.
Definition of Feasibility: Consider the outer system
with the operation variables z(t) fixed at the optimal
conditions z*(t), u as input and "u as output:

- Tj)

dV

dt = Fl
or in the general form of eq 9, i.e.,

where p d = [A TWIT,u = [Few FJT,"u = [ T CIIT,and T


= [Tj Q T . Combining the inner system (eq 6) and outer
system (eq l l ) , we obtain the overall dynamic model of
the reactor, i.e.,

Y =u
(13)
The optimal conditions z*(t) and U*(t) will be feasible,
if the input/output system described by eq 13is invertible
at Y(t) = U*(t) [Le., there exists au(t) that produces Y(t)
= CU*(t) under appropriate initialization] and the corresponding u(t) lies within the bounds imposed by the
design.
Remark 11: The invertibility property can be guaranteed under relatively mild assumptions, and standard
techniques are available in the literature (Hirschorn, 1979)
for calculating the corresponding inputs.
In order to illustrate this feasibility criterion, consider
the typical outer system described by eq 11. Here, the

874 Ind. Eng. Chem. Res., Vol. 32,No.5,1993

optimal profiles z*(t) and W*(t) will be feasible, if the


corresponding cooling water and reactant feed profiles
F,*W andF~*(t)
never exceed their lowerandupper l i t s
for0 5 t 5 tt. F,*(t) andF~*(t)
areobtained by computing
first

F i y r e S . Typicaleffectofthe parameter variationson the operation


variables r ( t ) .

and
V*(t) = v, x

then

PCV*(t)
Tj*(t)= P(t)+ Q*(t)-----

UA

finally

F,*(t) =

and
dV*(t)
dt
Questions that may arise here are what should be done
if the optimal operation is not feasible, and what can cause
this infeasibility. If the optimal operation is not feasible,
then this may be due to any of the following reasons:
(a) The unacceptable shape of the optimal profile(s) of
temperature and/or concentration(s), e.g., sharp slopes,
too high value, or too low value of the profile(s) at some
times. 1nthiaease.onehastoimpsesomenewcomtraints
on the optimizing variables and/or their derivatives (see
remark 6). and redo step 4.
(b) The improper design of the H/C and/or feeding
systems. In this case the design parameters (pd) should
be adjusted (e.g., larger surface area, lower coolant
temperature), or maybe the method of H/C should be
replaced hy one which is capable of providing such
optimizing variable profiles (return to step 6).
Remark 12 In certain cases, in order to produce a
product with very high quality, one has to enforce very
special profile(s) to the reactor optimizing variable(s). In
such cases, one should either use more expensive equipment in the design (e.g., a coolant with a freezing
temperature instead of cooling water),to be able to enforce
that profile to the reactor, or add constraints on the
optimization and then use cheaper equipment. The
decision on what to do depends on the equipment cost
and the profit from the high-quality product.
In every design, there are uncertain parameters, e.g.,
feed or ambient conditions,which may vary widely during
the plant operation. It is always a major design objective
to ensure that the chemical plant has the required
flexibilitytooperateoveragivenrangeof parametervalues.
The study of operational flexibility or static resiliency for

F,*(t) = -

continuous processes has been an active research area for


many yeara (e.g., Grossmann et al. 1983;Grossmann and
Morari, 1983; Fisher and Douglas, 1985; Floudas and
Grmmann, 1987;Malik and Hughes, 1979;Palazoglu and
Arkun, 1987;Pistikopulos and Grossmann, 1988). Flexibility or static resiliency (for continuous processes) is
mainly concerned with the problem of ensuring feasible
steady-state operation of the plant not for only a single
set of nominal conditions, but for a whole range of
conditions that may be encountered in the operation. In
the area of batch scheduling, some studies on the operational flexibility of parallel batch units have also been
reported (e.g., Oi et al., 1979).
Here flexibility is the problem of ensuring optimal
operationofa batchprocesaforarangeofparametervalues,
i.e., feasibilityin the presence of variations of parameters.
Therefore, once the optimal operating conditions are
feasible, one should investigate the ability of the design
inenforcingthe optimaloperatingconditiomto thereaetor
in the presence of the parameter variations.
Because of the dynamic mode of operation of batch
processes, the flexibility issue in these is much more
involved than in continuous processes. In a mathematical
context,the difference stems from the fact that continuous
processes are characterized at steady state by a set of
algebraic equations, while batch processes are characterized by a set of differential equations.
For the purpose of formulating a notion of flexibility
for batch processes,it is assumed that the controller (which
will be synthesized later) is always able to force the
optimizing variables W ( t )to track their optimal profiles
W * ( t ) satisfactorily, i.e., under control W ( t ) a W*(t).
When there are uncertainties in the loading concentrations and temperature and the kinetic and physical
parameters, the solution z ( t ) of the inner system will not
matchz*(t). Letz*(t) 6z*(t;yln+6yr) denote thesolution
of the inner system in the presence of uncertainties when
W ( t )= W*(t),where 71"is the vector of nominal values of
the uncertain parameters in the inner system (e.g., loading
concentrations and temperature, the kinetic and physical
parameters). 671 is the vector of the deviations of the
uncertain parameters from their nominal values. Note
that under nominal conditions (no uncertainties; 671 = 0 )
6z*(t;y1") = 0. As 671varies within a certain range, the set
of the profiles z*(t) 8z*(t;yln+6y1) corresponding to all
possible values of 671is a tube which contains z*(t). This
is depicted in Figure 5, for the case where the vector ~ ( t )
has two components. At t = 0, the uncertainties in the
initial conditions z(0) are due to the errors in the loading
conditions. Because of the existence of uncertainties in
the model parameters, as time proceeds the uncertainties
in z ( t ) propagate.
Uncertainties must also be considered in the outer
system which can be written as

Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993 875

A
where yonis the vector of nominal values of the uncertain
parameters in the outer system (e.g., ambient temperature,
coolant temperature, heat transfer coefficient) and 6y0 is
the vector of the deviations of the uncertain parameters
from their nominal values.
Definition of Flexibility: Consider the outer system
described by eq 14 with the operation variables z ( t ) at
z*(t) Gz*(t;yf
by^), u as input, and "u as output:

[Et':']

3,(z*(t)+6z*(t;r,"+br,),"u(t),S(t),u(t)rP,,yon+Gy,)

Y(t) = U ( t )
(15)
The designed outer system will be flexible, if the input/
output system described by eq 15 is invertible at Y(t) =
"u*(t)and the corresponding u(t) lies within the bounds
imposed by the design for ally E Q,. Here, y is the vector
+ 6yolT,
of all uncertain parameters, i.e., y = 171"+ Gy~Iyo~
and Q, is the set of all possible values of y.
In order to determine the actual set of parameter values
y, for which the optimal conditions z * ( t ) and U * ( t )are
feasible (for a f i e d design),the following parametric region
of feasibility is defined

Q,, A (ylz*(t)+ 6z*(t;yI) and


U*(t)are feasible for all yo]

This region provides the basic information on the flexibility


of operation of a given design. In general the actual shape
of this region could be rather complex. A particular
example of this region is depicted in Figure 6a for the case
where the region Q,, is a convex set. The above definition
of the feasible region Q,, provides a conceptual tool for
analyzing the feasibility of operation for a specified set of
bounded parameters Q,. A designer is interested in
knowing whether the optimal operation is feasible for all
y E Q, or not. Figure 6b illustrates the case when the set
Q, is totally contained within the region Q,, which shows
that the design possesses "enough" flexibility. On the other
hand, Figure 6c shows an example where the rectangle Q,
is infeasible sincea subset of it lies outaide from the feasible
region fly, This case is undesirable, since the design does
not possess Yenough"flexibility.
Remark 13: The set of bounded parameters Q, is
typically a hypercube. If the parametric region of feasibility a, is a convex set, then a necessary and sufficient
condition for Q, to be contained in a,, is that all corner
points of Q, are inside Q,, This suggests a simple method
for checking flexibility.
The above flexibility analysis checks whether the design
is feasible over the set of uncertain parameters y or not,
but it does not provide a measure of flexibility in the design.
Also, it does not determine the maximum feasible parameter set that a given design can handle. Further
research should be done to define a quantitative measure
for flexibility in a given design and to develop algorithms
for ita assessment. Finally, it should be mentioned that,
ifthe uncertain parameters are time-varying, the definition
and theoretical framework for flexibility analysis is still
valid. However, in this case, y, Q,and Qyr are time-varying
and this creates further complications.
A traditional and heuristic way to increase the flexibility
of a design is to overdesign the equipment. In particular,

Y1
Figure 6. (a, top) Parametric feasible region of operation a,, for a
fixed design. (b, middle) Feasible parameter set. (c, bottom)
Infeasible parameter set.

if ui*(t) is the ith actual manipulated variable profile


corresponding to the optimal operation, and aut> 0 is a
flexibility margin for the ith actual manipulated variable,
one may request (1+ au,)ui*(t)to be within the bounds.
One question that arises here is what should be done if
the optimal operation is not flexible enough. In such a
case, one has to adjust Pd (e.g., larger surface area, lower
coolant temperature) and/or redesign the H/C and/or
feeding systems.
In every design, it is essential to assure that hazardous
conditions cannot be created during the plant operation.
Here, the general term "safety" is used to describe the
ability of a design to prevent hazardous conditions as a
consequence of mechanical and/or electrical failures and/
or human errors.
A rigorous and general definition of the notion of safety
in batch reactors and the developmentof rigorous, general,
and easy-to-use safety tests is an open issue. However,
one can provide a basis for the analysis of safety through
defining appropriate safety indices. The safety indices
(denoted by &'i(z,"u,~),i = 1, ..., n,) are functions of the
states of the overall system and must remain within certain
safety bounds, even when the reactor operates under the
most severe possible conditions. By the most severe
conditions, we mean operating at the highest possible initial

876 Ind. Eng. Chem. Res., Vol. 32, No.5,1993

Figure 7. Alternative operation profiles under different loading

conditions.

temperature, the loadingconcentrations atwhich the rates


of reactions are maximum, the highest possible temperature of the inlet stream and the most adverse concentrations and flow rate of the inlet stream, the most
dangerous settings of uncertain parameters, and so on.
Under these conditions (which will be denoted by superscript +), and failure of any actuator (e.&, control valves
fully closed and/or open),the resultingprofdesof thestates
of the overall system are denoted by z+(t),'u+(t), and
I+(t).

Definition of Safety: A design will be safe, if the


inequalities

L8?i = 1,...,np
L,,are the safety

s,(Z+(t),Pl+(t)s+(t))5

hold for all t 2 0. Here


limits
corresponding to the indices si(z+(t),'ll+(t).I+(t))
which
must not be exceeded in any situation.
The above notion of safety is illustrated in Figure 7,
where 'u and z are s d a r and must lie within the safety
limits
2"

5 z+(t) -< P d ,

91,s 91+(t)5 Pl",

The f m e depicta alternativepaths that the system follows


under the most severe conditions for different initial
loading conditions. Because the trajectories A and B are
not within the safety limits all the time, this situation
represents an unsafe design.
Certainly, under the severe conditions which are nonoptimal, the main concern of an operator is to prevent
creation of any dagerous situation and then drain and
clean the reactor to s t a r t a new batch cycle.
Safety concerns are usually handled by adjusting the
design parameters Pd and/or loosening the bounds on the
actual manipulated inputs of the H/C system or replacing
the whole or part of the design by a system with higher
ability to cope with dangerous situations (return to step
6). For instance, if the reactor is a semibatch one and the
concern is thermal containment, the addition of a colder
stream to the reactor will increase the heat removal
capacity of the reactor.
Controllability of the designed system must also he
checked to ensure the quality and stability of its dynamic
response as well as ita ability in forcing the optimizing
variables tovary arbitrarily in thevicinity of their optimal
profiles.
Definition of Controllability: Consider the system

The overall system will be controllable, if the system of

eq 16 is controllable (in the sense of nonlinear systems


theory) for all y E fly.
A necessary condition for controllability of the system
of eq 16 is that each state variable of the above system
should be accessible (Morari and Stephanopoulos, 1980)
from an input variable ui. If one follows the straightforward intuitive procedure for the selection of uj's (given in
step 6), the above accessibility requirement can be met.
9. Formulation of Control Problem and Synthesis
of Control Law. Once 'u*(t)has been computed and the
outer system has been designed, the issue becomes how
to force 'u(t)to follow 'u*(t)(now that we know that it is
feasible and controllable). Although the outer system is
a feedback mechanism, it does not guarantee tracking of
a desirable %(t) unless we incorporate a controller. The
importance of the controller is further supported by the
presence of possible disturbances and modeling errors in
the outer system.
More generally, one can define a vector of controlled
outputs

where h(z,Pl) is a vect~rfunction, which is strongly


correlated to the performance indices, can be measured
or accurately estimated on-line, and is controllable by the
actualmanipulatedinputsu(t)inasystem theoreticsense,
the objective being to track the trajectories y*(t) =
h(z*(t),'u*(t)).Here, it is assumed that the vectorsy, u,
and 91 have the same number of components, e.&, m
components. The control problem is characterized by its
multiinput/multioutput (MIMO) nature (in general), its
nonstationary behavior (no steady state), the nonlinear
dynamic model (a linear time-invariant approximation is
very inaccurate because of lack of steady state and the
wide range of operation), the need for high servo and
regulatory performance in the presence of modeling errors
and disturbances, and the possibility of reactor destabilization during the operation. Traditionally, the main
concern in the operation of batch reactors has been the
possibility of reactor runaway in the case of exothermic
reactions. Temperature control (possibly isothermal
operation)has beenusedto try toovercome thisdifficulty.
Many strategies for temperature control have been developed, and some of them have been implemented
industrially [e.& standard PID contro1,self-tuningcontrol
(Hodgson and Clarke, 1984). the dual-mode control of
Shinskey and Weinstein (1965), predictivecontrol(Merkle
and Lee, 1989), and nonlinear control (Kravaris et al.,
1989)l.
In practice, many control problems of this nature in
batch reactors have been attacked by the use of open-loop
control, that is, (a) the computation of the manipulated
inputprofilesul*(t), ...,u,*(t) thatconespondsto'ul*(t),
...,'Urn*@)and then (b) open-loop implementation of the
trajectories u,*(t), u,*(t). A major problem with this
open-loop strategy is that it only provides satisfactory
tracking performance in the absence of process disturbances and modeling errors.
Remark 14 In the ease that an optimizing variable 9 1 j
cannot be measured or inferred accurately on-line, the
optimizing variable cannot be a controlled output wj). In
this case, one can use open-loop control to enforce W j W )
to the process under consideration. This open-loop
strategy involves (a) the computation of the manipulated
input profiles ul*(t),...,u,*(t) that correspond to W P W ,
'u,*(t) and then (b) open-loop implementation of the
trajectory uj*(t). As mentioned above, in many cases,

...,

...,

Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993 877


mainly because of the lack of reliable on-line information
on optimizing variables, open-loop control has been used
despite the fact that it provides poor tracking performance
in the presence of process disturbances and modeling
errors.
We propose the globally linearizing control (GLC)
methodology (Kravaris and Soroush, 1990) to be used for
the trajectory tracking problem (see Figure 8). The reason
for this choice is the ability of this control method to handle
the MIMO and the nonlinear nature of the control problem,
and to provide satisfactory servo and regulatory performance in the presence of modeling errors and disturbances.
Here for brevity, we avoid the details of the control
methodology, and give only the steps that one should follow
to derive the nonlinear control law. These steps are
I. Recast the model described by eqs 10 and 17 in the
following form:

where x = [z PC 7IT E R",f ( n ) ,gl(x), ..., grn(x), h(x) are


vector functions, m is number of the actual manipulated
inputs. This will always be possible because u ( t ) appears
linearly in all cases.
11. Calculate the relative orders rl, ...,rrn. The relative
order ri is the smallest integer for which

[Lg1L7-lhi(x)... LgmL7-'hi(x)1 [O

...

01

where
n

a(L;-lhi(x))

)=I

axj

L:hi(x)

fj(x),

111. Calculate the state feedback (for an input/output


decoupled response)

Figure 8. Block diagram of the controller.

% l ( y i * ( t ) - yi(t))dt, i = 1, ...,m (18)


TIi

where the PI biases Ub,(t)are calculated from (Soroush


and Kravaris, 1992a)

V. Tune the parameters Bik, K,,, and TI, [see e.g., the
tuning guidelines given in Soroush and Kravaris (1992a)l.
In the case that a state variable is not measured on-line
a state observer should be utilized (Daoutidis et al., 1991;
Soroush and Kravaris, 1992b).
10. Checking Servo and Regulatory Performance
and Robustness of the Controller. In this step, the
performance of the controller is examined through simulations, to ensure that the controller is able to (a) force
the system to track the optimal output yi*(t), (b) reject
the effect of disturbances, and (c) be insensitive to
modeling errors and unwanted changes in feed quality
and environmental conditions, accidental error in loading,
etc. Substep c is very crucial since batch reactors do not
have long periods of steady-state operation with the luxury
of time for on-line controller tuning, and exothermic
reactions have the potential for dangerous runaway. The
design engineer will often have to assess control system
robustness before actual implementation (Hugo, 1980).
This robustness evaluation can be done through simulations. Moreover, optimal operation of the reactor also
depends on how well the controller can perform in the
above sense. Unsatisfactory performanceof the controller
may result in serious deterioration of the product quality.
The satisfactory performance of the controller in the
senses (a) and (b) can be attained by proper tuning of the
controller parameters and then examination of its performance through simulations. For satisfactoryrobustness
of the controller, the controller should be sufficiently
detuned.
Conclusions

rl

I
J

where bij are scalar tunable parameters.


IV. Use m SISO PI controllers as the external controller
of the GLC:

We proposed an integrated methodology in which the


issues of design, modeling, dynamic optimization, and
control of batch reactors are investigated in a unified
framework. In this framework, the above tasks are
mathematically formulated, organized, and performed
interactively. More specifically,
1. A batch reactor model is systematically partitioned
into two systems, an inner system and an outer system,
which possessdistinct characteristics. The former includes
only intensive variables, whereas the latter includes both
intensive and extensive variables. A quality index is
formulated only in terms of intensive variables; therefore,
the outer system has no direct effect on the dynamic
optimization. The use of the inner system in the dynamic
optimization, instead of the overall model, facilitates the
dynamic optimization through the reaction of the model
order.

878 Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993

2. The interaction between the inner system and outer


system clearly illustrates the idea that, in every design,
dynamic effects should be accounted for and the issues of
design, optimization, and control should be confronted in
a single stage.
3. In the framework, notions of feasibility, flexibility,
safety, and controllability for batch processes were developed for the first time, and some criteria for their
assessment were presented.
4. The development of the reduced-order model (inner
system) and then the calculation of the optimal operating
conditions in terms of a subset of operating conditions
(optimizing variables), which are independent of equipment design, is in complete analogy with the calculation
of optimal operating conditions for continuous systems in
a step prior to the equipment design step.
Because of the systematic consideration of the entire
process dynamics in the operability analysis, the final
design of a reactor within the proposed framework should
guarantee feasibility, flexibility, safety, controllability, and
optimality.
This work addressed some problems involved in batch
design and operation. A number of open and unsolved
problems related to batch design and operation were
highlighted throughout this paper.

An Alternative Single-Step Approach


Alternatively, the dynamic optimization and design can
be done in a single step. This approach involves the
following.
(I) Solve the following dynamic optimization problem:

+
minimize J = K(z(tf),W(t,),T( tr),tf,z(0),W(O),~(O))
S,L(z(t),W(t),B(t),u(t))
dt
subject to

(overall system)
uj, 5 u j ( t )Iujh, j = 1,..., q

(manipulated input constraints)


h(z(t),u(t),q(t),t)5 0

g,,(z(O),~(O),v(O),O)

(state inequality Constraints)

= 0, go E R

(initial constraints)

g;(z(t,),U(tf),v(t,),t,)= 0, gf E R
(terminal constraints)
to calculate the optimal manipulated input profiles
ul*(t), ..., um*(t),the optimal loading conditions z*(O),
W*(O), arid ~*(0),
and the optimal terminal time tf*.
(11) In general, use open-loop control: varying the
manipulated inputs ul, ..., urnaccording to ul*(t),...,
u,*(t), respectively.

The Multistep Approach versus the Single-Step


Approach
The final results of the above single-step optimization
and design approach, in principle, will be the same as the

results obtained from our multistep method, provided that


there are no process disturbances and modeling errors.
The reason is the systematic consideration of the entire
process dynamics in the multistep approach, which uses
the overall process model in the form of two subsystems.
The advantages and disadvantages of the above traditional single-step optimization and open-loop control
approach compared to our multistep design and operation
method can be distinguished in the following aspects:
1. In the single-step optimization and design approach,
optimization and design are performed in one step;
therefore, no iteration is necessary.
2. The optimal input profiles calculated by the singlestep optimization and design approach have to be enforced
to the process under consideration, in general, by using
open-loop control. Therefore, in this case, process measurements are not used to safeguard the operation against
the process disturbances.
3. The multistep method systematically considers all
the process measurements to achievean efficient operation;
it relies as much as possible on the process measurements
to enforce optimal operating conditions to the reactor.
4. In the single-step optimization and design approach,
the performance index is minimized subject to the overall
process model, whereas in the multistep method it is
minimized subject to the inner system (a subset of the
overall process model). Therefore, in the multistep
method, the order of the dynamic model, which is used in
dynamic optimization, is lower than in the single-step
approach. Through the reduction of the order of the
model, which is used in dynamic optimization, one
encounters fewer numerical difficulties in the computation
of optimal operating profiles or possibly finds an analytical
solution to the optimization problem.
5. In the multistep method, important operation
variables (optimizing variables), which characterize the
process dynamics, are systematically distinguished. This
also provides insight into the nature of the process
dynamics.
6. The theoretical developments in the multistep
method are in complete analogy with the computation of
optimal operating conditions (which are usually independent of design) in a step prior to the equipment design
step.
7. In the single-step method, the feasibility of an optimal
operation can be guaranteed by imposing upper and/or
lower limits on the manipulated inputs in the dynamic
optimization.
8. In the single-step method, one may be able to use the
on-line dynamic optimization method of Palanki et al.
(1992).
If there is no process variable that can be measured, one
has to use open-loop control to enforce optimal operating
profiies (calculated by the multistep method) to the procesa
under consideration. In this case, by using the one-step
approach one can avoid the iterations of the multistep
method at the expense of solving a higher dimensional
optimization problem. Another case, in which one may
prefer to use the single-step approach, is the case in which
we have a low-order outer system.

Acknowledgment
Financial support from the National ScienceFoundation
through Grant CTS-8912836 is gratefully acknowledged.
Nomenclature
A = species A (reactant)
A = heat-transfer area of H/C equipment, m2

Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993 879


c = heat capacity of reacting mixture, kJ kgl K-l
Cj = concentration of species "j" kgmol m-3
Cj,, = concentration of species y" in its inlet stream, kgmol
m-3
Cp*(tf)= concentration of product under optimal operation
at time t = tf, kgmol m-3
cw = heat capacity of water, kJ kgl K-l
El,& = activation energies for classical reactions in Table 11,
kJ kgmol-1
91(z,'U) = vector field of inner system (eq 7)
~ O ( Z , ' U , ? ) & ~ d ) = vector field of outer system (eq 9)
F, = inlet flow rate of cooling water, m3 s-l
F,,,,, = maximum inlet flow rate of cooling water, m3 s-1
Fj = inlet flow rate of species "7,m3 s-1
g&(O),O) = vector of initial constraints (in optimization
problem (eq 8))
gf(z(tf),tf)= vector of terminal constraints (in optimization
problem (eq 8))
fi(z(t),t) = vector of state inequality Constraints (in defining
optimization problem 8)
h(z,'U)= h(x) = output map in control problem
H = Hamiltonian in dynamic optimization
J = optimization index
K,,= gain of the ith external controller
K(z(tf),tf,z(O))= function of terminal conditions to be
minimized (in defining 4
L(z(t),'U(t))= function whose integral should be minimized
(in defining J)
m, = overall effective mass of H/C system, kg
Mp = molecular weight of product, kg kgmol-l
P = desired product
P, = vector of tuning parameters of the controller
Pd = vector of adjustable designparameters (e.g., heat-transfer
area)
P = power input to heater, kJ s-1
P
, = maximum power of heater, kJ s-1
Q ( t ) = overall rate of heat transfer into reactor by H/C
equipment, kJ 9-1
ri = relative order of ith output
R = universal gas constant, kJ kgmol-l K-l
R, = overall rate of production of species "j" kgmol m-3 s-l
RH = overall rate of heat generation by reactions, kJ m-3 s-1
T = reactor temperature, K
t = time, s
tf = batch time, s
tl, = time required for loading and startup, s
t,, = time required for shutdown and cleaning, s
T,, = temperature of inlet cooling water, K
Ti, = temperature of inlet stream, K
Tj= jacket temperature, K
u = vector of actual manipulated inputs
u, = jth actual manipulated input
U = overall heat-transfer coefficient, kJ m-2 s-1 K-l
W ( t ) = vector of optimizing variables
Vi($)
= jth component of vector of optimizing variables
' U j , = lower bound of jth optimizing variable
'U,h = upper bound of jth optimizing variable
'Uj*(t) = optimal profile of jth optimizing variable
u = external input vector of the linear closed-loop system
V = volume of the reacting mixture, m3
Vo = initial volume of the reacting mixture, m3
V,= reactor volume (size), m3
W = undesired product
x = vector of state variables of control problem
y = vector of output variables of control problem
yi = ith output variable of control problem
yi* = optimal profile of the ith output variable
z = vector of remaining operation variables which are not
optimizing variables
z * ( t ) = optimal profile of z
Greek Letters

a ,= flexibility margin for manipulated input ui(t)


av,= vessel size overdesign margin

& = tunable parameters of the input/output linearized system


Pk

= constant parameters in dynamic optimization (eq A.3)

q = vector of the states of the H/C and feeding systems (e.g.,

jacket temperature) as well as dynamicsneglected in model


I (e.g., volume)
y = vector of the uncertain parameters in the inner and outer
systems
71= vector of the uncertain parameters in the inner system
yo = vector of the uncertain parameters in the outer system
y ~=
n nominal value of vector of the uncertain parameters in
the inner system
yo: = nominal value of vector of the uncertain parameters
in the outer system
6, = vector of the deviations of the uncertain parameters in
the inner and outer systems from their nominal values
,a = vector of the deviations of the uncertain parameters in
the inner system from their nominal values
6, = vector of the deviations of the uncertain parameters in
the outer system from their nominal values
p = overall deneity of reacting mixture, kg m-3
pw = density of the cooling water, kg m-3
uk = constant parameters in dynamic optimization (eq A.2)
\k = static-state feedback in the GLC structure
TI, = integral time constant of the ith external controller
M a t h Symbols
A = is defined by
E = belongs to
R = real time
Lfhi(x)= Lie derivative of the scalar field
to the vector field f

with respect

Lf,hi(x)= Izth-order Lie derivative of the scalar field hi(x)


with respect to the vector field f
L&fk-'hi(x) = Lie derivative of the scalar field Lfk-'hi(x)with
respect to the vector field g
Acronyms
BIB0 = bounded input/bounded output
GLC = globally linearizing control
H/C = heating/cooling system
MIMO = multiinput/multioutput
PDI = polydispersity index
PI = proportional integral
SISO = single input/single output

Appendix: Necessary Conditions for Optimality


The minimum principle of Pontryagin (Pontryagin,
1962) states that the admissible profiles of the optimizing

variables e*@),
which minimize J, is the global (absolute)
minimizer of Hamiltonian H which is defined by (for the
problem of eq 8):

H(z(t),h(t),V(t)A L(z(t),W(t))+ [X(t)lT3,(z(t),e(t)))


where X ( t ) E R p , which is called the vector of costates or
adjoint variables, and is solution of the ordinary differential
equation

with the initial and final conditions (so-called transversality conditions) of

880 Ind. Eng. Chem. Res., Vol. 32, No. 5, 1993

and

where uk's and oh's are constant parameters, and the initial
and terminal constraints are
These initial and terminal constraints and the above
transversality conditions eqs A.2-A.4 provide 2p conditions
for the solution of the dynamic optimization problem of
eq 8. Based on the minimum principle of Pontryagin
(Pontryagin, 1962)' a first-order necessary condition for
optimality is that the derivative of the Hamiltonian H
with respect to the optimizing variables ?
must
l be zero
along the optimal trajectory,

for the cases when Ui*(t) # iCi1 and "Ui*(t)# Uih, for all
t E [O,tfl. Generally,the optimal profiles of the optimizing
variables Vi*@)must satisfy the inequality:

H(z* ( t ),A* ( t ),u*( t ) )5 H(z* W , A * (t),W (O),


for all admissible profiles U ( t )and all t f [O,t,I (A.6)
where z * ( t ) , A*@), and "U*(t) represent the optimal

trajectories. Equation A.6 is the basic result of the


minimum principle. Thus, W * ( t )is the global minimizer
ofH=H(z(t),h(t),U(t)). ThesetofeqsA.1-A.5, theinner
system, and the state and control inequality constraints
are called the necessary conditions for optimality.
Numerical Methods for Solution of Necessary
Conditions. In order to compute the solution of the
optimal control problem of eq 8, one may need to use a
numerical technique. Gradient and shooting methods
[e.g., Bryson and Ho, 1975;Keller, 19681are two numerical
methods which are commonly used in obtaining the
numerical solution of dynamic optimization problems.
These two methods will be used in the case study of part
2.

Literature Cited
Anderson, E. Specialty Chemicals are Mixed Bag for Growth. Chem.
Eng. News 1984,June 4,20-25.
Birewar, D. B.; Grossmann, I. E. Incorporating Scheduling in the
Optimal Design of Multiproduct Batch Plants. Comput. Chem.
Eng. 1989,13,141-161.
Bryson, A. E.; Ho, Yu-Chi. Applied Optimal Control; Hemisphere:
New York, 1975;pp 216-232.
Daoutidis, P.; Soroush, M.; Kravaris, C. Dynamic Output Feedback
Control of Multivariable Nonlinear Processes. Presented at the
AIChE Annual Meeting, Los Angeles, CA, 1991;paper no. 149b.
Faqir, N. M.; Karimi, I. F. Optimal Design of Batch Plants with
Single Production Routes. Znd. Eng. Chem. Res. 1989,28,11911202.
Fisher, W. R.; Doherty, M. F.; Douglas, J. M. The Interface between
Design and Control. 1. Process Controllability. Znd. Eng. Chem.
Res. 1988a,27,597-605.
Fisher, W. R.;Doherty, M. F.; Douglas, J. M. The Interface between
Design and Control. 2. Process Operability. Znd. Eng. Chem.
Res. 1988b,27,606-611.
Fisher, W. R.;Doherty, M. F.; Douglas, J. M. The Interface between
Design and Control. 3. Selecting a Set of Controlled Variables.
Znd. Eng. Chem. Res. 1988c,27,612-615.

Fisher, W. R.; Douglas, J. M. Analysis of Process Operability at the


Preliminary Design Stage. Comput. Chem. Eng. 1985,9,499515.
Floudas, C. A.; Grossmann,I. E. Synthesis of Flexible Heat Exchanger
Networks with Uncertain Flowrates and Temperature. Comput.
Chem. Eng. 1987,11,319-336.
Grossmann, I. E.; Halmane, K. P.; Swaney, R. E. Optimization
strategies for Flexible Chemical Processes. Comput. Chem. Eng.
1983,7,439-462.
Grossmann, I. E.; Morari, M. Operability, Resiliency and Process
Design Objectives for a Changing World. Proceedings of the
Second International Conference on Foundations of ComputerAided Process Design; Westerberg, A. W., Chien, H. H., Eds.;
CACHE Elsevier: New York, 1983;pp 931-1030.
Hirschorn, R. M. Invertibility of Multivariable Nonlinear Control
Systems. ZEEE Trans. Automat. Control 1979,AC-24,855-865.
Hodgson, A. J. F.; Clarke, D. W. Self-Tuning Applied to Batch
Reactors. Proc. ZEE Vacation Sch. Znd. Digital Control Syst.
1984,198-199.
Horak, J.; Jiracek, F. Adaptive Nonisothermal Computer Control of
a Batch Reactor. Collect. Czech. Chem. Commun. 1983,48,449461.
Hugo, P. Anfahr and Betriebsverhalten von Exothermen Batch
Prozessen. Chem. Zng. Tech. 1980,52 (9),761-772.
Juba, M. R.; Hamer, J. W. Progress and Challenges in Batch Process
Control. Chemical Process Control-CPCZZfiMorari, M., McAvoy,
T. J. Eds.; CACHE Elsevier; New York, 1986;pp 139-183.
Karimi, I. A.; Modi, A. K. Design of Multiproduct Batch Processes
with Finite Intermediate Storage. Comput. Chem. Eng. 1989,13,
127-131.
Keller, H. B. "Numerical Methods for Two-point Boundary Value
Problems"; Blaisdell Co.: Waltham, 1968; pp 54-71.
Kelley, H. J. A Transformation Approach to Singular Subarca in
Optimal Trajectory and ControlProblems. SZAMJ. Control 1964,
2, 234-245.
Kiparissides, C.; Shah, S. L. Self-tuning and Stable Adaptive Control
of a Batch Polymerization Reactor. Automatica 1983,19,225235.
Kravaris, C.; Soroush, M. Synthesis of Multivariable Nonlinear
Controllers by Input/Output Linearization. AZChE J. 1990,36,
249-264.
Kravaris, C.; Wright, R. A.; Carrier, J. F. Nonlinear Controllers for
Trajectory Tracking in Batch Processes. Comput. Chem. Eng.
1989,13,73-82.
Lang, Y. D.; Biegler, L. T.; Grossmann, I. E. Simultaneous Optimization and Heat Integration With Process Simulators. Comput.
Chem. Eng. 1988,4,311-327.
Leitmann, G. Topics in Optimization, 1st ed.; Academic Press: New
York, 1967;pp 206-207.
Liptak, B. G. Controlling and Optimizing ChemicalReactors. Chem.
Eng. 1986,May, 69-81.
Malik, R. K.; Hughes, R. R. Optimal Design of Flexible Chemical
Processes. Comput. Chem. Eng. 1979,3,473-485.
Malone, M. F.; McKenna, T. F. Process design for Polymer
Production. In Foundations of Computer-Aided Process Design;
Siirola, J. J., Grossmann, I. E., Stephanopoulos, G., Us.;CACHE
Elsevier: New York, 1990; pp 469-483.
Marroquin, G.; Luyben, W. L. Practical Control Studies of Batch
Reactors Using Realistic Mathematical Models. Chem. Eng. Sci.
1973,28,993-1003.
Merkle, Jr., J. E.; Lee, W.-K. Adaptive Strategies for Automatic
Startup and Temperature Control of a Batch Process. Comput.
Chem. Eng. 1989,13,87-103.
Morari, M.; Stephanopoulos, G. Studies in the Synthesis of Control
Structures for Chemical Processes. Part II: Structural Aspect
and the Synthesis of AlternativeFeasible ControlSchemes. AIChE
J. 1980,26,232-246.
Nunes, R. W.; Martin, J. R.; Johnson, J. F. Influence of Molecular
Weight and Molecular Weight Distribution on Mechanical Properties of Polymers. Polym. Eng. Sci. 1982,4,205-228.
Oi, K.;Itoh, H.; Muchi, I. Improvement of Operational Flexibility
of Batch Units by Design Margin. Comput. Chem. Eng. 1979,3,
177-184.
Palanki, S.;Kravaris, C.; Wang, H. Synthesis of State Feedback Laws
for End-Point Optimization in Batch Reactors. Chem. Eng. Sci.
1992,48,135-152.
Palazoglu, A.; Manousiouthakis, B.; Arkun, Y. Design of Chemical
Plants with Improved Dynamic Operability in an Environment of
Uncertainty. Znd. Eng. Chem. Res. 1985,24,802-813.

Ind. Eng. Chem. Res., Vol. 32,No.5, 1993 881


Palazoglu, A.; Arkun, Y. Design of Chemical Planta with Multiregime
Capabilities and Robust Dynamic Operability Characteristics.
Comput. Chem. Eng. 1987,11,205-216.
Pistikopoulos, E. N.; Grossmann, I. E. Optimal Retrofit Design for
Improving Process Flexibility in Linear Systems. Comput. Chem.
Eng. 1988,12,719-731.
Pontryagin, L. S.;Boltyanskii, V.;Gamkrelidge, R.; Mischenko, E.
The Mathematical Theory of Optimal Processes; Interscience:
New York, 1962;pp 153-188.
Ray, W. H.Current Problems in Polymerization Reaction Engineering; ACS Symposium Series 226;American Chemical Society: Washington, DC, 1983;pp 101-110.
Rippin, D. W. Simulation of Single- and Multiproduct Batch Chemical
Planta for Optimal Design and Operation. Comput. Chem. Eng.
1983,7, 137-156.
Seider, W. D.; Brengel, D. D.; Widagdo, S. Nonlinear Analysis in
Process Design. AIChE J. 1991,37,1-37.
Shinskey, F. G.;Weinstein, J. L. A Dual Mode Controller System for
a Batch Exothermic Reactor. Twentieth Annual ZSA Conference,
Loa Angeles, CA, Oct 4-7;ISA Pittaburgh, PA, 1965.
Soroush,M.; Kravaris,C. Nonlinear Control of a Batch Polymerization
Reactor: An Experimental Study. AIChE J. 1992a,38, 14291448.

Soroush, M.; Kravaris, C. Multivariable Nonlinear Control of a


Continuous Polymerization Reactor. Proc. ACC 1992b,607-614.
Stephanopoulos, G. Synthesis of Control Systems for Chemical
Plants: A Challenge for Creativity. Comput. Chem. Eng. 1983,
7,331-365.
Thomas, I. M.; Kiparissides, C. Computation of the Near-Optimal
Temperature and Initiator Policies for a Batch Polymerization
Reactor. Can. J. Chem. Eng. 1984,62,284-291.
Tsoukas, A.; Tirrell, M.; Stephanopoulos, G. Multiobjective Dynamic
Optimization of Semibatch Copolymerization Reactors. Chem.
Eng. Sci. 1982,37,1785-1795.
Wellons, M. C.; Reklaitis, G. V. The Design of Multiproduct Batch
Planta Under UncertaintywithStaged Expansion. Comput.Chem.
Eng. 1989,13,115-131.
Wu, G. Z. A.; Denton, L. A.; Laurence, R. L. Batch Polymerization
Properties in Polymerization of Styrene-Optimal Temperature
Histories. Polym. Eng. Sci. 1982,22,1-8.

Received for review June 5, 1992


Revised manuscript received January 12, 1993
Accepted January 25, 1993

Potrebbero piacerti anche