PDFFT Different
PDFFT Different
a r t i c l e i n f o a b s t r a c t
Article history: The aim of this paper is to introduce a methodology to solve a large-scale mixed-integer nonlinear
Received 20 September 2010 program (MINLP) integrating the two main optimization problems appearing in the oil refining indus-
Received in revised form 27 February 2011 try: refinery planning and crude-oil operations scheduling. The proposed approach consists of using
Accepted 25 March 2011
Lagrangian decomposition to efficiently integrate both problems. The main advantage of this technique
Available online 2 April 2011
is to solve each problem separately. A new hybrid dual problem is introduced to update the Lagrange mul-
tipliers. It uses the classical concepts of cutting planes, subgradient, and boxstep. The proposed approach
Keywords:
is compared to a basic sequential approach and to standard MINLP solvers. The results obtained on a
Refinery planning
Crude-oil scheduling
case study and a larger refinery problem show that the new Lagrangian decomposition algorithm is more
Mixed-integer nonlinear programming robust than the other approaches and produces better solutions in reasonable times.
Lagrangian decomposition © 2011 Elsevier Ltd. All rights reserved.
1. Introduction solution. To the best of our knowledge, Xpress-SLP (FICO) is the only
standalone solver implementing an SLP algorithm.
The oil refining industry is a prolific field for the application of A major issue with refinery planning is that most models are
mathematical programming techniques (see Bodington & Baker, single-period models where the refinery is assumed to operate in
1990). Refinery operators have to make decisions on the logis- the same state over the whole planning period (typically 1 month).
tics operations and on crude blend qualities taking into account Therefore, the planning solution is used as a tactical goal for refin-
a large number of crude-oils, finished products such as liquified ery operators rather than as an operational tool. In particular, CDU
petroleum gas, gasoline, diesel fuel, and a wide variety of high (Crude Distillation Unit) feedstock decisions returned by the refin-
flexibility production units involving many different chemical pro- ery planning problem are usually not applicable in the field due
cesses. Furthermore, the economic impact of optimizing operations to crude logistics constraints. These are described in the crude-
can be very significant (see Kelly & Mann, 2003). oil operations scheduling problem, which includes unloading from
The refinery planning problem often involves the pooling prob- crude-oil tankers, preparation of crude-blends, and CDU feed charg-
lem (see Audet et al., 2004; Floudas & Visweswaran, 1993; Foulds ing. This problem has been addressed since the late 90s by many
et al., 1992; Misener & Floudas, 2009; Quesada & Grossmann, 1995), different research groups (see Jia et al., 2003; Lee, Pinto, Grossmann,
which has been addressed since the early 80s and usually con- & Park, 1996; Moro and Pinto, 2004; Mouret et al., 2009).
sists of optimizing feedstocks, unit settings, as well as final product Although, integration of planning and scheduling has recently
blending and shipping. Some examples of nonlinear refinery plan- been addressed in the context of multiproduct continuous and
ning problems including pooling constraints and nonlinear process batch production plants (see Erdirik-Dogan & Grossmann, 2008;
models can be found in Pinto and Moro (2000), Li, Hui, and Li (2005), Maravelias & Sung, 2009), very little work has been done towards
and Alhajri, Elkamel, Albahri, and Douglas (2008). Although com- the integration of planning and crude-oil scheduling problems in
mercial solvers such as GRTMPS (Haverly Systems), PIMS (Aspen the context of refineries. To the best of our knowledge, Produc-
Tech), and RPMS (Honeywell Hi-Spec Solutions) implement in- tion Scheduler (Honeywell Hi-Spec Solutions) is the only existing
house successive linear programming (SLP) algorithms to solve this commercial tool that integrates simultaneously both problems.
problem (see Zhang et al., 1985), any standard NLP solvers can also The main difficulty arises from the fact that, in this particu-
be used although they may not guarantee global optimality of the lar case, the planning model is not an aggregate scheduling
model. Thus, the decomposition methods developed for batch
and continuous plants are not directly applicable to refineries.
∗ Corresponding author. Tel.: +1 412 268 2230; fax: +1 412 268 7139. In particular, refinery planning and crude scheduling correspond
E-mail address: grossmann@cmu.edu (I.E. Grossmann). to two different problems solely linked through CDU feedstocks.
0098-1354/$ – see front matter © 2011 Elsevier Ltd. All rights reserved.
doi:10.1016/j.compchemeng.2011.03.026
S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766 2751
Therefore, instead of using a hierarchical decomposition, a spa- 2.1. Refinery planning problem
tial Lagrangian decomposition is preferred. The reader may refer
to Fisher (1985) and Guignard (2003) for extensive reviews The refinery planning problem can be regarded as a flowsheet
on Lagrangian relaxation and decomposition techniques. These optimization problem with multiple periods during which the
approches have been applied to many industrial problems such refinery system is assumed to operate in steady-state. Due to exten-
as production planning and scheduling integration (see Li & sive stream mixing, the model for each period is based on a pooling
Ierapetritou, 2010) or multiperiod refinery planning (see Neiro & problem that is extended in order to include process models for
Pinto, 2006). each refining unit. The different periods in the model are con-
The content of this paper is organized as follows. The planning nected through material inventories, which are usually constrained
and scheduling problems are stated in Section 2 as well as the by storage limitations. These inventories allow product transfers
full-space integrated problem. In Section 3, a Lagrangian decom- between periods and final stock optimization. In this work, we con-
position scheme based on the dualization of CDU feedstock linking sider a single-period planning model based on a pooling problem
constraints is presented. A new hybrid method is introduced to inspired from the literature (see for instance Adhya, Tawarmalani,
solve the Lagrangian relaxation in Section 4. A heuristic algorithm & Sahinidis, 1999). A basic refinery planning system is represented
is developed to obtain good feasible solutions for the integrated in Fig. 1. A set of crudes i ∈ I are to be mixed in different types of
full-space problem in Section 5. In Section 6, we provide technical crude-oil blends j ∈ J (e.g. low-sulfur and high-sulfur blends), each
remarks in order to further develop the practical details of the pro- associated to a specific CDU operating mode. For each mode and
posed approach. Numerical illustrations of the proposed approach each crude, several distillation cuts are obtained with different
are presented in Section 7 for the case study and Section 8 for a fixed yields. These crude cuts are then blended into intermediate
larger refinery problem. Section 9 concludes the paper. pools which are used to prepare several final products. Therefore,
the refinery planning system is composed of the following ele-
ments:
2. Problem statement • One input stream for each selected crude i ∈ I and each type of
crude blend j ∈ J
In this section, we present the main concepts involved in the • One CDU with fixed yields for each distillation cut
refinery planning and crude-oil scheduling problems. The full- • Set of distillation cuts k ∈ K
space model is detailed as well as from case study examples. • One pool for each type of crude blend j ∈ J and each cut k ∈ K
• One intermediate stream between each pool (j, k) ∈ J × K and each Dl is the maximum demand in product l
final product l ∈ L Zlp is the maximum specification for quality p of product l
• Set of final products l ∈ L
• One sales stream for each final product l ∈ L Fig. 2 displays the pooling structure of a case study with corre-
• Set of qualities p ∈ P sponding data for crudes (A, B), blends (X, Y), distillation cuts (M, N),
and final products (P, Q, R, S). Two different qualities are considered
The yield of crude i ∈ I in distillation cut k ∈ K, when processed in this case.
in crude blend j ∈ J is assumed to be fixed and is denoted by ˛ijk . In In the remainder of the paper, we consider the following NLP,
terms of stream qualities, it is assumed that distillation cuts have which is a simplified version of the planning model (PP ).
fixed qualities while pool qualities are calculated by bilinear quality ⎧ T
balance constraints. A pure flow-based model is used to formulate ⎪
⎨ max VP xS
the pooling problem as shown below. CDU flowrate limitations are s.t. fP (xF , xI , xS ) ≤ 0
(PP )
considered independent of the operating mode and are enforced ⎪
⎩ gP (xI ) ≤ 0
globally for all crudes processed during the period. xF ∈ R|F| , xI ∈ R|I| , xS ∈ R|S|
max pl xSl (sales revenue maximization)
l∈L
ij
s.t. 0≤ xF ≤ C i i∈I (crude availability)
j∈J
ij
FR · H ≤ xF ≤ FR · H (CDU flowrate limitations)
i∈I j∈J
ijk ij
x1 = ˛ijk · xF (i, j, k) ∈ I × J × K (CDU yield calculation)
ijk
jkl
x1 = x2 (j, k) ∈ J × K (pool mass balance)
i∈I l∈L
ijkp ijk jkp
jkl
q1 x1 = q2 x2 (j, k, p) ∈ J × K × P (pool quality balance, nonlinear)
i∈I l∈L
jkl
x2 = xSl l∈L (product mass balance)
j∈J k∈K
Table 1
Crude-oil scheduling data for case study.
replacement cost is the cost of replacing the crude once it has been • VC is the replacement cost of crude-oils (usually based on market
processed. The crude-oil schedule must satisfy inventory capac- value)
ity limitations, crude tankers arrival dates as well as the following • yF is a set of continuous variables representing total CDU feed-
logistics constraints: stock quantities over the scheduling horizon
• yC is a set of continuous variables representing other continuous
(i) only one berth is available at the docking station for crude decisions (e.g. timing decisions)
tanker unloadings, • yB is a set of binary variables representing sequencing decisions
(ii) inlet and outlet transfers on tanks must not overlap, (see Mouret et al., 2011)
(iii) a tank may charge only one CDU at a time, • fS (yB , yC , yF ) ≤ 0 is the set of linear constraints (e.g. scheduling
(iv) a CDU can be charged by only one tank at a time, constraints)
(v) CDUs must be operated continuously throughout the schedul- • gS (yC ) ≤ 0 is the set of nonlinear stream composition constraints
ing horizon. (see Mouret et al., 2009)
Fig. 3 shows the refinery system corresponding to problem 1 2.3. Full-space problem
introduced in Lee et al. (1996). Table 1 displays the dimensionless
data for this example. Besides a different objective function, the Given the importance of crude selection for refinery optimiza-
example is modified by introducing a minimum duration of 1 day tion, the refinery planning problem and the crude-oil scheduling
for distillation operations. Therefore, due to crude blend alternative problem should ideally be optimized simultaneously. This can only
sequencing, at most 4 batches of each crude mix can be processed be done by solving an integrated full-space MINLP problem, denoted
in 8 days. The scheduling problem is formulated using the Multi- (P), which aims at optimizing all refinery decisions subject to plan-
Operation Sequencing (MOS) time representation as introduced in ning, scheduling, and linking constraints.
Mouret et al. (2010) (see Appendix B). ⎧
⎪ max VPT xS − VCT yF
⎪
⎪
⎪
⎪ s.t. fP (xF , xI , xS ) ≤ 0
⎪
⎪ gP (xI ) ≤ 0
⎪
⎨
fS (yB , yC , yF ) ≤ 0
(P)
⎪ gS (yC ) ≤ 0
⎪
⎪
⎪
⎪ yF − xF = 0
⎪
⎪ xF ∈ R|F| , xI ∈ R|I| , xS ∈ R|S|
⎪
⎩
yB ∈ {0, 1}|B| , yC ∈ R|C| , yF ∈ R|F|
lation are identical in the planning and scheduling solutions. Also, Robertson, Palazoglu, and Romagnoli (2010) proposed a multi-
to be consistent in time, it is considered that the planning and level approach consisting of approximating the refinery planning
scheduling horizons have identical lengths. model by multiple linear regressions that are then used in the
In the remainder of the paper, we use the notation v(P) to denote crude-oil scheduling problem for the minimization of the total
the optimal objective value for problem (P). logistics and production costs. The method is applied to a case
study comprising two different crudes. Although computationally
effective, the use of linear regressions may not be sufficient for
3. Lagrangian decomposition scheme
the the global optimization of highly nonlinear refinery planning
models.
The full-space problem (P) is a large-scale MINLP, which con-
In this work, we present an integration approach based on
tains many binary variables from the crude-oil scheduling problem
Lagrangian decomposition, which is a special case of Lagrangian
and many non-convex constraints from the refinery planning
relaxation (Guignard, 2003). The idea is to build a relaxed version
model. Due to convergence issues and the presence of many poten-
of the full-space problem, which is decomposable, and therefore,
tial local optima, standard MINLP solvers for convex optimization,
much easier to solve. In particular, the decomposition procedure
such as AlphaECP, Bonmin, DICOPT, KNITRO, or SBB, may fail solv-
is based on the dualization of the linking constraint yF − xF = 0. The
ing the model or return poor solutions. Global MINLP solvers, such
relaxed problem (PR ()), composed of NLP and MINLP models, is
as BARON, Couenne, or LINDOGLOBAL, are in principle able to solve
defined by removing this constraint and penalizing its violations by
the problem but they may require prohibitive computational times.
adding the term T (yF − xF ) to the objective function. The parame-
Therefore, a specific solution strategy needs to be developed to
address this problem.
v(PR ()) = v(PP ()) + v(PS ()) Several approaches have been proposed in the literature in order
to solve the dual problem associated with the Lagrangian relax-
The subproblem (PP ()), an NLP, is a modification of the original
ation. A classical approach is the subgradient method proposed
refinery planning problem (PP ) as it consists of assigning crude costs
by Held and Karp (1971, 1974). Many researchers have used and
to the CDU feedstock variables xF . For a given crude i, increasing i
improved this technique over the years (see Bazaraa and Sherali,
will decrease the incentive to select this crude for distillation pro-
1981; Camerini et al., 1975; Fisher, 1981). This approach is pre-
cessing. On the other hand, decreasing i will increase the incentive
ferred as it usually predicts very good Lagrange multiplier updates.
to select it.
⎧ However, special care must be taken in order to insure conver-
T T
⎪
⎨ max VP xS − xF gence and it requires a good strategy for defining and updating the
s.t. fP (xF , xI , xS ) ≤ 0 subgradient step size. Another approach that theoretically displays
(PP ())
⎪
⎩ gP (xI ) ≤ 0 better convergence properties has been introduced by Cheney and
xF ∈ R|F| , xI ∈ R|I| , xS ∈ R|S| Goldstein (1959) and Kelley (1960). It is often denoted as the cutting
plane method. In practice, this approach usually takes a long time
The subproblem (PS ()), an MINLP, is a modification of the orig- to converge as many iterations are necessary in order to obtain
inal crude-oil scheduling problem (PS ) as it consists of assigning good Lagrange multiplier updates. A refinement of this approach is
crude values to the CDU feedstock variables yF . For a given crude the boxstep method presented in Marsten, Hogan, and Blankenship
i, increasing i will increase the incentive to select this crude for (1975). It allows obtaining better updates for the Lagrange multi-
blending and distillation processing. On the other hand, decreasing plier during early iterations while keeping the same convergence
i will decrease the incentive to select it. properties. Other refinements of previous approaches include the
⎧ T
⎪
⎨ max ( − VC ) yF
bundle method (Lemaréchal, 1974), the volume algorithm (Barahona
s.t. fS (yB , yC , yF ) ≤ 0 & Anbil, 2000), and the analytic center cutting plane method (Goffin,
(PS ())
⎪
⎩ gS (yC ) ≤ 0 Haurie, & Vial, 1992).
yB ∈ {0, 1}|B| , yC ∈ R|C| , yF ∈ R|F| All the above approaches are based on an iterative solution
procedure between the primal and the dual world. Fig. 5 gives a
On the whole, the Lagrange multiplier can be seen as a crude schematic description of this algorithm. The first step consists of
purchase cost for the planning system, and as a crude sales value for initializing the Lagrange multipliers. Problem-specific strategies,
often based on the economic interpretation of , exist in order
to provide good initial values. Then, at each iteration the relaxed
problem is solved and a primal solution is obtained. If a stopping cri-
terion is satisfied, the algorithm converges. Otherwise, the Lagrange
multipliers are updated for the next iteration. The definition of the
stopping criterion depends on the approach used and can, in certain
cases, ensure convergence to an optimal dual solution ∗ .
In this work, we introduce a new hybrid method to update the
Lagrange multipliers. It is based on the three concepts of cutting
planes, subgradient and boxstep. Cutting planes are valid con-
straints for the dual problem that are generated at each iteration.
They are used to record valuable dual information to be used dur-
Fig. 9. Disaggregated CDU feedstocks synchronization. ing later iterations. A subgradient provides a descent direction for
2756 S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766
Table 2
Lagrangian iterations statistics (6 priority-slots, NLP = SNOPT).
Iteration Pure dual Hybrid dual Step size Modified relaxation Modified heuristic Original heuristic CPU time
v(PDK ) v(P̂DK ) ˛K v(P̃R (K )) v(P̃H (yBK )) v(PH (yBK ))
1 –a –b –b 645.000 400.942 –c 3s
2 –a 389.942 1 689.049 564.000 560.500 9s
3 –a 547.929 1 637.063 592.368 592.368 13 s
4 –a 582.790 1 603.377 592.368 592.368 18 s
5 –a 591.172 1 609.526 586.191 –c 24 s
6 –a 590.629 0.851 598.380 562.881 –c 29 s
7 580.717 591.324 −0.617 600.171 586.191 –a 33 s
8 592.368 592.785 0.390 594.774 586.191 –a 46 s
9 592.369 592.369 1 592.372 592.368 592.368 50 s
a
Unbounded LP.
b
Not available.
c
Locally infeasible NLP.
Table 3
Lagrangian iterations statistics (7 priority-slots, NLP = SNOPT).
Iteration Pure dual Hybrid dual Step size Modified relaxation Modified heuristic Original heuristic CPU time
v(PDK ) v(P̂DK ) ˛K v(P̃R (K )) v(P̃H (yBK )) v(PH (yBK ))
1 – – – 645.000 393.470 – 3s
2 – 381.562 1 751.494 568.077 568.077 10 s
3 – 552.076 1 622.785 592.368 – 16 s
4 – 574.735 1 614.178 592.368 592.368 22 s
5 – 583.166 1 602.218 592.368 592.079 50 s
6 – 588.279 1 617.268 592.368 592.079 56 s
7 – 592.856 0.911 600.752 592.368 592.368 66 s
8 – 592.835 0.517 595.264 592.368 – 81 s
9 – 592.288 0.357 595.292 592.368 592.368 95 s
10 592.368 592.369 1 592.369 592.368 592.079 101 s
S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766 2757
Fig. 11. Lagrangian iteration objective values (6 priority-slots, NLP = SNOPT). Fig. 13. Lagrange multiplier updates (6 priority-slots, NLP = SNOPT).
the dual problem, while a boxstep is defined to allow deviations by the parameter ˛ ¯ > 0. Note that ˛ is allowed to take negative
from this direction within a specified domain. The combination values. Variable ı defines a deviation from the subgradient step.
of these techniques ensures good convergence properties, while The parameter ı̄ > 0 is the maximum deviation in each multiplier
providing efficient Lagrange multiplier updates. At iteration K + 1, direction and defines a full-dimensional boxstep. Both subgradient
the Lagrange multiplier is updated to the solution of the following and boxstep concepts are simultaneously embedded in constraint
restricted LP dual problem with subgradient-based boxstep. (SG+TR). Note that the parameters ˛ ¯ and ı̄ can be heuristically
⎧ updated at each iteration. In practice, our computational experi-
⎪
⎪
min
ments have shown that using fixed values for ˛ ¯ and ı̄ is a reasonable
⎪
⎨ s.t. ≥ VPT xSk − VCT yFk + T (yFk − xFk ) ∀k = 1 . . . K (CP k )
v(PD ) − v(PR (K )) K choice.
(P̂DK+1 ) = K + ˛ (yF − xFK ) + ı (SG + TR)
⎪ ||yFK − xFK ||2 Fig. 6 displays the feasible space (grey area) of (P̂DK+1 ). The pro-
⎪
⎪ ∈ R, ∈ R |F|
⎩ |F|
jection on the space of Lagrange multipliers (1 , 2 ) depicts the
˛ ∈ ] − ∞, ˛]
¯ , ı ∈ [−ı̄, ı̄ shape of the subgradient-based boxstep. In the space of (1 , ), CPk
The variables and are classically used in the pure cutting represents the projection of the cutting plane generated at itera-
plane approach. The pure cutting plane restricted LP dual prob- tion k. Note that the feasible space of (P̂DK+1 ) contains (1 = K1 , 2 =
lem (PDK+1 ) consists of minimizing subject to constraints (CPk ), K2 , = v(PR (K1 , K2 ))). In both plots (a) and (b), 1 corresponds to a
k = 1 . . . K only: lower bound on multiplier 1 induced by the boxstep constraints.
The stopping criterion for this hybrid strategy is identical to
min the pure cutting plane method and is based on the Lagrangian
(PDK+1 ) s.t. ≥ VPT xSk − VCT yFk + T (yFk − xFk ) ∀k = 1 . . . K (CP k ) gap between the relaxed primal problem and the restricted dual
∈ R, ∈ R|F| problem:
This problem is always unbounded during early iterations (i.e. v(PR (K )) − v(PDK ) ≤ ε (1)
v(PDK ) = −∞), so it cannot be used directly to update the Lagrange
multipliers. This issue can be solved by defining a bounded feasi- In the pure cutting plane approach (without constraint (SG+TR)),
ble set for the multipliers based on their interpretation (e.g. lower the optimal value of the restricted dual problem v(PDK ) iteratively
and upper bounds). However, in this work, an iteratively updated approximates v(PD ) from below since it involves the minimization
boxstep based on the subgradient step is used so that the restricted of a relaxation of v(PD ).
dual problem (P̂DK+1 ) is bounded. v(PDK ) ≤ v(PD ) ∀K (2)
The subgradient step is classically defined as = K + ˛(v(PD ) −
v(PR (K )))/||yFK − xFK ||2 (yFK − xFK ) where v(PD ) can be estimated using Therefore, the stopping criterion (1) ensures convergence to an
a heuristic solution for (P). However, instead of heuristically updat- ε-optimal solution of the dual problem (PD ) as:
ing the step size, it is optimized using variable ˛, which is bounded
v(PR (K )) − v(PDK ) ≤ ε ⇒ v(PR (K )) − v(PD ) ≤ ε (3)
5. Heuristic solutions
Table 4
Comparative performance of several MINLP algorithms.
6 priority-slots 7 priority-slots
MINLP solver Objective value CPU time Optimality gap Objective value CPU time Optimality gap
⎧
⎪ max VPT xS − VCT yF
⎪
⎪
⎪
⎪ s.t. fP (xF , xI , xS ) ≤ 0
⎪
⎪
⎪
⎨ gP (xI ) ≤ 0
K
fS (yB , yC , yF ) ≤ 0
(PH (yBK ))
⎪
⎪ gS (yC ) ≤ 0
⎪
⎪ yF − xF = 0
⎪
⎪
⎪
⎪ xF ∈ R|F| , xI ∈ R|I| , xS ∈ R|S|
Fig. 14. Lagrange multiplier updates (7 priority-slots, NLP = SNOPT).
⎩
yC ∈ R|C| , yF ∈ R|F|
6. Remarks either exchange crudes between the two systems or sell and buy to
and from the crude market (see Fig. 4). From this observation, it is
6.1. CDU feedstocks and Lagrange multipliers natural to use the crude costs defined in the crude-oil scheduling
problem as initialization for the Lagrange multipliers. For the case
The number of Lagrange multipliers highly depends on the study, we use the following initial values:
CDU feedstock possibilities. Exactly one multiplier is needed
for each feasible combination of crude and type of crude 1(X,A) = 1(Y,A) =7
blend (or corresponding CDU operating mode). In the case 1(X,B) = 1(Y,B) =6
study, there are 2 different crudes which can both be blended
in any of the 2 different types of blends, so 4 Lagrange
multipliers are needed to solve the dual problem. Typical 6.2. Multi-period refinery planning
large-scale refineries may need 50 and up to 100 Lagrange
multipliers. In this work, the refinery planning problem is expressed
The optimal value of the Lagrange multipliers correspond to the over a single period for which CDU feedstocks are synchro-
optimal marginal costs of the linking constraints for the convexified nized with the crude-oil scheduling problem. Even though it is
problem (for more details in the case of MILP models, see Frangioni, often computationally critical to increase the time horizon for
2005). Therefore, the Lagrange multipliers can be seen as the opti- scheduling problem, this can easily be done in refinery plan-
mal pricing strategy between the crude-oil scheduling system and ning models by introducing additional time periods. Therefore,
the refinery planning system. In other words, the optimal Lagrange one can define 2 or more time periods for the refinery plan-
multipliers are crude prices for which it is marginally equivalent to ning model and synchronize CDU feedstocks for the first period
only, as shown in Fig. 8. In this particular case, the refin-
ery planning decisions for the second period, including CDU
Table 5
Crude cut prices and specification for larger refinery problem. feedstock decisions xF , are made without taking into account
crude-oil scheduling constraints. This methodology allows making
Crude cut Price Specifications
Residue 6.5 None Fig. 17. Crude-oil scheduling system 3 (Lee et al., 1996).
2760 S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766
Table 6
Crude-oil scheduling data for larger refinery problem.
short-term scheduling decision while considering the long-term feedstocks. Fig. 9 depicts the synchronization of disaggregated CDU
economic impacts of these decisions, which cannot be done with batches.
detailed long-term scheduling models due to their computational
complexity. 6.4. Handling nonlinearities in crude-oil scheduling model
6.3. CDU feedstocks aggregation Although, the relaxed problem (PR ()) is decomposable, it is
not easy to solve it to global optimality. In particular, two major
An important issue with the proposed approach comes from the issues arise. First, the crude-oil scheduling problem (PS ()) corre-
fact that the CDU feedstocks for the linking period are aggregated. sponds to an MINLP due to the presence of nonlinear composition
In the optimal solution, the crude-oil operations schedule pre- constraints. In Mouret et al. (2009) an MILP relaxation is derived
pares several batches for each type of crude blends. Then, for each by simply dropping these nonlinear constraints. The solution can
of these blend types, all the corresponding batches are accumu- then be refined by fixing the binary variables and solving the
lated and the refinery planning solution determines the processing reduced NLP, similarly to the heuristic approach presented in Sec-
decisions for the aggregated batch. This approximation may lead tion 5. Results show that the solution obtained is close to the global
to sub-optimality or even technical infeasibility of the solutions optimum as it tends to satisfy the relaxed nonlinear constraints.
obtained. This problem can be solved by postulating exactly one Therefore, a similar methodology is used in this work. Instead of
period for each batch and synchronizing all the corresponding CDU simply dualizing the linking constraints, the nonlinear scheduling
Table 7
Lagrangian iterations statistics for larger refinery problem (6 priority-slots, NLP = CONOPT).
Iteration Pure dual Hybrid dual Step size Modified relaxation Modified heuristic Original heuristic CPU time
v(PDK ) v(P̂DK ) ˛K v(P̃R (K )) v(P̃H (yBK )) v(PH (yBK ))
1 – – – 266.226 – – 43 s
2 – −2.166 1 417.311 257.943 222.339 102 s
3 – 253.546 1 411.657 258.488 245.306 173 s
4 – 281.076 0.857 325.906 258.106 – 235 s
5 – 260.746 1 288.587 258.104 – 298 s
6 – 256.301 1 273.197 258.516 245.467 372 s
7 – 256.385 1 271.415 258.027 250.989 459 s
8 – 258.091 1 264.974 257.961 233.713 539 s
9 – 258.847 0.861 265.149 257.961 233.713 610 s
10 – 257.623 1 267.541 257.740 228.230 682 s
11 – 259.500 0.868 261.237 257.750 247.971 769 s
12 – 259.170 1 261.512 257.750 247.971 850 s
13 – 259.126 0.759 264.109 258.027 250.989 913 s
14 – 259.121 1 263.708 258.306 – 979 s
15 – 259.592 0.774 260.857 258.516 238.763 1045 s
S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766 2761
Crude CDU mode Initial value (=Price) Optimal value In order to obtain valid upper bounds when solving (PR ()) or
1 6.0 6.169 (P̃R ()), the refinery planning problem (PP ()) has to be solved to
A 2 6.0 6.207 global optimality. Although global optimization of industrial large-
3 6.0 7.695 scale refinery planning models is still not achievable, the refinery
1 6.5 6.971 planning case study presented in Section 2 is solvable by the global
B 2 6.5 6.987 NLP solver BARON in reasonable time. However, it should be noted
3 6.5 7.026 that it is critical to provide tight bounds for the quality variables
jkp
1 5.5 6.062 q2 . In particular, based on the structure of the pooling system, we
C 2 5.5 6.009 use the following bounds:
3 5.5 6.054
ijkp jkp ijkp
1 7.2 7.186 minq1 ≤ q2 ≤ maxi ∈ I q1
i∈I
D 2 7.2 7.262
3 7.2 7.962
Table 9
Comparative performance of several MINLP algorithms for larger refinery problem (NLP solver: CONOPT).
estingly, the second solution does not follow these observations. In pure restricted dual problem bounded. In order to achieve conver-
this solution, the amount of blend X is larger the amount of blend Y. gence after a few iterations, the Lagrangian gap is calculated using
Besides, the total amount of crude processed is the largest (276.923 the objective value of the hybrid dual problem, which is always
units of crude). This shows how difficult it is to approximate the bounded, as follows:
economic behavior of refinery operations, even for such a small case
study. Therefore, it is possible that linear approximations of refin- v(P̃R (K )) − v(P̂DK ) ?
≤ε
ery operations as proposed by Robertson et al. (2010) might not v(P̃R (K ))
be able to correctly evaluate the economic value of some feasible
The proposed approach converges within the Lagrangian gap in
solutions.
15 iterations. The final dual gap, although it does not represent a
valid optimality gap, is 3.8%. 83% of the time is spent on solving
the crude-oil scheduling MILPs. The optimal value of the Lagrange
8. Larger refinery problem
multiplier is given in Table 8. With 7 priority-slots, the decomposi-
tion procedure converges in 18 iterations and 4451 s, the increase
In this section, the proposed Lagrangian decomposition
of CPU time being explained mostly by the increased number of
approach is applied on a larger refinery example and compared
priority-slots. The solution obtained is slightly lower than the pre-
to standard MINLP solvers and the basic sequential procedure
vious one because the algorithm did not fully converge within tight
presented in Section 7. Instead of using classical fixed-yield (see
tolerances.
Section 2) or swing cut formulations (for example, see Zhang et al.,
Table 9 presents computational performances of the different
2001), the refinery planning problem is based on a crude distil-
approaches. Clearly, the Lagrangian decomposition procedure is
lation simulation model developed by Gueddar and Dua (2011).
much more robust than the other algorithms. Only the sequential
This crude distillation model is based on a layered artificial neu-
approach was able to deliver a solution with 6 priority-slots, but
ral network (ANN). This ANN is generated by solving an MINLP
its objective value is much lower (50% less profit) than the best
that aims at fitting empirical data for atmospheric distillation of
known solution. Indeed, the scheduling solution obtain during the
several crudes (crude assays) while simplifying the calculations.
first stage of the sequential procedure does not take into account
The model obtained is able to predict cut yields and cut properties
the economic impact on the refinery planning problem, which leads
from the chosen cut points and properties of the inlet crude. Fig. 16
to poor decisions. The standard local MINLP solvers were not able
depicts the full nonlinear planning model. Three different types of
to find a solution within 1 h because the MINLP model is too large:
crude blends are processed in three different CDU operating modes
3645 variables (84 binary) and 4177 constraints.
and five crude cuts are produced: LPG (liquefied petroleum gas),
Table 10 shows the crude compositions of the optimal solution
naphta, kerosene, diesel, and residue. Each discrete CDU mode is
with objective value 250.989. The two CDUs are mostly operated in
defined by the distillation cut point between diesel and residue
mode 2 which corresponds to the average cut point for diesel and
fractions: 340, 360, or 380 ◦ C. The decision variables for each CDU
residue cuts.
mode are composed of individual crude flows and distillation cut
points between naphta, kerosene and diesel fractions. The three
streams produced for each fraction are then blended into cut pools. 9. Conclusion
The bilinear pooling constraints discussed in Section 2 are classi-
cally used to calculate the properties of each cut pool. Table 5 shows In this work, a novel approach towards the integration of plan-
market prices for each distillation cut and corresponding prop- ning and scheduling has been developed in the context of oil
erty specifications. Crude availability constraints are also included refining. In particular, a precise crude-oil operations scheduling
in the model in accordance with the description of the crude-oil model and a coarse refinery planning model were optimized simul-
scheduling problem. This refinery planning model is composed of taneously using a new Lagrangian decomposition scheme, which
1831 variables and 1817 constraints. The full mathematical model makes use of Lagrange multipliers as a way to communicate eco-
is described in Appendix A. nomic information between the two subsystems. The methodology
The crude-oil scheduling problem is based on example 3 from leads to a classical primal-dual iterative algorithm to solve the
Lee et al. (1996) (see Fig. 17) with the parameters described in Lagrangian dual problem. The critical multiplier update step is
Table 6. It consists of three crude arrivals, three storage tanks, three performed by solving a new hybrid restricted dual problem. This
charging tanks (one for each type of crude mixture), and two identi- approach combines the strengths of cutting planes and subgradient
cal CDUs whose respective scheduled feedstocks are merged when steps and does not require to define heuristic updates of parameters
linked to the refinery planning problem. Seven different crudes are during iterations.
available, and 14 transfer operations can be executed to prepare the Although it is not guaranteed, our results achieved a 0% dual
different crude blends. When 6 priority-slots are used, the crude- gap for the smaller case study. It is well-known that augmented
oil scheduling problem is composed of 1814 variables (84 binary) Lagrangian techniques (see Li & Ierapetritou, 2010) can ensure to
and 2338 constraints. close the dual gap for any instance. However, this would require to
Table 7 and Fig. 18 show the iteration statistics for the solve the refinery planning subproblem to global optimality, which
Lagrangian decomposition method using 6 priority-slots for the is not yet achievable in an industrial context. It is therefore more
crude-oil scheduling model. The maximum step size parameter ˛ ¯ practical to use standard duality in order to obtain feasible heuristic
is set to 1 and the step bound parameter ı̄ to 0.05. Because we were solutions for the integrated problem.
not able to solve the refinery planning problem to global optimal- The proposed Lagrangian decomposition procedure has been
ity, we used CONOPT as the NLP solver. Other local NLP solvers applied to a larger and more complex refinery problem. The refinery
as SNOPT and IPOPT did not perform as well (slow convergence, planning problem is based on a crude distillation simulation model
poor solutions or local infeasibilities). As the refinery planning that has been developed by Gueddar and Dua (2011) using an arti-
problem is not solved to global optimality, it is not possible to rig- ficial neural network to fit empirical data. The crude-oil scheduling
orously estimate the optimality of the solution obtained for the problem is the third example of Lee et al. (1996). The results have
full-space problem. Therefore, the convergence tolerance ε is set to shown that the proposed approach remains very competitive com-
0.01 instead of 0.0001 as in the case study. Furthermore, many iter- pared to other MINLP algorithms, namely the two-step MILP-NLP
ations are needed to generate enough cutting planes and make the sequential procedure and standard MINLP solvers.
2764 S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766
• NOv1 v2 is 1 if operations v1 and v2 must not overlap, 0 if they are Ziv = 1 if operation v is assigned to priority-slot i, Ziv = 0 other-
allowed to overlap wise
• GNO is the non-overlapping graph (see Mouret et al., 2011) whose • Time variables Siv ≥ 0, Div ≥ 0, Eiv ≥ 0 i ∈ T, v ∈ W
adjacency matrix is NO Siv is the start time of operation v if it is assigned to priority-slot
• [Vvt , Vvt ] are bounds on the total volume transferred during trans- i, Siv = 0 otherwise
fer operation v; in all instances, Vvt = 0 for all operations except Div is the duration of operation v if it is assigned to priority-slot
i, Div = 0 otherwise
unloadings for which Vvt = Vvt is the volume of crude in the marine
Eiv is the end time of operation v if it is assigned to priority-slot
vessel
i, Eiv = 0 otherwise
• [N D , ND ] are the bounds on the number of distillations • Operation variables V t ≥ 0 and Vivc ≥ 0 i ∈ T, v ∈ W, c ∈ C
• [FRv , FRv ] are flowrate limitations for transfer operation v iv
Vitv is the total volume of crude transferred during operation v
• [xvk , xvk ] are the limits of property k of the blended products
if it is assigned to priority-slot i, Vitv = 0 otherwise
transferred during operation v
Vivc is the volume of crude c transferred during operation v if it
• xck is the value of the property k of crude c
is assigned to priority-slot i, Vivc = 0 otherwise
• [Ltr , Lrt ] are the capacity limits of tank r • Resource variables Lt and Lirc i ∈ T, r ∈ R, c ∈ C
ir
• [Dr , Dr ] are the bounds of the demand on products to be trans- t is the total accumulated level of crude in tank r ∈ R ∪ R
Lir S C
ferred out of the charging tank r during the scheduling horizon before the operation assigned to priority-slot i
Lirc is the accumulated level of crude c in tank r ∈ RS ∪ RC before
The following variables are introduced in the model. the operation assigned to priority-slot i
• Assignment variables Ziv ∈ {0, 1} i ∈ T, v ∈ W The crude-oil scheduling MOS model is expressed as follows:
2766 S. Mouret et al. / Computers and Chemical Engineering 35 (2011) 2750–2766
References Kelley, J. E. (1960). The cutting-plane method for solving convex programs. Journal
of the Society for Industrial and Applied Mathematics, 8(4), 703–712.
Adhya, N., Tawarmalani, M., & Sahinidis, N. V. (1999). A Lagrangian approach Kelly, J. D., & Mann, J. L. (2003). Crude oil blend scheduling optimization: An appli-
to the pooling problem. Industrial and Engineering Chemistry Research, 38(5), cation with multimillion dollar benefits. Hydrocarbon Processing, 82(6), 47–53.
1956–1972. Kelly, J. D., & Zyngier, D. (2008). Hierarchical decomposition heuristic for schedul-
Alhajri, I., Elkamel, A., Albahri, T., & Douglas, P. L. (2008). A nonlinear programming ing: Coordinated reasoning for decentralized and distributed decision-making
model for refinery planning and optimisation with rigorous process models and problems. Computers and Chemical Engineering, 32(11), 2684–2705.
product quality specifications. International Journal of Oil, Gas and Coal Technol- Lee, H., Pinto, J. M., Grossmann, I. E., & Park, S. (1996). Mixed-integer linear pro-
ogy, 1(3), 283–307. gramming model for refinery short-term scheduling of crude oil unloading with
Audet, C., Brimberg, J., Hansen, P., Le Digabel, S., & Mladenović, N. (2004). Pooling inventory management. Industrial and Engineering Chemistry Research, 35(5),
problem: Alternate formulations and solution methods. Management Science, 1630–1641.
50(6), 761–776. Lemaréchal, C. (1974). An algorithm for minimizing convex functions. In Proceedings
Barahona, F., & Anbil, R. (2000). The volume algorithm: Producing primal solutions IFIP’74 congress (pp. 552–556).
with a subgradient method. Mathematical Programming, 87(3), 385–399. Li, W., Hui, C., & Li, A. (2005). Integrating CDU, FCC and product blending models
Bazaraa, M. S., & Sherali, H. D. (1981). On the choice of step size in subgradient into refinery planning. Computers and Chemical Engineering, 29(9), 2010–2028.
optimization. European Journal of Operational Research, 7(4), 380–388. Li, Z., & Ierapetritou, M. G. (2010). Production planning and scheduling integration
Bodington, C. E., & Baker, T. E. (1990). A history of mathematical programming in through augmented Lagrangian optimization. Computers and Chemical Engineer-
the petroleum industry. Interfaces, 20(4), 117–127. ing, 34(6), 996–1006.
Camerini, P. M., Fratta, L., & Maffioli, F. (1975). On improving relaxation methods by Maravelias, C. T., & Sung, C. (2009). Integration of production planning and
modified gradient techniques. Mathematical Programming Studies, 3, 26–34. scheduling: Overview, challenges and opportunities. Computers and Chemical
Cheney, E. W., & Goldstein, A. A. (1959). Newton’s method for convex programming Engineering, 33(12), 1919–1930.
and Tchebycheff approximation. Numerische Mathematik, 1(1), 253–268. Marsten, R. E., Hogan, W. W., & Blankenship, J. W. (1975). The boxstep method for
Dua, V. (2010). A mixed-integer programming approach for optimal configuration large-scale optimization. Operations Research, 23(3), 389–405.
of artificial neural networks. Chemical Engineering Research and Design, 88(1), Misener, R., & Floudas, C. A. (2009). Advances for the pooling problem: Model-
55–60. ing, global optimization, and computational studies. Applied and Computational
Erdirik-Dogan, M. E., & Grossmann, I. E. (2008). Simultaneous planning and Mathematics, 8(1), 3–22.
scheduling of single-stage multi-product continuous plants with parallel lines. Moro, L. F. L., & Pinto, J. M. (2004). Mixed-integer programming approach for short-
Computers and Chemical Engineering, 32(11), 2664–2683. term crude oil scheduling. Industrial and Engineering Chemistry Research, 43,
Fisher, M. L. (1981). The Lagrangian relaxation method for solving integer program- 85–94.
ming problems. Management Science, 27(1), 1–18. Mouret, S., Grossmann, I. E., & Pestiaux, P. (2009). A novel priority-slot based
Fisher, M. L. (1985). An application oriented guide to Lagrangian relaxation. Inter- continuous-time formulation for crude-oil scheduling problems. Industrial and
faces, 15, 10–21. Engineering Chemistry Research, 48(18), 8515–8528.
Floudas, C. A., & Visweswaran, V. (1993). A primal-relaxed dual global optimization Mouret, S., Grossmann, I. E., & Pestiaux, P. (2011). Time representations and math-
approach. Journal of Optimization Theory and Applications, 78(2), 187–225. ematical models for process scheduling problems. Computers and Chemical
Foulds, L. R., Haugland, D., & Jörnsten, K. (1992). A bilinear approach to the pooling Engineering, doi:10.1016/j.compchemeng.2010.07.007
problem. Optimization, 24(1–2), 165–180. Neiro, S. M. S., & Pinto, J. M. (2006). Lagrangean decomposition applied to mul-
Frangioni, A. (2005). About Lagrangian methods in integer optimization. Annals of tiperiod planning of petroleum refineries under uncertainty. Latin American
Operations Research, 139(1), 163–193. Applied Research, 36(4), 213–220.
Goffin, J. L., Haurie, A., & Vial, J. P. (1992). Decomposition and nondifferentiable Pinto, J. M., & Moro, L. F. L. (2000). A planning model for petroleum refineries.
optimization with the projective algorithm. Management Science, 38(2), 284– Brazilian Journal of Chemical Engineering, 17(4–7), 575–586.
302. Quesada, I., & Grossmann, I. E. (1995). A global optimization algorithm for linear
Gueddar, T., & Dua, V. (2011). Novel model reduction techniques for refinery-wide fractional and bilinear programs. Journal of Global Optimization, 6(1), 39–76.
energy optimization. Applied Energy Journal, in press. Robertson, G., Palazoglu, A., & Romagnoli, J. A. (2010). Refinery scheduling of crude
Guignard, M. (2003). Lagrangean relaxation. Top, 11(2), 151–228. oil unloading, storing, and processing considering production level cost. In 20th
Held, M., & Karp, R. M. (1971). The traveling-salesman problem and minimum span- European symposium on computer aided process engineering – ESCAPE20. Vol. 28
ning trees. Part II. Mathematical Programming, 1(1), 6–25. of Computer Aided Chemical Engineering (pp. 1159–1164).
Held, M., & Karp, R. M. (1974). Validation of subgradient optimization. Mathematical Zhang, J., Kim, N., & Lasdon, L. (1985). An improved successive linear programming
Programming, 6(1), 62–88. algorithm. Management Science, 31(10), 1312–1331.
Jia, Z., Ierapetritou, M. G., & Kelly, J. D. (2003). Refinery short-term scheduling using Zhang, J., Zhu, X. X., & Towler, G. P. (2001). A level-by-level debottlenecking
continuous time formulation: Crude-oil operations. Industrial and Engineering approach in refinery operation. Industrial and Engineering Chemistry Research,
Chemistry Research, 42(13), 3085–3097. 40(6), 1528–1540.