Lecture 6 - LP-Network Models-Part-1 (2020)
Lecture 6 - LP-Network Models-Part-1 (2020)
Transshipment Problems
The Transportation Problem:
• The Network Model and a
• Linear Programming Formulation
a set of nodes,
1
More “Network Models”
Transportation, Assignment,
and Transshipment Problems
Each of these three models (transportation,
assignment, and transshipment models) can be
formulated as linear programs and solved by general
purpose linear programming codes.
2
Transportation Problem
Transportation Problem
Network Representation
1 d1
c11
s1 1 c12
c13
2 d2
c21
c22
s2 2
c23
3 d3
SOURCES DESTINATIONS
3
Transportation Problem
LP Formulation
The linear programming formulation in terms of
the amounts shipped from the origins to the
destinations, xij, can be written as:
Min cijxij
ij
4
Transportation Problem: Special Situations
Transportation Problem
10
10
5
Transportation Problem
D1 D2 D3 Supply
15 30 20
S1 50
30 40 35
S2 30
Demand 25 45 10
11
11
Formulation Practice
D1 D2 D3 Supply
15 30 20
S1 50
30 40 35
S2 30
Demand 25 45 10
12
12
6
Transportation Problem
13
13
Transportation Algorithm
14
14
7
Transportation Algorithm
15
Transportation Algorithm
16
16
8
Transportation Algorithm
17
17
Example: BBC
18
18
9
Example: BBC
24 30 40 0
Plant 1 50
30 40 42 0
Plant 2 50
Demand 25 45 10 20
19
19
Example: BBC
24 30 40
Plant 1 50
30 40 42
Plant 2 50
Demand 25 45 10
20
20
10
Transportation Problem
21
21
Example: BBC
22
11
Example: BBC
Iteration 1
• MODI Method
1. Set u1 = 0
2. Since u1 + vj = c1j for occupied cells in row 1, then
v1 = 24, v2 = 30, v4 = 0.
3. Since ui + v2 = ci2 for occupied cells in column 2,
then u2 + 30 = 40, hence u2 = 10.
4. Since u2 + vj = c2j for occupied cells in row 2, then
10 + v3 = 42, hence v3 = 32.
23
23
Example: BBC
Iteration 1
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
24
24
12
Example: BBC
Iteration 1 Tableau
30 40 42 0
Plant 2 -4 40 10 -10 10
vj 24 30 32 0
25
25
Example: BBC
Iteration 1
• Stepping Stone Method
The stepping stone path for cell (2,4) is (2,4), (1,4),
(1,2), (2,2). The allocations in the subtraction cells are 20
and 40, respectively. The minimum is 20, and hence
reallocate 20 along this path. Thus for the next tableau:
x24 = 0 + 20 = 20 (0 is its current allocation)
x14 = 20 - 20 = 0 (blank for the next tableau)
x12 = 5 + 20 = 25
x22 = 40 - 20 = 20
The other occupied cells remain the same.
26
26
13
Example: BBC
Iteration 2
• MODI Method
The reduced costs are found by calculating
the ui's and vj's for this tableau.
1. Set u1 = 0.
2. Since u1 + vj = cij for occupied cells in row 1, then
v1 = 24, v2 = 30.
3. Since ui + v2 = ci2 for occupied cells in column 2,
then u2 + 30 = 40, or u2 = 10.
4. Since u2 + vj = c2j for occupied cells in row 2, then
10 + v3 = 42 or v3 = 32; and, 10 + v4 = 0 or v4 = -10.
27
27
Example: BBC
Iteration 2
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
28
28
14
Example: BBC
Iteration 2
• Stepping Stone Method
The most negative reduced cost is = -4 determined
by x21. The stepping stone path for this cell is
(2,1),(1,1),(1,2),(2,2). The allocations in the subtraction
cells are 25 and 20 respectively. Thus the new solution
is obtained by reallocating 20 on the stepping stone
path. Thus for the next tableau:
x21 = 0 + 20 = 20 (0 is its current allocation)
x11 = 25 - 20 = 5
x12 = 25 + 20 = 45
x22 = 20 - 20 = 0 (blank for the next tableau)
The other occupied cells remain the same.
29
29
Example: BBC
Iteration 3
• MODI Method
The reduced costs are found by calculating
the ui's and vj's for this tableau.
1. Set u1 = 0
2. Since u1 + vj = c1j for occupied cells in row 1, then
v1 = 24 and v2 = 30.
3. Since ui + v1 = ci1 for occupied cells in column 2,
then u2 + 24 = 30 or u2 = 6.
4. Since u2 + vj = c2j for occupied cells in row 2, then
6 + v3 = 42 or v3 = 36, and 6 + v4 = 0 or v4 = -6.
30
30
15
Example: BBC
Iteration 3
• MODI Method (continued)
Calculate the reduced costs (circled numbers on the
next slide) by cij - ui + vj.
31
31
Example: BBC
Iteration 3 Tableau
Since all the reduced costs are non-negative, this is
the optimal tableau.
30 40 42 0
Plant 2 20 +4 10 20 6
vj 24 30 36 -6
32
32
16
Example: BBC
Optimal Solution
33
33
Assignment Problem
34
34
17
Assignment Problem
Network Representation
c11
1 1
c12
c13
c21
c22
2 2
c23
c31
c32
3 c33 3
WORKERS JOBS
35
35
Assignment Problem
Min cijxij
ij
36
36
18
The Assignment Problem:
37
37
38
38
19
Assignment Problem--Special Considerations:
39
39
Hungarian Method
40
40
20
Hungarian Method (continued)
41
41
Hungarian Method
42
21
Example: Hungry Owner
A contractor pays his subcontractors a fixed fee
plus mileage for work performed. On a given day the
contractor is faced with three electrical jobs associated
with various projects. Given below are the distances
between the subcontractors and the projects.
Project
A B C
Westside 50 36 16
Subcontractors Federated 28 30 18
Goliath 35 32 20
Universal 25 25 14
How should the contractors be assigned to minimize
total costs?
43
43
50
West. 36
A
0 16
28
30
Fed. B
18
0
35 32
20
Gol. C
0
25 25
14
Univ. Dum.
0
44
44
22
The Assignment Problem:
45
45
A B C Dummy
Westside 50 36 16 0
Federated 28 30 18 0
Goliath 35 32 20 0
Universal 25 25 14 0
46
23
Example: Hungry Owner
A B C Dummy
Westside 25 11 2 0
Federated 3 5 4 0
Goliath 10 7 6 0
Universal 0 0 0 0
47
47
48
24
Example: Hungry Owner
A B C Dummy
Westside 23 9 0 0
Federated 1 3 2 0
Goliath 8 5 4 0
Universal 0 0 0 2
49
49
50
50
25
Example: Hungry Owner
A B C Dummy
Westside 23 9 0 1
Federated 0 2 1 0
Goliath 7 4 3 0
Universal 0 0 0 3
51
51
52
52
26
Example: Hungry Owner
53
53
54
54
27
Example: the 400-meter relay
55
55
Transshipment Problem
56
56
28
Transshipment Problem
Network Representation
3 c36
c13 c37
s1 1 c14 6 d1
c15 c46
4 c47
c23 c24
c56 7 d2
s2 2
c25
5 c57
57
57
Transshipment Problem
Min cijxij
ij
58
58
29
The Transshipment Problem :
59
59
Example: Transshipping
60
60
30
Example: Transshipping
61
61
Example: Transshipping
Network Representation
ZROX
Zrox 50
5 1
75 Arnold Thomas 5
8 8
ARNOLD Hewes 60
3 4
7
Super Wash-
75
Shelf 4 Burn 4
Rock-
Wright 40
62
62
31
Example: Transshipping
63
Example: Transshipping
64
64
32
Example: Transshipping
Constraints Defined
65
65
Sunco Oil produces oil at two wells. Well 1 can produce as many as 150,000 barrels
per day, and well 2 can produce as many as 200,000 barrels per day. It is possible to
ship oil directly from the wells to Sunco’s customers in Los Angeles and New York.
Alternatively, Sunco could transport oil to the ports of Mobile and Galveston and then
ship it by tanker to New York or Los Angeles. Los Angeles requires 160,000 barrels
per day, and New York requires 140,000 barrels per day. The costs of shipping 1,000
barrels between two points are shown in Table 61. Formulate a transshipment model
(and equivalent transportation model) that could be used to minimize the transport
costs in meeting the oil demands of Los Angeles and New York.
66
66
33
Example: Sun Co Oil
67
67
68
68
34
Example: Sun Co Oil (2)
69
69
35