Transportation Problem Optimization Guide
Transportation Problem Optimization Guide
Available
Required
Table II
8 1
5 3 2
In table II, the allocations are not in independent positions.
4 7 2
7 3
5 6 2
Table III
8 2
5 3 2 3
5 2
4 7 2 4 In table III, the allocations are not in independent positions.
5 2
5 6 2 1
Destinations
Supply
Origins
2 7 4 5
3 3 1 8
5 4 7 7
1 6 2 14
Demand 7 9 18
Answer. Allocate to cell (1, 1), minimum of 5 and 7 (row total and column total), which is 5. Then
row total is exhausted, since the supply of is completely met. So cross off row
Supply
5
2 7 4 5 x
3 3 1 8
/
5 4 7 7
14
1 6 2
Demand 7 9 18
(2)
Consider the reduced matrix after deleting row.
Allocate to cell (1, 1), minimum of 8 and 2, 2
8 (6)
which is 2. Then column is exhausted, 3 3 1
and it is crossed off. 7
5 4 7
1 6 2 14
2 9 18
x
6 2 14
9 18
(3)
3 18
x
18
Thus the various allocations made to the cells are shown below and the solution is
Supply
5 5
2 7 4
2 6 8
3 3 1
/ 3 4 7
5 4 7
14 14
1 6 2
Demand 2 9 18
Supply
2 7 4 5
3 3 1 8
5 4 7 7
1 6 2 14
Demand 7 9 18
Answer. The lowest cost is 1 in cells Supply
(2, 3) and (4, 1). Select one of these,
say (2, 3). Allocate to cell (2, 3), 2 7 4 5
minimum of 8 and 18 (row total and 8 8 x
column total), which is 8. Then 3 3 1
row total is exhausted. So cross off 7
5 4 7
the row .
14
1 6 2
Demand 7 9 18
(10)
7 9 10
x
9 10
(3)
9 3
(2)
Supply
2 3 5
Total transportation cost = 2 7 4
= (2 7) + (3 4) + (8 1) + (7 4) 8 8
+ (7 1) + (7 2) = 14 + 12 + 8 + 28 + 7 3 3 1
+ 14 = 83. 7 7
5 4 7
7 7 14
1 6 2
Demand 7 9 18
Supply
2 7 4 5
3 3 1 8
5 4 7 7
1 6 2 14
Demand 7 9 18
Answer. Write penalties in brackets for all rows and columns.
Penalties (difference between smallest and second smallest costs)
Row 1; 4 – 2 = 2, row 2; 3 – 1 = 2 , row 3; 5 – 4 = 1, row 4; 2 – 1 = 1
Column 1; 2 – 1 =1, column 2; 4 – 3 = 1, column 3; 2 – 1 = 1 .
Supply
Maximum penalty 2 is associated
with row and row . Select one of 5
2 7 4 5 (2) x
these, say row . The lowest cost in
the row is in the cell (1, 1). 3 3 1 8 (2)
Allocate to cell (1, 1), minimum of 5
and 7 (row total and column total), 5 4 7 7 (1)
which is 5. Then row total is
exhausted. So cross off the row . 1 6 2 14 (1)
Demand 7 9 18
(1) (1) (1)
2 9
(4) (2)
x
Allocate 2 to cell (2, 1) and 7 to cell (1, 1)
7
7
4
2
2
6
Demand 7 9 18
Supply
2 7 4 5
3 3 1 8
5 4 7 7
1 6 2 14
Demand 7 9 18
Answer. To find the initial basic feasible solution, we apply Vogel’s method
Supply
5
Table I 2 7 4 5 (2) x
Allocate to cell (1, 1), minimum of 5 and
3 3 1 8 (2)
7, which is 5. Then cross off the row .
5 4 7 7 (1)
1 6 2 14 (1)
Demand 7 9 18
(2) (1) (1)
Table II 8
Allocate to cell (1, 3), minimum of 8 and 18, 3 3 1 8 (2) x
which is 8. Then cross off the row .
5 4 7 7 (1)
1 6 2 14 (1)
3 9 18
(2) (1) (1)
Table III 7 (1)
5 4 7
Allocate to cell (2, 3), minimum of 10 and 14, 10
14 (1)
which is 10. Then cross off the column . 1 6 2
2 9 10
(4) (2) (5)
x
2 9
(4) (2)
x
7
7
4
Allocate 2 to cell (2, 1) and 7 to cell (1, 1)
2
2
6
Supply
5
The initial basic feasible solution is 2 7 4 5
8
3 3 1 8
7
5 4 7 7
2 2 10
1 6 2 14
Demand 7 9 18
–( + )=
+
𝑖
7 4
1+6=7 1+2=3 1
3 3
-1 + 1 = 0 -1 + 6 = 5 -1
5 7
-2 + 1 = -1 -2 + 2 = 0 -2
0
1 6 2
7–7=0 4–3=1
3–0=3 3–5=-2
5+1 =6 7–0=7
Transfer 2 from ( , ) to ( , ). 8 8
Correspondingly subtract 2 from ( , ) 3 1
and add 2 to ( , ). The resulting table is 2 10 12
given below. 6 2
2 9
2 8-2 2 6 8
8 = 3 1
3 1
2-2 10+2 12 12
12 6 2
6 2
2 18
2 18
The reallocation gives the following matrix.
5
2 7 4 5
2 6
3 3 1 8
7
7
5 4 7
2 12
14
1 6 2
7 9 18
Test the optimality again; the equations + = for occupied cells are
+ =2 + =4
+ =3 + =1
+ =1 + =2
To solve these equations, take =0
Then = 1, = 4, = 2, = 1, = - 1, =0
Calculate the cell evaluation for unoccupied cells; = –( + ).
–( + )=
+ 𝑈𝑖
7 4
1+4=5 1+2=3 1
3
-1 + 1 = 0 -1
5 7
0+1=1 0+2=2 0
6 0
0+4 =4
𝑉𝑗 1 4 2
7–5=2 4–3=1
3–0=3
5-1 =4 7–2=5
6–4=2
A B C Available
X 50 30 220 1
Y 90 45 170 3
Z 250 200 50 4
Required 4 2 2
Answer. To find the initial basic feasible solution, we apply Vogel’s method
A B C
X 1 (20)
Table I 50 30 220
Allocate to cell (3, 3), minimum of 4 and Y 3 (45)
90 45 170
2, which is 2. Then cross off column C.
Z 2 4 (150) ←
250 200 50
4 2 2
(40) (15) (120)
x
A B
Allocate 2 to cell (3, 2 and cross off
row Z and column B X 1 (20)
50 30
Y 3 (45)
90 45
2
Z 2 (50) ← x
250 200
4 2
(40) (15)
x
A
Allocate 1 to cell (1, 1) and 3 to cell (2, 1)
X 1 1
50
Y 3 3
90
4
The initial basic feasible solution is given below.
A B C
X 1
50 30 220 1
Y 3
90 45 170 3
Z 2 2
250 200 50 4
4 2 2
A B C
1
X 50 30 220 1
3
Y 90 45 170 3
2 2
Z 250 200 50 4
4 2 2
Availability
11 20 7 8 50
21 16 10 12 40
8 12 18 9 70
Requirement 30 25 35 40
11 20 7 8 0 50
21 16 10 12 0 40
8 12 18 9 0 70
30 25 35 40 30
30 25 35 40
(3) (4) (3) (1)
↑
X
30 35 40
(3) (3) (1)
↑
X
7 8 50 (1)
Allocate to cell (3, 2), minimum
of 40 and 15, which is 15. Then 10 12 10 (2)
cross off row . 15
18 9 15 (9) ← X
35 40
(3) (1)
Allocate to cell (1, 2), minimum 25
50 (1)
of 50 and 25, which is 25. Then 7 8
cross off column . 10 (2) ←
10 12
35 25
(3) (4)
↑
X
35
25 25
11 20 7 8 0 50
10 30
21 16 10 12 0 40
30 25 15
8 12 18 9 0 70
30 25 35 40 30
A B C D
Supply
I 15 51 42 33 23
II 80 42 26 81 44
III 90 40 66 60 33
Demand 23 31 16 30
Answer. This is a maximization problem. Convert it into a minimization problem. For this
select the highest profit, which is 90. Subtract each profit from 90. The modified matrix is,
A B C D
Supply
I 75 39 48 57 23
II 10 48 64 9 44
0 50 24 30 33
III
Demand 23 31 16 30
Then by using Vogel’s method find initial basic feasible solution and by using MODI
method, find optimal solution as before, in the minimization problem.
Assignment problem
Assignment problem is a special case of transportation problem, in which the objective is to
assign a number of origins (persons) to the equal number of destinations (tasks) at a
minimum cost. For example, a department has four persons available for assignment and four
jobs to fill. Then the interest is to find the best assignment which will be in the best interest of
the department.
The assignment problem can be stated in the form of n x n matrix called cost of effectiveness
matrix.
Destination
1 2 ... n
1 ...
2 ...
. .
n ...
Job
X Y Z
A 18 17 16
Workers B 15 13 14
C 19 20 21
Answer.
X Y Z
X Y Z
Subtracting the smallest element of every A 2 1 0
column from all the elements of that column 2 0 1
B
C 0 1 2
Man
1 2 3 4
I 12 30 21 15
Job II 18 33 9 31
III 44 25 21 21
14 30 28 14
IV
Answer. 1 2 3 4
I
0 18 9 3
Subtracting the smallest element of each row II 9 24 0 22
from every element of that row III 23 4 0 0
IV 0 16 14 0
1 2 3 4
Subtracting the smallest element of every I
column from all the elements of that column 0 14 9 3
II 9 20 0 22
III 23 0 3 0
IV 0 12 14 0
1 2 3 4
Starting from the first row, mark to zero in
the row containing only one zero and cross out 0 I 0 14 9 3
the zeros in the column in which it lies, 9 20 0 22
II
23 0 3 0
III
0 12 14 0
IV
1 2 3 4
Starting from the first column, mark to zero I
in the column containing only one unmarked or 0 0 14 9 3
II 9 20 0 22
uncrossed zero and cross out the zeros in the row
in which it lies, III 23 0 3 0
IV 0 12 14 0
Now all the rows and all the columns have assignment.
So the solution is optimum. Th e solution is
Job: I II III IV.
Man: 1 3 2 4
Total cost of assignment = 12 + 9 + 25 + 14 = 60
Man
1 2 3 4
I 12 10 8 9
Job II 8 9 11 7
III 11 14 12 10
9 9 8 9
IV
Answer.
1 2 3 4
1 2 3 4
I
Subtracting the smallest element of each column 3 1 0 1
from every element of that column. II 0 1 4 0
III 0 3 2 0
IV 0 0 0 1
1 2 3 4
1 2 3 4
Again starting row wise, assignment is done I
already in the first row. Consider the second row. 0 3 1 0 1
II 0 1 4 0
There are two zeros. Select any one zero in that
row, say first one and complete the assignment. III 0 3 2 0
IV 0 0 0 1
1 2 3 4
We can have an alternative solution if we had I
selected last zero in the second row. 0 3 1 0 1
II 0 1 4 0
III 0 3 2 0
IV 0 0 0 1
A 17 25 31
Workers B 10 25 16
C 12 14 11
Answer.
X Y Z
X Y Z
A 0 5 1
Mark to zero in every row, starting from B 0 12 6
the first row and then from each column. C 1 0 0
X Y Z
Now all the rows and columns do not have assignment.
So mark in the second row as it has no assignment. A 0 5 14
Then mark in the first column as it has zeros in the B 0 12 6
C
ticked row. Then mark in the first row as it has 1 0 0
assigned zero of ticked column. Draw lines in the
unticked rows and ticked columns.
The smallest element not covered by the lines is 5
(i) Subtract 5 from all elements not covered by the lines
(ii) Add 5 to the elements at the intersection of two lines. Then make assignment.
X Y Z
Now every row and column has assignment. the
solution is optimal. The solution is 0 0 9
A
A to Y, B to X, C to Z
B 0 7 1
Total cost = 25 + 10 + 11 = 46
C
6 0 0
Machines
A B C D
I 51 53 54 50
Job II 47 50 48 50
III 49 50 60 61
63 64 60 61
IV
Answer.
.
A B C D
Since the problem is a maximization
problem, convert it into a minimization I
13 11 10 14
problem. The highest element is 64. Subtract II 17 14 16 14
all elements from 64.
III 15 14 4 3
IV 1 0 4 3
.
A B C D
I
3 1 0 4
Subtracting the smallest element of each row
II 3 0 2 0
from every element of that row.
III 12 11 1 0
IV 1 0 4 3
.
.
A B C D
I 2 1 0 4
Subtracting the smallest element of each column
from every element of that column. II 2 0 2 0
III 11 11 1 0
0 0 4 3
IV
.
.
A B C D
I 18 24 28 32
Job II 8 13 17 19
III 10 15 19 22
A B C D
Answer.
.
Given problem is unbalanced since the I 18 24 28 32
number of rows (3) is less than the number II 8 13 17 19
of columns (4). So introducing a dummy
III 10 15 19 22
row with cost 0. 0 0 0 0
IV
A B C D
.
Subtracting the smallest element of I 0 6 10 14
each row from every element of that II 0 5 9 11
row and subtracting the smallest III 0 5 9 12
element of eachcolumn from every 0 0 0 0
element of that column. IV
.
A B C D
.
Making zero assignment. I 0 6 10 14
II 0 5 9 11
III 0 5 9 12
0 0 0 0
IV
All the rows and columns do not have assignment. We proceed further.
A B C D
A B C D
A B C D
Again. the assignment is not complete. We
proceed further. Making marks in row I 0 1 5 9
1, 2 and 3 and columns 1, 2. Then draw II 0 0 4 6
lines in unticked rows and ticked
III 0 0 4 7
columns.
IV 5 0 0 0
A B C D
.
The smallest element not covered by the I
II 0 1 1 5
lines is 4. Subtract 4 from all elements not II 0 0 0 2
III
covered by the lines. Add 4 to the 0 0 0 3
III
IV
elements at the intersection of two lines. 9 9 4 0 0
Then make assignment. IV
One solution is I to A, II to B, III to C, A B C D
IV to D.. Another solution is I to A, II to
C, III to B, IV to D. I
II 0 1 1 5
II
III 0 0 0 2
III 0 0 0 3
IV
9 9 4 0 0
IV