Professional Documents
Culture Documents
www.elsevier.com/locate/compchemeng
Abstract
This paper addresses the problem of developing an optimisation structure to aid the operational decision-making of scheduling
activities in a real-world pipeline scenario. The pipeline connects an inland refinery to a harbour, conveying different types of oil
derivatives. The optimisation structure is developed based on mixed integer linear programming (MILP) with uniform time
discretisation, but the MILP well-known computational burden is avoided by the proposed decomposition strategy, which relies on
an auxiliary routine to determine temporal constraints, two MILP models, and a database. The scheduling of operational activities
takes into account product availability, tankage constraints, pumping sequencing, flow rate determination, and a variety of
operational requirements. The optimisation structure main task is to predict the pipeline operation during a limited scheduling
horizon, providing low cost operational procedures. Illustrative instances demonstrate that the optimisation structure is able to
define new operational points to the pipeline system, providing significant cost saving.
# 2003 Elsevier Ltd. All rights reserved.
Nomenclature
General parameters
Cplug average cost to pump a plug product ($)
Ctank average cost per volume unit to maintain a product in a tank ($/m3)
Cw cost ($) used to normalise the expression (1)
Cet average electric cost per flow rate unit at a time t ($ h/m3)
CPpump average temporal cost to pump a product. Reflow procedure ($/h)
CRpump average temporal cost to pump a product. Flow procedure ($/h)
CS average temporal cost to maintain the pipe pressurised ($/h)
EPpmax,j maximum storage capacity of p in a tank j of the harbour tank farm (m3)
EPpmin,j minimum storage capacity of p in a tank j of the harbour tank farm (m3)
ERpmax ,i maximum storage capacity of p in a tank i of the refinery tank farm (m3)
ERpmin ,i minimum storage capacity of p in a tank i of the refinery tank farm (m3)
i refinery tanks
Ip ,pa 1 if pumping the product p followed by pa requires a plug between then,
0 otherwise. It is a dimensionless parameter
K auxiliary constant (m3) used to formulate constraints (15), (16), (19),
and (20)
j harbour tanks
NF normalisation factor. It is a dimensionless parameter */see Section 5
npp number of products demanded by the harbour
npr number of products demanded by the refinery
p ,pa products
PND product that fills the pipeline at the initial time (t/1)
P _R 1 if the reflow procedure is followed by the flow procedure, 0
otherwise. It is a parameter specified by the user
PPmax
p maximum flow rate of p. Reflow procedure (m3/h)
PPmin
p minimum flow rate of p. Reflow procedure (m3/h)
PRmax
p maximum flow rate of p. Flow procedure (m3/h)
PRmin
p minimum flow rate of p. Flow procedure (m3/h)
PTp harbour tanks that storage a product p
QPp volume of p demanded by the harbour (m3)
QPmax
p maximum volume of p demanded by the harbour (m3)
QPmin
p minimum volume of p demanded by the harbour (m3)
QRp volume of p demanded by the refinery (m3)
QRmax
p maximum volume of p demanded by the refinery (m3)
QRmin
p minimum volume of p demanded by the refinery (m3)
R _P 1 if the flow procedure is followed by the reflow procedure, 0
otherwise. It is a parameter specified by the user
RTp refinery tanks that storage a product p
t discrete time t/1. . .T (h)
T time horizon or scheduling horizon (h)
Vipp ,j product p storage volume in tank j at the initial time (t/1).
Harbour tank farm (m3)
Vipr ,i product p storage volume in tank i at the initial time (t/1).
Refinery tank farm (m3)
VD pipeline volume (7314 m3)
t discrete time duration (h)
Tank bound variables
LPp binary variable that indicates whether p can be the last sequenced
product of reflow procedure (1) or not (0)
LRp binary variable that indicates whether p can be the last sequenced
product of flow procedure (1) or not (0)
TB _Cost expression (1) normalised value ($)
L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185 173
The pipeline is 93.5 km length (Dl), it can store a total xii) A minimum time horizon (Tmin) is required to
volume of 7314 m3 (Dv ), and it connects a refinery tank pump the entire demand. In such horizon, every
farm to a harbour tank farm going along regions with product is pumped at its maximum flow rate */see
900-m altitude difference (Dh ). The pipe conveys equation (21).
different types of commodities (gasoline, diesel, kero- xiii) To pump products from refinery to harbour is
sene, alcohol, liquefied petroleum gas, jet fuel, etc.), called flow procedure. To pump from harbour to
which are oil derivatives. Thus, the set of products refinery is called reflow procedure. A complete
conveyed by the pipe is limited. It is possible to pump pumping operation covers either a flow followed
products either from the refinery to the harbour (this is by a reflow procedure or a reflow followed by a
called flow procedure) or from the harbour to the flow procedure. The user specifies the ordering
refinery (this is called reflow procedure). The pipe flow/reflow or reflow/flow (see the parameters
R _P and P _R in general parameter in nomencla-
operates uninterruptedly, and there is no physical
ture).
separation between successive products as they move
xiv) The pipeline stores 7314 m3 and it always operates
in the pipe. Consequently, there is a contamination area
completely filled. There is a time between sending
between miscible products: the interface. Some inter-
a product and receiving it. Therefore, an extra
faces are operationally not recommended, and a plug product amount must be pumped after either the
(small volume of product) can be used to avoid specific last flow sequenced product or last reflow se-
interfaces, even though, plug inclusions increase the quenced product. This extra product amount is
operational cost. The tank farm infrastructure, an up- used to maintain the pipeline filled. Between flow/
to-date storage scenario, the pipeline flow rate details, reflow or reflow/flow operations, pumping the
and the demand requirements are known a priori. The extra product amount is called gap procedure.
task is to specify the pipeline operation during a limited After sending all demanded products, it is also
time horizon (T ), providing low cost operational necessary to fill the pipeline with an extra product
procedures. Nevertheless, the scheduling process must amount. This operation is called end procedure.
also take into account some issues concerning product Fig. 6 in Section 5 illustrates the gap and the end
availability, tankage constraints, pumping sequencing, procedures.
flow rate determination, and operational requirements, xv) The system starts pumping at the initial time (t/
which are herewith described in (i)/(xv): 1). In case T /Tmin the pumping procedure may
be finished before T , but the pipeline must remain
i) Pipeline can fill or empty only one tank at a time. pressurised. There is also an operational cost to
ii) Tanks being emptied can not be filled, and tanks maintain the pipeline pressurised.
being filled can not be emptied.
iii) The tank farm infrastructure limits must be
respected.
iv) A tank always stores the same product, but each 3. Methodology
product may have more than one storage tank.
v) Tank changeovers should be minimised. The core methodology applied to this work is the
vi) The product flow rate range must be respected. MILP with uniform time discretisation. Magatão,
vii) Demand requirements within an operational range Arruda and Neves (2001) previously addressed the
must be satisfied. same pipeline-scheduling problem by a monolithic
viii) Every product must be pumped uninterruptedly. MILP model that also relied on uniform time discretisa-
ix) The plug volume is significantly smaller than any tion. The authors demonstrated that even small in-
demanded product volume, so that, its pumping stances of the problem have potentially large integer
time is neglected. search spaces, and the computational burden should
x) Plug inclusions increase the operational cost, so have been deeply considered. In this work, the computa-
that, use of plugs should be minimised. tional complexity is indeed concerned, and an optimisa-
xi) Set-up times are neglected. tion structure is proposed to decompose the problem.
QPmin max
p 5 QPp 5QPp p; (3) product is pumped from just one tank.
X X p
Inequalities (4) /(7) specify that the required product TBTp;j npr TB_P (17)
volume has to respect the tankage storage capacity. p j PTp
X X X
r
QRmax (ERmax r TBTp;i nppTB_R (18)
p 5 p;i Vip;i ) p; (4)
i RTp p i RTp
X p
QPmax
p 5 (EPmax
p;j Vip;j ) p; (5) Due to operational facilities, at the end of flow or
j PTp reflow procedure, the last sequenced product also fills
X
QRmax p
(Vip;j EPmin the pipeline. By means of LPp and LRp */see expres-
p 5 p;j ) p; (6)
j PTp sions (1), (19) and (20) */the tank bound verifies
X product availability, indicating products that can be
QPmax 5 r
(Vip;i ERmin
p;i ) p; (7)
p used to finish flow/reflow operations. It is important to
i RTp
notice that the product sequencing must be also
Inequalities (2)/(7) establish parametric constraints. influenced by LPp and LRp . This condition is exploited
These constraints are useful to determine out of range in the main model formulation, as it can be seen in
input data specifications. Equations (8) and (9) establish equations (125) /(128).
that demand requirements must be satisfied. These X p
(Vip;j EPmin
p;j )QRp VD]K ×(1LPp )
equations together with inequalities (2) /(7) state that, j PTp (19)
in fact, demand requirements within an operational
range must be satisfied */item (vii) of Section 2. p;
X
X p
r
(Vip;i ERmin
p;i )QPp VD]K ×(1LRp )
QRp (Vip;j Vfp;jp ) p; (8) i RTp (20)
j PTp
X p;
r
QPp (Vip;i Vfp;ir ) p; (9)
i RTp Thus, expressions (1) /(20) establish the tank bound
model, which, in a simplified view, indicates the
Inequalities (10) and (11) demonstrate that the final resources (tanks) that should be used to satisfy pumping
tank volume has to respect operational limits. activities.
ERmin r max
p;i 5 Vfp;i 5 ERp;i p; i RTp ; (10)
p 4.2. Optimisation structure: auxiliary routine
EPmin max
p;j 5Vfp;j 5 EPp;j p; j PTp ; (11)
Expressions (12) and (13) establish that tanks used to Equation (21) determines the minimum time horizon
supply demand requirements are emptied. to complete the entire pumping procedure (the symbol /
r / indicates that is necessary to round off the division to
Vip;i Vfp;ir ] 0 p; i RTp ; (12)
p
the next integer value).
Vip;j Vfp;jp ]0 p; j PTp ; (13) & ’ & ’ & ’
X QR X QP VD
p p
An operational transition (tank changeover) is ad- Tmin
p PPmax
p p PRmax
p MAX (PPmaxp )
mitted in case the final tank volume differs from its & ’
initial time volume. Therefore, binary variables TBTpr ,j VD
and TBTpp ,j must assume the unitary value when, 1 (21)
MAX (PRmaxp )
respectively, expressions (12) and (13) were greater
than zero. The Big-M technique (Shah, Pantelides & Equations (22) /(27) determine the end procedure
Sargent, 1993) is used to model these conditions*/see parameters.
inequalities (15) and (16). In equation (14), it is
TE T Tmin (22)
important to notice that K /Vfpp ,j /Vipp ,j , /p, j /PTp & ’ & ’
and K /Vfpr ,i /Vipr ,i , /p , i /RTp , thus, in the formula- VD VD
TT min × R_P
tion scenario, K can be considered as a ‘‘Big-M’’ MAX(PPmax
p ) MAX(PRmax
p )
number.
X X X X × P_R (23)
& ’
K ERmax
p;i EPmaxp;j (14) VD
max min
p i RTp p i RTp TT MIN TT TE; × R_P
p p p MIN(PPmin
p )
Vfp;j Vip;j ]K × TBTp;j p; j PTp ; (15) & ’
r r r
Vfp;i Vip;i ]K × TBTp;i p; i RTp ; (16) VD
× P_R (24)
MIN(PRmin
p )
Equations (17) and (18) establish that the minimum
number of tank changeovers occurs when each required TL T TT min (25)
178 L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185
INIT T TT max (26) auxiliary routine parameters in the main model for-
FIMT T (27) mulation.
Equations (28) /(31) determine the gap procedure
parameters. 4.3. Optimisation structure: main model
X& ’ X& ’
QRp QPp
INIG × P_R × R_P The objective function*/expression (36) */defines the
p PPmax
p p PRmax
p operational cost minimisation.
X
(28) minimise Cost CRpump × (TFBrp TIBrp )
X& ’ X& ’ p
QRp QPp
FIMG TL × R_P X
p PPmax
p p PRmax
p CPpump × (TFBpp TIBpp )
p
× P_R (29)
& ’ & ’
VD VD X X X
TSR1 X
TGapmin × P_R Cplug × Ip;pa × TRp;pa;t Cplug ×
max
MAX(PPp ) MAX(PRmax
p ) pa tTIR1
p p
× R_P (30) p"pa
& ’
max min VD
TGap MIN TGap TE; × P_R X X
TSP1
MIN(PPmin
p ) Ip;pa × TPp;pa;t
& ’ pa;p"pa tTIP1
VD
× R_P (31)
MIN(PRmin
p ) X
T1
[Cet ×(VAZPt VAZRt )]CS × TS Cplug
Equations (32) /(35) determine time limits that help to t1
narrow the main model search tree. Equations (40), (41), ×(SB_SW SB_PND)
(44), and (45) illustrate the use of these time limits in the
main model. (CPpump × P_RCRpump × R_P)× TGAPCEGAP
X& ’
QRp (CPpump × R_PCRpump × P_R)× TT CET (36)
TIP P_R TGapmin × R_P (32)
p PPmax
p
Expression (36) demonstrates that plug inclusions
X& ’
QRp (Ip ,pa ×/ TRp ,pa ,t , Ip ,pa ×/ TPp ,pa ,t , SB _SW , SB _PND ) in-
TSP TL TGapmin × P_R (33)
p PPmax crease the operational cost, so that, the optimisation
p
X& ’ method seeks scheduling solutions that minimise the
QPp plug usage. In addition, the product pumping time
TIR R_P TGapmin × P_R (34)
p PRmax
p (TFBrp , TIBrp , TFBpp , TIBpp ) also increases the opera-
X& ’ tional cost. This time is related to the flow rate (VAZRt ,
QPp VAZPt ) by an inverse ratio: if the flow rate increases,
TSR TL TGapmin × R_P (35)
p PRmax
p the product pumping time decreases. On the other hand,
the operational cost is directly influenced by flow rate
Thus, expressions (21) /(35) establish the auxiliary variations */see the term Cet ×/(VAZPt /VAZRt ). Thus,
routine. Fig. 4 illustrates some parameters that are the optimisation structure must determine the ideal flow
determined by the auxiliary routine in a hypothetical rate policy during a limited time horizon (T ). Further-
case. In this case it is considered that npr /npp/5, more, the condition of maintaining the pipeline pres-
QPp /1, /p, QRp /1, /p , PPmax
p /1, /p, PPmin
p /0.5 surised also influences the operational cost (CS ×/ TS ).
/p , VD /1, P _R /1, R _P /0, and T /16. Between Thus, there is a series of factors (use of plugs, pumping
TIP 5/t 5/TSP , the reflow procedure has to be pro- time, flow rate, etc.) that must be considered in order to
cessed. The gap procedure occurs between INIG 5/t 5/ determine the scheduling condition that yields the
FIMG . The flow procedure is executed between TIR 5/ minimum operational cost.
t 5/TSR , and the end procedure must occur between The main model is also subjected to constraints,
INIT 5/t 5/FIMT . Therefore, the auxiliary routine which are expressed in (37) /(128). Equation (37)
establishes time intervals to each pumping procedure. determines that at least one batch is pumped at the
The main model formulation considers the parameters initial time.
that are determined by the auxiliary routine, narrowing X X
the domain of its variables. Inequalities (38), (39), (46), IBrp;t × R_P IBpp;t × P_R 1 t1; (37)
and (47), for example, demonstrate the use of the p p
L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185 179
is pumped only once throughout the scheduling horizon. t × FBrp;t TFBrp p; (51)
tTIR1
X
TSP1
IBpp;t 51 p; (38) Inequalities (52) and (53) establish temporal con-
tTIP straints.
X
TSR1
TFBpp ] TIBpp p; (52)
IBrp;t 51 p; (39)
tTIR TFBrp ] TIBrp p; (53)
Equations (40) and (41) demonstrate that the aux- Inequalities (54) and (55) demonstrate that the
iliary routine establishes temporal limits, which help to demanded volume divided by the maximum product
setting up binary variables in the main model. flow rate determines the minimum product pumping
time.
IBpp;t 0 p; (tBTIP)@ (TSP 5tBT); (40) & ’
IBrp;t 0 p; (tBTIR)@ (TSR 5tBT); (41) p p QRp
TFBp TIBp ] p; (54)
PPmax
p
Inequality (42) indicates that each time unit can have & ’
one pumping start variable set to one. r r QPp
X X TFBp TIBp ] p; (55)
IBrp;t IBpp;t 51 25 t5 TL1; (42) PRmax
p
p p
Inequalities (56) and (57) establish that must not be a
Inequality (43) indicates that each time unit can have time interruption between the pumping finish of one
one pumping finish variable set to one. product and the pumping start of the successive
X X product.
FBrp;t FBpp;t 51 25 t5 TL; (43)
p p TFBppa TIBrp
X X
Equations (44) and (45) demonstrate that the aux- 5 (TFBrpb TIBrpb ) (TFBppc TIBppc )TGAP
(56)
iliary routine establishes temporal limits, which help to pb pc
setting up binary variables in the main model. p; pa; R_P 1;
FBpp;t 0 p; (t5TIP)@(TSP Bt5 T); (44) TFBrp TIBppa
X X
FBrp;t 0 p; (t5TIR)@(TSP B t5 T); (45) 5 (TFBrpb TIBrpb ) (TFBppc TIBppc )TGAP
(57)
pb pc
Equations (46) and (47) demonstrate that the pump-
ing finish variable is set to one only if the product starts p; pa; P_R 1;
being pumped in the scheduling horizon. Inequalities (58) and (59) determine that the gap time
has to be considered between either flow or reflow
X
TSP1 X
TSP
IBpp;t FBpp;t 0 p; (46) operations.
tTIP tTIP1 TIBrp TFBppa TGAP] 0 p; pa; P_R 1; (58)
X
TSR1 X
TSR
TIBppa TFBrp TGAP] 0 p; pa; R_P 1; (59)
IBrp;t FBrp;t 0 p; (47)
tTIR tTIR1
Expressions (60) and (61) demonstrate that the
Equations (48) and (49) determine the pumping initial pumping transition between products can be formulated
time. as an implication form.
X
TSP1 (IBppa;t ) and (FBpp;t )[TPp;pa;t
(60)
t× IBpp;t TIBpp p; (48) p; pa; p"pa; TIP BtBTSP;
tTIP
(IBrpa;t ) and (FBrp;t )[TRp;pa;t
X
TSR1 (61)
t × IBrp;t TIBrp p; (49) p; pa; p"pa; TIR BtB TSR;
tTIR
Considering the following implication: (A) and (B) [/
Equations (50) and (51) determine the pumping final C, with both, A and B binary variables, expression (62)
time. demonstrates this implication in an equivalent mathe-
matical programming formulation (LINDO, 2002).
X
TSP
t × FBpp;t TFBpp p; (50) C 5A
tTIP1
C 5B
180 L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185
X
C ]AB1 (62)
(FBpp;t ) and 1 p
ONpa;t [IGPp;t
Thus, implications (60) and (61) cam be linearly pa (76)
expressed by (63) and (64). p; INIG 5tBFIMG; P_R 1;
X
TPp;pa;t 5IBppa;t (FBrp;t ) and 1 r
ONpa;t [IGRp;t
TPp;pa;t 5FBpp;t pa (77)
TPp;pa;t ]IBppa;t FBpp;t 1 p; INIG 5tBFIMG; R_P1;
p; pa; p "pa; TIP BtBTSP; (63) Equations (78) and (79) demonstrate that the aux-
TRp;pa;t 5IBrpa;t iliary routine establishes temporal limits, which help to
setting up variables in the main model.
TRp;pa;t 5FBrp;t
TRp;pa;t ]IBrpa;t FBrp;t 1 IGPp;t 0 p; INIG 5 tB FIMG; R_P 1; (78)
p; pa; p "pa; TIR BtBTSR; (64) IGRp;t 0 p; INIG 5 tBFIMG; P_R 1; (79)
Equations (65) /(68) help to model the time interval Equations (82) and (83) determine the gap procedure
that the pipe empties a tank. completion.
p
ONp;t IBpp;t p; t 1; (65) X
FIMG X
r
FGPp;t 1 P_R 1; (80)
ONp;t IBrp;t p; t 1; (66) tINIG1 p
p p
ONp;t IBpp;t FBpp;t ONp;t1 p; 15tBT; (67) X
FIMG X
r
ONp;t IBrp;t FBrp;t ONp;t1
r
p; 15tBT; (68) FGRp;t 1 R_P 1; (81)
tINIG1 p
Inequality (69) establishes that overlap between Equations (82) and (83) demonstrate that the aux-
batches is not a valid condition. iliary routine establishes temporal limits, which help to
X X
p
ONp;t r
ONp;t 5 1 1 5tBT; (69) setting up variables in the main model.
p p FGPp;t 0 p; INIG Bt5FIMG; R_P 1; (82)
Inequalities (70) and (71) are constraints on the FGRp;t 0 p; INIG Bt5FIMG; P_R 1; (83)
product flow rate.
Equations (84) /(89) help to model the gap procedure.
PPmin
p
p
× ONp;t 5PPp;t 5 PPmax
p
p
× ONp;t
(70) X
FIMG1 X
FIMG
Equations (72) and (73) establish that the pumped IGRp;t FGRp;t 0
tINIG tINIG1
(85)
product must satisfy the demand requirements. It is
important to notice that the tank bound model pre- p; R_P 1;
viously checked whether the demanded amount is within ONGPp;t IGPp;t p; tINIG; P_R 1; (86)
an operational range or not. At the main model, just ONGPp;t IGPp;t FGPp;t ONGPp;t1
valid demand requirements are addressed. (87)
X p; INIG BtBFIMG; P_R 1;
QPp t × PRp;t p; (72) ONGRp;t IGRp;t p; tINIG; R_P 1; (88)
t
X ONGRp;t IGRp;t FGRp;t ONGRp;t1
QRp t × PPp;t p; (73) (89)
t
p; INIG BtBFIMG; R_P1;
Equations (74) and (75) determine the pipeline flow Inequalities (90) and (91) are constraints on the
rate at each discretised time. pipeline flow rate during the gap procedure.
X X X
VAZPt PPp;t 15tBT; (74) (PPmin
p × ONGPp;t )5PPGt 5 (PPmax
p × ONGPp;t )
p
p p (90)
X
VAZRt PRp;t 15tB T; (75) X INIG 5 tBFIMG; P_R 1; X
p (PRmin
p × ONGRp;t )5PRGt 5 (PRmax
p × ONGRp;t )
p p (91)
Implications (76) and (77) determine the gap proce-
dure start. These implications can be linearly formulated INIG 5 tBFIMG; R_P 1;
by using expression (62). Inequalities (92) and (93) determine the gap procedure
L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185 181
Table 1 X
FIMG1
Input data for the considered scenario CEGAP [Cet ×(PPGt × P_RPRGt × R_P)]
tINIG
Operation Product Demanded Flow rate Plug neces-
amount range sity (95)
Reflow P1 QR1 /1 0.5 /1 P2, P4, P6, Implications (96) and (97) determine the end proce-
P8
P2 QR2 /1 0.5 /1 P1, P5
dure start. These implications can be linearly formulated
P3 QR3 /2 0.5 /1 P4, P8 by using expression (62).
P4 QR4 /1 0.5 /1 P1, P3, P5, X
P7 (FBpp;t ) and 1 p
ONpa;t [ITPp;t
Flow P5 QP5 /1 0.5 /1 P2, P4, P6, pa (96)
P8
P6 QP6 /2 0.5 /1 P1, P5 p; INIT 5 tB FIMT; R_P 1;
X
P7 QP7 /1 0.5 /1 P4, P8
P8 QP8 /1 0.5 /1 P1, P3, P5, (FBrp;t ) and 1 r
ONpa;t [ITRp;t
P7 pa (97)
p; INIT 5 tB FIMT; P_R 1;
Equations (98) and (99) demonstrate that the aux-
duration.
iliary routine establishes temporal limits, which help to
TGapmin 5 TGAP 5TGapmax (92) setting up variables in the main model.
ITPp;t 0 p; INIT 5tBFIMT; P_R 1; (98)
X
FIMG1
TGAPt × ITRp;t 0 p; INIT 5tBFIMT; R_P 1; (99)
tINIG
X Equations (100) and (101) determine the end proce-
(ONGPp;t × P_RONGRp;t × R_P) dure completion.
p
X
FIMT X
(93) FTPp;t 1 R_P 1; (100)
tINIT1 p
Table 2
Electric cost variation
t 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Cet 1 1 5 1 1 1 5 1 1 1 5 1 1 1 5 1 1 1 5 1 1 1 5 1 1
Table 3
Computational data for the main model illustrative instances
Time horizon Total number of vari- Total number of binary vari- Total number of con- Computational time Normalised cost
(T ) ables ables straints (s) ($)
X1
FIMT X
FIMT
ITRp;t FTRp;t 0
tINIT tINIT1
(105)
p; P_R 1;
ONTPp;t ITPp;t p; tINIT; R_P1; (106)
ONTPp;t ITPp;t FTPp;t ONTPp;t1
(107)
p; INIT B tB FIMT; R_P 1;
ONTRp;t ITRp;t p; tINIT; P_R 1; (108)
Fig. 5. Flow rate vs. discretised time.
ONTRp;t ITRp;t FTRp;t ONTRp;t1
(109)
p; INIT B tB FIMT; P_R 1;
Equations (104) /(109) help to model the end proce-
dure. Inequalities (110) and (111) are constraints on the
pipeline flow rate during the end procedure.
X X
X
FIMT1 X
FIMT (PPmin
p × ONTPp;t )5PPTt 5 (PPmax
p × ONTPp;t )
ITPp;t FTPp;t 0 p p (110)
tINIT tINIT 1
(104)
XINIT 5 tB FIMT; R_P 1; X
p; R_P 1; (PRmin × ONTRp;t )5 PRTt 5 (PRmax × ONTRp;t )
p p
p p (111)
INIT 5 tB FIMT; P_R 1;
Table 4
Main model illustrative instance data according to NF and t
Values of NF and t Minimum time horizon Total number of Total number of binary Total number of Computational
(Tmin) variables variables constraints time (s)
X1
FIMT
VD t × (PPTt × R_PPRTt × P_R) (114) (123)
tINIT
The pipeline operates filled. There is an operational
Equation (115) determines the cost of electrical energy transition between the first sequenced product and the
to end procedure completion. element that is pressurised in the pipe at the initial time
(initial transition). Equation (124) determines that a
X
FIMT1
plug can be used in the initial transition.
CET [Cet ×(PPTt × R_PPRTt × P_R)] X
tINIT SB_PND Ipa;p ×(IBpp;t × P_RIBrp;t × R_P)
p (124)
(115)
pa PND; t1;
If the system finish pumping the demand before T , The variables LPp and LRp determined by the tank
the pipeline must be maintained pressurised. Expres- bound indicate products that cannot be used to finish
sions (116) /(119) help to model this constraint. flow/reflow operations */see expressions (1), (19), and
X
FIMT1 X X
FIMT1 X (20). These variables are used in the main model’s
TIBT t × ITPp;t × R_P t formulation, as stated in equations (125) /(128).
tINIT p tINIT p
IGPp;t 0
× ITRp;t × P_R (116) (125)
p; LPp 0; INIG 5tBFIMG; P_R 1;
X
FIMT X X
FIMT X IGRp;t 0
TFBT t × FTPp;t × R_P t (126)
tINIT1 p tINIT1 p p; LRp 0; INIG 5tBFIMG; R_P 1;
× FTRp;t × P_R (117) ITPp;t 0
(127)
TIBT ] TFBpp p; R_P1; (118) p; LPp 0; INIT 5 tB FIMT; R_P 1;
184 L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185
ITRp;t 0
(128) PRmax min
p , and PRp . As an example, PP4 /0.5 and
min
max
p; LRp 0; INIT 5 tB FIMT; P_R 1; PP4 /1. The plug necessity between different pro-
ducts (Ip ,pa ) is also specified by Table 1. As an example,
Thus, expressions (36) /(128) establish the main
P1 followed by P2 demands the use of a plug (I1,2 /1),
model mathematical formulation. Furthermore, expres-
and P2 followed by P3 do not demand the use of a plug
sions (1) /(128) define the entire optimisation structure
(I2,3 /0). It is also considered that EPmax p ,j /10, /p,j;
formulation, which is tailor-made for the unique fea-
EPpmin max min
,j /1, /p,j; ERp ,i /10, /p ,i; ERp ,i /1, /p,i;
tures of the pipeline-scheduling problem described in
QRp /QPp /1, /p ; Vip ,j /6, /j,p/1,3,4; Vipp ,j /
min min p
Section 2. Nevertheless, the methodology applied to this
2, /j,p /2; Vipr ,i /6, /i,p/1,2,4; Vipr ,i /3 p/3, i /1;
work, which is described in Section 3, can be adapted to
Vipr ,i /2 p/3, i /2.
the formulation of other specific scheduling problems.
Table 2 demonstrates the normalised electric cost
value (Cet ) at each time unit (t). The cost variation is
due to on-peak demand hours. Pumping start time is at
5. Results 06:00 h (t/1).
The modelling and optimisation tool Extended
This section initially considers an example involving LINGO/PC Release 8.0 (LINDO, 2002) is used to
the pumping of four products from the harbour to the implement and solve the optimisation structure. LINGO
refinery followed by other four pumped from the is a commercial solver, which has its own modelling
refinery to the harbour (npr/npp/4). The scenario language and allows the interface with databases. The
also involves 16 tanks and each product has two tanks tool can be used in the process of formulating linear and
enabled to sending operations. As it is stated in Section non-linear large problems, solving them, and analysing
2, the pipe conveys a limited set of oil derivatives, and the solution. Table 3 provides information about the
each product has its own limited set of storage tanks. optimisation structure simulation on a Pentium 4, 1.8
Thus, the considered number of products and tanks are GHz, 512 MB RAM. For each time horizon (T ), the
input data that represent a typical operational scenario optimisation structure is run, and a specific normalised
of the real-world pipeline modelled. For simplicity, units cost is attained */expression (36) value. No optimality
are standardised and omitted. The normalisation is margin is applied (Shah et al., 1993). The auxiliary
based on the pipeline volume. The entire pipe has 7314 routine and the tank bound simulation data are
m3. It is admitted a normalisation factor (NF ) that neglected. These structures required a computational
equally divides the pipe volume. The product demand is time lower than 1 s, for all illustrative instances (20 5/
expressed based upon NF. As an example, NF /4 T 5/25). It is important to notice that there is no
determines reference-batches of 1828.5 m3 (7314 }/4). uncertainty in the considered examples. The problem is
A normalised demand of two units represents a total solved for input static product demands.
demanded volume of 3657 m3 (1828.5/2). The system Table 3 demonstrates that the considered realistic
pumps, at most, the volume of one normalised refer- scenario yielded moderate size MILP problems, which
ence-batch per time unit. A normalised flow rate of one are solved to optimality. Magatão et al. (2001) pre-
at a time t indicates that a volume of 1828.5 m3 is viously addressed the same pipeline-scheduling problem
pumped between times t and t/1. The time length by a monolithic MILP formulation. The authors just
selection of each discretised time span involves a trade- considered an illustrative instance involving the flow
off between accurate operation and computational procedure of four products in 15 normalised time
effort. The problem data are rounded, so that the time periods (uniform time discretisation of 6 h). This
quantum can be increased and, thus, the number of simplified scenario originates a MILP with 1572 vari-
decision variables decreased. A uniform time discretisa- ables, 224 binary variables, and 2956 constraints.
tion of 6 h is used (t /6), and NF /4. Simulation covers Clearly, the optimisation structure originates smaller
since the minimum normalised time horizon (Tmin /20), formulations than the monolithic model.
which is determined by equation (21) of the auxiliary In order to pump the entire demand, it is required a
routine, up to 25 normalised time units (T /25). The minimum time horizon (Tmin /20). In such horizon,
pumping process starts from the harbour to the refinery, every product is pumped at its maximum flow rate.
thus P _R /1 and R _P /0. The parameters CPpump , However, in case T /Tmin the optimisation structure
CRpump , Cplug , Ctank , Cw , and CS are considered determines the ideal flow rate policy. This flow rate is
unitary. At the initial time the pipeline is filled with a established based on both the available time horizon (T )
product called PND , which requires no plug usage with and the electric cost variations (Table 2). Considering
the other products. Table 1 presents input data for the T /23, Fig. 5 shows the normalised flow rate deter-
considered scenario. The demanded amount specifies mined by the optimisation structure.
the normalised values of QPp and QRp . The flow rate Fig. 6 illustrates the pumping operation predicted by
range indicates the normalised values of PPmax min
p , PPp , the optimisation structure for T /23. The pumping
L. Magatão et al. / Computers and Chemical Engineering 28 (2004) 171 /185 185