MATH 441 Section 201
LINDO input file for Slick Oil problem
Online Course Material 
The LINDO input file below is for the Slick Oil example. The variable names are hopefully somewhat readable so that c1ri refers to crude oil from C1 going top refinery R1. Also r1hfm4 refers to heavy fuel oil from refinery R1 going to market M4.


Slick Oil (written up by Robert Israel)
max 3.5c1o+2.6c2o+1.8r1sr+2.1r2sr
+2.5r1hfo+2.7r2hfo-8.8ogm6-5.2olfm6
-.8r1gm6-.8r1lfm6-.3c1r1-.25c2r1
-.15c2t2-.4tr1-1.4c1l-1.6c2l
-1.7c1h-2.1c2h-2.2c1r2-1.7c2r2
-.3r1gm3-.3r1lfm3-.3r1hfm3
-.25r2gm3-.25r2lfm3-.25r2hfm3
-.4r1gm4-.4r1lfm4-.4r1hfm4
-.3r2gm4-.3r2lfm4-.3r2hfm4
st
c1prod)c1o+c1r1+c1r2<30000
c2prod)c2r1+c2t2<50000
c2r1pipe)c2r1<9000
c2r2pipe)c2t2<44000
termbal)tr1+c2o+c2r2-c2t2=0
r1cap)c1r1+c2r1+tr1<40000
c1r1proc)c1l+c1h-c1r1=0
c2r1proc)c2l+c2h-c2r1-tr1=0
hgcap)c1h+1.4c2h<25000
r1gprod)r1g-.49c1l-.35c2l-.67c1h-.59c2h=0
r1lfprod)r1lf-.15c1l-.14c2l-.19c1h-.18c2h=0
r1hfprod)r1hf-.29c1l-.4c2l-.1c1h-.15c2h=0
r1srprod)r1sr-.07c1l-.1c2l-.03c1h-.06c2h=0
r2cap)c1r2+c2r2<20000
r2gprod)r2g-.54c1r2-.39c2r2=0
r2lfprod)r2lf-.14c1r2-.16c2r2=0
r2hfprod)r2hf-.25c1r2-.35c2r2=0
r2srprod)r2sr-.06c1r2-.08c2r2=0
r1gdist)r1gm3+r1gm4+r1gm6-r1g<-13100
r1lfdist)r1lfm3+r1lfm4+r1lfm6-r1lf<-3900
r1hfist)r1hfm3+r1hfm4+r1hfo-r1hf<-4200
r2gdist)r2gm3+r2gm4-r2g<-6800
r2lfdist)r2lfm3+r2lfm4-r2lf<-2600
r2hfdist)r2hfm3+r2hfm4+r2hfo-r2hf<-3800
maxr1hfo)r1hfo<6000
maxr2hfo)r2hfo<2000
m3gas)r1gm3+r2gm3=6100
m3lf)r1lfm3+r2lfm3=2200
m3hf)r1hfm3+r2hfm3=3200
m4gas)r1gm4+r2gm4=4200
m4lf)r1lfm4+r2lfm4=900
m4hf)r1hfm4+r2hfm4=800
m6gas)r1gm6+ogm6=1800
m6lf)r1lfm6+olfm6=400
end