Vincent Van Gogh - FINAL
Vincent Van Gogh - FINAL
Vincent Van Gogh - FINAL
BUS CAL
Sec 1-MN Prof. Villanueva Jr.
- This particular type of problem can be solved by using Hungarian Method, but two criteria must be
present to be able to use the method:
o Balanced Assignment Problem (same # of rows and columns)
o Minimization
- To convert Maximization problem to Minimization, we perform these steps:
Step 1: Identify the number having the highest value within the matrix. Subtract all the elements from
the number having the highest value. [Now, you can start solving it by using Hungarian Method]
- Under Row Subtraction, find within the row the number having the lowest value and subtract
all numbers from the lowest value. Perform this on all rows. The new matrix that would appear
would be the basis for the Column Subtraction.
- Using the matrix derived from performing Row subtraction, find the number within the column
having the lowest value and subtract all numbers from that lowest value. Perform this as well
on all columns.
Step 3: Draw the minimum number of lines to cover all zeros (0).
- For each row, find any 0 available. Strike-out the rows or columns that would be using the least
possible lines to cover all zeros (0).
- If the # of lines crossed to cover all zeros = order of the matrix; Proceed to STEP 6.
# of lines crossed to cover all zeros ≠ order of the matrix; Continue to STEP 4.
- SUBTRACT the minimum undeleted value from all the undeleted values.
- ADD the minimum undeleted value at the intersection points of the present matrix.
- All other values are the same. (Copy to the new matrix)
Step 6: Once # of lines crossed to cover all zeros = order of the matrix; Find the optimal assignment.
- Use the zeros’ position from the ORIGINAL matrix in finding optimal solution requested from the given
problem.
EXAMPLE 1:
Step 1: Identify the number having the highest value within the matrix. Subtract all the elements from
the number having the highest value
A B C D
2 90 72 63 99
3 110 88 77 121
4 80 64 56 88
- Under Row Subtraction, find within the row the number having the lowest value and subtract all
numbers from the lowest value. Perform this on all rows. The new matrix that would appear
would be the basis for the Column Subtraction.
A B C D A B C D
1 14 42 56 0 1 14 42 56 0
2 64 82 91 55 2 9 27 36 0
3 44 66 77 33 3 11 33 44 0
4 74 90 98 66 4 8 24 32 0
- Using the matrix derived from performing Row subtraction, find the number within the column
having the lowest value and subtract all numbers from that lowest value. Perform on all
columns.
A B C D A B C D
1 14 42 56 0 1 6 18 24 0
2 9 27 36 0 2 1 3 4 0
3 11 33 44 0 3 3 9 12 0
4 8 24 32 0 4 0 0 0 0
Step 3: Draw the minimum number of lines to cover all zeros (0).
- For each row, find any 0 available. Strike-out the rows or columns that would be using the least
possible lines to cover all zeros (0).
A B C D
1 6 18 24 0
0
2 1 3 4
3 3 9 12 0
4 0 0 0 0
STEP 4: The minimum number of lines to cover all zeros is 2, which is less than the order of the matrix,
therefore we cannot make assignments.
- SUBTRACT the minimum undeleted value from all the undeleted values.
- ADD the minimum undeleted value at the intersection points of the present matrix
- All other values are the same.
A B C D A B C D
0
1 6 18 24 1 5 17 23 0
0
2 1 3 4 0 2 0 2 3
3 3 9 12 0 3 2 8 11 0
4 0 0 0 0 4 0 0 0 1
INTERSECTION PT
4 0 0 0 1
A B C D A B C D
1 5 17 23 0 1 5 15 21 0
2 0 2 3 0 2 0 0 1 0
3 2 8 11 0 3 2 6 9 0
4 0 0 0 1 4 0 0 0 3
Still, the minimum number of lines drawn is less than the order of the matrix (4) Repeat the STEP 4 and
then [STEP 5] perform row and column subtraction as stated in STEP 3 above to arrive at the following
table:
A B C D A B C D
1 5 15 21 0 1 3 13 19 0
2 0 0 1 0 2 0 0 1 2
3 2 6 9 0 3 0 4 7 0
4 0 0 0 3 4 0 0 0 5
STEP 6: Since the number of lines drawn equals the order of the matrix, it is now possible to determine
the optimal solution. Use the original matrix as basis for the amounts to be inputted.
A B C D
1 3 13 19 0
2 0 0 1 2
3 0 4 7 0
4 0 0 0 5
1 D 154
2 B 72
3 A 110
4 C 56
Total 392
EXAMPLE 2:
Column subtraction - Find the lowest value within each column and subtract all values to that lowest
value.
Since the minimum lines drawn now equals the order of the matrix, we can now make assignments. The
optimal assignments are given below:
3 36 0 60 0
4 0 0 30 85