Вы находитесь на странице: 1из 11

Journal of Process Control 20 (2010) 441451

Contents lists available at ScienceDirect

Journal of Process Control


journal homepage: www.elsevier.com/locate/jprocont

Feedback control and optimization for the production


of commercial fuels by blending
M. Chbre a, Y. Creff b, N. Petit c,*
a
Advanced Process Control Department, Technical Direction TOTAL Rening and Marketing, Le Havre, France
b
Technology Division, Control Department, IFP Lyon, France
c
Centre Automatique et Systmes, Unit Mathmatiques et Systmes, MINES ParisTech, France

a r t i c l e i n f o a b s t r a c t

Article history: This paper presents a control algorithm for blending systems. Such systems are used in rening to pro-
Received 23 February 2009 duce mixtures having specied properties from several components. The underlying control problem is
Received in revised form 6 December 2009 multi-variable, with constraints on the inputs and outputs, and involves large uncertainties. To address
Accepted 31 January 2010
this complexity, a constrained optimization problem is formulated, while the uncertainties are treated
in closed-loop by an estimator of the components properties. Besides a theoretical study of the main algo-
rithm and a study of convergence, the paper presents numerous technical details that are needed to solve
Keywords:
blending problems as they appear in rening operations. Among them are a general lack of measure-
Blending
Commercial fuel
ments, variable delays, measurement synchronization, infeasibilities management, hydraulic constraints,
Feedback control and pre-blends. Industrial case-studies are provided and stress the relevance of the approach.
Optimization 2010 Elsevier Ltd. All rights reserved.
Constraints
Partial measurement

1. Introduction on-line analysers located downstream of the blender. It is worth


mentioning that, usually, only downstream measurements are
The main contribution of this paper is a new method to control considered. The main reason for this choice is to minimize the
blending systems. These systems are used to produce a mixture number, and thus the cost, of required analysers. This point will
having some desired properties. This control problem is very com- be illustrated in Section 2. Basic strategies use single-variable con-
mon in reneries. The method we propose can be used in various trollers (mostly integral effect) in a single-input single-output
situations where non-reactive components are blended and line- modeling approach. A priori estimates of the components proper-
arly impact on the properties of the blend, provided nonlinear ties are used to assign the feedback loops. Following a common
properties transformations are used (e.g. log scaling). practice [23,9], we design a multi-variable strategy to improve per-
The proposed method has the advantage of dealing with uncer- formance. As will appear, we propose a genuine approach in which
tainties of the components properties. This robustness is of partic- measurements are used to update knowledge on the components
ular interest when time-varying upstream plants are considered. properties.
These upstream units produce components with time-varying, Another point of interest, in real applications, is the constraints.
unmeasured, unknown or poorly known properties. Constraints on the blend properties arise from production require-
From an application point of view, the blending objectives are ments. Others include ows limitations and pumping constraints.
to produce a mixture with some prescribed properties. For Simple rules can be used to take these into account one by one.
gasoline, diesel or fuel production, these can be the octane number, More generally, in our approach, it is also possible to take them
sulphur concentration, Reid Vapor Pressure among others. Minimi- into account: we solve a constrained optimization problem.
zation of production costs is also an important topic. The starting point of our study originates in the late 70s when,
Over the past 40 years, blending control systems have attracted although commercial blending control packages were already
much attention (see [18,5,10,17,22]). There has been signicant re- available, the problem of robustness against uncertainties on the
search effort to propose closed-loop strategies using signals from properties of components had not received any satisfactory an-
swer. Various companies and teams of researchers have been in-
volved since then. TOTAL has inherited a long experience in
* Corresponding author. Tel.: +33 140 51 9330; fax: +33 140 51 9165. blending control, which can be traced back to the early 80s and
E-mail address: nicolas.petit@mines-paristech.fr (N. Petit). the rst on line applications of the Anamel software. In the late

0959-1524/$ - see front matter 2010 Elsevier Ltd. All rights reserved.
doi:10.1016/j.jprocont.2010.01.008
442 M. Chbre et al. / Journal of Process Control 20 (2010) 441451

90s, it was decided to address the robustness problem: the result 2. Process description
of this work is the development of the latest version of Anamel [6],
which is now being used on 17 blenders located in 6 reneries In this section, we present the blending process which is used
within the TOTAL group and is presented here. to obtain nished or semi-nished products from rened compo-
The main algorithm of this latest version of Anamel (in service nents or upstream units ows. All the key elements in the ow-
since 2001) consists of two distinct, though connected, layers: an sheet are detailed. We describe the available sensors and actua-
optimization problem and a feedback loop with an observer. The tors. As will appear, the main operational problem is that the
optimization problem permits to account for various constraints components properties are poorly known and usually not mea-
and production cost minimization. The observer is used to partially sured on line. In fact, only the blend properties are analyzed on
estimate the components properties in a spirit of adaptive control line.
methods. Both layers are required to provide convergence and
guarantee a successful blend. Other approaches based on estimates
of the components properties perform a preliminary or in-line full 2.1. Obtaining semi-nished or nished products from rened
identication of these properties (with laboratory sampling). In components
particular, one can refer to [18] for an estimation procedure per-
formed before the recipe can be updated. On the other hand, one In reneries, semi-nished or nished products (in particular
can refer to [10] for a strategy using direct in-line measurements commercial fuels) are not directly extracted as parts of crude
of the components properties. Interestingly, to provide conver- oils, but are produced by blending several components. These
gence of the blend properties to a prescribed target, Anamels ob- components are transformed petroleum cuts, resulting from
server needs not to converge to the actual unknown values of the preliminary separations in atmospheric and vacuum columns.
components properties. This might be the case though, but may Mixing the various components with the right proportions pro-
not be so common in practice. Most of the time, the blend target vides the nal blend, with properties required by the m speci-
is reached before accurate estimates of the components properties cations of interest.
are obtained. This is not a concern, because blend properties are A typical blending process is pictured in Fig. 1. Several compo-
denitely the primary target, and should not be surprising to any- nents (n) are pumped to a blender (also referred to as static mixer)
one familiar with adaptive control [15,2]. Interestingly, this behav- from intermediate storage tanks or pipes (run down). Downstream
ior can be analyzed using LaSalles invariance principle (see e.g. the blender, the product is either stored in a nal product tank, or
[16]) for the underlying dynamical system. routed to another rening unit, or shipped off the renery.
The paper is organized as follows. In Section 2, we present the Several elements appear in the ow-sheet. These are set during
blending process, the actuators and the available sensors. In the line-up procedure. Pipes connect tanks outlets to the blender,
Section 3, we expose the control problem. We introduce the with the possibility of pre-blends. This possibility, pictured in
notations to be used throughout the paper. In Section 4, we detail Fig. 2, is used to reduce the total length of pipes. Additionally, a
the solution and prove its theoretical convergence. Numerous ushing tank and several product tanks can be found at the blender
important practical issues are discussed. We expose solutions for outlet. They enable alternative production modes such as se-
them. Finally, industrial results are presented and discussed in quenced batch (also called rundown blending which is frequent
Section 5, while we draw some conclusions in Section 6. when very large productions are considered).

Component 3

Component 2

Component 4

Component 1

Component 5

Downstream unit
Blender
Analysers
Product

Storage tank

Direct shipping

Fig. 1. Typical blending process. Components from storage tanks are pumped to a blender to be stored in a nal product tank.
M. Chbre et al. / Journal of Process Control 20 (2010) 441451 443

Downstream unit

Component 3

Component 2

Component 4

Volume V1

Volume V2

Component 1
Downstream unit
Component 5
Componen

Downstream unit
Blender

Analysers
Product

Storage tank

Direct shipping

Fig. 2. Typical blending process with pre-blends.

2.2. Actuators and sensors sidered, pre-blends consist of several pipes merging at the same
location (see again Fig. 2).
The blend properties can be controlled with the n blender In this paper, the blending models are assumed to be linear. This
motorized inlet valves. Given a blender outlet total volume ow assumption is not restrictive, because, up to some change of vari-
rate F, the valves openings dene a control vector consisting of n ables, numerous properties actually satisfy this linearity assump-
volume ratios u u1 ; . . . ; un T , referred to as the recipe. Low-level tion. Therefore, preliminary vector coordinate wise non linear
ow controllers (named ratio control system) guarantee that this mappings can be used to validate this assumption. In particular,
vector tracks any reference signal. at steady-state, the following relation holds
Let us now detail the sensors system. For cost and reliability
y Bu 1
reasons (sensors drift over time), the components properties are
generally not measured on line. Yet, there exist large uncertainties Balance equations can be considered for non steady cases.
on their values. Among the sources of uncertainty are the possible Several constraints on the recipe u need to be considered. For
drifts in the operation of upstream units that may be inaccurately mathematical consistency, the recipe vector u coordinates must
P
controlled during some periods of time, and slicing phenomena in all lie in [0,1] and satisfy ni1 ui 1. From an operational and eco-
storage tanks. From time to time, laboratory data provide samples nomical point of view, u should remain close to a recipe of interest
measurements. These measurements have a very low time resolu- uopt . Further, hydraulic constraints (physical limitations of the
tion, and can also be inaccurate and delayed. The main culprits are pumps and pipes) and components availability impose upper and
the semi-manual denition of the time stamp, the location of the lower bounds on the coordinates ui ; i 1; . . . ; n.
sampling point, and faulty data input in the laboratory information Various constraints on the blend properties y need to be consid-
system. The most interesting information is actually found down- ered as well. A reference yr and/or upper and lower bounds are
stream the blender. A limited number of analysers are installed associated to each coordinate of y. From a practical point of view,
at the blender outlet. With these, the m properties of the blend these bounds can be considered as hard bounds (related to com-
are measured on line. Usually, m is larger than n. Yet, depending mercial specications) or soft bounds, which can be violated at
on the type of sampling loop and the involved measurement tech- the expense of prot losses (also referred to as give-away).
nology, these measurements can suffer from large and variable The matrix of the components properties B is poorly known. Yet,
delays. b an initial estimate for it (most frequently given by laboratory
B
samples) and some on-line blend properties measurements are
available.
3. Control problem Before we present our control solution and discuss implementa-
tion issues, let us summarize our goal.
The primary goal of any blending system is to produce a mix- Problem 1. Given B b an initial estimate of B, given real-time
ture having some specied properties. In other words, the blending measurements of the output blend properties y, nd a closed-loop
system has to nd a n-dimensional recipe u such that the m prop- control scheme, acting on u, such that y converges to yr and
erties of the mixture satisfy some objective. remains between pre-specied bounds. At all times, u must satisfy
The instantaneous blend properties are considered as the out- the operational constraints, and preferably be close to a recipe of
put of the system. They are denoted by the m-dimensional vector interest uopt .
y. Alternatively, if a product tank is considered, it may be desired
to control the average (m-dimensional) properties z of this tank.
The components properties are grouped in a m  n matrix B. 4. Proposed solution
The two ends of the ow-sheet are the components inlets, and
the blender. Flows through the pipes of the ow-sheet are assumed To solve the control problem discussed in Section 3, we propose
to satisfy a one dimensional plug-ow model. When they are con- a twofold approach. The constraints and the various control
444 M. Chbre et al. / Journal of Process Control 20 (2010) 441451

objectives are formulated in an optimization problem. Simulta- stant, is updated as follows. Considering its j
th b j , the continu-
row B
neously, an observer reconstructs an estimate of the components ous-time update law is
properties. These two parts of the control law closely interact. Un- bT
dB
der some mild simplifying assumptions, theoretical convergence of j bju  y
bj Hu B 3
j
this strategy is studied. Interestingly, the reconstructed compo-
dt
nents properties need not to converge to their actual values to where H is the following diagonal scaling matrix (u being a refer-
guarantee a successful blend. ence recipe, e.g. a constant value close to uopt )
0 1
1
1
u
0
4.1. Optimization problem
1 BB ..
C
C
H B . C
b an estimate of the components k @
ku A
It is considered here, that B 1
properties matrix B is given. Later, in Section 4.2 this matrix will 0 n
u

be updated. and bj is a strictly positive parameter. This update law is analogous


