Assignment Model: Suraj Marathe
Assignment Model: Suraj Marathe
SURAJ MARATHE
ASSIGNMENT MODEL
BASIC ASSUMPTION
The number of assignees and the number of tasks are the same (denoted by n).
Each assignee is to be assigned to exactly one task.
Each task is to be performed by exactly one assignee.
There is a cost Cij associated with assignee i performing task j.
The objective is to determine how all n assignments should be made to
minimize the total cost
A 5 6 8 7
B 10 12 11 7
C 10 8 13 6
D 8 7 4 3
MATHEMATICAL MODEL
A 5 6 8 7
B 10 12 11 7
C 10 8 13 6
D 8 7 4 3
HUNGARIAN ALGORITHM
STEP I:PREPARE A SQUARE MATRIX
For m * n , (m≠n) , a dummy column or dummy row
should be added.
row. Examine if there is atleast one zero in each row and each column.
If not, subtract the minimum element of each column from all the
elements of that column.
JOBS M/C 1 M/C 2 M/C 3 M/C 4 JOBS M/C 1 M/C 2 M/C 3 M/C 4
A 0 1 3 2
A 0 0 2 2
B 3 5 4 0
B 3 4 3 0
C 4 2 7 0 C 4 1 6 0
D 5 4 1 0 D 5 3 0 0
HUNGARIAN ALGORITHM
A 0 0 2 2
B 3 4 3 0
C 4 1 6 0
D 5 3 0 0
HUNGARIAN ALGORITHM
A 0 0 2 2
B 3 4 3 0
C 4 1 6 0
D 5 3 0 0
HUNGARIAN ALGORITHM
all the uncovered elements. Add this smallest element to every element that lies at the
intersection of two lines. Repeat step 3 to 4 until the number of lines crossing all zeros
JOBS M/C 1 M/C 2 M/C 3 M/C 4 JOBS M/C 1 M/C 2 M/C 3 M/C 4
A 0 0 2 2 A 0 0 3 3
B 3 4 3 0 B 2 3 3 0
C 4 1 6 0 C 3 0 6 0
D 5 3 0 0 D 4 2 0 0
HUNGARIAN ALGORITHM
JOBS M/C 1 M/C 2 M/C 3 M/C 4 JOBS M/C 1 M/C 2 M/C 3 M/C 4
A 0 0 3 3 A 0 0 3 3
B 2 3 3 0 B 2 3 3 0
C 3 0 6 0 C 3 0 6 0
D 4 2 0 0 D 4 2 0 0
1 2 3 4 5 6
A 12 10 15 22 18 8
B 10 18 25 15 16 12
C 11 10 3 8 5 9
D 6 14 10 13 13 12
E 8 12 11 7 13 10
ASSIGNMENT MODEL EXAMPLES
A small garment making unit has five tailors stitching five different types of
garments. All the five tailors are capable of stitching all the five types of garments.
The output per day per tailor and the profit (Rs.) for each type of garment are given
below.
1. Find the assignment of batsmen to positions which would give the maximum number of
runs.
2. If another batsman ‘U’ with the following average runs in batting positions added to team,
should he be included to play in the team? If so, who will be replaced by him?