Professional Documents
Culture Documents
Transportation Problem
Transportation Problem
MSc in Construction
Technology and Management
Transportation Problem
January, 2022.
1
2/18/2022
▪ They involve:
COMMON TECHNIQUES
2
2/18/2022
TRANSPORTATION EXAMPLE
▪ A toy problem!…
TRANSPORTATION EXAMPLE
j = Demand
i = Supply
2.5 KMiles 325 A
1 600 2.5 KMiles
1.4 KMiles
275 B
1.8 KMiles
2 350 1.8 KMiles
1.7 KMiles 300 C
▪ Minimize: Transportation cost
3
2/18/2022
TRANSPORTATION TABLEAU
✓ demand, and
✓ shipping costs.
TRANSPORTATION TABLEAU
Distance
Markets
Plants A B C Supply
1 2.5 1.7 1.8 350
2 2.5 1.8 1.4 600
Demand 325 300 275
4
2/18/2022
ALGEBRAIC REPRESENTATION
▪ Indices:
✓ i = plants
✓ j = markets
ALGEBRAIC REPRESENTATION
▪ Decision Variables:
▪ Constraints:
▪ Objective Function:
5
2/18/2022
MATHEMATICAL MODEL
6
2/18/2022
EXAMPLE
3
(5) S1 D1 (7)
1 4
(7) S2 2 D2 (3)
4
3
(3) S3
3 D3 (5)
Destination
D1 D2 D3 Supply
S1 3 M 1 5
Source S2 4 2 4 7
S3 3 M 3 3
Demand 7 3 5
7
2/18/2022
Balanced Unbalanced
Destination
Sourc 1 2 Supply Destination
e 10 2
x11 x12 1000 Source 1 2 Supply
1
12 7 1 10 2
1000
x21 x22 1500 x11 x12
2
4 14 2 12 7
1500
x31 x32 1200 x21 x22
3
Demand 2300 1400 3 4 14
1200
x31 x32
Dummy
Destination xd1 xd2 200
Sourc 1 2 Dummy Supply
e Demand 2500 1400
10 2 20
1000
x11 x12 x1d
1
12 7 9
2 x21 x22 x2d 1500
3 4 14 16
x31 x32 x3d 1200
Demand 1900 1400 400
8
2/18/2022
UNBALANCED TP - CASE 1
UNBALANCED TP - CASE 2
9
2/18/2022
Transportation Problem
A transportation tableau is given below. The unit shipping costs are given in
the cell. D1 D2 D3 Supply
S1 15 30 20 50
S2 30 40 35 30
Demand 25 45 10
▪ Northwest corner
▪ Minimum-Cost Procedure
– Optimality Test
10
2/18/2022
▪ The North West corner rule begins with an allocation at the top
left-hand corner of the tableau
5. Check to make sure that the capacity and requirements are met.
11
2/18/2022
• Begin by selecting X11 (that is, start in the northwest corner of the transportation tableau).
• Therefore, if Xij was the last basic variable (occupied cell) selected, then select Xij+1 (that
is, move one column to the right) if source I has any supply remaining.
• Otherwise, next select Xi+1 j (that is, move one row down).
D1 D2 D3 Supply
50
25 15 30 20
S1 25 25
0
30 40 35
S2 20 10 30
10
Demand 25 45 10 0
0 20 0
Total cost is $2275 0
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
12
2/18/2022
4 20 6 20 8 8 40
6 8 10 6 50 7 60
5 7 6 8 50 50
20 30 50 50
▪ The minimum cost method uses shipping costs in order come up with a
bfs that has a lower cost.
▪ To begin the minimum cost method, first we find the decision variable
with the smallest shipping cost (Xij).
▪ Then assign Xij its largest possible value, which is the minimum of si and
dj
▪ cross out row i and column j and reduce the supply or demand of the
noncrossed-out row or column by the value of Xij.
▪ Then we will choose the cell with the minimum cost of shipping from the
cells that do not lie in a crossed-out row or column and we will repeat the
procedure.
13
2/18/2022
• Step 2: Decrease the row and column availabilities by this amount and remove
from consideration all other cells in the row or column with zero
availability/demand. (If both are simultaneously reduced to 0, assign an allocation
of 0 to any other unoccupied cell in the row or column before deleting both.) GO
TO STEP 1.
D1 D2 D3 Supply
15 30 20
Total
S1 25 15 10 50
cost is
$2225 30 40 35
S2 30 30
Demand 25 45 10
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
14
2/18/2022
4 20 6 20 8 8 40
10
6 8 6 7 50 60
5 7 10 6 8 40 50
20 30 50 50
3. VOGEL’S METHOD
▪ Find the first basic variable which has the smallest shipping cost
in that row or column.
▪ Then assign the highest possible value to that variable, and cross
out the row or column as in the previous methods
15
2/18/2022
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
16
2/18/2022
4 20 6 20 8 8 40
6 8 6 50 7 10 60
5 7 10 6 8 40 50
20 30 50 50
Optimal Solution
17
2/18/2022
18
2/18/2022
OPTIMALITY CRITERION
▪ If all the cost index values obtained for all the currently
unoccupied cells are nonnegative then, then the current
solution is optimal.
D2 D3 D4 Supply
D1
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
Column 21 22 10 10
Penalty 21 -- 10 10 The minimum total t
-- -- 10 10 ransportation cost =
-- -- 10 50 19×5+10×2+40×7+60
-- -- 40 60 ×2+8×8+20×10=779
-- -- 40 --
19
2/18/2022
Supply
D1 D2 D3 D4
19(5) 30 50 10(2) 7
S1
+ -
S2 70 30 40(7) 60(2) 9
S3 40 8(8) 70 20(10) 18
- +
Demand 5 8 7 14
D1 D2 D3 D4 Supply
S1 19(5) 30 + 50 10(2) - 7
S2 70 30 40(7) 60(2) 9
- +
S3 40 8(8) 70 20(10) 18
Demand 5 8 7 14
20
2/18/2022
Supply
D1 D2 D3 D4
S1 19(5)- 30 50 10(2)+ 7
S2 70 + 30 40(7) 60(2) 9
-
S3 40 8(8) 70 20(10) 18
Demand 5 8 7 14
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7) 60(2) 9
+ -
S3 40 8(8) 70 20(10) 18
- +
Demand 5 8 7 14
21
2/18/2022
Supply
D1 D2 D3 D4
19(5) 30 50 10(2) 7
S1
- +
S2 70 30 40(7) 60(2) 9
S3 40 8(8) 70 20(10) 18
+ -
Demand 5 8 7 14
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7)
- 60(2) + 9
S3 40 8(8) 70 20(10) 18
+ -
Demand 5 8 7 14
22
2/18/2022
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7) 60(2) 9
+ -
S3 40 8(8) 70 20(10) 18
- +
Demand 5 8 7 14
Select the unoccupied cell having the highest negative net cost change i.e. ce
ll S2D2=-18. and draw a closed path from S2D2.
Closed path is S2D2→S2D4→S3D4→S3D2
Select minimum allocated value among all negative position (-) on closed path
Minimum allocated value among all negative position (-) on closed path = 2
Subtract 2 from all (-) and Add it to all (+)
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7) 60(2) 9
+(2) - (2)
S3 40 8(8) 70 20(10) 18
- (2) + (2)
Demand 5 8 7 14
Select the unoccupied cell having the highest negative net cost change i.e. ce
ll S2D2=-18. and draw a closed path from S2D2.
Closed path is S2D2→S2D4→S3D4→S3D2
23
2/18/2022
Select minimum allocated value among all negative position () on closed path
Minimum allocated value among all negative position (-) on closed path = 2
Substract 2 from all (-) and Add it to all (+)
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 (2) 40(7) 60 9
S3 40 8(6) 70 20(12) 18
Demand 5 8 7 14
Select the unoccupied cell having the highest negative net cost change i.e. ce
ll S2D2=-18. and draw a closed path from S2D2.
Closed path is S2D2→S2D4→S3D4→S3D2
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10(2) 7
S2 70 30 (2) 40(7) 60 9
S3 40 8(6) 70 20(12) 18
Demand 5 8 7 14
S1D 2 S1D2→S1D4→S3D4→S3D2 30 - 10 + 20 - 8 = 32
S1D 3 S1D3→S1D4→S3D4→S3D2→S2D2→S2D3 50 - 10 + 20 - 8 + 30 - 40 = 42
S2D 1 S2D1→S2D2→S3D2→S3D4→S1D4→S1D1 70 - 30 + 8 - 20 + 10 - 19 = 19
S2D 4 S2D4→S2D2→S3D2→S3D4 60 - 30 + 8 - 20 = 18
S3D 1 S3D1→S3D4→S1D4→S1D1 40 - 20 + 10 - 19 = 11
S3D 3 S3D3→S3D2→S2D2→S2D3 70 - 8 + 30 - 40 = 52
Since all net cost change ≥0 The minimum total transportation cost =19×
So final optimal solution is arrived. 5+10×2+30×2+40×7+8×6+20×12=743
24
2/18/2022
Step-1:
Find an initial basic feasible solution using any one of the three methods
NWCM, LCM or VAM.
Step-2:
Find ui and vj for rows and columns. To start
b. Calculate other ui's and vj's using cij=ui+vj, for all occupied cells
Step-3:
For all unoccupied cells, calculate dij=cij-(ui+vj).
Step-
4: Check the sign of dij
a. If dij>0, then current basic feasible solution is optimal and stop the
procedure.
b. If dij<0, then the given solution is not an optimal solution and furt
her improvement in the solution is possible.
25
2/18/2022
Step-5:
Select the unoccupied cell with the largest negative value of dij, and
included in the next solution.
Step-6:
Draw a closed path (or loop) from the unoccupied cell (selected in th
e previous step on the stepping stone method).
The right angle turn in this path is allowed only at occupied cells and
at the original unoccupied cell.
Mark (+) and (-)
sign alternatively at each corner, starting from the original unoccupie
d cell.
Step-7: 1. Select the minimum value from cells marked with (-)
sign of the closed path.
3. Add this value to the other occupied cells marked with (+) sign.
4. Subtract this value to the other occupied cells marked with (-)
sign.
Step-8: Repeat Step-2 to step-7
until optimal solution is obtained. This procedure stops when all dij
≥0 for unoccupied cells.
26
2/18/2022
Supply
D1 D2 D3 D4
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
D2 D3 D4 Supply Row Penalty
D1
S1 19(5) 30 50 10(2) 7 9 | 9 | 40 | 40 | -- | -- |
S2 70 30 40(7) 60(2) 9 10 | 20 | 20 | 20 | 20 | 40 |
S3 40 8(8) 70 20(10) 18 12 | 20 | 50 | -- | -- | -- |
Deman 5 8 7 14
d
Column 21 22 10 10
Penalty 21 -- 10 10 The minimum total t
-- -- 10 10 ransportation cost =
-- -- 10 50 19×5+10×2+40×7+60
-- -- 40 60 ×2+8×8+20×10=779
-- -- 40 --
Supply
D1 D2 D3 D4
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7) 60(2) 9
S3 40 8(8) 70 20(10) 18
Demand 5 8 7 14
b. Calculate other ui's and vj's using cij=ui+vj, for all occupied cells.
27
2/18/2022
b. Calculate other ui's and vj's using cij=ui+vj, for all occupied cells.
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10(2) 7
S2 70 30 40(7) 60(2) 9
S3 40 8(8) 70 20(10) 18
Demand 5 8 7 14
2.c14=u1+v4⇒u1=c14-v4⇒u1=10-0⇒u1=10
3.c11=u1+v1⇒v1=c11-u1⇒v1=19-10⇒v1=9
4.c24=u2+v4⇒u2=c24-v4⇒u2=60-0⇒u2=60
5.c23=u2+v3⇒v3=c23-u2⇒v3=40-60⇒v3=-20
6.c34=u3+v4⇒u3=c34-v4⇒u3=20-0⇒u3=20
7.c32=u3+v2⇒v2=c32-u3⇒v2=8-20⇒v2=-12
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=10
S2 70 30 40 (7) 60 (2) 9 u2=60
S3 40 8 (8) 70 20 (10) 18 u3=20
Demand 5 8 7 14
vj v1=9 v2=-12 v3=-20 V4 =0
28
2/18/2022
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=10
S2 70 30 40 (7) 60 (2) 9 u2=60
S3 40 8 (8) 70 20 (10) 18 u3=20
Demand 5 8 7 14
vj v1=9 v2=-12 v3=-20 V4 =0
±2
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=10
S2 70 30 + 40 (7) 60 (2) - 9 u2=60
S3 40 8 (8) 70 20 (10) + 18 u3=20
Demand 5 8 - 7 14
vj v1=9 v2=-12 v3=-20 V4 =0
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=10
S2 70 30 (2) 40 (7) 60 9 u2=60
S3 40 8 (6) 70 20 (12) 18 u3=20
Demand 5 8 7 14
vj v1=9 v2=-12 v3=-20 V4 =0
29
2/18/2022
b. Calculate other ui's and vj's using cij=ui+vj, for all occupied cells.
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=0
S2 70 30 (2) 40 (7) 60 9 u2=
S3 40 8 (6) 70 20 (12) 18 u3=
Demand 5 8 7 14
vj v1= v2= v3=- V4 =
3.c14=u1+v4⇒v4=c14-u1⇒v4=10-0⇒v4=10
4.c34=u3+v4⇒u3=c34-v4⇒u3=20-10⇒u3=10
5.c32=u3+v2⇒v2=c32-u3⇒v2=8-10⇒v2=-2
6.c22=u2+v2⇒u2=c22-v2⇒u2=30+2⇒u2=32
7.c23=u2+v3⇒v3=c23-u2⇒v3=40-32⇒v3=8
b. Calculate other ui's and vj's using cij=ui+vj, for all occupied cells.
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=0
S2 70 30 (2) 40 (7) 60 9 u2= 32
S3 40 8 (6) 70 20 (12) 18 u3= 10
Demand 5 8 7 14
vj v1=19 v2= -2 v3=8 V4 = 10
30
2/18/2022
D1 D2 D3 D4 Supply ui
S1 19 (5) 30 50 10 (2) 7 u1=0
S2 70 30 (2) 40 (7) 60 9 u2= 32
S3 40 8 (6) 70 20 (12) 18 u3= 10
Demand 5 8 7 14
vj v1=19 v2= -2 v3=8 V4 = 10
1.d12=c12-(u1+v2)=30-(0-2)=32
6.d33=c33-(u3+v3)=70-(10+8)=52
▪ A contractor transports workers to four work sites each day. The travel
time in minutes between each camp and work site is shown in the figure.
In order to maximize the number of productive hours per day of each
worker, the contractor wishes to minimize the total travel time.
Formulate a mathematical model to minimize total travel time.
Work Site
1 (20)
Workers Camp 40
(30) 1 20 2 (20)
50 50
20
20 3 (30)
(50) 2 10
60
4 (10)
31
2/18/2022
Destination
1 2 3 4 Supply
1 40 20 20 50 30
Source 2 20 50 10 60 50
Demand 20 20 30 10 80
32
2/18/2022
▪ Use NWC, MC, VAM methods to find the optimal solution for
the following Contractor’s TP Problem
A B C D Supply
1 2 3 5 6 5
2 2 1 3 5 10
3 3 8 4 6 15
Demand 12 8 4 6
dj
sj
33
2/18/2022
dj
sj
▪ Step 3: Find the new cell with minimum shipping cost and cross-
out row 2
dj
sj
34
2/18/2022
▪ Step 4: Find the new cell with minimum shipping cost and cross-
out row 1 CELL: 11 dj
sj
▪ Step 5: Find the new cell with minimum shipping cost and cross-
out column 1 CELL: 33
dj
sj
35
2/18/2022
▪ Step 6: Find the new cell with minimum shipping cost and cross-
out column 3
dj
sj
▪ Step 7: Finally assign 6 to last cell. The bfs is found as: X11=5,
X21=2, X22=8, X31=5, X33=4 and X34=6 dj
sj
36
2/18/2022
A B C Supply
(M3/Week)
1 4 3 8 300
2 7 5 9 300
3 4 5 5 100
Demand 200 200 300
(M3/Week)
▪ We start in the upper left hand cell and allocate units to shipping
routes as follows:
37
2/18/2022
A B C Supply
(M3/Week)
1 4 (200) 3 (100) 8 300
2 7 5 (100) 9 (200) 300
3 4 5 5 (100) 100
Demand 200 200 300
(M3/Week)
OPTIMALITY TEST
38
2/18/2022
A B C Supply
(M3/Week)
1 4 (200) 3 (100) 8 300
2 7 5 (100) 9 (200) 300
3 4 5 5 (100) 100
Demand 200 200 300
(M3/Week)
SOLUTION
A B C Supply
(M3/Week)
1 4 (200) 3 (100) - + 8 300
2 7 5 (100) - 9 (200) 300
+
3 4 5 5 (100) 100
Demand 200 200 300
(M3/Week)
39
2/18/2022
SOLUTION
▪ I1c = +8 – 3 + 5 -9 = +1
▪ This means that for every m3 concrete shipped via the 1-C
route, total transportation costs will increase by $1 over
their current level.
SOLUTION
▪ I2A = +7 – 5 + 3 - 4 = +1
A ▪B C Supply
(M3/Week)
+
1 4 (200) - 3 (100) 8 300
2 7 + - 5 (100) 9 (200) 300
3 4 5 5 (100) 100
Demand 200 200 300
(M3/Week)
40
2/18/2022
SOLUTION
▪ I2A = +4 – 5 + 9 – 5 + 3 - 4 = +2
A B C Supply
(M3/Week)
1 4 (200) - + 3 (100) 8 300
2 7 - 5 (100) + 9 (200) 300
3 4 + 5 - 5 (100) 100
Demand 200 200 300
(M3/Week)
SOLUTION
▪ I2A = +5 – 5 + 9 – 5 = +4
41
2/18/2022
SOLUTION
▪ I2A = +5 – 5 + 9 – 5 = +4
A B C Supply
(M3/Week)
1 4 (200) 3 (100) 8 300
+
2 7 5 (100) - 9 (200) 300
3 4 5 + - 5 (100) 100
Demand 200 200 300
(M3/Week)
SOLUTION
▪ The solution is the optimal because each improvement index for the
Table is greater than or equal to zero.
▪ Therefore, the minimum cost is = 3900 $
▪ If we had one negative index, a cost saving may be attained by making
use of that route. i.e the cell can be improved.
▪ The quantity is found by referring to the closed path of plus signs and
minus signs drawn for the route and selecting the smallest number found
in those squares containing minus signs.
▪ To obtain a new solution that number is added to all squares on, that
number is added to all squares on the closed path with plus signs and
subtracted from all squares on the path assigned minus signs.
▪ To determine whether further improvement is possible, we return to the
first five steps to test each square that is now unused.
42
2/18/2022
EXERCISE
▪ Use NWC, MC, and VAM rule and Stepping Stone method and
MODI methods to find the optimal solution for the following
Contractor’s TP Problem
A B C Supply
(M3/Week)
1 5 4 3 100
2 8 4 3 300
3 9 7 5 300
Demand 300 200 200
(M3/Week)
43