As discussed in Section 3, not every blend property needs to to those found in adaptive control [15,2]. Considering the output
match a specied reference. Some of them are simply asked to re- relation (1), the essential idea is the comparison of the observed
main within some given bounds. Values of blend properties associ- system response Bu with the model output Bu. b
ated to specied references yr dimyr r 6 m can be estimated, Finally, our feedback control law is designed as follows.
using (1), through an r  n sub-matrix B b Typically, r ranges
b r of B.
Solution to problem 1(Simple version) Sequentially, solve the
from 2 to 5, while n ranges from 5 to 10. Similarly, the blend prop- optimization problem (2) and update the estimate of the compo-
erties associated to hard and soft bounds can be computed using nents properties Bb when new measurements are available. The dis-
the sub-matrices B b h and Bb s . Lower and upper bounds vector on
crete-time update is the sampled version of the continuous-time
the hard and soft constraints are noted yh;lb ; yh;ub ; ys;lb , and ys;ub , update law (3).
respectively. Vector lower and upper bounds on the control vector We now prove convergence of this strategy under the assump-
are noted ulb and uub . Taking into account the consistency equation tion that the optimization problem (2) is always feasible, i.e. ad-
Pn opt
i1 ui 1, the recipe of interest u , and, most importantly, the mits a (necessarily unique because of strict convexity) solution.
blending objectives, we formulate the control problem under the
form of the following optimization problem
4.3. Convergence
min ku  uopt k2Q
8u Solution 1 combines an on-line parameter estimator (3) and a
>
> 0 6 ulb 6 u 6 uub 6 1 control law which is dened as the solution of the optimization
> Pn
>
>
> u 1 problem (2). From this description, it can be viewed as an (indirect)
>
< i1 i 2
adaptive controller [15]. As will now appear, B b is continuously ad-
b r u yr
B
>
> b
justed so that But approaches But as t ! 1. Yet, no particular
>
> h;lb b h u 6 yh;ub
>y 6 B
> effort is made to design the input ut so that B b converges toward
>
: s;lb b s
y 6 B u 6 ys;ub B, as would normally be desired in an on-line parameter estimation
technique. This is not one of the objectives, as it could cause large
where a symmetric denite matrix Q is used to weight the Euclidian
variations of the input signal ut (e.g. to satisfy some persistency
norm, i.e. kuk2Q uT Qu. This matrix is chosen to promote or to
of excitation property [15,3,16]).
penalize the use of some components (further details are given in
Consider, for property j 1; . . . ; m, the scalar function (Lyapu-
Section 4.7.2). The optimization problem (2) is a quadratic program-
nov function candidate)
ming problem. It can be handled with various software packages
1
b j B b j  B j T
b j  Bj H1 B
such as IMSL [14]. Its solution gives an open-loop control u. W B
2
4.2. Feedback This function is strictly positive away from Bj , where it equals 0. Its
time-derivative along the trajectories of (3) is
As mentioned earlier, on-line blend properties measurements
dW b b j u  y 2 6 0
can be used to update the open-loop control law. These measure- B j bj B j
dt
ments are usually used to monitor the blend, and we wish to take
them into account under the form of a feedback into the optimiza- Therefore, W B b j is a Lyapunov function for system (3) (see [16]).
tion problem (2). From LaSalles invariance principle, for any initial condition,
In the presented context of linear multi-variable control, a clas- the solution of system (3), B b j t, converges when t ! 1 towards
sic way to proceed (e.g. in Model Predictive Control [11,13] or the largest invariant set of (3), included in the subset
Internal Model Control [12]), is to introduce an integral term fed b j s:t: dW=dt B
fB b j 0g. Therefore, B b j t converges in a way such
by the difference between the measurement and the setpoint, or that Bj u B b j u. Yet, by denition of the optimal control problem
a lter of the difference between the measurement and the predic- (2), which is assumed to possess a solution (which is necessarily un-
tion of a model. Such classic procedures fail here. A main reason is ique), B b j u satises the blend objectives. Therefore, so does
the equality constraint on the control vector, which reduces the yj t Bj ut, in the limit as t ! 1. The same reasoning applies
number of free control parameters by one. The actual gains of to all the blend properties. In summary, the blend is successful, even
the n  1 remaining control variables are in fact unknown, be- though B b j does not converge to Bj . In details, we have
cause they consist of differences between entries of the B matrix b r tut yr ;
lim B
which are also unknown. For sake of illustration, a very simple test t!1
case is given in Appendix A. Therefore, another approach must be b h tut 6 yh;ub ;
yh;lb 6 lim B
considered. t!1

First, we relate the measurements, which are assumed to be b s tut 6 ys;ub


ys;lb 6 lim B
t!1
done continuously, to the current values of the control variable
by y Bu. Then, the estimation Bb of B, which is assumed to be con- b B might not hold.
while the equality limt!1 B
M. Chbre et al. / Journal of Process Control 20 (2010) 441451 445

4.4. Handling infeasibility with cascaded optimization problems  Step 3: Soft constraints management. Lower and upper bounds on
u are considered, along with the consistency equation
Pn
The (preliminary) solution to problem 1 we propose converges i1 ui 1. The previously updated hard constraints are still
provided that the optimization problem (2) is always feasible. Cer- considered, as well as the updated references that are now
tainly, it is a reasonable assumption to require that the blend is fea- achievable. Soft constraints are substituted with (positive) slack
sible using the components at our disposal. Yet, one should notice variables s appearing in the modied objective function. The tar-
that the optimization problem is not written in terms of the com- get recipe uopt does not appear in the formulation. This problem
ponents properties matrix B, but in terms of its estimate B. b Thus, is always feasible. Its solution u is applied to the blending pro-
the feasibility assumption bears on an estimate, which, as it cess. The resolution is achieved sequentially. The typical prob-
changes over time, might reveal troublesome. lem solved at iteration k 1 is given by
For real-time applications, it is required that the control algo-
rithm always provides an answer, even a partly disappointing min k Bb s u s  ys;ub k2
u;s k1 k1
one when it seems impossible to satisfy every control objective. 8 lb ub
When the optimization problem (2) is not feasible, it remains pos- >
> 06u 6u6u 61
>
>
sible to solve easier problems, with a smaller number of con- >
> sP0
>
>
straints. As already discussed, the output constraints are sorted >
> P n
>
< ui 1
with respect to their relative importance. This ranking is a common i1
formulation of blending operators. When the convex optimization >
> b h u 6 yhach;ub
>
> B
problem (2) is not feasible, the constraints can be relaxed accord- >
>
> br
>
ing to the following procedure (see Appendix B for details) >
> B u yrach
>
: bs
B 1k u 6 ysach;ub
1k
 Step 1: Hard constraints management. Lower and upper bounds
