Test for Optimality MODI Method
The MODI (Modified Distribution) Method, also known as the UV method, is used to check the optimality of an initial feasible solution for a transportation problem and improve it if necessary. It calculates opportunity costs for non-basic cells (cells not currently in the solution) and adjusts allocations based on these costs to find the optimal solution.
Steps for the MODI Method
-
Obtain an initial feasible solution using any method (e.g., North-West Corner Rule, Least Cost Method, Vogelโs Approximation Method). The solution should satisfy the supply and demand requirements with the minimum number of allocations, which is
(m + n - 1)
, wherem
is the number of rows andn
is the number of columns. -
Calculate the values of dual variables (U and V).
- For each occupied cell
(i, j)
in the solution, use the formulaU_i + V_j = C_ij
, whereC_ij
is the cost for that cell. - Set
U_1 = 0
(arbitrarily) and calculate the other values ofU
andV
based on the equation for the occupied cells.
- For each occupied cell
-
Compute the opportunity cost (ฮ_ij) for each unoccupied cell.
- Use the formula:
ฮ_ij = C_ij - (U_i + V_j)
. - If all
ฮ_ij
values are greater than or equal to zero, the current solution is optimal.
- Use the formula:
-
If any ฮ_ij is negative, the current solution is not optimal. Identify the cell with the most negative
ฮ_ij
to bring into the solution and adjust the allocations to form a closed loop. - Make the new allocations using the stepping-stone path and repeat the process until all opportunity costs are non-negative.
Example of the MODI Method
Consider a transportation problem with three factories (A, B, C) supplying goods to three warehouses (X, Y, Z). The supply, demand, and transportation costs are given as follows:
X | Y | Z | Supply | |
---|---|---|---|---|
A | 4 | 8 | 8 | 60 |
B | 2 | 5 | 6 | 70 |
C | 3 | 8 | 6 | 50 |
Demand | 50 | 80 | 50 |
Step 1: Obtain an Initial Feasible Solution
Using the Least Cost Method, we get the following initial feasible solution:
X | Y | Z | Supply | |
---|---|---|---|---|
A | 50 | 10 | 0 | 60 |
B | 0 | 70 | 0 | 70 |
C | 0 | 0 | 50 | 50 |
Demand | 50 | 80 | 50 |
Step 2: Calculate the U and V Values
We have occupied cells: (A-X), (A-Y), (B-Y), and (C-Z).
- Set
U_A = 0
(arbitrarily). - Calculate the other U and V values:
- For (A-X):
U_A + V_X = 4
โ0 + V_X = 4
โV_X = 4
. - For (A-Y):
U_A + V_Y = 8
โ0 + V_Y = 8
โV_Y = 8
. - For (B-Y):
U_B + V_Y = 5
โU_B + 8 = 5
โU_B = -3
. - For (C-Z):
U_C + V_Z = 6
โU_C + V_Z = 6
. AssumeU_C = 0
, thenV_Z = 6
.
- For (A-X):
Step 3: Compute Opportunity Costs (ฮ_ij)
Calculate ฮ_ij for each unoccupied cell:
- For (B-X):
ฮ_BX = C_BX - (U_B + V_X) = 2 - (-3 + 4) = 2 - 1 = 1
. - For (B-Z):
ฮ_BZ = C_BZ - (U_B + V_Z) = 6 - (-3 + 6) = 6 - 3 = 3
. - For (C-Y):
ฮ_CY = C_CY - (U_C + V_Y) = 8 - (0 + 8) = 8 - 8 = 0
.
Step 4: Check Optimality
Since all opportunity costs are greater than or equal to zero, the current solution is optimal.
Summary
- The MODI Method is used to check the optimality of an initial feasible solution and adjust it if needed by recalculating allocations based on opportunity costs.
- If all opportunity costs are non-negative, the current solution is optimal.
- If any opportunity costs are negative, adjustments need to be made using a stepping-stone path to improve the solution.
No Comments