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 to refinery R1. Also r1hfm4 refers to heavy fuel oil from refinery R1 going to market M4.


Slick Oil (written up by Robert Israel)
A number of variables that are constants have been added
max 3.5c1o+2.6c2o+1.8r1sr+2.1r2sr
+2.5r1hfo+2.7r2hfo
-.3c1r1-.25c2r1
-.15c2t2-.4tr1-1.4c1l-1.6c2l
-1.7c1h-2.1c2h-2.2c1r2-1.7c2r2
+8r1gm1+7.9r1gm3+8.2r1gm4+8.7r1gm5+8.7r1gm6
+4.6r1lfm1+4.7r1lfm3+4.8r1lfm4+5r1lfm5+4.8r1lfm6
+3r1hfm1+3.3r1hfm3+3.4r1hfm4
+.7ogm6+.4olfm6 +8r2gm2+7.95r2gm3+8.3r2gm4
+4.6r2lfm2+4.75r2lfm3+4.9r2lfm4
+3.1r2hfm2+3.35r2hfm3+3.5r2hfm4
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)r1gm1+r1gm2+r1gm3+r1gm4+r1gm5+r1gm6-r1g<0
nogtom2)r1gm2=0
r1lfdist)r1lfm1+r1lfm2+r1lfm3+r1lfm4+r1lfm5+r1lfm6-r1lf<0
nolftom2)r1lfm2=0
r1hfist)r1hfm1+r1hfm2+r1hfm3+r1hfm4+r1hfo-r1hf<0
nohftom2)r1hfm2=0
r2gdist)r2gm2+r2gm3+r2gm4-r2g<0
r2lfdist)r2lfm2+ r2lfm3+r2lfm4-r2lf<0
r2hfdist)r2hfm2+r2hfm3+r2hfm4+r2hfo-r2hf<0
maxr1hfo)r1hfo<6000
maxr2hfo)r2hfo<2000
m1gas)r1gm1=9900
m2gas)r2gm2=6800
m3gas)r1gm3+r2gm3=6100
m4gas)r1gm4+r2gm4=4200
m5gas)r1gm5=3200
m6gas)r1gm6+ogm6=1800
m1lf)r1lfm1=3300
m2lf)r2lfm2=2600
m3lf)r1lfm3+r2lfm3=2200
m4lf)r1lfm4+r2lfm4=900
m5lf)r1lfm5=600
m6lf)r1lfm6+olfm6=400
m1hf)r1hfm1=4200
m2hf)r2hfm2=3800
m3hf)r1hfm3+r2hfm3=3200
m4hf)r1hfm4+r2hfm4=800
end