Professional Documents
Culture Documents
Hypotheses:
• the ith supplier has an allocated capacity Mi (i = 1, . . . n)
• the jth customer has a given demand Dj (j = 1, . . . m)
• the unit cost of transporting the product along the arc (i, j) is Ci,j .
Problem formulation (II)
Problem formulation as LP problem (I)
3 X
X 4
min z= Ci,j xi,j
i=1 j=1
s.t. x1,1 + x1,2 + x1,3 + x1,4 ≤ M1 ,
x2,1 + x2,2 + x2,3 + x2,4 ≤ M2 ,
x3,1 + x3,2 + x3,3 + x3,4 ≤ M3 ,
x1,1 + x2,1 + x3,1 = D1 ,
x1,2 + x2,2 + x3,2 = D2 ,
x1,3 + x2,3 + x3,3 = D3 ,
x1,4 + x2,4 + x3,4 = D4 ,
xi,j ≥ 0, i = 1, 2, 3; j = 1, 2, 3, 4.
Problem data
We set:
• M1 = 40, M2 = 50, M3 = 35;
• D1 = 30, D2 = 45, D3 = 25, D4 = 10;
• C1,1 = 6, C1,2 = 2, C1,3 = 6, C1,4 = 4;
• C2,1 = 9, C2,2 = 5, C2,3 = 5, C2,4 = 2;
• C3,1 = 1, C3,2 = 4, C3,3 = 6, C3,4 = 9.
Solution via LINGO (I)
Solution via LINGO (II)
Solution via LINGO (III)
Solution via LINGO (IV)
Solution via LINGO (V)
Formulation of the problem in standard form (I)
3 X
X 4 4
X
min z= Ci,j xi,j + M yj
i=1 j=1 j=1
s.t. x1,1 + x1,2 + x1,3 + x1,4 + s1 = M1 ,
x2,1 + x2,2 + x2,3 + x2,4 + s2 = M2 ,
x3,1 + x3,2 + x3,3 + x3,4 + s3 = M3 ,
x1,1 + x2,1 + x3,1 + y1 = D1 ,
x1,2 + x2,2 + x3,2 + y2 = D2 ,
x1,3 + x2,3 + x3,3 + y1 = D3 ,
x1,4 + x2,4 + x3,4 + y4 = D4 ,
xi,j ≥ 0, i = 1, 2, 3; j = 1, 2, 3, 4,
si ≥ 0, i = 1, 2, 3; yj ≥ 0, j = 1, 2, 3, 4 .
Formulation of the problem in standard form (III)
min z = cT t
s.t. At = b,
t ≥ 0,
A, b, c given, b ≥ 0.
c = (6, 2, 6, 4, 9, 5, 5, 2, 1, 4, 6, 9,
0, 0, 0, M, M, M, M)T
Problem data (II)
1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1
• Auxiliary variables in t̄∗ are outside the base, so they do not affect
the objective fucntion at the optimum. In addition, a base variable is
0 (basic degenerate solution).
• The optimum value of the objective function (once the original sign
has been restored) corresponds to that found with LINGO.