where B b s and ys;ub correspond to the soft constraints treated at
on u are considered, along with the consistency equation k1 k1
Pn b s correspond to the soft constraints relaxed at
iteration k 1; B
i1 ui 1. The equality constraints for the references and the 1k
inequality constraints corresponding to the soft constraints are iterations 1 to k, the values of which being given by ysach;ub
1k ; yrach
totally forgotten. Hard constraints are substituted with (posi- correspond to the achievable references determined in Step 2.
tive) slack variables s appearing in the modied objective func- Only maximum bounds have been considered here to simplify
tion. These slack variables are used as penalty functions to be the formulation.
minimized. The target recipe uopt does not appear in this new
objective function. This problem is always feasible. Its solution In practice, hard and soft constraints are subdivided into sets of
u ; s gives achievable values for the hard constraints.The res- decreasing priorities or ranks. Steps (1) and (3) are treated itera-
olution is achieved sequentially. The typical problem solved at tively, each iteration involving a set of constraints with equal pri-
iteration k 1 is given by orities. In summary, these steps always produce a recipe u which
satises as many of the constraints appearing in the original opti-
min k B b h u s  yh;ub k2 mization problem as possible. This is interesting because it is con-
u;s k1 k1
8 sistent with the requirements of real-time control.
lb ub
>
> 0 6 u 6 u 6 u 61
>
>
>
>
<s P 0
P n 4.5. Accounting for delays
>
> ui 1
>
> i1
>
> As had appeared earlier (in Section 4.3), the feedback law uses
: bh
B u 6 yhach;ub
1k 1k an error between predicted measurements and actual ones (see
b h and yh;ub correspond to the hard constraints treated at Eq. (3)). The delays, that are the main sources of mis-synchroniza-
where B k1 k1
b h correspond to the hard constraints relaxed at tion, must be carefully accounted for, for the error to be correctly
iteration k 1; B 1k
computed. These delays either come from the measurement pro-
iterations 1 to k, the values of which being given by yhach;ub
1k . Only
cess, or from dead volumes (pre-blends) that induce transportation
maximum bounds have been considered here to simplify the
delays. Interestingly, the delays are either known or can be esti-
formulation.
mated with a good accuracy. In practice, it appears that we do
 Step 2: References management. Lower and upper bounds on u
not have to use specic control methods robust to delay uncer-
are considered, along with the consistency equation
Pn tainty (one can refer to [21] for an overview of such methods).
i1 ui 1. The previously updated hard constraints, now
achievable, are also considered, but the soft constraints are
totally forgotten. References simply appear in the objective 4.5.1. Measurement delays
function, while the target recipe uopt does not appear in the for- The measurement delay may induce important mismatches and
mulation. This problem is also always feasible. Its solution u inconsistencies in the above error calculation. Fortunately, mea-
gives achievable values for the references.The typical problem surements come along with sampling dates (time stamps) and it
solved in this step is given by is possible to compare them against the right (delayed) predic-
tions. The formula (3) is modied accordingly.
min k B b r u  yr k2
u
8
>
> 0 6 ulb 6 u 6 uub 6 1 4.5.2. Variable transportation delays
>
<P n
In practice, transport delays must be accounted for in the pre-
ui 1
> ceding methodology. Interestingly, these transport delays are not
>
>
i1
: b h u 6 yhach;ub constant. They actually depend on the control variables, which
B
are themselves updated by the control algorithm. Under a plug-
where the hard constraints updated in Step 1 are given by yhach;ub . ow assumption, this dependance can be fully determined.
Only maximum bounds have been considered here to simplify We now expose means to calculate the transport delays in a
the formulation. very straightforward manner which is eventually implemented.
446 M. Chbre et al. / Journal of Process Control 20 (2010) 441451

First, let us consider a simple example, pictured in Fig. 3. Con- Then, intermediate blends properties are easily determined by
sider two connected pipe sections. Their volumes are noted V 1
and V 2 , respectively. We note b1 ; b2 and b3 the composition of f4 t  d1 t f5 t  d1 t
b6 t b4 b5
the uid owing through this pipe. These variables have distinct f6 t  d1 t f6 t  d1 t
values when the uid contained in the two pipe sections is not f1 t  d2 t f2 t  d2 t
b7 t b1 b2
homogeneous (e.g. due to upstream transients). We note F the f7 t  d2 t f7 t  d2 t
time-varying ow rate. Under the assumption of incompressibility, f7 t  d3 t f3 t  d3 t
the volumic ow rate is spatially uniform. The compositions are b8 t b7 t  d3 t b3
f8 t  d3 t f8 t  d3 t
constrained by the following delayed equalities
Z t Eventually, the end-product property is easily deduced, through a
b2 t b1 t  d1 t; with V 1 Fs ds cascade of mixing laws, by combining the time-varying transport
td1 t
Z t
delays. After some easy algebra, the sought-after relation is
b3 t b2 t  d2 t; with V 2 Fs ds 8
td2 t >
> f1 t f2 t f3 t f4 t f5 tyt
>
>
>
< f 8 t ff78 td3 t f1 td2 td3 t
b
The preceding integral relations (see also [20,19]) implicitly dene td3 t f7 td2 td3 t 1
4
the varying delays d1 and d2 . Therefore, the upstream and down- >
> f8 t ff78 td3 t f2 td2 td3 t
b
f7 td2 td3 t 2
stream properties satisfy the following equality
>
> td3 t
>
: f8 t ff38 td3 t
b f6 t ff46 td
td3 t 3
1 t
b f6 t ff56 td
td1 t 4
1 t
b
td1 t 5
b3 t b1 t  d2 t  d1 t  d2 t
These relations can be generalized to cases of interest in the context Interestingly, in the case of constant ow rates from the storage
of blending processes such as the one depicted in Fig. 4. tanks, this last formula can be simplied down to the following
In the setup presented in Fig. 4, ve storage tanks are connected usual relation
to a single blender through a network of pipes using three pre-
f1 f2 f3 f4 f5 yt f1 b1 f2 b2 f3 b3 f4 b4 f5 b5
blends. Three hold-ups play a role in the corresponding transport
phenomena. These are noted V 1 ; V 2 , and V 3 . Besides the storage
More generally (see Appendix C), Eq. (4) takes the form
tanks compositions bi1;...;5 , one has to consider intermediate
X
blends properties. These are noted b6 ; b7 , and b8 . Flow rates from yt U i tbi 5
the storage tanks are noted fi1;...;5 . Intermediate ow rates are i1;...;n
f6 f4 f5 ; f7 f1 f2 , and f8 f1 f2 f3 .
Following the calculations presented in the introductory case, where U i t can be expressed in terms of (ratios of) values of present
transport delays can be derived from the following equations and past values of components of the vector recipe. Vectors bi are
Z t Z t Z t the columns of the properties matrix B. Denoting Ut the n-dimen-
V1 f6 s ds; V2 f7 s ds; V3 f8 s ds sional column vector with entries U i t, we simply have yt
td1 t td2 t td3 t
BUt. This expression is a substitute to Eq. (1) for systems with
pre-blends. It is used in estimator (3), which is transformed into:

