0% found this document useful (0 votes)
31 views3 pages

MTH 601 BC 180404104

Uploaded by

Aqsa Ramzan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views3 pages

MTH 601 BC 180404104

Uploaded by

Aqsa Ramzan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MTH601:Operations Research(Assignment#2)

Student Name: Aqsa Bibi


ID: BC180404104
Question#1
A manager needs to efficiently allocate four different jobs to four workers in order to
minimize the total man-hours spent on the tasks. The times taken by each worker to complete
each job are provided in the table below:

Job Workers
A B C D
1 10 20 18 14
2 15 25 9 25
3 30 19 17 12
4 19 24 20 10
By using the Hungarian Algorithm determine the optimal assignment of tasks to workers in a
way that minimizes the total man-hours
Solution:
Number of rows = Number of column = 4
A B C D
1 10 20 18 14
2 15 25 9 25
3 30 19 17 12
4 19 24 20 10
Here the problem is Balanced.

Step 1: Subtract the smallest entry in each row from all the entries in that row.

A B C D
1 0 10 8 4 -10
2 6 16 0 16 -9
3 18 7 5 0 -12
4 9 14 10 0 -10
Step 2: Subtract the smallest entry in each column from all the entries in that column.

A B C D
1 0 3 8 4
2 6 9 0 16
3 18 0 5 0
4 9 7 10 0
0 -7 0 0

Iteration 1:
Step-3: Make an Assignment in Opportunity cost table:
a. Identify rows with exactly one unmarked 0. Make an assignment to this single 0 by make
a square ( [0] ) around it and cross off all other 0 in the same column.
b. Identify columns with exactly one unmarked 0. Make an assignment to this single 0 by
make a square ( [0] ) around it and cross off all other 0 in the same rows.
c. If a row and/or column has two or more unmarked 0 and one cannot be chosen by
inspection, then choose the cell arbitrarily.
d. Continue this process until all 0 in rows/columns are either assigned or cross off(0).
Row-wise & column-wise assignment shown in table:

A B C D
1 [0] 3 8 4
2 6 9 [0] 16
3 18 [0] 5 0
4 9 7 10 [0]

Step-4: Number of assignments = 4, number of rows = 4


Which is equal, so solution is optimal
Optimal assignments are:

A B C D
1 [0] 3 8 4
2 6 9 [0] 16
3 18 [0] 5 0
4 9 7 10 [0]
Optimal Solution is:
Job Workers Time in hours
1 A 10
2 B 9
3 C 19
4 D 10

So,the Minimum Total hours = 10+9+19+10 = 48.

You might also like