Transport and Assignment Problems
Transport and Assignment Problems
99
The Transportation problem is to transport various amounts of a single homogeneous commodity
that are initially stored at various origins, to different destinations in such a way that the total
transportation cost is a minimum.
It can also be defined as to ship goods from various origins to various destinations in such a
manner that the transportation cost is a minimum.
The availability as well as the requirements is finite. It is assumed that the cost of shipping is
linear.
Let cij be the cost of shipping one unit from ith source to jth destination
Let xij be the amount to be shipped from ith source to jth destination
It is assumed that the total availabilities Σai satisfy the total requirements Σbj i.e.
The problem now, is to determine non-negative of xij satisfying both the availability constraints
W→
100
F W1 W2 … Wn Capacities
↓ (Availability)
F1 c11 c12 … c1n a1
F2 c21 c22 … c2n a2
. . . . . .
. . . . . .
Fm cm1 cm2 … cmn am
Required b1 b2 … bn Σai = Σbj
W→
F Capacities
W1 W2 … Wn
↓ (Availability)
F1 x11 x12 … x1n a1
F2 x21 x22 … x2n a2
. . . . . .
. . . . . .
Fm xm1 xm2 … xmn am
Required b1 b2 … bn Σai = Σbj
In general these two tables are combined by inserting each unit cost cij with the corresponding
amount xij in the cell (i, j). The product cij xij gives the net cost of shipping units from the factory
Fi to warehouse Wj.
Feasible Solution
A set of non-negative individual allocations (xij ≥ 0) which simultaneously removes
deficiencies is called as feasible solution.
Optimum Solution
A feasible solution is said to be optimal if it minimizes the total transportation cost.
101
4. Lowest Cost Entry Method (Matrix Minima Method)
5. Vogel’s Approximation Method (Unit Cost Penalty Method)
Step 1
The first assignment is made in the cell occupying the upper left-hand (north-west) corner
of the table.
The maximum possible amount is allocated here i.e. x11 = min (a1, b1). This value of x11
is then entered in the cell (1,1) of the transportation table.
Step 2
i. If b1 > a1, move vertically downwards to the second row and make the second allocation
of amount x21 = min (a2, b1 - x11) in the cell (2, 1).
ii. If b1 < a1, move horizontally right side to the second column and make the second
allocation of amount x12 = min (a1 - x11, b2) in the cell (1, 2).
iii. If b1 = a1, there is tie for the second allocation. One can make a second allocation of
magnitude x12 = min (a1 - a1, b2) in the cell (1, 2) or x21 = min (a2, b1 - b1) in the cell (2, 1)
Step 3
Start from the new north-west corner of the transportation table and repeat steps 1 and 2 until all
the requirements are satisfied.
Find the initial basic feasible solution by using North-West Corner Rule
1. W→
F Factory
W1 W2 W3 W4
↓ Capacity
F1 19 30 50 10 7
F2 70 30 40 60 9
F3 40 8 70 20 18
Warehouse
5 8 7 14 34
Requirement
Solution
W1 W2 W3 W5 Availability
5 2
F1 7 2 0
(19) (30)
6 3
F2 9 3 0
(30) (40)
4 14
F3 18 14 0
(70) (20)
102
5 8 7 14
Requirement 0 6 4 0
0 0
2.
D1 D2 D3 D4 Supply
O1 1 5 3 3 34
O2 3 3 1 2 15
O3 0 2 2 3 12
O4 2 7 2 4 19
Demand 21 25 17 17 80
Solution
D1 D2 D3 D4 Supply
21 13
O1 (1) (5) 34 13 0
12 3
O2 (3) (1) 15 3 0
12
O3 (2) 12 0
2 17
O4 (2) (4) 19 17
Demand 21 25 17 17
0 12 14 0
0 2
0
3.
From To Supply
2 11 10 3 7 4
1 4 7 2 1 8
3 1 4 8 12 9
103
Demand 3 3 4 5 6
Solution
From To Supply
3 1
(2) (11) 4 1 0
2 4 2
(4) (7) (2) 8 6 2 0
3 6
(8) (12) 9 6 0
3 3 4 5 6
Demand 0 2 0 3 0
0 0
Step 1
The smallest cost in the first row of the transportation table is determined.
Allocate as much as possible amount xij = min (a1, bj) in the cell (1, j) so that the capacity
of the origin or the destination is satisfied.
Step 2
If x1j = a1, so that the availability at origin O1 is completely exhausted, cross out the first
row of the table and move to second row.
If x1j = bj, so that the requirement at destination Dj is satisfied, cross out the jth column
and reconsider the first row with the remaining availability of origin O1.
If x1j = a1 = bj, the origin capacity a1 is completely exhausted as well as the requirement at
destination Dj is satisfied. An arbitrary tie-breaking choice is made. Cross out the jth
column and make the second allocation x1k = 0 in the cell (1, k) with c1k being the new
minimum cost in the first row. Cross out the first row and move to second row.
Step 3
Repeat steps 1 and 2 for the reduced transportation table until all the requirements are satisfied
Determine the initial basic feasible solution using Row Minima Method
1.
W1 W2 W3 W4 Availability
F1 19 30 50 10 7
104
F2 70 30 40 60 9
F3 40 80 70 20 18
Requirement 5 8 7 14
Solution
W1 W2 W3 W4
7
X
F1 (19) (30) (50) (10)
F2 9
(70) (30) (40) (60)
F3 18
(40) (80) (70) (20)
5 8 7 7
W1 W2 W3 W4
7
X
F1 (19) (30) (50) (10)
8
F2 (70) (30) (40) (60) 1
F3 18
(40) (80) (70) (20)
5 X 7 7
W1 W2 W3 W4
7
X
F1 (19) (30) (50) (10)
8 1
X
F2 (70) (30) (40) (60)
W1 W2 W3 W4
7
X
F1 (19) (30) (50) (10)
8 1
X
F2 (70) (30) (40) (60)
5 6 7
X
F3 (40) (80) (70) (20)
X X X X
105
Initial Basic Feasible Solution
x14 = 7, x22 = 8, x23 = 1, x31 = 5, x33 = 6, x34 = 7
The transportation cost is 7 (10) + 8 (30) + 1 (40) + 5 (40) + 6 (70) + 7 (20) = Rs. 1110
2.
A B C Availability
I 50 30 220 1
II 90 45 170 4
III 250 200 50 4
Requirement 4 2 3
Solution
A B C Availability
1
I 1 0
(30)
3 1
II 4 3 0
(90) (45)
1 3
III 4 1 0
(250) (50)
Requirement 4 2 3
1 1 0
0 0
Step 2
If xi1 = b1, cross out the first column of the table and move towards right to the second
column
If xi1 = ai, cross out the ith row of the table and reconsider the first column with the
remaining demand.
If xi1 = b1= ai, cross out the ith row and make the second allocation xk1 = 0 in the cell (k,
1) with ck1 being the new minimum cost in the first column, cross out the column and
move towards right to the second column.
Step 3
106
Repeat steps 1 and 2 for the reduced transportation table until all the requirements are satisfied.
1.
W1 W2 W3 W4 Availability
F1 19 30 50 10 7
F2 70 30 40 60 9
F3 40 80 70 20 18
Requirement 5 8 7 14
Solution
W1 W2 W3 W4
5
F1 2
(19) (30) (50) (10)
9
F2 (70) (30) (40) (60)
18
F3 (40) (80) (70) (20)
X 8 7 14
W1 W2 W3 W4
5 2
F1 X
(19) (30) (50) (10)
9
F2 (70) (30) (40) (60)
18
F3 (40) (80) (70) (20)
X 6 7 14
W1 W2 W3 W4
5 2
F1 X
(19) (30) (50) (10)
6
F2 3
(70) (30) (40) (60)
18
F3 (40) (80) (70) (20)
X X 7 14
W1 W2 W3 W4
107
5 2
F1 X
(19) (30) (50) (10)
6 3
F2 X
(70) (30) (40) (60)
18
F3 (40) (80) (70) (20)
X X 4 14
W1 W2 W3 W4
5 2
F1 X
(19) (30) (50) (10)
6 3
F2 X
(70) (30) (40) (60)
4
F3 14
(40) (80) (70) (20)
X X X 14
W1 W2 W3 W4
5 2
F1 X
(19) (30) (50) (10)
6 3
F2 X
(70) (30) (40) (60)
4 14
F3 X
(40) (80) (70) (20)
X X X X
The transportation cost is 5 (19) + 2 (30) + 6 (30) + 3 (40) + 4 (70) + 14 (20) = Rs. 1015
2.
D1 D2 D3 D4 Availability
S1 11 13 17 14 250
S2 16 18 14 10 300
S3 21 24 13 10 400
Requirement 200 225 275 250
108
Solution
D1 D2 D3 D4
200 50
S1 250 50 0
(11) (13)
175 125
S2 300 125 0
(18) (10)
275 125
S3 400 125 0
(13) (10)
200 225 275 250
0 175 0 0
0
Initial Basic Feasible Solution
x11 = 200, x12 = 50, x22 = 175, x24 = 125, x33 = 275, x34 = 125
The transportation cost is
200 (11) + 50 (13) + 175 (18) + 125 (10) + 275 (13) + 125 (10) = Rs. 12075
Step 2
If xij = ai, cross out the ith row of the table and decrease bj by ai. Go to step 3.
If xij = bj, cross out the jth column of the table and decrease ai by bj. Go to step 3.
If xij = ai = bj, cross out the ith row or jth column but not both.
Step 3
Repeat steps 1 and 2 for the resulting reduced transportation table until all the requirements are
satisfied. Whenever the minimum cost is not unique, make an arbitrary choice among the
minima.
Find the initial basic feasible solution using Matrix Minima method
1.
W1 W2 W3 W4 Availability
F1 19 30 50 10 7
F2 70 30 40 60 9
F3 40 8 70 20 18
Requirement 5 8 7 14
109
Solution
W1 W2 W3 W4
F1 7
(19) (30) (50) (10)
F2 9
(70) (30) (40) (60)
F3 8 10
(40) (8) (70) (20)
5 X 7 14
W1 W2 W3 W4
7
F1 X
(19) (30) (50) (10)
F2 9
(70) (30) (40) (60)
8
F3 10
(40) (8) (70) (20)
5 X 7 7
W1 W2 W3 W4
7
F1 X
(19) (30) (50) (10)
F2 9
(70) (30) (40) (60)
8 7
F3 3
(40) (8) (70) (20)
5 X 7 X
W1 W2 W3 W4
7
F1 X
(19) (30) (50) (10)
F2 9
(70) (30) (40) (60)
3 8 7
F3 X
(40) (8) (70) (20)
2 X 7 X
110
W1 W2 W3 W4
7
F1 X
(19) (30) (50) (10)
2 7
F2 X
(70) (30) (40) (60)
3 8 7
F3 X
(40) (8) (70) (20)
X X X X
2.
To Availability
2 11 10 3 7 4
From 1 4 7 2 1 8
3 9 4 8 12 9
Requirement 3 3 4 5 6
Solution
To
4
4 0
(3)
3 5
8 5 0
(1) (1)
From
3 4 1 1
9 5 4 1 0
(9) (4) (8) (12)
3 3 4 5 6
0 0 0 1 1
0 0
Initial Basic Feasible Solution
x14 = 4, x21 = 3, x25 = 5, x32 = 3, x33 = 4, x34 = 1, x35 = 1
The transportation cost is 4 (3) + 3 (1) + 5(1) + 3 (9) + 4 (4) + 1 (8) + 1 (12) = Rs. 78
111
For each row of the table, identify the smallest and the next to smallest cost. Determine the
difference between them for each row. These are called penalties. Put them aside by enclosing
them in the parenthesis against the respective rows. Similarly compute penalties for each
column.
Step 2
Identify the row or column with the largest penalty. If a tie occurs then use an arbitrary choice.
Let the largest penalty corresponding to the ith row have the cost cij. Allocate the largest possible
amount xij = min (ai, bj) in the cell (i, j) and cross out either ith row or jth column in the usual
manner.
Step 3
Again compute the row and column penalties for the reduced table and then go to step 2. Repeat
the procedure until all the requirements are satisfied.
Find the initial basic feasible solution using vogel’s approximation method
1.
W1 W2 W3 W4 Availability
F1 19 30 50 10 7
F2 70 30 40 60 9
F3 40 8 70 20 18
Requirement 5 8 7 14
Solution
W1 W2 W3 W4 Availability Penalty
F1 19 30 50 10 7 19-10=9
F2 70 30 40 60 9 40-30=10
F3 40 8 70 20 18 20-8=12
Requirement 5 8 7 14
Penalty 40-19=21 30-8=22 50-40=10 20-10=10
W1 W2 W3 W4 Availability Penalty
F1 (19) (30) (50) (10) 7 9
F2 (70) (30) (40) (60) 9 10
F3 (40) 8(8) (70) (20) 18/10 12
Requirement 5 8/0 7 14
Penalty 21 22 10 10
112
W1 W2 W3 W4 Availability Penalty
F1 5(19) (30) (50) (10) 7/2 9
F2 (70) (30) (40) (60) 9 20
F3 (40) 8(8) (70) (20) 18/10 20
Requirement 5/0 X 7 14
Penalty 21 X 10 10
W1 W2 W3 W4 Availability Penalty
F1 5(19) (30) (50) (10) 7/2 40
F2 (70) (30) (40) (60) 9 20
F3 (40) 8(8) (70) 10(20) 18/10/0 50
Requirement X X 7 14/4
Penalty X X 10 10
W1 W2 W3 W4 Availability Penalty
F1 5(19) (30) (50) 2(10) 7/2/0 40
F2 (70) (30) (40) (60) 9 20
F3 (40) 8(8) (70) 10(20) X X
Requirement X X 7 14/4/2
Penalty X X 10 50
W1 W2 W3 W4 Availability Penalty
F1 5(19) (30) (50) 2(10) X X
F2 (70) (30) 7(40) 2(60) X X
F3 (40) 8(8) (70) 10(20) X X
Requirement X X X X
Penalty X X X X
2.
Stores Availability
I II III IV
A 21 16 15 13 11
Warehouse B 17 18 14 23 13
C 32 27 18 41 19
Requirement 6 10 12 15
113
Solution
114
Stores Availability Penalty
I II III IV
A (21) (16) (15) 11(13) X X
Warehouse B 6(17) 3(18) (14) 4(23) 13/9/3/0 4
C (32) (27) (18) (41) 19 9
Requirement X 10/7 12 X
Penalty X 9 4 X
115
Module 5
Unit 1
1.6 Introduction to Assignment Problem
1.7 Algorithm for Assignment Problem
1.8 Worked Examples
1.9 Unbalanced Assignment Problem
1.10 Maximal Assignment Problem
In assignment problems, the objective is to assign a number of jobs to the equal number of
persons at a minimum cost of maximum profit.
128
Suppose there are ‘n’ jobs to be performed and ‘n’ persons are available for doing these jobs.
Assume each person can do each job at a time with a varying degree of efficiency. Let cij be the
cost of ith person assigned to jth job. Then the problem is to find an assignment so that the total
cost for performing all jobs is minimum. Such problems are known as assignment problems.
These problems may consist of assigning men to offices, classes to the rooms or problems to the
research team etc.
Mathematical formulation
Cost matrix: cij= c11 c12 c13 … c1n
c21 c22 c23 … c2n
.
.
.
cn1 cn2 cn3 … cnn
Where xij denotes that jth job is to be assigned to the ith person.
This special structure of assignment problem allows a more convenient method of solution in
comparison to simplex method.
Step 1
Subtract the minimum of each row of the effectiveness matrix, from all the elements of the
respective rows (Row reduced matrix).
Step 2
Further modify the resulting matrix by subtracting the minimum element of each column from all
the elements of the respective columns. Thus first modified matrix is obtained.
Step 3
129
Draw the minimum number of horizontal and vertical lines to cover all the zeroes in the resulting
matrix. Let the minimum number of lines be N. Now there may be two possibilities
If N = n, the number of rows (columns) of the given matrix then an optimal assignment
can be made. So make the zero assignment to get the required solution.
If N < n then proceed to step 4
Step 4
Determine the smallest element in the matrix, not covered by N lines. Subtract this minimum
element from all uncovered elements and add the same element at the intersection of horizontal
and vertical lines. Thus the second modified matrix is obtained.
Step 5
Repeat step 3 and step 4 until minimum number of lines become equal to number of rows
(columns) of the given matrix i.e. N = n.
Step 6
To make zero assignment - examine the rows successively until a row-wise exactly single zero is
found; mark this zero by ‘1’‘to make the assignment. Then, mark a ‘X’ over all zeroes if lying in
the column of the marked zero, showing that they cannot be considered for further assignment.
Continue in this manner until all the rows have been examined. Repeat the same procedure for
the columns also.
Step 7
Repeat the step 6 successively until one of the following situations arise
If no unmarked zero is left, then process ends
If there lies more than one of the unmarked zeroes in any column or row, then mark
‘1’‘one of the unmarked zeroes arbitrarily and mark a cross in the cells of remaining
zeroes in its row and column. Repeat the process until no unmarked zero is left in the
matrix.
Step 8
Exactly one marked zero in each row and each column of the matrix is obtained. The assignment
corresponding to these marked zeroes will give the optimal assignment.
Example 1
A department head has four subordinates and four tasks have to be performed. Subordinates
differ in efficiency and tasks differ in their intrinsic difficulty. Time each man would take to
perform each task is given in the effectiveness matrix. How the tasks should be allocated to each
person so as to minimize the total man-hours?
Subordinates
Tasks I II III IV
A 8 26 17 11
130
B 13 28 4 26
C 38 19 18 15
D 19 26 24 10
Solution
I Modified Matrix
N = 4, n = 4
Since N = n, we move on to zero assignment
Zero assignment
Example 2
A car hire company has one car at each of five depots a, b, c, d and e. a customer requires a car
in each town namely A, B, C, D and E. Distance (kms) between depots (origins) and towns
(destinations) are given in the following distance matrix
a b c d e
A 160 130 175 190 200
B 135 120 130 160 175
C 140 110 155 170 185
D 50 50 80 80 110
E 55 35 70 80 105
131
Solution
I Modified Matrix
II Modified Matrix
N = 5, n = 5
Since N = n, we move on to zero assignment
Zero assignment
Example 3
Solve the assignment problem whose effectiveness matrix is given in the table
1 2 3 4
132
A 49 60 45 61
B 55 63 45 69
C 52 62 49 68
D 55 64 48 66
Solution
Row-Reduced Matrix
4 15 0 16
10 18 0 24
3 13 0 19
7 16 0 18
I Modified Matrix
II Modified Matrix
Zero assignment
Solution - I
133
Total cost = 49 + 45 + 62 + 66 = 222 units
Solution – II
Example 4
Certain equipment needs 5 repair jobs which have to be assigned to 5 machines. The estimated
time (in hours) that a mechanic requires to complete the repair job is given in the table.
Assuming that each mechanic can be assigned only one job, determine the minimum time
assignment.
J1 J2 J3 J4 J5
M1 7 5 9 8 11
M2 9 12 7 11 10
M3 8 5 4 6 9
M4 7 3 6 9 5
M5 4 6 7 5 11
Solution
134
I Modified Matrix
N<n
II Modified Matrix
N=n
Zero assignment
If the number of rows and columns are not equal then such type of problems are called as
unbalanced assignment problems.
Example 1
A company has 4 machines on which to do 3 jobs. Each job can be assigned to one and only one
machine. The cost of each job on each machine is given in the following table
Machines
W X Y Z
A 18 24 28 32
Jobs
B 8 13 17 19
C 10 15 19 22
Solution
135
18 24 28 32
8 13 17 19
10 15 19 22
0 0 0 0
I Modified Matrix
II Modified Matrix
N=n
Zero assignment
Solution -I
136
Minimum cost = 18 + 13 + 19 = Rs 50
Solution -II
Minimum cost = 18 + 17 + 15 = Rs 50
Example 2
Solve the assignment problem whose effectiveness matrix is given in the table
R1 R2 R3 R4
C1 9 14 19 15
C2 7 17 20 19
C3 9 18 21 18
C4 10 12 18 19
C5 10 15 21 16
Solution
9 14 19 15 0
7 17 20 19 0
9 18 21 18 0
10 12 18 19 0
10 15 21 16 0
9 14 19 15 0
7 17 20 19 0
9 18 21 18 0
10 12 18 19 0
137
10 15 21 16 0
I Modified Matrix
II Modified Matrix
N=n
Zero assignment
Example 1
138
A company has 5 jobs to be done. The following matrix shows the return in terms of rupees on
assigning ith ( i = 1, 2, 3, 4, 5 ) machine to the jth job ( j = A, B, C, D, E ). Assign the five jobs to
the five machines so as to maximize the total expected profit.
Jobs
A B C D E
1 5 11 10 12 4
2 2 4 6 3 5
Machines
3 3 12 5 14 6
4 6 14 4 11 7
5 7 9 8 12 5
Solution
9 3 4 2 10
12 10 8 11 9
11 2 9 0 8
8 0 10 3 7
7 5 6 2 9
7 1 2 0 8
4 2 0 3 1
11 2 9 0 8
8 0 10 3 7
5 3 4 0 7
I Modified Matrix
II Modified Matrix
139
N < n i.e. 4 < 5
N=n
Zero assignment
Optimal assignment 1 – C 2 – E 3 – D 4 – B 5 – A
Maximum profit = 10 + 5 + 14 + 14 + 7 = Rs. 50
140