bT
dB j bjU  y
bj HU B 6
j
dt

It can be easily shown that this modied estimator still converges to


Fig. 3. Transport phenomenon through two connected pipe sections. the same invariant set [4].

Fig. 4. Transport phenomenon with pre-blends.


M. Chbre et al. / Journal of Process Control 20 (2010) 441451 447

4.6. Actual control algorithm In the case when the storage tank is not empty at the beginning
of the blend, a heel management strategy is used. Based on the
The proposed solutions to the issues raised in Section 4.4 and in same balance equation, it consists of dening a reference trajectory
Section 4.5 are incorporated in the control algorithm. This yields originating at this known value.
the following solution.
Solution to problem 2(Actual version) Sequentially, solve the 4.7.2. Recipe optimization
optimization problem (2), using whenever required the procedure When problem (2) is feasible, the objective function can be used
described in Section 4.4 to handle infeasibilities, and then update to optimize the recipe, i.e. to promote or penalize the usage of
the estimate of the components properties B b when new measure-
some specic components, which also impacts on the cost of the
ments are available. The discrete-time update is the sampled ver- blend. Using several techniques detailed in [6], it is possible to
sion of the continuous-time update law (6). push the blend properties toward their specied hard constraints.
Further enhancements could be considered. It can be noted that, We briey sketch an overview of such techniques.
in the optimization problem (2), the expressions y Bu b are still
When no particular recipe optimization is desired, uopt is either
used in all cases, with or without pre-blends. This can be viewed set equal to the initial value provided by the scheduling depart-
as solving a predictive control problem with a control horizon ment of the considered renery, or equal to the ltered current rec-
equal to 1 (single move), and a single prediction point at innity, ipe uf , to avoid oscillations. When recipe optimization is an
as for a given s; U i t s ui t; 8i 2 f1; . . . ; ng. objective, uopt equals uf f, where the entries of f are positive
It is possible to extend problem (2), by using (5) to express the (resp. negative) for components to promote (resp. to limit) in the
output constraints at various times from current time t to t s. blend. When the cost of the blend must be minimized, a price is
This can be done at the expense of introducing strong nonlineari- associated to each component. Then, the prices of the components
ties in the optimization problem. Such an approach has been tested with respect to the cost of the current blend, are used to set f en-
through simulations [4], but has not been implemented, as it did tries. Details can be found in [6].
not provide any signicant improvement for problems of practical
interest.
5. Industrial results
4.7. Further functionalities
The algorithm detailed in the previous section, has been imple-
A blending controller has to propose more functionalities than mented in C, and installed in numerous reneries of TOTAL under
those described so far in this paper. For instance, the total owrate the name Anamel. Thanks to its relatively low complexity, the
Ft is generally handled, for sake of output maximization. Addi- whole control scheme can be run on standard control systems at
tives have to be managed for diesel fuels. Two other important fea- a rate consistent with the process dynamics (e.g. every 1 to 5
tures are the quality control of storage tanks, and the recipe minutes).
optimization (the way to choose uopt is Eq. (2)). These two features
are briey presented in the next sections. All the functionalities 5.1. Statistical study
stated above are included in Anamel.
After an initial installation phase of this Anamel software in TO-
4.7.1. Reference trajectories TAL reneries from 2001 to 2004, a statistical study of the perfor-
The control strategy presented in the previous sections focuses mance of the blends was conducted at the TOTAL Leuna (Germany)
on tracking a given (instantaneous) blend properties reference. renery, which was then the latest of this installation program. The
This reference need not be constant, and can be updated over time. study was done so as to compare the results of the new on-line
It is possible to cascade the main control algorithm with a trajec- blending optimizer that was installed in 2004 in Germany: all
tory tracking strategy. This can be done to manage blends in stor- the blends of the year 2003 was thus compared to the blends of
age tanks. A simple (generic) scenario with one storage tank is year 2005 (with 405 gasoline blends, 425 diesel blends, and 173
reported in Fig. 5. Note V the current volume of uid contained fuel blends in 2005). Enhancements are detected on gasoline
in the storage tank, z its composition. Consider H a nite time hori- blends with a higher proportion (42% of improvement for Reid Va-
zon over which the total blender ow rate F and the blend proper- por Pressure RVP and 30% for octane number MON) of the blends
ties y are assumed constant. The storage tank properties values closer to the hard constraint (lower give-away for monitored qual-
satisfy the following balance equation V FHzt H Vzt ities). On diesel blenders, a better convergence with less oscilla-
FHy. It is desired that zt tracks a reference signal zr t. Then, we tions was obtained. In particular, the cloud point regulation has
set zt H zr t to dene the reference yr t as been improved signicantly. Anamel users in this renery are con-
vinced that the new release of the software has contributed to im-
V r
yr t zr t z t  zt prove the performance of the overall blend operations.
FH Besides these general comments, we now briey present two
In practice, zt is not measured, but frequently estimated through representative test cases. The rst one is a continuous blend up-
the balance equation given above. stream a process unit for diesel production, the second one is a

Fig. 5. Reference trajectories management in the case of storage tank composition control.
448 M. Chbre et al. / Journal of Process Control 20 (2010) 441451

