Beruflich Dokumente
Kultur Dokumente
3, 2008 283
T. Albahri
Chemical Engineering Department,
Kuwait University,
Safat, Kuwait
E-mail: albahri@kuc01.kuniv.edu.kw
P.L. Douglas
Chemical Engineering Department,
University of Waterloo,
Waterloo, Ontario, Canada
E-mail: pdouglas@uwaterloo.ca
Abstract: The yield of products in large-scale plants such as oil refineries have
a significant impact on overall profitability. Currently, many refineries apply
Linear Programming (LP) techniques for their production planning models.
However, this will often give inconsistent predictions of refinery productivity
and operation. Moreover, the stringent environmental regulations, product
qualities, and heavier feed stocks make it necessary to develop accurate models
for refinery-production planning. In this work, an approach with more accurate
representation of the refinery processes is presented. The resulting model is
able to predict the operating variables such as the Crude Distillation Unit
(CDU) cut-point temperatures and the conversion of the Fluid Catalytic
Cracking unit (FCC). It can also evaluate properties of the final products to
meet the market specification as well as the required product demands to
achieve a maximum refinery profit. The model is illustrated on representative
case studies, and the results are discussed. [Received: December 4, 2007;
Accepted: January 17, 2008]
Reference to this paper should be made as follows: Alhajri, I., Elkamel, A.,
Albahri, T. and Douglas, P.L. (2008) ‘A nonlinear programming model for
refinery planning and optimisation with rigorous process models and product
quality specifications’, Int. J. Oil, Gas and Coal Technology, Vol. 1, No. 3,
pp.283–307.
1 Introduction
Petroleum refineries extract and upgrade the valuable components of crude oil to produce
a variety of marketable petroleum products that are vital to everyday life. Examples
of these valuable products are gasoline, jet fuel and diesel. The petroleum-refining
industry employs a wide variety of processes as shown in Figure 1. It begins with the
Crude Distillation Unit (CDU) or fractionation of crude oils into separate hydrocarbon
groups. The resultant products are directly related to the characteristics of the crude
processed. Most distillation products are further converted into more usable products by
changing the size and structure of the hydrocarbon molecules through cracking,
reforming, and other conversion processes. Integrated refineries incorporate fractionation,
conversion, treatment, upgrading, and blending operations and may also include
petrochemical processing (Bodington, 1995; Favennec, 2001).
A nonlinear programming model for refinery planning 285
2 Problem statement
reduce the allowed sulphur content in fuel products. A rigorous model of refinery
operations, which can capture the different refinery feed characteristics and which
mimics the different refinery stages more accurately, is attempted in this paper.
We consider an oil refinery that consists of several processing units, splitters, and
mixers. The final refinery products Vi,s, I = {refinery processing units} and s = {streams},
have to meet market demand and specification. The processing units have operating
variables XUi,x, x = {operating variables} that affect the product flow rates and properties.
The different units are connected by splitters and mixers. The overall objective
is to maximise the refinery profit by adjusting the flow rates of different streams,
intermediates or final products, as well as the operating variables for the processing units.
3 Mathematical model
Equation (1) expresses the overall refinery profit as revenues from selling all products,
subtracting costs of purchasing feedstock and costs of operating process units
in the refinery. B represents the set of blending units for the final products and their
sales price Cpi. The cost Cfi of the feedstock purchased from external sources defined
under the set (E) for all the units that receive such material from outside. Finally, there
is an operating cost Cxi for each processing unit (i) in the refinery where it is usually
expressed as a function of the quantity fed to the unit.
The feed Fi for any processing unit (i ∈ I, I is the defined set of all the units in the
refinery) is the summation of all flow rates VSj,s,i of the possible streams s that can be
received by unit (i) from units (j ∈ J), where J is defined as the set of all units that can
send streams to unit (i) and N is defined as the set of all streams s that can be sent from
unit (j) to unit (i).
• Feed properties of processing units:
FPi ,p = f (VS j ,s ,i , PV j ,s ,p ) ∀ i ∈ I , p ∈ PFi . (3)
Properties (p) of the feed to unit (i) are represented by FPi,p, and PFi is the set of all feed
properties to unit (i). The properties are functions of the quantities and properties
of all streams s from unit (j), VSj,s,i, and PVj,s,p, respectively. For example, the sulphur
weight percent on the catalytic reformer unit feed is written as:
FPCR ,SUL =
( ∑ VSj j ,Naph, CR × PV j ,Naph, SUL ).
( FCR × FPCR , SG )
The product flow rate from unit (i) for stream (s) represented by Vi,s (s ∈Si; Si is the
defined set of all the streams produced from unit i) is a function of the unit (i) feed
quantity Fi and property FPi,p as well as the operating variables XUi,x (x ∈ X; X is the
defined set of all operating variables). For example, the light naphtha produced from the
Fluid Catalytic Cracking (FCC) unit is written as:
A nonlinear programming model for refinery planning 289
where ah and bh are constants.
• Product properties of processing units:
PVi ,s ,p = f ( FPi ,p , XU i ,x ) ∀ i ∈ I , s ∈ Si , p ∈ Pi (5)
PVi,s,p is the product property (p) for product stream (s) from unit (i), which is a function
of unit (i) feed properties FPi,p and the operating variables XUi,x. For example, the flash
point temperature of the kerosene produced by the HC unit is written as:
( FP + 460) ^ 0.333
PVHC ,Kero,FLSH = 120 − 4 × HC ,VABP − [0.05 × XU HC ,CONV% ]
FPHC ,SG
• Product splitting:
Vi ,s = ∑ m∈M VSi ,s ,m ∀ i ∈ I , s ∈ Si . (6)
The above equation represents the possibility for each product from unit (i) to be split
into many streams either as final product or feed to other processing units. Product stream
(s) from unit (i) represented by Vi,s can be sent to different destinations (m) defined
by streams VSi,s,m (m ∈ M; M is defined as the set of all the possible units or final
products pool blending that can receive the splitted streams).
• Processing unit capacity:
Fi ≤ Umax i ∀ i ∈ I. (7)
The feed of processing unit (i) cannot exceed its maximum capacity, which is represented
by Umaxi.
Equations (2) and (3) represent the feed quantities and properties of the processing
unit models, which play an important role in the product flow rates and properties,
defined by equations (4) and (5). Clearly, equations (2), (6) and (7) are linear whereas
equations (3)–(5) are nonlinear owing to mixing.
Figure 3 TBP distillation curve (Crude: Alaska) (see online version for colours)
The mathematical model for the CDU is expressed by constraints similar to the general
constraints (2)–(7) discussed earlier. The same notation will be used here, where the unit i
for this case will be the CDU unit. The operating variable of the CDU unit is the cut-point
temperature for fraction (s), x = TECDU. Also, the products stream for the CDU unit are
fractions s (s ∈ SCDU = LPG, SRLN, SRHN, Kero, Diesel, VGO, and Rsd). The CDU
model is described as follows:
4
Cuts = ∑ ak (TECDU ,s ) k ∀ s ∈ SCDU − {Rsd } (8)
k =0
Cuts represents the volume percent vapourised of all fractions (s), except the residue
product, of CDU unit. The cuts are usually represented as a polynomial function in
TECDU,s, which is equivalent to the End-Point Temperatures (EP). For every product from
the CDU, the TECDU,s has an upper and a lower bound, which is called the swing cut.
Figure 4 shows an illustration of the CDU cuts volume as a function of the fractions
temperature TECDU,s. The coefficients of the polynomial of the CDU equation are listed in
Table 2. The residual cut volume percent is expressed as:
CutCDU ,s = Rsd = 100. (9)
A nonlinear programming model for refinery planning 291
Cut % (Vol.)
Parameter equation (8) API equation (12) SUL% equation (12) N% equation (12)
a0 4.040637061 81.84796736 0.050579083 –0.000882902
a1 –0.047271899 –3.778147973 –0.02036269 0.000304355
a2 0.000324992 0.113288448 0.001849373 –2.2968E–05
a3 –2.84324E–07 –0.0015436414 –3.25656E–05 4.58852E–07
a4 8.15312E–11 7.19024E–06 2.0301E–07 6.76957E–09
Since the last cut is the residue of the crude, it will be assumed that the accumulative
vapourised percent will be 100%.
Each product volumetric flow rate is calculated by subtracting its accumulated
volume percent vapourised from the previous cut volume and multiply the result with
crude feed to the CDU, i.e.,
Cuts − Cuts −1
VCDU ,s = FCDU × ∀ s ∈ SCDU (10)
100
VCDU,s represents the volume flow rate of all the products (s) from the CDU unit, and
FCDU is the crude oil to the CDU.
Properties of each product from the CDU (API, sulphur, etc.) are expressed as
polynomial functions in each product mid-volume percent vapourised. The mid-volume
for any product can be calculated from averaging the accumulative current cut volume
percent with the previous cut volume percent vapourised:
Cuts + Cuts −1
MidVCDU ,s = ∀ s ∈ SCDU (11)
2
292 I. Alhajri et al.
4
PVCDU ,s ,p = ∑ ak MidVs
k
∀ s ∈ SCDU , p ∈ Ps (12)
k =0
PVCDU,s,p represents different properties (p) for each product (s) from the CDU unit.
Ps is the set of all the properties calculated for the specified stream (s).
VCDU ,s = ∑ VS
m∈M
CDU ,s ,m ∀ s ∈ SCDU (13)
VSCDU,s,m represents the volume flow rate of all the streams split from the CDU
products (s) to different destinations (m), as explained in equation (6).
All fractions for the CDU, except residue, have an upper and a lower limit for their
cut-point, i.e.,
L
TECDU U
,s ≤ TECDU ,s ≤ TECDU ,s ∀ s ∈ SCDU − {Rsd }. (14)
Also, the crude feed to the unit cannot exceed its throughput capacity:
FCDU ≤ Umax CDU . (15)
Table 3 Processing units feed and product streams and properties (continued)
Table 4 Operation variables used for predicting product yields and properties
• Products yield:
4
V FCC, s = F FCC × FP FCC, SG × ∑ ( a s , h + b s , h × FP FCC, K ) × XU FCC,Conv% s ∈ SFCC
h
(16)
h=0
VFCC,s represents the yield for FCC unit products, where FPK is the characterisation factor
of the FCC feed and the operating variable x is the conversion of the FCC unit.
• Products properties:
The products APIs and sulphur content are a function of both the characterisation factor
of the feed and conversion of the unit, i.e.,
1
∑ (as , h + b s , h × FP FCC, K ) × XU FCC,Conv%
h
and
[(as + b s × XU FCC,Conv%)]
FP FCC,SUL% × s ∈ S FCC (18)
(c s + d s × XU FCC,Conv%)
RON (equation (19)) and the flash point (equation (20)) were correlated as function of
LN and HN:
A nonlinear programming model for refinery planning 295
(as + b s × XU FCC,Conv%)
PVFCC, s ,RON = s = LN , HN ∈ S FCC (19)
(cs + d s × XU FCC,Conv%)
[(as + b s × XU FCC,Conv%)]
PV FCC, s ,FLSH = 210 +
(cs + d s × XU FCC,Conv% + e s × XU FCC,Conv%
2
) (20)
s = Kero ∈ SFCC .
where BIp represents the BI for a property p. PIs is the property index for the property p
of a stream s and ys is either weight or volume fraction depending on the property.
The properties covered in this study are given below.
3.4.1 API
The density of petroleum oil is expressed in terms of API gravity rather than specific
gravity. The blended API can be calculated by the following equation (Gary and
Handwerk, 1994):
141.5
API blend = − 131.5. (22)
SGblend
Specific Gravity (SG) can be averaged while API cannot. Therefore, the SG of the blend
can be calculated as:
SGblend =
∑ V × SG
s s s
(23)
∑V s s
Vs represents the volume percent of stream s and SGs is the specific gravity of stream s.
in weight percent. It can be calculated from the following equation (Gary and
Handwerk, 1994):
SUL blend =
∑ W × SUL
s s s
(24)
∑W s
where z = RON/100
RON blend =
∑ V × RONI
s s s
. (26)
∑V s s
RVPBI blend =
∑V s s × RVPBIs
(28)
∑V s s
where RVPBIs is the BI for RVPs. RVP can be calculated in bar or psia in the above
equation. This relation was originally developed by Chevron and is also recommended in
other industrial manuals under Chevron blending number.
2414
log10 FLSHI s = −6.1188 + . (30)
FLSH s − 42.6
FLSHIS is the flash point BI of stream s and FLSHs is the flash point
in degrees Kelvin. The blend flash point index can be determined from the general
equation (21) with a volume averaging.
4 Case studies
To illustrate the model of the previous section, different case studies are considered.
Figure 1 shows a simplified flow diagram for the oil refinery under consideration.
A single or mixture of crude oils can be charged to the CDU unit. CDU consists
of an atmospheric and vacuum distillation tower. Different fractions are then withdrawn
from the unit including Straight Run Light Naphtha (SRLN), Straight Run Heavy
Naphtha (SRHN), Kerosene (Kero), diesel, Vacuum Gas Oil (VGO) and residue.
The overhead gases are sent directly to a Liquefied Petroleum Gas (LPG) plant.
The hydrotreating is utilised to remove the sulphur from the intermediate streams.
The SRLN stream from the top of the distillation column is sent to a gasoline pool for
blending. The SRHN stream from the CDU after being hydrotreated in NHT is fed
to a catalytic reformer. The Catalytic Reforming (CR) process reforms the molecular
structure of the heavy naphtha to increase the percentage of high-octane (for gasoline
blending). The VGO stream, after being hydrotreated in GOHT, is fed to the FCC unit
and the HC unit.
298 I. Alhajri et al.
The FCC process converts heavy gas oils into lighter products, which are then used as
blendstocks for gasoline and diesel fuels. The HC unit is similar to the FCC unit
to the extent that this process catalytically cracks the heavy molecules that comprise gas
oils by splitting them into smaller molecules, which boil in the gasoline, kerosene, and
diesel fuel boiling ranges. The residue from the bottom of the distillation column
is hydrotreated and then directed to fuel oil pool.
The model was implemented in the General Algebraic Modelling System (GAMS)
Brooke et al. (1998) and solved with the CONOPT solver (Drud, 1994). Different initial
starting points were used and the best solution was retained. The model optimises
all intermediate and final product streams across the oil refinery subject to connectivity,
capacity, demand, and quality constraints. These constraints can be easily modified
to either include new data or guide the model to acceptable solutions.
For the ATK and LSDSL case studies (Tables 10 and 11, respectively), the property
constraints for the gasoline (API, SUL, and RON) and the viscosity of the LSFO were the
binding constraints. For the LSFO case (Table 12), the lighter product specifications were
the binding constraints.
on production of LSDSL and ATK rather than gasoline. Again the viscosity restriction
on LSFO forced the model to produce a large quantity of LSFO. The profit is improved
in this case by a margin of 2.3% compared with the base case.
Max profit
Base case Max gasoline Max ATK Max LSDSL Max LSFO (free demand)
CDU cut point (F)
SRLN 220.0 220.0 194.1 208.7 208.8 213.8
SRHN 380.0 380.0 330.0 369.5 380.0 330.0
KERO 506.1 420.0 520.0 420.0 420.0 455.2
CDU cut point (F)
Diesel 610.0 610.0 610.0 630.0 610.0 610.0
VGO 1050.0 1050.0 1050.0 1050.0 950.0 1050.0
FCC unit 78.0 78.0 0.0 0.0 72.0 0.0
conversion (%)
Blending products (BPD)
PRG 15000 8880 15490 18855 15415 5000
RGG 15000 34670 5000 5000 10405 16280
ATK 25975 6740 37045 20470 6740 28405
LSDSL 29030 27810 26515 41180 18885 36620
LSFO 18980 22800 20085 18590 37820 18585
Refinery profit 2.1791 2.0252 2.1471 2.150 1.4319 2.2292
($MUS/D)
One of the main advantages of the nonlinear planning model, which can be inferred
from the previous discussion and results, is that it can provide an optimal operating
strategy for the refinery while at the same time meet product’s properties and production
rates. Quality give-away is also minimised hence resulting in large savings for the
petroleum refinery. This of course is in addition to the more accurate representation
of the refinery units.
A nonlinear programming model for refinery planning 305
5 Conclusion
Acronyms
CDU Crude Distillation Unit (Atmospheric and vacuum)
GP Gas Plant
NHT Naphtha Hydrotreater
DHT Distillate Hydrotreater
GOHT Gas Oil Hydrotreater
RDHT Residue Hydrotreater
CR Catalytic Reformer
HC Hydrocracker
FCC Fluid Catalytic Cracker
PRG Premium Gasoline
RGG Regular Gasoline
Kero Kerosene
ATK Aviation Turbine Kerosene
LSDSL Low Sulfur Diesel
LSFO Low Sulfur Fuel Oil
SUL Sulphur weight %
RON Research Octane No.
RVP Reid Vapor Pressure
OXG Oxygenate weight %
FLSH Flash Point Temp.
FRZ Freeze Point Temp.
CI Cetane Index
VISC Viscosity @ 210F
306 I. Alhajri et al.
References
Al-Enezi, G., Fawzi, N. and Elkamel, A. (1999) ‘Development of regression model to control
product yields and properties of the fluid catalytic cracking process’, Petroleum Science and
Technology, Vol. 17, No. 6–7, pp.535–552.
Allen, D.H. (1971) ‘Linear programming models for plant operations planning’, British Chemical
Engineering, Vol. 16, pp.685–691.
Baird, C. (1987) Petroleum Refining Process Correlations, HPI consultant.
Bodington, C.E. (1995) Planning, Scheduling, and Control Integration in the Process Industries,
McGraw-Hill, New York.
Brooke, A., Kendrick, D., Meeraus, A. and Ramesh R. (1998) GAMS–A User’s Guide: Tutorial by
Richard E. Rosenthal, GAMS Development Corporation, Washington DC, USA.
Drud, A.S. (1994) ‘CONOPT: a large scale GRG code’, Operations Research Society of America
Journal of Computing, Vol. 51, No. 11, pp.1271–1288.
Elkamel, A., Al-Ajmi, A. and Fahim, M. (1999) ‘Modeling the hydrocracking process using
artificial neural networks’, Petroleum Science and Technology, Vol. 17, Nos. 9–10,
pp.931–954.
Energy Information Administration (2006) World Oil Market and Oil Price Chronologies,
http://www.eia.doe.gov. accessed February.
Favennec, J.P. (2001) Refinery Operation and Management, Volume 5 of Petroleum Refining
Series, Editions Technip, Paris.
Gary, J.H. and Handwerk, G.E. (1994) Petroleum Refining: Technology and Economics, 3rd ed.,
Marcel Dekker, Inc. New York.
Li, W., Hui, C.W. and Li, A. (2005) Integrating CDU, FCC and product blending models into
refinery planning’, Computers and Chemical Engineering, Vol. 29, pp.2010–2028.
Maiti, S.N., Eberhardt, J., Kundu, S., Cadenhouse-Beaty, P.J. and Adams, D.J. (2001) ‘How to
efficiently plan a grassroots refinery’, Hydrocarbon Processing, Vol. 80, No. 6, pp.43–50.
Maples, R.E. (1993) Petroleum Refinery Process Economy, Penn Well Publishing Company,
Oklahoma, USA.
Moro, L.F.L., Zanin, A.C. and Pinto, J.M. (1998) ‘A planning model for refinery diesel
production’, Computers and Chemical Engineering, Vol. 22, pp.1039–1042.
Neiro, S.M.S. and Pinto, J.M. (2005) ‘Multiperiod optimization for production planning of
petroleum refineries’, Chemical Engineering Communications, Vol. 192, pp.62–88.
Pinto, J.M. and Moro, L.F.L. (2000) ‘A planning model for petroleum refineries’, Brazilian Journal
of Chemical Engineering, Vol. 17, Nos. 4–7, pp.575–586.
Riazi, M.R. (2005) Characterization and Properties of Petroleum Fractions, 1st ed., ASTM
International, PA, USA.
Symonds, G. (1956) ‘Linear programming solves gasoline refining and blending problems’,
Industrial and Engineering Chemistry, Vol. 48, No. 3, pp.394–401.
Watkins, R.N. (1979) Petroleum Refinery Distillation, 2nd ed., Gulf Pub. Co., Book Division,
Houston, USA.
Zhang, N. and Zhu, X.X. (2000) ‘A novel modelling and decomposition strategy for overall
refinery optimisation’, Computers and Chemical Engineering, Vol. 24, pp.1543–1548.
Zhang, J., Zhu, X.X. and Towler, G.P. (2001) ‘A simultaneous optimization strategy for overall
integration in refinery planning’, Industrial and Engineering Chemistry Research, Vol. 40,
pp.2640–2653.
A nonlinear programming model for refinery planning 307
Nomenclature
I Set of units (i) in the refinery
J Set of units (j) that can send products to unit (i), J ∈ I
N Set of streams (s) of unit (i) can be sent to unit (j), N ∈ I
M Set of unit (m) can received stream (s) from unit (i), M ∈ I
B Set of final blending units (b), B ∈ I
E Set of unit (e) received external feed, E ∈ I
S Set of product streams (s) of unit (i)
P Set of properties (p) of stream (s)
PF Set of properties (p) of feed to unit (i)
X Set of operating variables of unit (i)
Indices
i, j, m, b For refinery unit
s, n For stream
P For property
X For operating variable
Parameters
Umaxi Maximum capacity of unit (i)
U
TE , TE
S
L
S
Upper and lower bounds of the end point temp. of stream (s) from
CDU
Cpi Cost price of product from unit (i)
Cxi Operating cost for unit (i)
Cfi Cost price of feed to unit (i)
Cpi Cost price of operating unit (i)
ak,p Coefficient for calculating the property (p) of stream (s)
Variables
Fi Volumetric flow rate of feed to unit (i), BPD
Vi,s Volumetric flow rate of stream (s) from unit (i), BPD
Wi,s Weight flow rate of stream (s) from unit (i), KLbPD
VSi,s,m Volumetric flow rate of stream (s) splitted from product Vi,s of unit
(i) received by unit (m), BPD
PVi,s,p Property (p) of stream (s) from unit (i)
FPi,p Property (p) of feed to unit (i)
XUi,u Operating variable x of unit I
TECDU,s End point (EP) cut temperature for stream (s) of (CDU) unit
Cuts Volume percent vapourised of stream (s) at the TEs
ys Weight or volume fraction of stream (s)