Due to the amount of information is needed, the easiest way to input the data is through a file.

This data file needs to follow the GAMS syntax.

Number of
crude oil and storage tanks
charging tanks
crude distillation units
components
crude vessels

Length of scheduling horizon

Costs:
Unloading cost of vessel
Sea waiting cost of vessel
Inventory cost of storage tanks
Inventory cost of blending (charging) tanks
Setup cost for CDU

Demand of blends during the scheduling horizon

Min and Max
crude oil transfer rate from vessel to storage tanks
crude oil transfer rate from storage tanks to charging tanks
charging rate of blend oil to CDU

Crude vessel arrival and leaving times around docking station

Initial volume of crude oil in the crude vessel

Min and Max volumes of
crude oil in storage tanks
mixed oil in cahrging tanks

Min unloading duration time for vessel

Concentration of component in crude oil of vessel

Initial concentration of component in
crude oil of storage tanks
mixed oil of charging tanks

Min and Max concentration of component in
crude oil of storage tanks
mixed oil of charging tanks

.Data file
This Data File should include all the information described above using GAMS format.

CRUDEOIL
*
*MILP MODEL FOR REFINERY SHORT TERM SCHEDULING OFCRUDE OIL UNLOADING WITH INVENTORY MANAGEMENT
*
* H. Lee, J. M. Pinto, I. E. Grossmann and Sunwon Park
* Department of Chemical Engineering, Carnegie Mellon University
* Pittsburgh, PA 15213, U.S.A.
*
$TITLE Crude Inventory Management

SETS I Crude oil and storage tanks / 1*2 /
J Charging tanks / 1*2 /
K Components / 1 /
L Crude Distillation Unit / 1 /
T Times / 1*8 /
V Crude vessels / 1*2 /

PARAMETERS
CUNLOAD(V) Unloading cost of vessel v per unit time /
1 8.0, 2 8.0 /

CSEA(V) Sea waiting cost of vessel v per unit time /
1 5.0, 2 5.0 /

CINVST(I) Inventory cost of storage tank i per unit time per unit volume /
1 0.05, 2 0.05 /

CINVBL(J) Inventory cost for each blend tank per unit time per unit volume /
1 0.08, 2 0.08 /

DM(J) Demand of blend J by CDUs during the scheduling horizon /
1 100.0, 2 100.0 /

FVSMIN(I) Minimum crude oil transfer rate from vessel to storage tank I /
1 0.0, 2 0.0 /

FVSMAX(I) Maximum crude oil transfer rate from vessel to storage tank I /
1 50.0, 2 50.0 /

FSBMIN(J) Minimum crude oil transfer rate from storage tank to charging tank J /
1 0.0, 2 0.0 /

FSBMAX(J) Maximum crude oil transfer rate from storage tank to charging tank J /
1 100.0, 2 100.0 /

FBCMIN(J) Minimum charging rate of charging tank J to CDU /
1 10.0, 2 10.0 /

FBCMAX(J) Maximum charging rate of charging tank J to CDU /
1 50.0, 2 50.0 /

TARR(V) Crude vessel v arrival time around docking station /
1 1, 2 5 /

TLEA(V) Crude vessel v should leave docking station by this time /
1 6, 2 8/

VVESINI(V) Initial volume of crude oil in crude vessel v /
1 100.0, 2 100.0 /

VSTOINI(I) Initial volume of crude oil in storage tank I /
1 25.0, 2 75.0 /

VSTOMIN(I) Minimum volume of crude oil in storage tank I /
1 0.0, 2 0.0 /

VSTOMAX(I) Maximum volume of crude oil in storage tank I /
1 100.0, 2 100.0 /

VBLEINI(J) Initial volume of mixed oil in charging tank J /
1 50.0, 2 50.0 /

VBLEMIN(J) Minimum volume of mixed oil in charging tank J /
1 0.0, 2 0.0 /

VBLEMAX(J) Maximum volume of mixed oil in charging tank J /
1 100.0, 2 100.0 /

DURATION(V) Minimum unloading duration time for vessel V /
1 2, 2 2 /

CSETUP(L) Setup Cost for CDU L /
1 50 /;

TABLE VESSTO(V,I) From vessel V to storage tank I crude oil is trasferred
1 2
1 1 0
2 0 1;

TABLE STOBLE(I,J) From storage tank I to charging tank J oil is transferred and mixed
1 2
1 1 1
2 1 1;

TABLE BLECDU(J,L) Charging tank J charges CDU L
1
1 1
2 1;

TABLE VCOMINI(V,K) Concentration of component K in crude oil of vessel V
1
1 0.1
2 0.6;

TABLE SCOMINI(I,K) Initial concentration of component K in crude oil of storage tank I
1
1 0.1
2 0.6;

TABLE BCOMINI(J,K) Initial concentration of component K in mixed oil of charging tank J
1
1 0.2
2 0.5;

TABLE BCOMMIN(J,K) Minimum concentration of component K in mixed oil of charging tank J
1
1 0.15
2 0.45;

TABLE BCOMMAX(J,K) Maximum concentration of component K in mixed oil of charging tank J
1
1 0.25
2 0.55;


SCALARS SCH Scheduling Horizon / 8 /
NCDU Number of CDU / 1 /
MODE Minimum changeover number for CDUs / 1 /

 
 
 
 
Site Designed and Maintained by andrew2@andrew.cmu.edu