Algoritam
Algoritam
assign m jobs or workers to n machines such that the cost incurred is minimized.
JOBS
1
2
-------n
1
WORKERS
--
--
-n
The element Cij represents the cost of assigning worker I to job (I,j= 1,2,---n). There is no loss in
generality in assuming that the number of workers always equals the number of jobs because
we can always add fictitious (untrue or fabricated) workers or fictitious jobs to effect this result.
The assignment model is actually a special case of the transportation model in which the
workers represent the sources and the jobs represent the destinations.
The supply amount at each source and the demand amount at each destination exactly equal 1.
1
The fact that all the supply and demand amounts equal 1 has led to the development of a
simple solution algorithm called the Hungarian method.
Transportation
Assignment
availability
conditions M+N-1
rows
columns
It is a problem of allocation
multiple markets
resources to job j
Step II:- Drop the least number of horizontal and vertical lines so as to cover all zeros if the no
of there lines are N
If N = n (n=order of the square matrix) then an optimum assignment has been
i)
obtained
If N<n proceeds to step III
ii)
Step III :- determine the smallest cost cell from among the uncrossed cells subtract. This cost
from all the uncrossed cells and add the same to all those cells laying in the intersection of
horizontal and vertical lines.
Step V:- examine the rows (column) successively until a row (column) with are zero is found
enclose the zero in a square (0) and cancel out (0) any other zeros laying in the column (row) of
the Matrix. Continue in this way until all the rim requirements are satisfied i.e N=n.
ii)
Step VII) we now have exactly one encircled zero in each row and each column of the cost
matrix. The assignment schedule corresponding to there zeros is the optimum (maximal)
assignment.
Problem 1.
Three jobs A B C are to be assigned to three machines x Y Z. The processing costs are as given in
the matrix shown below. Find the allocation which will minimize the overall processing cost.
Machines
Jobs
19
28
31
11
17
16
12
15
13
Solution:
Step 1: create zero in each row or column by subtracting by selecting least number in each row
and column
Row Minimization
0
12
Column Minimization
0
11
Now, in the uncrossed cell the least cost is selected and subtracted for the remaining uncrossed
cell by the least value and for the intersection of the horizontal line and vertical line the least
value should be added and the resulting matrix.
0
The above matrix has two horizontal line and one vertical line which satisfies our condition N= n
{0}
{0}
{0}
= 19
= 17
= 13
49
Problem 2
Solve of the assignment problem
I
II
III
IV
11
17
16
20
12
15
13
16
15
12
16
21
24
17
28
26
14
10
12
11
15
Solns:
Row Minimization
3
12
11
Column Minimization
2
11
11
Nn
54
The least value in the uncrossed cell is 1, it is subtracted for the uncrossed cell and added for
intersection of the vertical line and horizontal.
1
11
Again N n
10
[0]
[0]
[0]
10
[0]
= 11
IV
= 6
= 16
III = 17
II = 10
Assignment
40
Problem 3
Using the following cost matrix, determine a) optimal job assignment b) the cost of assignments
JOB
MECHANIC
10
10
10
Row Minimization
8
Column minimization
Here, Nn, 4 5
Then, we have to select the least value in the uncrossed cell i.e 2 the result table.
9
[0]
[0]
[0]
[0]
[0]
2 = 3
4 = 2
5 = 4
1 = 3
3 =
9
21
Problem 4
Job shop needs to assign 4 jobs to 4 workers. The cost of performing a job is a function of the
skills of the workers. Table summarizes the cost of the assignments. Worker1 cannot do job3,
and worker 3 cannot do job 4. Determine the optimal assignment using the Hungarian method.
Job
Worker
Rs. 50
Rs.50
--
Rs.20
Rs.70
Rs.40
Rs.20
Rs.30
Rs.90
Rs.30
Rs.50
--
Rs.70
Rs.20
Rs60
Rs70
Row Minimization
30
30
--
50
20
10
60
20
--
50
40
50
Column minimization
0
30
--
20
20
10
30
20
--
20
40
50
Nn
34
The least value in the uncrossed cell is 10 and the resulting table will be as follows
10
40
--
10
20
20
20
--
10
40
40
Nn
3=4
The least value in the uncrossed cell is 10
0
50
--
10
20
10
10
--
30
30
N=n
The given problem satisfies the condition, the assignment can be made for the optimal table.
50
--
[0]
10
20
[0]
10
[0]
10
--
[0]
30
30
1--------- 4 = 20
2--------- 3 = 20
3--------- 2 = 30
4--------- 1 = 70
140
4----------1---------4, 2--------3--------2
There are two sequences in the given problem
11
Problem 5
A typical assignment problem, presented in the classic manner, is shown in Fig. Here there are
five machines to be assigned to five jobs. The numbers in the matrix indicate the cost of doing
each job with each machine. Jobs with costs of M are disallowed assignments. The problem is
to find the minimum cost matching of machines to jobs.
12
12
15
12
10
10
14
12
12
16
15
18
17
14
13
This is the given problem, using Hungarian method we solve the problem
Row minimization
M
11
13
Column minimization
M
[0]
[0]
[0]
[0]
[0]
14
The solution to the assignment problem as shown in Fig. 3 has a total flow of 1 in every column
and row, and is the assignment that minimizes total cost.
Problem 6.
Four different jobs can be done on four different machines and take down time costs are
prohibitively high for change overs. The matrix below gives the cost in rupees of producing job
on machine j;
Jobs
Machine
M1
M2
M3
M4
J1
11
J2
J3
10
J4
10
How the jobs should be assigned to the various machines so that the total cost is minimized.
15
Row minimization
0
Column minimization
0
Draw the horizontal and vertical lines which covers max no of zeros
0
Nn
34
Nn
34
The least value is 1, the resulting table
0
N=n
16
4=4 the assignment can be made for the above optimal table
[0]
[0]
[0]
[0]
[0]
[0]
[0]
[0]
J1 ----------M4 = 6
J2----------M2 = 5
J3----------M1 = 4
J4----------M3 = 8
23
Alternate solution
J1 ----------M1 = 5
J2----------M2 = 5
J3----------M3 = 10
J4----------M4 = 3
23
17
Problem 7
A company has 5 jobs tobe done the following matrix shows the return in Rs. of assigning ith
machine (i=1,2,3,---5) to the jth job (j=1,2,3,----n). Assign the 5 jobs to the 5 machines so as to
maximize the expected profit.
JOB
Machine
11
10
12
12
14
14
11
12
JOB
Machine
-5
-11
-10
-12
-4
-2
-4
-6
-3
-5
-3
-12
-5
-14
-6
-6
-14
-4
-11
-7
-7
-9
-8
-12
-8
18
Step2: select the most ve and subtract with other elements of the matrix minz= - (-maxZ)
In the matrix the most ve value is -14. Using this value the matrix is subtracted and the
resulting is the minimization matrix. This can be used for finding the optimal assignment table
using usual procedure to solve the problem.
JOB
Machine
10
12
10
11
11
10
Example
C11= -5 (-14) = 9 and continued for all other element
Step 3:- Using the above table i.e. minZ matrix table and all cost elements non-ve. The
Hungarian method can be applied to find the optimal assignment problem.
Row minimization
7
11
10
19
Column minimization
3
10
N=3, n=5x5
Nn, select the minimum value from the uncrossed cell and subtract for all the elements of
uncrossed cell and add for the intersection of horizontal and vertical.
N=4 n=5x5
Nn
The least value in the uncrossed cell is 1 again and subtracts using this value for all other
elements and add for intersection of horizontal and vertical
20
[0]
[0]
[0]
[0]
[0]
21
Problem 7
A marketing manager has 5 elements and there are 5 sales districts. Considering the capabilities
of the salesmen and the nature of districts, the estimates made by the marketing manager for
the sales per month (in 1000 rupees) for each salesman in each district would be as follows.
32
38
40
28
40
40
24
28
21
36
41
27
33
30
37
22
38
41
36
36
29
33
40
35
39
Find the assignment of salesmen to the districts that will result in the maximum sale.
Solution:
The given problem is profit matrix. To maximize the profit, first we must convert it
minimization. To convert to minimization we must select the maximum value of the matrix i.e.,
41. This value is subtracted for all other elements in the matrix and the resulting matrix is
minimization.
13
17
13
20
14
11
19
12
Using above table we can solve the given problem by the Hungarian method.
22
Row minimization
8
12
16
12
19
14
11
19
11
Column minimization
8
14
12
14
12
19
11
10
10
19
11
N=n, it satisfies our condition and now we can assign the workers to jobs using above table
23
[0]
[0]
10
10
[0]
19
[0]
11
[0]
1---------B = 38
2---------A = 40
3---------E = 37
4---------C = 41
5---------D = 35
191
Problem 8
A company has four territories open and four salesmen available for assignment. The territories
are not equally rich in their sales potential; it is estimated that a typical salesman operating in
each territory would bring in the following annual sales:
Territory :
Annual Sales (Rs)
II
III
IV
60,000
50,000
40,000
30,000
Four salesmen are also considered to differ in chair ability: it is estimated that, working under
the same conditions, their yearly sales would be proportionately as follow:
Salesmen:
Proportion:
If the criterion is maximum expected total sales, then including answer is to assign the best
salesman to the richest territory, the next best salesman to the second richest, and so on, verify
this answer by the assignment technique.
24
Solution:
Step 1 to construct the effectiveness of the matrix
By taking Rs. 10000/- as one unit and the sales proportion and the maximum sales matrix is
obtained as follows:
II
III
IV
42
35
28
21
30
25
20
15
30
25
20
15
24
20
16
12
II
III
IV
-42
-35
-28
-21
-30
-25
-20
-15
-30
-25
-20
-15
-24
-20
-16
-12
Step 3: select the most negative in the matrix i.e. is -42. With this element subtract all the
elements in the matrix. The resulting is minimization table
25
II
III
IV
14
21
12
17
22
27
12
17
22
27
18
22
26
30
Now, using the above table we can apply the Hungarian method to find the assignment for the
given problem and the value should be taken from the original table since, it is a maximization
problem
Row minimization
0
14
21
10
15
10
15
12
Column minimization
0
Nn, 24 so select the least value of the uncrossed cell and subtract
The least value is 1
26
Nn, 34 so select the least value of the uncrossed cell and subtract
The least value is 1
[0]
[0]
[0]
[0]
A--------I
B-------II
C-------III
D------IV
27
Problem 9:
Alpha Corporation has four plants each of which can manufacture any one of four products
production costs differ from one plant to another as do sales revenue. Given the revenue and
cost data below, obtain which product each plant should produce to maximize profit.
50
68
49
62
60
70
51
74
55
67
53
70
58
65
54
69
49
60
45
61
55
63
45
69
52
62
49
68
55
64
48
66
Solution:
Now, we have found the profit matrix by using sales revenue and production cost.
Profit = sales - cost
Profit matrix
1
28
Now we find the minimization matrix, by selecting the highest profit in the profit matrix i.e. 8 is
subtract all the elements in the matrix and resulting will be the minimization matrix of the given
problem.
7
Column minimization
29
[0]
[0]
[0]
[0]
A---------2
B---------4
C--------1
D--------3
Problem 11
An air-line operates seven days a week has time-table shown below. Crews must have a
minimum layover (rest) time of 5 hrs, between flights. Obtain the pair of flights that
minimimizes layover time away from home. For any given pair the crews will e based at the city
that result in the smaller layover.
Delhi - Jaipur
Jaipur-Delhi
Flight No.
Depart
Arrive
Flight No.
Depart
Arrive
7.00 AM
8.00 AM
101
8.00 AM
9.15 AM
8.00 AM
9.00 AM
102
8.30 AM
9.45 AM
1.30 PM
2.30 P.M
103
12.00 NOON
1.15 PM
6.30AM
7.30 PM
104
5.30 PM
6.45 PM
for each pair, mention the town where the crews should be based.
SOLUTION:
Step1 construct the table for layour times between flights when crew is based at Delhi, for
simplicity consider 15 minutes = 1unit.
30
Flights
101
102
103
104
96
98
112
38
92
94
108
34
70
72
86
108
50
52
66
88
Since, the crew must have a minimum layover of 5 hrs between flights
The layover time between flights 1 and 101 will be 24 hrs (96 units)from 8.00 AM to 8.00 AM
next day i.e flight 1 arrives jaipur at 8.00 am and leaves the jaipur 8.00 am next day because of
minimum layover is 5 hrs between flights and other flights is there in between so flight will be
there next day only.
Flight 1 to 102 will be (98units) 8.00 am arrives jaipur leaves jaipur 8.30 am next day= 24
hrs+30 minutes
Flight 1 to 103 will be (112 units) 8.00 am arrives jaipur leaves jaipur 12.00 noon next day= 24
hrs +4 hrs =112 units
Flight 1 to 104 will be (38 units)8.00 am arrives jaipur leaves jaipur 5.30 pm on the same day =
9 hrs +30 min = 38 mins
The layover time between Flight 2 to 101 will be (9.00 am arrival and depart from jaipur 8.00
am next day) =23 hrs = 92 units
Flight 2 to 102 will be (9.00 am arrives jaipur and depart from jaipur 8.30 am next day) = 23 hrs
+30 minutes = 94 units
Flight 2 to 103 will be (9.00 am arrives jaipur and depart from jaipur 12.00 noon next day) = 24
hrs +3 hrs = 108 units
Flight 2 to 104 will be (9.00 am arrives jaipur and depart from jaipur 5.30 pm same day) = 8 hrs
+30 minutes= 34 units
31
The layover time between Flight 3 to 101 will be (2.30 pm arrival and depart from jaipur 8.00
am next day) =17 hrs + 30 minutes = 70 units
Flight 3 to 102 will be (2.30 pm arrives jaipur and depart from jaipur 8.30 am next day) = 18hrs
= 72 units
Flight 3 to 103 will be (2.30 pm arrives jaipur and depart from jaipur 12.00 noon next day) =
21hrs + 30 minutes = 86 units
Flight 3 to 104 will be (2.30 pm arrives jaipur and depart from jaipur 5.30 pm next day) =
24hrs+3hrs= 108 units
The layover time between Flight 4 to 101 will be (7.30 pm arrival and depart from jaipur 8.00
am next day) =12 hrs +30 minutes = 50 units
Flight 4 to 102 will be (7.30 pm arrives jaipur and depart from jaipur 8.30 am next day) = 13hrs
= 52 units
Flight 4 to 103 will be (7.30 pm arrives jaipur and depart from jaipur 12.00 noon next day) =
16hrs + 30 minutes = 66 units
Flight 4 to 104 will be (7.30 pm arrives jaipur and depart from jaipur 5.30 pm next day) =
22hrs= 88 units
Flights
101
102
103
104
87
85
71
49
91
89
75
53
113
111
97
75
37
35
21
95
32
Arrive(delhi)
Flight No.
Depart (Delhi)
101
9.15 AM
7.00 AM
102
9.45 AM
8.00 AM
103
1.15 PM
1.30 PM
104
6.45 PM
6.30AM
Since, the crew must have a minimum layover of 5 hrs between flights
The layover time between flights 101 and 1 will be 21 hrs+ 45 minutes (87 units) from 9.15 AM
to 7.00 AM next day by flight no 1 i.e flight 101 arrives Delhi at 9.15 am and leaves the Delhi
7.00 am next day by flight no 1 because of minimum layover is 5 hrs between flights and no
other flights is there in between so flight will there next day only.
Flight 101 to 2 will be (91 units) 9.15 am arrives Delhi leaves Delhi 8.00 am next day= 22 hrs+45
minutes
Flight 101 to 3 will be (113 units) 9.15 am arrives Delhi leaves Delhi 1.30 pm next day= 28 hrs
+15 minutes = 113 units
Flight 101 to 4 will be (38 units) 9.15 am arrives Delhi leaves Delhi 6.30 pm on the same day = 9
hrs +15 min = 37 mins
The layover time between Flight 102 to 1 will be (9.45 am arrival and depart from Delhi 7.00 am
next day) =21 hrs+15 minutes = 85 units
Flight 102 to 2 will be (9.45 am arrives Delhi and depart from Delhi 8.00 am next day) = 22hrs +
15 minutes = 89 units
Flight 102 to 3 will be (9.45 am arrives Delhi and depart from Delhi 1.30 pm next day) = 27 hrs
+45 minutes = 111 units
Flight 102 to 4 will be (9.45 am arrives Delhi and depart from Delhi 6.30 pm same day) = 8 hrs
+45 minutes= 35 units
33
The layover time between Flight 103 to 1 will be (1.15 pm arrival and depart from Delhi 7.00 am
next day) =17hrs + 45 minutes = 71 units
Flight 103 to 2 will be (1.15 pm arrives Delhi and depart from Delhi 8.00 am next day) = 18hrs +
45 minutes = 75 units
Flight 103 to 3 will be (1.15 pm arrives Delhi and depart from Delhi 1.30 pm next day) = 24 hrs
+15 minutes = 97 units
Flight 103 to 4 will be (1.15 pm arrives Delhi and depart from Delhi 6.30 pm same day) = 5 hrs +
15 minutes= 21 units
The layover time between Flight 104 to 1 will be (6.45 pm arrival and depart from Delhi 7.00 am
next day) =12hrs + 15 minutes = 49 units
Flight 104 to 2 will be (6.45 pm arrives Delhi and depart from Delhi 8.00 am next day) = 13hrs +
15 minutes = 53 units
Flight 104 to 3 will be (6.45 pm arrives Delhi and depart from Delhi 1.30 pm next day) =18 hrs
+45 minutes = 75 units
Flight 104 to 4 will be (6.45 pm arrives Delhi and depart from Delhi 6.30 pm same day) = 23 hrs
+ 45 minutes= 95 units
Step 3:construct the table for minimum layover times between flights with the help of Table 1
and Table 2 layover times marked * denote that the crew is based at jaipur.
Table 3:
Flights
101
102
103
104
87*
85*
71*
38
91*
89*
75
34
70
72
86
75
37*
35*
21*
88
34
Using Hungarian method we solve the above table and the assignment are as shown in the
table
[0]
12
[0]
[0]
28
50
[0]
100
35
Problem 1:
A company is faced with the problem of assigning six different machines to five different jobs.
The costs are estimated as follows (in hundreds of rupees):
Jobs
1
Machines
2.5
5.0
1.0
1.0
2.0
5.0
1.5
3.0
3.0
6.5
2.0
4.5
3.5
7.0
2.0
4.5
4.0
7.0
3.0
6.0
6.0
9.0
5.0
10
6.0
Solve the problem assuming that the objective is to minimize the total cost.
Solution:
The matrix is 6x5, and then given problem is unbalanced assignment problem. So we introduce
fictitious job i.e Job 6 in the cost matrix in order to get the balanced assignment problem. The
costs corresponding to such column are always taken as zero.
36
Jobs
Machines
2.5
5.0
1.0
1.0
2.0
5.0
1.5
3.0
3.0
6.5
2.0
4.5
3.5
7.0
2.0
4.5
4.0
7.0
3.0
6.0
6.0
9.0
5.0
10
6.0
5.0
1.0
1.0
2.0
5.0
1.5
3.0
3.0
6.5
2.0
4.5
3.5
7.0
2.0
4.5
4.0
7.0
3.0
6.0
6.0
9.0
5.0
10
6.0
Column minimization
0.5
0.5
2.0
1.0
1.5
1.0
3.5
1.5
2.0
1.0
3.5
2.0
2.0
2.0
5.0
4.0
4.0
4.0
5.0
N=3, n=5x5, Nn, so the least value in the uncrossed value is 1.0 and with this value all the
uncrossed cell is subtracted and the resulting matrix
37
0.5
0.5
2.0
0.5
3.5
0.5
1.0
3.5
1.0
1.0
1.0
5.0
3.0
3.0
3.0
5.0
N=5, n=6x6, Nn
The least value in the uncrossed cell is 1 and using this value it is subtracted to the entire
uncrossed cell and for the intersection of horizontal and vertical lines it is added and the
resulting matrix is given below.
0.5
0.5
2.0
0.5
3.5
0.5
1.0
3.5
5.0
2.0
2.0
2.0
5.0
N=5, n=6, Nn, the least value is 1 and using this it is subtracted to the uncrossed cell of the
above matrix and the resulting is shown below.
0.5
0.5
1.0
0.5
2.5
0.5
1.0
2.5
4.0
2.0
2.0
2.0
4.0
38
The table satisfies N=n and the optimal assignment table is obtained and using the matrix the
assignment can be done.
0.5
[0]
[0]
0.5
1.0
[0]
0.5
2.5
0.5
1.0
[0]
2.5
[0]
4.0
2.0
2.0
2.0
4.0
[0]
Machine 1 ---------------Job5 = 1
Machine 2 ---------------Job2 = 5
Machine 3 ---------------Job1 = 3
Machine 4 ---------------Job3 = 2
Machine 5 ---------------Job4 = 9
Machine 6 ---------------Job6 = 6
26
39
Problem 2.
Manager of Transportation Company must order 5 trucks out of a fleet to be present at 5
specific locations for loading goods that are awaiting shipment eight trucks are at different
location. The costs are given in the table below. Assign 5 trucks so as to minimize the cost.
Loading Locations
Trucks
300
290
280
290
210
250
310
290
300
200
180
190
300
190
180
320
180
190
240
170
270
210
190
250
160
190
200
220
190
140
220
300
230
180
160
200
190
260
210
180
Solution;
The given problem is 8x5, so it is a unbalanced assignment problem, here we must had 3
fictitious loading locations as shown below.
Loading Locations
Trucks
300
290
280
290
210
250
310
290
300
200
180
190
300
190
180
320
180
190
240
170
270
210
190
250
160
190
200
220
190
140
220
300
230
180
160
200
190
260
210
180
40
Once the matrix is balanced and then usual procedure is used to solve the problem for
assignment.
Row minimization
300
290
280
290
210
250
310
290
300
200
180
190
300
190
180
320
180
190
240
170
270
210
190
250
160
190
200
220
190
140
220
300
230
180
160
200
190
260
210
180
Since, each row has zero (0) the row minimization remains same as the original problem.
Column minimization
120
110
90
110
70
70
130
100
120
60
10
110
10
40
140
60
30
90
30
70
20
10
20
30
10
40
120
40
20
20
10
70
30
40
41
120
110
90
110
70
[0]
70
130
100
120
60
[0]
[0]
10
110
10
40
140
[0]
60
30
90
30
[0]
70
20
10
20
30
10
[0]
40
120
40
[0]
20
20
10
70
30
40
[0]
T1----------------------------- G =
T2----------------------------- F =
T3----------------------------- A = 180
T4----------------------------- B = 180
T5----------------------------- C = 190
T6----------------------------- E = 140
T7----------------------------- D = 180
T8----------------------------- H =
0
870
42
Alternatively, omit the variable xij from the problem specification. It is also important to note
that onl single xij =1 for each value of I and j. the distance (or cost or time) matrix for this
problem is given in table 1.
To
From
C12
---
C1n
C21
---
C2n
---
--
--
Cn1
Cn2
---
43
Problem 1:
Given the matrix of set-up costs, show how to sequence the production so as to minimize the
set-up cost per cycle.
To
A1
A2
A3
A4
A5
A1
A2
A3
A4
12
A5
A1
A2
A3
A4
A5
A1
A2
A3
A4
A5
A1
A2
A3
A4
A5
A1
A2
A3
A4
A5
From
Solution:
Row minimization
Column minimization
44
N=n, 5=5x5
[0]
[0]
[0]
[0]
[0]
A1-------A5-----A1, A2-------A3------A4------A2
Cost = 1+3+4+4+1=13
As per the sequence from the above assignment indicates to produce the products A1, then A5
and then again A1, without producing the products A2,A3 and A4 thereby violates the
additional restriction of producing each product once and only once before returning to the
first product.
Step 2: next to examine the matrix for the best solutions to the assignment problem and first
we try with value one (1) the cells having 1 are c12, c43, c45, using this cells we try for one
sequence
Let us try with assigning with c15 to c12 and c42 to c45
[1]
[0]
[0]
[1]
[0]
45
Problem 2
A machine operator processes 5 types of items on his machine each week, and must choose a
sequence for them. The set-up coast per change depends on the item presently on the machine
and the set-up to be made according to the following table:
To Item
A
if the processes each type of item once and only once each week how should he sequence the
items on his machine in order to minimize the total set-up cost?
Solution:
Using usual assignment problem
Row Minimization
Column minimization
46
[0]
[0]
[0]
[0]
[0]
N=n
47
So we try with shifting of cells from c12 to c15 and c35 to c32
[1]
[0]
[0]
[0]
[0]
[1]
[0]
[1]
[0]
[0]
[1]
[1]
[1]
[0]
[0]
A---DB---E---CA
COST=4+4+7+3+5=23
48
Problem3
Solve the given travelling salesman Problem
1
20
10
20
10
10
10
Problem 4.
Solve the travelling salesman problem given by the following data
C12 =20, C13 =4, C14 =10, C23 =5, C34 =6, C25 =10, C35 =6, C45 =20 When = Cij= Cji there is no route
between cities I and j if the value is not shown.
Solution :
Step1 first express the given problem in the form of an assignment problem by taking Cij = ,
for i=j
Apply the usual assignment problem
Row minimization:
16
15
49
Column minimization
15
15
15
15
10
10
14
13
50
N=n,
Using our optimal assignment table we can assign
[0]
[0]
[0]
[0]
[0]
1-----4-----5----2----3---1
Cost = 10+5+4+20+10 = Rs. 49/-
51
Row minimization
Column minimization
N=n 5=5
52
[0]
[0]
[0]
[0]
[0]
00+0=0
3
00+0=0
00+0=0
00+1=1
00+0=0
00+0=0
00+0=0
02+1=3
00+0=0
00+0=0
D----B
53
A
A
00+0=0
00+0=0
B
00+0=0
----
00+0=0
00+0=0
00+0=0
00+0=0
00+0=0
since, the above table in the column d there are no zeros, so select the least value in the that
row which is 1 and subtract with all other elements in that row.
A
A
00+0=0
00+0=0
B
00+0=0
----
00+0=0
00+0=0
00+0=0
00+0=0
00+0=0
02+0=2
54
A
A
E
00+0=0
00+0=0
00+0=0
00+0=0
00+4=0
00+0=0
E
00+0=0
A
---B
00+0=0
00+0=0
B-------C
A-------E