batch production of gasoline. Today (2008), Anamel is installed on low its minimum. This induces a strong control action which van-
17 distincts blending systems (5 for gasoline production, 7 for die- ishes once the problem is solved.
sel production, and 5 for fuel production). The case reported here is representative of the behavior of the
proposed control scheme used on continuous blends. In the pre-
sented case of blending upstream an HDS unit, several benecial
5.2. Industrial case 1: continuous blending upstream an HDS unit aspects have been noted. Gradually, it has been possible to increase
the overall feed rate of the unit by 60% over 4 years. This is mainly
In the industrial case presented here, the product is diesel fuel. due to a revamping and a debottlenecking of the unit. But accord-
The blender outlet is directly connected to an hydro-desulphuriza- ing to end-users in the renery, it can also be considered as an indi-
tion unit (HDS). In this context, the instantaneous properties of the rect effect of the controller which keeps the properties of interest
blend are the variables that must be controlled. within the prescribed bounds and thus minimizes the input distur-
In details, 6 components are used out of which 3 (representing bances of the HDS unit. It also allowed to maximize the throughput
more than 20% of the total volume ow rate) are set to constant without causing any give-away, and to reduce the variability of the
ow rates and cannot be manipulated. There remains a n 3 feed rate. Together with a better cloud point control, the blending
dimensional recipe vector. One control objective is to maximize optimization and the increase of the feed rate have yielded sub-
the incorporation of component 1. stantial prots which are approximately of 4.3 million Euros/year
As before, Anamel is run (according to Solution 2) every 5 min- for a single HDS unit [1].
utes. The recipe is subjected to several constraints including
hydraulic constraints, min. and max. bounds. Also, its rate of
change is limited. 5.3. Industrial case 2: batch gasoline blend
Three properties are of particular interest. These are the ash
point, and the cloud point which must track their setpoints and The second case presented here is a gasoline blend. In the con-
the sulphur content which must remain below some max. value. sidered setup, the blender outlet is connected to a product tank,
Further, three other properties must be monitored. These are the the properties of which are of interest. Before the blend is started,
density (D15), the cetane index, and the ASTM360. the product tank already contains about 20000 cubic meters of gas-
The results are presented in Fig. 6. The recipe histories, the ash oline. A remaining amount of 15000 cubic meters has to be added
point histories, the cloud point histories, and the sulphur rate are during the blend. In this situation, the heel management technique
presented in (a), (b), (c) and (d), respectively. The D15, cetane index discussed in Section 4.7.1 is of importance. A total of 7 components
and ASTM360 are easily kept inside their bounds. They are not re- are used, out of which 2 (representing 25% of the total volume ow
ported in the plots. The time horizon reported here is approxi- rate) are set to some given ratios (in percentage) that are to remain
mately 24 h (one day). unchanged during this operation. The recipe dimension is n 5. To
The results stress that the ash point and the cloud point are maximize prots, the overall ow rate must be optimized, the
kindly controlled. Over time, the controller tends to maximize target being 1000 cubic meters per hour. No particular recipe
the rate of component 1, while keeping the sulphur rate below optimization is desired. As discussed in Section 4.7.2, the target
its maximum. At the beginning of the trends, the ash point is be- is the initial recipe. A total of m 9 properties are considered.

a 40
c 4

4.5
35
5
Cloud point (C)
Recipe (%)

30
5.5

25 6

6.5
20
Cloud point
u1 7 Setpoint
Max
15 u2
7.5
u3

10 8
0 5 10 15 20 0 5 10 15 20
Time (h) Time (h)

60 10
b d 9.5
59
Sulphur rate
9 Max
58
8.5
Flash point (C)

Sulphur rate (ppm)

57 8
56 7.5
7
55
6.5
54 Flash point
Setpoint
Min
6
53 5.5
52 5
0 5 10 15 20 0 5 10 15 20
Time (h) Time (h)

Fig. 6. Diesel fuel blend industrial results. A total of three components (a) are controlled to produce a blend in a continuous mode. Three properties are of interest. These are
the ash point (b) and the cloud point (c) which must track their setpoints, and the sulphur content (d) which must remain below a specied maximum. Thanks to the
proposed control method, these goals are reached. At the beginning of the trends, a strong control action (a) can be observed which is computed to bring the ash point above
its minimum.
M. Chbre et al. / Journal of Process Control 20 (2010) 441451 449

Two properties need to be controlled to their references. These are The results are presented in Fig. 7. The recipe u histories, the
the motor octane number (MON) and the vapor pressure (VP). Dur- MON histories, and the VP histories are presented in (a), (b), and
ing transients, their values (in the storage tank) must remain be- (c), respectively. The total blend time is approximately 15 h. Early,
tween some min. and max. bounds. Besides, other properties both MON and VP converge to their setpoints. To achieve these
such as the research octane number (RON), the gravity, the sulphur very good results, it is necessary to use varying instantaneous
content, the benzene content, the olens contents, the aromatics MON and VP setpoints. The recipe varies signicantly during the
contents, and the 70% distillation point must be monitored. They batch, while remaining strictly within its bounds. Noises on the
correspond to hard and soft bounds. measurements do not impact on the convergence of the algorithm.
Anamel is run (according to Solution 2) every 5 minutes. Fur- The control method is quite robust. This is particularly visible
ther, as discussed in Section 3, the recipe is required to satisfy sev- when, after 2.75 h, one of the analyser fails and provides unusable
eral contraints such as: hydraulic constraints (which can be information. Simply, Anamel freezes the value of the recipe until
formulated using incorporation ratios depending upon the current the analyser recovers, which happens at t = 3.25 h.
total volume ow rate), min. and max. values, and bounded rate of During the rst 6 h (approximately), the system is rather dif-
change (from one run to the next). cult to control because the tank has been lled with off-specica-
tions products and the MON and VP are rather far from their
objectives. In particular, the VP in the product tank violates the al-
a 35 lowed maximum at the start of the blend. This infeasibility is trea-
ted using the technique presented in Section 4.4. After about 6 h,
30 u1
the properties have almost reached their targets. Then, the recipe
u2
optimization methods starts, and smoothly brings the current rec-
u3
25
Recipe (%)

u4 ipe close to the initial recipe.


u5

20 At the end of the batch, the end-user is left with a tank lled
with the desired amount of product with desired specications
15 and a recipe close to the target one. During the batch all the con-
straints have been satised, and despite the sensor failure, the con-
10
troller has provided a smooth and efcient transient.
5

