Crew Assignment Problem: Examples

Let's solve the following problem with the Hungarian Method. We will use the same process as used in the last example.

exampleExample

Universal bus service operates seven days in a week. A trip from Delhi to Rajpura takes six hours by bus. A typical time table of the bus service in both directions is given below:

Use Horizontal Scrollbar to View Full Table.

Delhi - Rajpura
Bus No. Departure from Delhi Arrival at Rajpura
A 6.00 12.00
B 7.30 13.30
C 11.30 17.30
D 19.00 1.00
E 00.30 6.30
Rajpura - Delhi
Bus No. Departure from Rajpura Arrival at Delhi
1 5.30 11.30
2 9.00 15.00
3 15.00 21.00
4 18.30 00.30
5 00.00 6.00

The cost of providing this service by the transport company depends upon the time spent by the bus crew (driver and conductor) away from their places in addition to service times. There are five crews. There is a constraint that every crew should be provided with more than 4 hours of rest before the return trip and should not wait for more than 24 hours for the return trip. The company has residential facilities for the crew of Delhi as well as of Rajpura. Find which line of service be connected with which other line so as to reduce the waiting time to the minimum.

Solution.

If bus no. A is combined with bus no. 1, the crew after arriving at Rajpura at 12 noon starts at 5.30 next morning. Thus, the waiting time is 17.30 hours as shown in table 1. Some of the assignments are infeasible, e.g., bus no. 3 leaves Rajpura at 15.00 hours. Thus, the crew of bus no. A after reaching Rajpura at 12 noon are unable to take the minimum required rest of four hours, if they are asked to leave by bus no. 3. Hence, A3 is an infeasible assignment. Thus, its cost is M, a large positive number.

Table 1

Crew based at Delhi
Bus no. 1 2 3 4 5
A 17.30 21 M 6.30 12
B 16 19.30 M 5 10.30
C 12 15.30 21.30 M 6.30
D 4.30 8 14 17.30 23
E 23 M 8.30 12 17.30

Similarly, if the crew are assumed to stay at Rajpura, then the waiting times of the crew in hours at Delhi are given in table 2.

Table 2

Crew based at Rajpura
Bus no. 1 2 3 4 5
A 18.30 15 9 5.30 24
B 20 16.30 10.30 7 M
C 24 20.30 14.30 11 5.30
D 7.30 M 22 18.30 13
E 13 9.30 M 24 18.30

The composite layover time matrix (table 3) is obtained by selecting the smaller element from the two corresponding elements of table 1 & 2. The layover time marked with (*) represents that the crew is based at Delhi, otherwise based at Rajpura.

Table 3

On small screens, scroll horizontally to view full calculation

Bus no. 1 2 3 4 5
A 17.30* 15 9 5.30 12*
B 16* 16.30 10.30 5* 10.30*
C 12* 15.30* 14.30 11 5.30
D 4.30* 8* 14* 17.30* 13
E 13 9.30 8.30* 12* 17.30*

Table 4

To simplify the problem, we multiply every element of the matrix with 2. Thus, the resulting matrix is:

Bus no. 1 2 3 4 5
A 35* 30 18 11 24*
B 32* 33 21 10* 21*
C 24* 31* 29 22 11
D 9* 16* 28* 35* 26
E 26 19 17* 24* 35*

Now solve the above problem by the Hungarian method.

The optimal solution is 4.30 + 9.30 + 9 + 5 + 5.30 = 33.30 hours

Share this article with your friends