Professional Documents
Culture Documents
Jaime Cerd
1
OUTLINE
Motivation
An illustrative example
Conclusions
2
ACKNOWLEGMENT
currently in preparation
3
LIQUID PIPELINE OVERVIEW
Distribution Terminals
D1 D2 D3 D4 D5
Head Terminal
Segment Segment
P2 P1 P3 P4
Refinery
Interfaces
4
PIPELINE MAJOR FEATURES
5
PIPELINE OWNERSHIP REMOTE OPERATION
From there, they start & stop pumps, open & close valves, fill & empty tanks
Supervisory control & data acquisition systems, known as SCADA, are used
6
PIPELINE ADVANTAGES
Operate around the clock all seasons and under all weather conditions
7
INTERMODAL PRODUCT MOVEMENTS
70
PIPELINES
60
40
0 Trains (%)
1980 1985 1990 1995 2000 2005
- pipeline/truck combination for refined products CRUDE OIL DOMESTIC TRANSPORT MARKET
IN USA
8
MONITORING BATCH STATUS
Distribution Centers
D1 D2 D3 D4 D5
Head Terminal
P2 P1 P3 P4
Refinery
Interfaces
9
POWER CONSUMPTION
10
INTERFACE MATERIAL
11
INTERFACE COSTS
Batch sequencing is also important to meet product delivery due dates at terminals
12
PIPELINE OPERATING MODES
OPERATING MODES
13
PIPELINE BATCHING OPERATIONS
THREE PRODUCTS : P1, P2 , P3
SELECTED BATCH SEQUENCE: P1 P3 P1 P2
THE SAME AMOUNT OF PRODUCTS SHIPPED TO TERMINALS
TIME HORIZON: 4 WEEKS
weeks T ie m p o T ie m p o d e Number
Period
0 1 2 3 time 4 N o. de
[se m a n a s] C iclo (T C ) B a tch e s
Length
[d a s]
of batches
P2 P1 P3 P1 P2 P1 P3 P1 P2 P1 P3 P1 P2 P1 P3 P1 7 7 116
6 4-PERIOD HORIZON
P2 P1 P3 P1 P2 P1 P3 P1 141 4 88
2-PERIOD HORIZON
P2 P1 P3 P1 282 8 4
4 ONE-PERIOD HORIZON
Inventory
N ive Level
l d e In ve n ta rio d e P roofd u cto
days
P P2
2 e n at
e l Dthe
e stinDepot
o , se g n e l
T ie m p o d e C iclo (T C ) TC = 28
Transportation
T ie m p o de
Time TC = 14
T ra n sp orte TC = 7
T ie m p o
time
14
STRIPPING OPERATIONS (CUTS)
Every new batch injection pushes some batches forward while others that arrive
at their destinations are partially or completely sent out of the line (stripping
operations) and loaded in the terminal tank.
Therefore, both the size and the location of every batch in the line can change
during the pumping of a new batch.
Batch stripping takes place if the batch has arrived at the terminal and enough
storage capacity to receive the material is available.
Otherwise, the line should be temporarily stopped and deliveries are interrupted.
REF
D1 D2
B4
B5
B5
B4 B3
B4 B3 B3 B2B2 B2 B1
B1B1
15
BATCH DUE DATES & DELIVERY LEAD-TIME
A fungible batch with multiple destinations will undergo several stripping operations
(cuts) along the journey.
Multiple destinations
Fungible batch
A batch can travel to the farthest destination for 7-14 days (delivery lead-time).
Depot location
Delivery lead-time Is a function of Pumping rate
Pipeline idle time
16
LOADING & UNLOADING OPERATIONS
Terminals have few tanks just to facilitate stripping operations and quality control tasks.
Tanks for long-term storage must be provided by the customer at entry & exit points.
Gasoline tank trucks are loaded from storage tanks at marketing terminals
Pipeline Terminal
Marketing Terminal
Trunk Line 17
SHIPPER NOMINATIONS
US pipelines are mostly COMMON CARRIERS, i.e. services are provided to multiple
oil refiners.
Customers contact the pipeline operator to place their shipment orders for the next
month, called NOMINATIONS.
Customers should make the product timely available at the input terminal and
provide enough storage capacity at its destinations.
Every nomination is divided into a number of equal-size batches, one for each cycle.
18
THE PIPELINE SCHEDULING TASK
19
BATCH INJECTION & STRIPPING OPERATIONS
30
50
20
C5-L5 _ C5
REFINERY P1 P2 P3 P4
20
PIPELINE SCHEDULING GOALS
To keep the pipeline running at nearly maximum capacity during off- peak hours
21
PROBLEM DATA
Their locations & volumes at the initial time of the planning horizon.
The inventory levels in refinery and terminal tankage at the initial time.
The set of shipment requests, each one involving a refined product, the assigned
terminals and the delivery due dates.
22
PIPELINE SCHEDULING APPROACHES
23
MIP DISCRETE FORMULATIONS
T3 P1 P1 P1 P2
...
The pipeline is divided into packs of uniform size at each segment
Each pack contains exactly one product
The time scale is divided into slots of fixed length (fixed pumping rate)
24
MILP CONTINUOUS APPROACH
MAJOR FEATURES
25
MILP CONTINUOUS APPROACH
Control variables indicating the arrival of a batch at the assigned terminal to start
the stripping operation
Assignment variables denoting the planning period at which a batch injection ends
Starting and completion times of new batch injections (the time events)
Initial sizes of batches to inject in the pipeline
Location and size of in-transit batches at the end of a new batch injection
Inventory levels at refineries and pipeline terminal tanks at every time event
26
MAJOR MODEL CONSTRAINTS
P1 P3
B2 B1
WIFi , p , p ' IFp , p ' * ( yi 1, p ' + yi , p 1) i I , i > 1 p, p P
WIFB2,P1,P3 = IFP1,P3
A new batch injection can be started after completing the previous one
27
MAJOR MODEL CONSTRAINTS
The length of a pumping run depends on the batch size & the pumping rate
The size of a flowing batch changes during a batch injection due to the
execution of stripping operations
Depot
D1
200 At time C4
200
(B5)
DB4,D1 = 40
100 260
200 40 = 160
28
MAJOR MODEL CONSTRAINTS
50
50
30
20
C5-L5 _ C5
A single time period will contain the completion time of a pumping run
0h 23 h 35 h 70 h 93 h 102 h 125 h
BATCH INJECTIONS
B1 B2 B3 B4
65 h
T1 T2 T3 T4
29
MAJOR MODEL CONSTRAINTS
Feasibility conditions for stripping operations
- An upper bound on the cut size
- The flowing batch has reached or will reach the depot during the pumping run
Depot Depot
D1 D2
160 350
50 200 50
reserved available for D2 already gone
for D1
CUT 1
10
10 10 100 290 100
B6 B5 B4 B3
CONSECUTIVE
50
CUT 2
STRIPPING OPERATIONS
50 60 100 240 100
DURING INJECTION OF B6
B6 B5 B4 B3
190
CUT 3
30
THE OBJECTIVE FUNCTION
Delivery time constraints
Batch injections completed up to period t are available to meet product requirements
to be delivered to terminals before the end of period t
i
t
p, j demp, j,k * (wi,t wi+1,t ) Bp, j,t + Bp, j,(t1)
( l)
DM
l=1 k =1
lI new
p P, j J p , t T , i I new
OBJECTIVE FUNCTION
+ cu h max PH max L i
i Inew
1
+ cid p , j * ID + cir p * IRS
( i ') ( i ')
new p, j p
card ( I ) p P j Jp i ' Inew i ' Inew
31
A REAL-WORLD PIPELINE PLANNING EXAMPLE
PROBLEM DATA
A pipeline system with a single entry point and multiple exit points (5 terminals)
Four different products (gasoline, diesel, LPG, jet fuel) are sent to terminals
Unidirectional flow
32
OPTIMAL STATIC PLANNING
135
90
60
10
80
50
OPERATIONS
INJECTING P4
5.00_52.00 425 400 550 190 70
425
247.5
152.5
310
190
410
120
140
10
70
70
55.00_198.33 1220 415 INJECTING P2
1720
33
DYNAMIC PIPELINE PLANNING TASK
As time goes on, new transport requests are received and others are cancelled
Periodical planning update permits to eliminate the horizon-end time effect and,
more important, the pipeline idle time
The horizon-time effect arises because later batch injections have the only
purpose of pushing batches to their destinations
As the planning horizon rolls, such later batches will be injected because of new
real shipment requests
34
DYNAMIC PIPE PLANNING ALGORITHM
Data Refinery
Updating - Import updated refinery production schedule and
product output rates for periods k to k+N-1 (time Production
Stage Schedule
horizon [ddk-1 ; dd(k+N-1)])
OUTPUTS
Planned Pipe
Schedule for
Dispatching - Execute the Pipeline Schedule for the time horizon
periods
Stage going from ddk -1to dd(k+hf-1) (periods k to k+hf-1)
k+hf to k+N-1
- Set k = k+tRS
35
OPTIMAL DYNAMIC PIPELINE PLANNING
ASSUMING A 4-WEEK ROLLING PLANNING HORIZON
D1 D2 D3 D4 D5
R TEN BATCH INJECTIONS
Run Time
Interval 0 400 700 200 200 135
INITIAL STATE
[h]
135
90
60
10
80
50
5.00_52.00 425 400 550 190 70
425
247.5
152.5
136
410
120
140
10
70
70
55.00_168.00 1220 415
1356
120
173.00_183.00 120 1220 295
120
247.5
92.13
120
160
100
245
180
90
42.87
70.22
338.00_384.00 390 647.72 120 477.28
390
149.78
5.59
400
110
107.5
441.95_463.58 259.62 507.66 280 247.72 120 220
259.62
213.66
105.38
40
90
129.62
247.72
42.66
6.34
3.62
120
350
400
65
70
80
504.00_630.25 1446.34 49.04 130 9.62
1513.96
36.38
254
Pipeline Usage
2000
Inventory Level [m ]
3
1500
1000
500
0
0 168 336 504 672
P1 P2 P3 P4 Time [h]
37
MULTIPLE-SOURCE TRUNK PIPELINES
s1 j1 s2 j2 j3
B6 B4 B2 B1
B5 B3
xdB2,j2(K1) = xdB1,j2(K1) = 1 xdB1,j3(K1) = 1
B3
Al final de
K1 B6 B4 B3 B2 B1 INJECTION OF
xs (K1)
=1 BATCH B3
B5 B3,s2
P1 P2 P3 P4
Need of choosing the input terminal where the next pumping run will occur
In multiple-source trunk pipelines, batches are not sequenced in the same order
that they were injected in the line
INTERMEDIATE INPUT
TERMINAL
s1 j1 s2 j2 j3
B6 B4 B2 B1
B5 B3
xdB2,j2(K1) = xdB1,j2(K1) = 1 xdB1,j3(K1) = 1
B3
Al final de
K1 B6 B4 B3 B2 B1
(K1)
B5 xs
B3,s2 =1
P1 P2 P3 P4
Need of separately handling the pumping run sequence and the batch
sequence
39
DETAILED PIPELINE SCHEDULE
Just the batch injections and stripping operations planned for the first period of
the current time horizon are to be performed
At the very operational level, a detailed pipeline schedule for the action period
of the current horizon must be prepared
40
DETAILED PIPELINE SCHEDULE
PRIORITIZE DELIVERIES
Nearest Active Depot First (NDF) rule:
MDS TO THE NEAREST DEPOT
D1 D2 D3 D4 D5
R
Run Time
400 700 200 200 135
Interval 0
300
150
[h]
200
5.00_70.00 650 200 400 200 50 135 AT THE PLANNING LEVEL
Mean Flow Rate = 10.00 650 0 400 650 900 1500 1635
2
Volume [10 m3]
Nominations Nominations Nominations
Q dd[h] Q dd[h] Q dd[h]
In which order the stripping N1 200 48 N2 100 18 N4 150 12
N3 200 72
operations should be
DPS
executed during a batch D1 D2 D3 D4 D5
injection? R
Run Time
400 700 200 200 135
Interval 0
Flow Rates
[h]
100
=
5.00_15.00 100 400 600 200 200 135
Mean Flow Rate 100
150
250 400 450 200 200 135
AT THE OPERATIONAL
15.00_30.00
150 LEVEL
200
150
55.00_70.00 650 200 400 200 50 135
150 0 400 650 900 1500 1635 41
2
Volume [10 m3]
DETAILED PIPELINE SCHEDULE
MILP Formulation:
D1 D2 D3 D4 D5
R
Run Time
400 700 200 200 135
Interval 0
Flow Rates
150
[h]
11.53 5.00_18.00 150 400 700 200 50 135
150
100
8.00 18.00_30.50 250 400 600 200 50 135
100
200
11.42 30.50_48.00 450 200 600 200 50 135
200
200
9.09 48.00_70.00 650 200 400 200 50 135
200 0 400 650 900 1500 1635
2
Volume [10 m3]
Comparative Results:
42
A MULTIPLE-SOURCE PIPELINE SCHEDULE
30 Demand 30 30 50
Batch B3 will be pumped
in Refinery 2
B3
B5 B4 B2 B1
30 70 Supply 40
Refinery 1 Refinery 2
Horizon Length: 120 hs.
43
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P1 (Batch B5)
to Depot 1
B3
B5 B4 B2 B1
44
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P1 (Batch B5)
to Depot 1
B3
B6 B4 B2 B1
45
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P1 (Batch B2)
to Depot 2
B3
B6 B4 B2 B1
46
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P1 (Batch B2)
to Depot 2
B6 B4 B3 B1
47
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P3 (Batch B3)
to Depot 2
B6 B4 B3 B1
48
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P3 (Batch B3)
to Depot 2
B6 B4 B1
49
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P2 (Batch B1)
to Depot 3
B7
B8 B6 B4
50
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P2 (Batches
B4 & B6) to Depot 3
B7
B9 B8 B6
51
A MULTIPLE-SOURCE PIPELINE SCHEDULE
Deliver Product P2 (Batch B6)
to Depot 3
B9 B8 B7 B6
52
CONCLUSIONS
53
OIL PIPELINE LOGISTICS
Jaime Cerd
Instituto de Desarrollo Tecnolgico para la Industria Qumica
Universidad Nacional de Litoral - CONICET
Gemes 3450 - 3000 Santa Fe - Argentina
Contact: jcerda@intec.unl.edu.ar
54