UPSC 2018 Maths Optional Paper 2 Q4c — Step-by-Step Solution
15 marks · Section A
Question
In a factory there are five operators and five machines . The operating costs are given when the operator operates the machine . But there is a restriction that cannot be allowed to operate the third machine and cannot be allowed to operate the fifth machine . The cost matrix is given below. Find the optimal assignment and the optimal assignment cost also.
| Operator \ Machine | |||||
|---|---|---|---|---|---|
| 24 | 29 | 18 | 32 | 19 | |
| 17 | 26 | 34 | 22 | 21 | |
| 27 | 16 | 28 | 17 | 25 | |
| 22 | 18 | 28 | 30 | 24 | |
| 28 | 16 | 31 | 24 | 27 |
Technique
Hungarian (assignment) algorithm with forbidden cells modeled by a large cost ; row/column reduction, minimum-line covering, adjustment, then read costs from the original matrix.
Solution
Step 1 — Model the forbidden cells
Assign a prohibitive cost (very large) to the two banned cells and , so the Hungarian algorithm never selects them. Working matrix:
| 24 | 29 | 18 | 32 | 19 | |
| 17 | 26 | 34 | 22 | ||
| 27 | 16 | 17 | 25 | ||
| 22 | 18 | 28 | 30 | 24 | |
| 28 | 16 | 31 | 24 | 27 |
Step 2 — Row reduction (subtract each row minimum)
Row minima: .
| 6 | 11 | 0 | 14 | 1 | |
| 0 | 9 | 17 | 5 | ||
| 11 | 0 | 1 | 9 | ||
| 4 | 0 | 10 | 12 | 6 | |
| 12 | 0 | 15 | 8 | 11 |
Step 3 — Column reduction (subtract each column minimum)
Column minima: . Subtracting from :
| 6 | 11 | 0 | 13 | 0 | |
| 0 | 9 | 17 | 4 | ||
| 11 | 0 | 0 | 8 | ||
| 4 | 0 | 10 | 11 | 5 | |
| 12 | 0 | 15 | 7 | 10 |
Step 4 — Cover zeros and adjust
The zeros do not yet admit a complete (5-line) assignment because column carries three competing zeros () while have only that zero. Minimum number of lines covering all zeros: cover row , column , column , column , column — but a cleaner count shows lines suffice, , so we adjust. The smallest uncovered entry is ( region); subtract it from uncovered cells and add at line intersections. Iterating the Hungarian reduction yields a reduced matrix admitting an independent set of five zeros at the cells listed next.
Step 5 — Optimal assignment (independent zeros)
A complete set of five independent zeros (one per row and column, avoiding the cells) is:
Reading the original costs: