ENGR 3157-Operations Research-Lecture 06-TransportationProblems1
ENGR 3157-Operations Research-Lecture 06-TransportationProblems1
ENGR 3157
Lecture 06 – Transportation Problems 1
Office: F220
Tel: 705-675-1151 ext. 2195
Email: [email protected]
2
Transportation Problems
1
3
Transportation Problems (2)
Supply Demand
Points Points
s1 = ? 1 1 d1 = ?
s2 = ? 2 2 d2 = ?
Each supply Each demand
point, i, can point, j, requires
provide si units of dj units of the
the commodity. commodity.
sm = ? m n dn = ?
4
Transportation Problems (3)
Min:
i 1m j 1n
cij xij
Subject to:
j 1n
xij si , i m
i 1m
xij d j , j n
2
5
Balanced Transportation Problems
i 1m
si
j 1n
dj
6
Balancing Transportation Problems (2)
– All shipment costs for the dummy demand/supply point are cij = 0.
3
7
Example – Transportation Problem
8
Example – Transportation Problem (2)
4
9
Example – Transportation Problem (3)
z x11 x12 x13 x14 x21 x22 x23 x24 x31 x32 x33 x34 RHS
0 1 1 1 1 0 0 0 0 0 0 0 0 = 35
0 0 0 0 0 1 1 1 1 0 0 0 0 = 50
0 0 0 0 0 0 0 0 0 1 1 1 1 = 40
0 1 0 0 0 1 0 0 0 1 0 0 0 = 45
0 0 1 0 0 0 1 0 0 0 1 0 0 = 20
0 0 0 1 0 0 0 1 0 0 0 1 0 = 30
0 0 0 0 1 0 0 0 1 0 0 0 1 = 30
10
Transportation Problem Tableaus
5
11
Transportation Problem Tableaus (2)
8 6 10 9
s1 = 35
10 25
9 12 13 7
s2 = 50
45 5
14 9 16 5
s3 = 40
10 30
• But how will an initial tableau (and starting BFS) look like?
• How do we do pivots?
12
Northwest Corner Method for Starting BFS
6
13
Northwest Corner Method for Starting BFS (2)
Start here. Note that costs Set the xij of the upper left
are not needed for finding cell to the smaller of its si
an initial BFS. or dj values.
s1 = 5 s1 = 3
2
s2 = 1 s2 = 1
s3 = 3 s3 = 3
14
Northwest Corner Method for Starting BFS (3)
s1 = X s1 = X
2 3 2 3
s2 = 1 s2 = X
1
s3 = 3 s3 = 3
7
15
Northwest Corner Method for Starting BFS (4)
s1 = X s1 = X
2 3 2 3
s2 = X s2 = X
1 1
s3 = 3 s3 = 1
0 0 2
d1=X d2=X d3=2 d4=1 d1=X d2=X d3=X d4=1
16
Northwest Corner Method for Starting BFS (5)
8
17
Minimum Cost Method for Starting BFS
18
Minimum Cost Method for Starting BFS (2)
Start here. Now costs are Set the xij of the lowest
needed for finding an cell to the larger of its si or
initial BFS. dj values.
2 3 5 6 2 3 5 6
s1 = 5 s1 = 5
2 1 3 5 2 1 3 5
s2 = 10 s2 = 2
8
3 8 4 6 3 8 4 6
s3 = 15 s3 = 15
9
19
Minimum Cost Method for Starting BFS (3)
2 3 5 6 2 3 5 6
s1 = 5 s1 = X
5
2 1 3 5 2 1 3 5
s2 = X s2 = X
2 8 2 8
3 8 4 6 3 8 4 6
s3 = 15 s3 = 15
20
Minimum Cost Method for Starting BFS (4)
2 3 5 6 2 3 5 6
s1 = X s1 = X
5 5
2 1 3 5 2 1 3 5
s2 = X s2 = X
2 8 2 8
3 8 4 6 2 8 4 6
s3 = 10 s3 = 6
5 5 4
d1=X d2=X d3=4 d4=6 d1=X d2=X d3=X d4=6
10
21
Minimum Cost Method for Starting BFS (5)
2 3 5 6
s1 = X
5 Finally, you’ve crossed out
2 1 3 5 all rows and columns,
s2 = X which tells you that each
2 8
supply is completely used
3 8 4 6 up and each demand is
s3 = X
5 4 6 satisfied.
d1=X d2=X d3=X d4=X
22
Vogel’s Method for Starting BFS
11
23
Vogel’s Method for Starting BFS (2)
(2) Lowest 6 7 8 s2 = 5
(1) Start here, calculating
cost cell in 5 p=2
row and column penalties.
highest 15 80 78 s3 = 15
6 7 8 s2 = 10 penalty row or
p = 63
p=1
column:
d2=15 d3=X d4=5
15 80 78 s3 = 15 p=9 p=X p=70
p = 63
d2=15 d3=5 d4=5
(3) Lowest 6 7 8 s2 = 0
p=9 p=73 p=70
cost cell in 5 5 p = N/A
highest 15 80 78 s3 = 15
penalty row or
p = 63
column:
d2=15 d3=X d4=X
p=9 p=X p=X
24
Vogel’s Method for Starting BFS (3)
(4) Lowest 6 7 8 s2 = 0
cost cell in 5 5 p = N/A
highest 15 80 78 s3 = X
penalty row or 15 p=X
column:
d2=0 d3=X d4=X
p=N/A p=X p=X
Initial BFS Tableau
(5) Lowest 6 7 8
s2 = 10
cost cell in 0 5 5
highest 15 80 78
penalty row or s3 = 15
15
column:
d2=15 d3=5 d4=5
12
25
Transportation Simplex Method
26
Transportation Simplex Method (2)
13
27
Transportation Simplex Method (3)
28
Transportation Simplex Method (4)
• What are the row 0 cost coefficients for the current tableau?
8 6 10 9
s1 = 35
35
9 12 13 7
s2 = 50
10 20 20
14 9 16 5
s3 = 40
10 30
14
29
Transportation Simplex Method (5)
30
Transportation Simplex Method (6)
• If x14 were the entering variable, what is the loop and what
are the new xij values?
8 6 10 9
s1 = 35
35
15 20
9 12 13 7
s2 = 50
10
30 20 20
14 9 16 5
s3 = 40
10
30 30
10
15
31
Transportation Simplex Method (7)
8 6 10 9
s1 = 35
35
25 10 25
9 12 13 7
s2 = 50
10
20
45 20
10 20
30
5
14 9 16 5
s3 = 40
10 10 30
32
In-Class Problem – Transportation Simplex Method
75 60 69
s1 = 50
79 73 68
s2 = 100
85 76 70
s3 = 50
0 0 0
s4 = 70
16
33
Announcements
17