2. Example-2
Crew assignment problem
Delhi - Mumbai | Mumbai - Delhi | Flight No | Departure | Arrival | a | 06.00 | 12.00 | b | 07.30 | 13.30 | c | 11.30 | 17.30 | d | 19.00 | 01.00 | e | 00.30 | 06.30 |
| Flight No | Departure | Arrival | 1 | 05.30 | 11.30 | 2 | 09.00 | 15.00 | 3 | 15.00 | 21.00 | 4 | 18.30 | 00.30 | 5 | 00.00 | 06.00 |
|
Minimum layover of hours between flights : 4
Solution: To determine optimal assignments, first we calculate layover times from the above time table. Calculating values for table 1 (layover time) `1^(st)` Row
Cell-`1` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 05:30, Waiting time (difference) = 17.5
Cell-`2` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 09:00, Waiting time (difference) = 21
Cell-`3` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 15:00, Waiting time (difference) = 27
Cell-`4` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 18:30, Waiting time (difference) = 6.5
Cell-`5` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 00:00, Waiting time (difference) = 12
`2^(nd)` Row
Cell-`1` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 16
Cell-`2` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 19.5
Cell-`3` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 25.5
Cell-`4` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 5
Cell-`5` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 10.5
`3^(rd)` Row
Cell-`1` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 12
Cell-`2` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 15.5
Cell-`3` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 21.5
Cell-`4` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 25
Cell-`5` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 6.5
`4^(th)` Row
Cell-`1` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 05:30, Waiting time (difference) = 4.5
Cell-`2` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 09:00, Waiting time (difference) = 8
Cell-`3` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 15:00, Waiting time (difference) = 14
Cell-`4` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 18:30, Waiting time (difference) = 17.5
Cell-`5` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 00:00, Waiting time (difference) = 23
`5^(th)` Row
Cell-`1` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 23
Cell-`2` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 26.5
Cell-`3` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 8.5
Cell-`4` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 12
Cell-`5` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 17.5
Table-1 : Crew based at Delhi
| `1` | `2` | `3` | `4` | `5` | | `a` | 17.5 Cell-`1` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 05:30, Waiting time (difference) = 17.5 | 21 Cell-`2` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 09:00, Waiting time (difference) = 21 | 27 Cell-`3` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 15:00, Waiting time (difference) = 27 | 6.5 Cell-`4` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 18:30, Waiting time (difference) = 6.5 | 12 Cell-`5` Arrival time (Mumbai) = 12:00, Departure time (Mumbai) = 00:00, Waiting time (difference) = 12 | | `b` | 16 Cell-`1` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 16 | 19.5 Cell-`2` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 19.5 | 25.5 Cell-`3` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 25.5 | 5 Cell-`4` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 5 | 10.5 Cell-`5` Arrival time (Mumbai) = 13:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 10.5 | | `c` | 12 Cell-`1` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 12 | 15.5 Cell-`2` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 15.5 | 21.5 Cell-`3` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 21.5 | 25 Cell-`4` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 25 | 6.5 Cell-`5` Arrival time (Mumbai) = 17:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 6.5 | | `d` | 4.5 Cell-`1` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 05:30, Waiting time (difference) = 4.5 | 8 Cell-`2` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 09:00, Waiting time (difference) = 8 | 14 Cell-`3` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 15:00, Waiting time (difference) = 14 | 17.5 Cell-`4` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 18:30, Waiting time (difference) = 17.5 | 23 Cell-`5` Arrival time (Mumbai) = 01:00, Departure time (Mumbai) = 00:00, Waiting time (difference) = 23 | | `e` | 23 Cell-`1` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 05:30, Waiting time (difference) = 23 | 26.5 Cell-`2` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 09:00, Waiting time (difference) = 26.5 | 8.5 Cell-`3` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 15:00, Waiting time (difference) = 8.5 | 12 Cell-`4` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 18:30, Waiting time (difference) = 12 | 17.5 Cell-`5` Arrival time (Mumbai) = 06:30, Departure time (Mumbai) = 00:00, Waiting time (difference) = 17.5 | | | | | | | | |
Calculating values for table 2 (layover time) `1^(st)` Column
Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 06:00, Waiting time (difference) = 18.5
Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 15
Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 9
Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 06:00, Waiting time (difference) = 5.5
Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 24
`2^(nd)` Column
Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 07:30, Waiting time (difference) = 20
Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 16.5
Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 10.5
Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 07:30, Waiting time (difference) = 7
Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 25.5
`3^(rd)` Column
Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 11:30, Waiting time (difference) = 24
Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 20.5
Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 14.5
Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 11:30, Waiting time (difference) = 11
Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 5.5
`4^(th)` Column
Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 19:00, Waiting time (difference) = 7.5
Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 28
Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 22
Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 19:00, Waiting time (difference) = 18.5
Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 13
`5^(th)` Column
Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 00:30, Waiting time (difference) = 13
Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 9.5
Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 27.5
Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 00:30, Waiting time (difference) = 24
Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 18.5
Table-2 : Crew based at Mumbai
| `1` | `2` | `3` | `4` | `5` | | `a` | 18.5 Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 06:00, Waiting time (difference) = 18.5 | 15 Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 15 | 9 Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 9 | 5.5 Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 06:00, Waiting time (difference) = 5.5 | 24 Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 06:00, Waiting time (difference) = 24 | | `b` | 20 Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 07:30, Waiting time (difference) = 20 | 16.5 Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 16.5 | 10.5 Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 10.5 | 7 Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 07:30, Waiting time (difference) = 7 | 25.5 Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 07:30, Waiting time (difference) = 25.5 | | `c` | 24 Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 11:30, Waiting time (difference) = 24 | 20.5 Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 20.5 | 14.5 Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 14.5 | 11 Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 11:30, Waiting time (difference) = 11 | 5.5 Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 11:30, Waiting time (difference) = 5.5 | | `d` | 7.5 Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 19:00, Waiting time (difference) = 7.5 | 28 Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 28 | 22 Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 22 | 18.5 Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 19:00, Waiting time (difference) = 18.5 | 13 Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 19:00, Waiting time (difference) = 13 | | `e` | 13 Cell-`1` Arrival time (Delhi) = 11:30, Departure time (Delhi) = 00:30, Waiting time (difference) = 13 | 9.5 Cell-`2` Arrival time (Delhi) = 15:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 9.5 | 27.5 Cell-`3` Arrival time (Delhi) = 21:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 27.5 | 24 Cell-`4` Arrival time (Delhi) = 00:30, Departure time (Delhi) = 00:30, Waiting time (difference) = 24 | 18.5 Cell-`5` Arrival time (Delhi) = 06:00, Departure time (Delhi) = 00:30, Waiting time (difference) = 18.5 | | | | | | | | |
The composite layover time matrix (Table-3) is obtained by selecting the smaller element from the two corresponding elements of Table-1 and Table-2. The layover time marked with (*) represents that the crew is based at Mumbai, otherwise based at Delhi. Table-3
| `1` | `2` | `3` | `4` | `5` | | `a` | `17.5` Crew based at Delhi (Table-1) `17.5="Min"{17.5,18.5}` | `15^**` Crew based at Mumbai (Table-2) `15="Min"{21,15}` | `9^**` Crew based at Mumbai (Table-2) `9="Min"{27,9}` | `5.5^**` Crew based at Mumbai (Table-2) `5.5="Min"{6.5,5.5}` | `12` Crew based at Delhi (Table-1) `12="Min"{12,24}` | | `b` | `16` Crew based at Delhi (Table-1) `16="Min"{16,20}` | `16.5^**` Crew based at Mumbai (Table-2) `16.5="Min"{19.5,16.5}` | `10.5^**` Crew based at Mumbai (Table-2) `10.5="Min"{25.5,10.5}` | `5` Crew based at Delhi (Table-1) `5="Min"{5,7}` | `10.5` Crew based at Delhi (Table-1) `10.5="Min"{10.5,25.5}` | | `c` | `12` Crew based at Delhi (Table-1) `12="Min"{12,24}` | `15.5` Crew based at Delhi (Table-1) `15.5="Min"{15.5,20.5}` | `14.5^**` Crew based at Mumbai (Table-2) `14.5="Min"{21.5,14.5}` | `11^**` Crew based at Mumbai (Table-2) `11="Min"{25,11}` | `5.5^**` Crew based at Mumbai (Table-2) `5.5="Min"{6.5,5.5}` | | `d` | `4.5` Crew based at Delhi (Table-1) `4.5="Min"{4.5,7.5}` | `8` Crew based at Delhi (Table-1) `8="Min"{8,28}` | `14` Crew based at Delhi (Table-1) `14="Min"{14,22}` | `17.5` Crew based at Delhi (Table-1) `17.5="Min"{17.5,18.5}` | `13^**` Crew based at Mumbai (Table-2) `13="Min"{23,13}` | | `e` | `13^**` Crew based at Mumbai (Table-2) `13="Min"{23,13}` | `9.5^**` Crew based at Mumbai (Table-2) `9.5="Min"{26.5,9.5}` | `8.5` Crew based at Delhi (Table-1) `8.5="Min"{8.5,27.5}` | `12` Crew based at Delhi (Table-1) `12="Min"{12,24}` | `17.5` Crew based at Delhi (Table-1) `17.5="Min"{17.5,18.5}` | | | | | | | | |
Now the above problem can be easily solved by Hungarian method.
Step-1: Find out the each row minimum element and subtract it from that row
| `1` | `2` | `3` | `4` | `5` | | `a` | 12 `12=17.5-5.5` | 9.5 `9.5=15-5.5` | 3.5 `3.5=9-5.5` | 0 `0=5.5-5.5` | 6.5 `6.5=12-5.5` | (-5.5) Minimum element of `1^(st)` row | `b` | 11 `11=16-5` | 11.5 `11.5=16.5-5` | 5.5 `5.5=10.5-5` | 0 `0=5-5` | 5.5 `5.5=10.5-5` | (-5) Minimum element of `2^(nd)` row | `c` | 6.5 `6.5=12-5.5` | 10 `10=15.5-5.5` | 9 `9=14.5-5.5` | 5.5 `5.5=11-5.5` | 0 `0=5.5-5.5` | (-5.5) Minimum element of `3^(rd)` row | `d` | 0 `0=4.5-4.5` | 3.5 `3.5=8-4.5` | 9.5 `9.5=14-4.5` | 13 `13=17.5-4.5` | 8.5 `8.5=13-4.5` | (-4.5) Minimum element of `4^(th)` row | `e` | 4.5 `4.5=13-8.5` | 1 `1=9.5-8.5` | 0 `0=8.5-8.5` | 3.5 `3.5=12-8.5` | 9 `9=17.5-8.5` | (-8.5) Minimum element of `5^(th)` row | | | | | | | |
Step-2: Find out the each column minimum element and subtract it from that column.
| `1` | `2` | `3` | `4` | `5` | | `a` | 12 `12=12-0` | 8.5 `8.5=9.5-1` | 3.5 `3.5=3.5-0` | 0 `0=0-0` | 6.5 `6.5=6.5-0` | | `b` | 11 `11=11-0` | 10.5 `10.5=11.5-1` | 5.5 `5.5=5.5-0` | 0 `0=0-0` | 5.5 `5.5=5.5-0` | | `c` | 6.5 `6.5=6.5-0` | 9 `9=10-1` | 9 `9=9-0` | 5.5 `5.5=5.5-0` | 0 `0=0-0` | | `d` | 0 `0=0-0` | 2.5 `2.5=3.5-1` | 9.5 `9.5=9.5-0` | 13 `13=13-0` | 8.5 `8.5=8.5-0` | | `e` | 4.5 `4.5=4.5-0` | 0 `0=1-1` | 0 `0=0-0` | 3.5 `3.5=3.5-0` | 9 `9=9-0` | | | (-0) Minimum element of `1^(st)` column | (-1) Minimum element of `2^(nd)` column | (-0) Minimum element of `3^(rd)` column | (-0) Minimum element of `4^(th)` column | (-0) Minimum element of `5^(th)` column | |
Step-3: Make assignment in the opporunity cost table(a) Examine rows successively unitl a row with exactly one unmarked 0 is obtained. Make an assignmment to this single 0 by make a square ( [0] ) around it. (b) For each 0 value that becomes assigned, eliminate (strike off) all other 0 in the same row and/or column. (c) Repeat steps 3(a) and 3(b) for each column also with exactly single 0 value cell that has not been assigned or eliminated. (d) If a row and/or column has two or more unmarked 0 and one cannot be chosen by inspection, then choose the assigned 0 cell arbitarily (e) Continue this process until all 0 in rows/columns are either enclosed (assigned) or strike off( ) Step-3: Make assignment in the opporunity cost table (1) Rowwise cell `(a,4)` is assigned, so columnwise cell `(b,4)` crossed off.
(2) Rowwise cell `(c,5)` is assigned
(3) Rowwise cell `(d,1)` is assigned
(4) Columnwise cell `(e,2)` is assigned, so rowwise cell `(e,3)` crossed off.
Rowwise & columnwise assignment shown in table
| `1` | `2` | `3` | `4` | `5` | | `a` | 12 | 8.5 | 3.5 | [0] (1) Rowwise cell `(a,4)` is assigned so columnwise cell `(b,4)` crossed off. | 6.5 | | `b` | 11 | 10.5 | 5.5 | 0 Columnwise `(b,4)` crossed off because (1) Rowwise cell `(a,4)` is assigned | 5.5 | | `c` | 6.5 | 9 | 9 | 5.5 | [0] (2) Rowwise cell `(c,5)` is assigned | | `d` | [0] (3) Rowwise cell `(d,1)` is assigned | 2.5 | 9.5 | 13 | 8.5 | | `e` | 4.5 | [0] (4) Columnwise cell `(e,2)` is assigned so rowwise cell `(e,3)` crossed off. | 0 Rowwise `(e,3)` crossed off because (4) Columnwise cell `(e,2)` is assigned | 3.5 | 9 | | | | | | | | |
Step-4: Number of assignments = 4, number of rows = 5 Which is not equal, so solution is not optimal.
Step-5: Cover the 0 with minimum number of lines Draw a set of horizontal and vertical lines to cover all the 0 (a) For each row in which no assignment was made, mark a tick(✓) (b) Examine the marked rows. If any 0 cell occurs in those rows, mark a ✓ to the respective columns that cotain those 0. (c) Examine marked columns. If any assigned 0 occurs in those columns, then tick the respective rows that contain those assigned 0. (d) Repeat this process until no more rows or columns can be marked. (e) Draw a straight line through each marked column and each unmarked row. If the number of lines drawn(or total assignment) is equal to the number of rows (or columns) then the current solution is the optimal solution, otherwise goto step-6
Step-5: Cover the 0 with minimum number of lines (1) Mark(✓) row `b` since it has no assignment
(2) Mark(✓) column `4` since row `b` has 0 in this column
(3) Mark(✓) row `a` since column `4` has an assignment in this row `a`.
(4) Since no other rows or columns can be marked, therefore draw straight lines through the unmarked rows `c,d,e` and marked columns `4`
Tick mark not allocated rows and allocated columns
| `1` | `2` | `3` | `4` | `5` | | `a` | 12 | 8.5 | 3.5 | [0] | 6.5 | ✓(3) (3) Mark(✓) row `a` since column `4` has an assignment in this row `a`. | `b` | 11 | 10.5 | 5.5 | 0 | 5.5 | ✓(1) (1) Mark(✓) row `b` since it has no assignment | `c` | 6.5 | 9 | 9 | 5.5 | [0] | | `d` | [0] | 2.5 | 9.5 | 13 | 8.5 | | `e` | 4.5 | [0] | 0 | 3.5 | 9 | | | | | | ✓ (2) (2) Mark(✓) column `4` since row `b` has 0 in this column | | |
Step-6: Develop the new revised opportunity cost table (a) From among the cells not covered by any line, choose the smallest element, say k (b) Subtract k from every element in the cell not covered by a line. (c) Add k to every elment in the intersection cell of two lines. (d) Elements in cells covered by one line remains unchanged.
Step-6: Develop the new revised table by selecting the smallest element, among the cells not covered by any line (say k = 3.5) Subtract k = 3.5 from every element in the cell not covered by a line. Add k = 3.5 to every elment in the intersection cell of two lines.
| `1` | `2` | `3` | `4` | `5` | | `a` | 8.5 `8.5=12-3.5` cell not covered by a line | 5 `5=8.5-3.5` cell not covered by a line | 0 `0=3.5-3.5` cell not covered by a line | 0 cell covered by a line | 3 `3=6.5-3.5` cell not covered by a line | | `b` | 7.5 `7.5=11-3.5` cell not covered by a line | 7 `7=10.5-3.5` cell not covered by a line | 2 `2=5.5-3.5` cell not covered by a line | 0 cell covered by a line | 2 `2=5.5-3.5` cell not covered by a line | | `c` | 6.5 cell covered by a line | 9 cell covered by a line | 9 cell covered by a line | 9 `9=5.5+3.5` intersection cell of two lines | 0 cell covered by a line | | `d` | 0 cell covered by a line | 2.5 cell covered by a line | 9.5 cell covered by a line | 16.5 `16.5=13+3.5` intersection cell of two lines | 8.5 cell covered by a line | | `e` | 4.5 cell covered by a line | 0 cell covered by a line | 0 cell covered by a line | 7 `7=3.5+3.5` intersection cell of two lines | 9 cell covered by a line | | | | | | | | |
Repeat steps 3 to 6 until an optimal solution is obtained.
Step-3: Make assignment in the opporunity cost table (1) Rowwise cell `(b,4)` is assigned, so columnwise cell `(a,4)` crossed off.
(2) Rowwise cell `(c,5)` is assigned
(3) Rowwise cell `(d,1)` is assigned
(4) Columnwise cell `(e,2)` is assigned, so rowwise cell `(e,3)` crossed off.
(5) Columnwise cell `(a,3)` is assigned
Rowwise & columnwise assignment shown in table
| `1` | `2` | `3` | `4` | `5` | | `a` | 8.5 | 5 | [0] (5) Columnwise cell `(a,3)` is assigned | 0 Columnwise `(a,4)` crossed off because (1) Rowwise cell `(b,4)` is assigned | 3 | | `b` | 7.5 | 7 | 2 | [0] (1) Rowwise cell `(b,4)` is assigned so columnwise cell `(a,4)` crossed off. | 2 | | `c` | 6.5 | 9 | 9 | 9 | [0] (2) Rowwise cell `(c,5)` is assigned | | `d` | [0] (3) Rowwise cell `(d,1)` is assigned | 2.5 | 9.5 | 16.5 | 8.5 | | `e` | 4.5 | [0] (4) Columnwise cell `(e,2)` is assigned so rowwise cell `(e,3)` crossed off. | 0 Rowwise `(e,3)` crossed off because (4) Columnwise cell `(e,2)` is assigned | 7 | 9 | | | | | | | | |
Step-4: Number of assignments = 5, number of rows = 5 Which is equal, so solution is optimal
Optimal assignments are
| `1` | `2` | `3` | `4` | `5` | | `a` | 8.5 Original cost 17.5 | 5 Original cost 15 | [0] Original cost 9 | 0 Original cost 5.5 | 3 Original cost 12 | | `b` | 7.5 Original cost 16 | 7 Original cost 16.5 | 2 Original cost 10.5 | [0] Original cost 5 | 2 Original cost 10.5 | | `c` | 6.5 Original cost 12 | 9 Original cost 15.5 | 9 Original cost 14.5 | 9 Original cost 11 | [0] Original cost 5.5 | | `d` | [0] Original cost 4.5 | 2.5 Original cost 8 | 9.5 Original cost 14 | 16.5 Original cost 17.5 | 8.5 Original cost 13 | | `e` | 4.5 Original cost 13 | [0] Original cost 9.5 | 0 Original cost 8.5 | 7 Original cost 12 | 9 Original cost 17.5 | | | | | | | | |
Optimal solution is
Work | Job | Cost | `a` | `3` | 9 | `b` | `4` | 5 | `c` | `5` | 5.5 | `d` | `1` | 4.5 | `e` | `2` | 9.5 | | Total | 33.5 |
This material is intended as a summary. Use your textbook for detail explanation. Any bug, improvement, feedback then
|