0 5 10 15
6. Conclusion and perspectives
Time (h)
The presented algorithm addresses the problem of blending
b 86.5 Product tank MON control in a way which is new in this eld. The algorithm consists
Product tank setpoint
Min
Max
of two connected layers forming an adaptive controller: one is an
Instantaneous measurement
estimator which partially estimates the plant parameters, and
86
one is an optimization problem solver. Available measurements
are used in a feedback loop passing through the estimator, which
MON ()

85.5
does not need to converge to the actual components properties
to guarantee the success of the blend. This fact is of great impor-
tance in applications. In the presented context of industrial blend-
85 ing, measurement synchronization has appeared as an important
issue, and the algorithm incorporates a solution to compute in-
put-dependent delays in an effective and accurate way. Handling
84.5 the infeasibilities of the optimal control problem formulated to
0 5 10 15
Time (h)
solve the multi-variable control problem has also revealed an
important topic, especially for real-time implementation. The soft-
c ware package resulting from this work, Anamel is now used in
68 numerous reneries. It is constantly improved further and is the
subject of active research efforts [7,8].
66

Acknowledgements
64
VP ()

Product tank VP
Product tank setpoint
Min
Max The authors wish to thank the following persons: Claude Jablon,
62 Instantaneous measurement

Philippe Zaccagnino, Erik Michelsen, Patrick Caillon, Jean-Claude


60
Bonneau, Jean-Louis Frin, Edith di-Crescenzo, Guillaume Pitollat,
Bruno Romeyer, Jean-Claude De Wit, Fari Djenab, Jean-Marie Gors-
58 zczyk, David Vissire, Julien Barraud, Vincent Bachelot, Michel Ber-
nier, Valrie Guyard, Tarik Idaoubella, Christophe Legros, Stphane
0 5 10 15
Time (h) Bourgeon, Cyrille Mirgain, Roland Forterre, Pierre Hoornaert, Ber-
trand Ecale, Elena Braceras, Lionel Armand, and the TOTAL Grand-
Fig. 7. Gasoline blend industrial results. A total of ve components (a) are puits renery west-side operators.
controlled to produce a blend in a storage tank. Two properties are of interest
(MON (b) and VP (c)). Initially, the storage tank is more than half-lled with an off-
specications product. This situation is handled by the heel-management strategy. Appendix A. A test case for simple feedback loops
The total blend time is 15 h. Convergence of both the MON and the VP to their
setpoints is achieved early. Despite large noises, the proposed algorithm is quite
robust and computes control values (a) that remain within their bounds. At the end
This section proposes an example to discard the classic methods
of the blend, the storage tank is lled with the desired amount of product with the discussed in Section 4.2. As indicated in this section, a classic con-
desired properties, while the recipe is close to the target. trol technique is to introduce an integral term fed by the difference
450 M. Chbre et al. / Journal of Process Control 20 (2010) 441451

T
between the measurement and the setpoint (Strategy 1), or a lter y1;ach as y1;ach y1 if s > 0 and y1;ach b1 u if s 0. Then we
of the difference between the measurement and the prediction of a consider
model (Strategy 2). Due to the uncertainties in the components
T
properties, the gains of the systems are poorly known. As will ap- min kb2 u s  y2 k2
u;s
pear, it is difcult to distinguish situations in which closed-loop 8
lb ub
stability can be guaranteed. To illustrate this point, let us consider <u 6 u 6 u
>
the following simple example. Assume that 3 components are sP0
>
:
mixed to produce a blend with a single property of interest. Note T
b1 u 6 y1;ach
b1 ; b2 ; b3 the components properties. It is desired to track a setpoint
yr . In the optimization problem (2), no hard nor soft bounds are This problem is always feasible, with solution u ; s . u can be
considered. Finally, ulb 0 and uub 1. seen as an acceptable relaxed solution of the initial problem. The
Let yr 5:7 and uopt 0:3; 0:4; 0:3. By going through the itera- cascaded optimization problems described in Section 4.4 are solved
tions of the control system, various behaviors can be observed, in a similar way, from highest priority hard constraints to lowest
depending on the value of the above mentioned parameters. With priority soft constraints. Notice that the slack variable s is not re-
b1 ; b2 ; b3  4; 5; 6 and an initial estimate b ^1 ; b
^2 ; b
^3  4; 6; 7,
quired to deal with the equality constraints used for the references.
both Strategy 1 and Strategy 2 applied repeatedly provide
convergence.
Appendix C. Varying delays
With the exact same setup except b1 ; b2 ; b3  6:5; 5; 6, both
Strategy 1 and Strategy 2 fail. It is not a feasibility issue. To get some
Consider a blend network with p pre-blends. Note
insight into this phenomenon, consider Strategy 1. As already dis-
cussed, the equality constraint reduces the number of free control
 fi t the volume ow rate from the storage tank i at time t, with
parameters to 2. Consider that u1 , and u2 are used. Their actuals
^1  b^3 ; i 2 f1; . . . ; ng;
gains are b1  b3 ; b2  b3  while they are estimated to b
^2  b ^3 . In the rst case, these quantities evaluate to  fni t the total volume ow rate through the dead volumes i at
b
time t, with i 2 f1; . . . ; pg;
 Ft the total volume rate of the blender at time t,
b1  b3 ; b2  b3  2; 1; ^1  b
b ^3 ; b
^2  b
^3  3; 1 P
Ft i1;n fi t;
 V i the dead volume associated to pre-blend i;
while, in the second case  bi the properties of component i.

b1  b3 ; b2  b3  0:5; 1; ^1  b
b ^3 ; b
^2  b
^3  3; 1 To each component i, one can associate a path Pi dened by the
sequence of the pi dead volumes that are passed by from the stor-
It can be shown, through a simple analysis of the optimization prob- age tank to the blender. This sequence consists of pi distinct inte-
lem, that the solution u1 ; u2 ; u3  is such that u1  u3 ; u2  u3  gers corresponding to the numbering of pre-blends, Pi fp1i ;
ab^1  b^3 ; b^2  b^3 , where a 2 R. The induced improvement in the p2i ; . . . ppi i g, with pji 2 f1; . . . ; pg for all j 2 f1; . . . ; pi g. Pi ;, i.e.
tracking error is u1  u3 ; u2  u3   b1  b3 ; b2  b3 t instead of the pi 0 means that component i directly feeds the blender.
expected u1  u3 ; u2  u3   b ^1  b
^3 ; b
^2  b
^3 t . If b1  b3 ; b2  b3  For each pre-blend i, one can dene the set Ci of its qi input ow
^ ^ ^ ^ t
b1  b3 ; b2  b3  < 0, the closed-loop strategy diverges instead of rates. This set consists of qi distinct integers corresponding to the
q
converging. numbering of the volume ow rates, Ci fc1i ; c2i ; . . . ci i g, with
j
ci 2 f1; . . . ; n pg for all j 2 f1; . . . ; qi g.
Appendix B. Cascaded optimization When Pi ;, the properties bi appear under the form
fi t=Ftbi in the blend equation. The case Pi ; is different. Con-
P
Consider the following simple optimization problem sider pre-blend pji , its total ow rate is fpj t k2C j fk t. The
i p
transportation delay in this pre-blend is given by dpj t with i
i
min Ju Z t
u
8 lb ub
V pj fpj s ds
<u 6 u 6 u
> i td j t
p
i
T 1 i
b1 u 6 y
>
: T Let us dene Dji t : t#t  dpj t, for all pji in Pi . For a given i, the
b2 u 6 y2 i
composition of these functions is

where y1 and y2 are scalar constraints. Infeasibility means that the Dk;j k j
i t , Di Di t : t#t  dpj t  dpk t  dpj t
two inequality constraints can not be both enforced for i i i

ulb 6 u 6 uub . It can be important however to provide a solution


which satises them at best. Assume that the rst inequality con- and Dl;k;j
i t , Dli Dk;j
i t. Note
straint is more important than the second one. Introducing the slack p p 1;pi 2;...;pi
fppi t fppi 1 Di i t fppi 2 Di i t fp1 Di t
variable s, we can consider the problem U i t i i i
 i
p p 1;p 2;...;p
Ft fp pi Di i t fppi 1 Di i i t fp2 Di i t
i i i
T
min kb1 u s  y1 k2 1;2;...;pi
(
u;s fi Di t
 1;2;...;pi
ulb 6 u 6 uub fp1 Di t
i
sP0
We have U i t ui t fi t=Ft for Pi ; and
It is always feasible, with solution u ; s . s > 0 means that satisfy-
T
ing b1 u 6 y1 is possible with ulb 6 u 6 uub . But s 0 means that X
n
T
b1 u , equal to or greater than y1 , is the nearest achievable value yt U i tbi :
from y1 for ulb 6 u 6 uub . Accordingly, we set the achievable value i1
M. Chbre et al. / Journal of Process Control 20 (2010) 441451 451

References [11] J.B. Froisy, Model predictive control-building a bridge between theory and
practice, Computers and Chemical Engineering (30) (2006) 14261435.
[12] C.E. Garcia, M. Morari, Internal model control. 2. Design procedure for
[1] Anamel HDS2, Post benet study, Real-time blending optimization, Technical
multivariable systems, Ind. Eng. Chem. Process Des. Dev.24 (1985) 472484.
report, TOTAL, 2008.
[13] C.E. Garcia, D.M. Prett, M. Morari, Model predictive control: theory and
[2] K.J. strm, B. Wittenmark, A survey of adaptive control applications. In:
practice- a survey, Automatica 25 (3) (1989).
Proceedings of the 34th IEEE Conference on Decision and Control, vol.1, 1995,
[14] Users guide. IMSL C Numerical Library. Visual Numerics, San Ramon, CA, USA,
pp. 649654.
2006.
[3] K.J. strm, B. Wittenmark, Adaptive Control, second ed., Dover, 2008.
[15] P.A. Ioannou, J. Sun, Robust Adaptive Control, Prentice-Hall, Englewood Cliffs,
[4] J. Barraud, Commande de procds paramtres variables. PhD thesis, cole
1996.
des Mines de Paris, 2006.
[16] H.K. Khalil, Nonlinear Systems, MacMillan, 1992.
[5] T. Bay, T.-S. Chen, J.W. Schwartzenberg, System for feed blending control.
[17] D.A. Le Febre, L.M. Lane, Process for controlling blending. Patent, July 1995.
Patent, October 1969. Patent number 3,473,008.
Patent number 5,430,295.
[6] M. Bernier, N. Petit, Y. Creff, M. Chbre, Method and device for controlling
[18] J.H. Perkins, Method for predictive intrinsic properties of a mixture. Patent,
production of a mixture of components, in particular a mixture with pre-mix
December 2000. Patent number 6,159,255.
dead volumes. Patent, May 2006. Dpt 06.04868, extended May 2007 PCT/
[19] N. Petit. Systmes retards, platitude en gnie des procds et contrle de
FR2007/000886, GCCP/2007/8408, Thailand 0701002593.
certaines quations des ondes. PhD thesis, cole des Mines de Paris, 2000.
[7] M. Chbre, On line blend monitoring tools in TOTAL reneries, In: ERTC
[20] N. Petit, Y. Creff, P. Rouchon, Motion planning for two classes of nonlinear
MaxAsset & Computing Conference, 2006.
systems with delays depending on the control. In Proc. of the 37th IEEE Conf.
[8] M. Chbre, G. Pitollat, Feed control for an hydrodesulphurization unit using
on Decision and Control, pages 1007 1011, 1998.
Anamel blend optimizer. In: ERTC MaxAsset & Computing Conference, 2008.
[21] J.-P. Richard, Time-delay systems: an overview of some recent advances and
[9] Blend Property Control. Release 55.0 Revision 2. Honeywell Hi-Spec Solutions,
open problems, Automatica 39 (10) (2003) 16671694.
http://hpsweb.honeywell.com/NR/rdonlyres/03E1522F-092C-4845-86FE-
[22] A. Singh, J.F. Forbes, P.J. Vermeer, S.S. Wood, Model-based real-time
32ADA378C46.
optimization of automotive gasoline blending operations, Journal of Process
[10] R.T. Feld, N.J. Pitman, T.C. Cattrall Jr., N.Y. Huntington, H.F. Hoffmann, C.N.
Control 10 (2000) 4358.
Smith, W. Smith, N.J. Woodbury, Fluid blending system, Patent, May 1968.
[23] P.J. Walton, C.J. Swart, The Boss of blending, Hydrocarbon Engineering (2003).
Patent number 3,385,680.

Вам также может понравиться