← 2025 Paper 2
UPSC Maths 2025 Paper 2 Q4c — Solution
20 marks · Section A
Question
The following table shows all the necessary information on the available supply to each warehouse, the requirement of each market and the unit transportation cost from each warehouse to each market:
| I | II | III | IV | Supply |
|---|
| A | 5 | 2 | 4 | 3 | 22 |
| B | 4 | 8 | 1 | 6 | 15 |
| C | 4 | 6 | 7 | 5 | 8 |
| Requirement | 7 | 12 | 17 | 9 | |
The shipping clerk has worked out the following schedule from experience: 12 units from A to II, 1 unit from A to III, 9 units from A to IV, 15 units from B to III, 7 units from C to I and 1 unit from C to III. Find the optimal schedule and minimum total shipping cost.
Technique
Start from the given basic feasible solution and apply the MODI (u–v / modified distribution) method: compute dual potentials, opportunity costs dij=cij−(ui+vj), identify the entering cell, trace the closed loop, and reallocate.
Solution
Balance check. Total supply =22+15+8=45; total requirement =7+12+17+9=45. The problem is balanced, so a feasible transportation plan exists.
A note on the data: the clerk’s “experience” schedule given in the problem is not optimal — it costs 105, whereas the true optimum costs 104. One MODI iteration corrects it, as shown below.
Step 1 — The given (initial) basic feasible solution.
| I | II | III | IV | Supply |
|---|
| A | – | 12 | 1 | 9 | 22 |
| B | – | – | 15 | – | 15 |
| C | 7 | – | 1 | – | 8 |
| Req | 7 | 12 | 17 | 9 | |
Occupied (basic) cells: AII,AIII,AIV,BIII,CI,CIII — that is 6=m+n−1=3+4−1 cells (non-degenerate). Initial cost:
Z0=2(12)+4(1)+3(9)+1(15)+4(7)+7(1)=24+4+27+15+28+7=105.
Step 2 — Dual potentials (MODI). For each basic cell set ui+vj=cij, with uA=0:
- AII:vII=2; AIII:vIII=4; AIV:vIV=3.
- BIII:uB+4=1⇒uB=−3.
- CIII:uC+4=7⇒uC=3; then CI:uC+vI=4⇒vI=1.
So u=(0,−3,3), v=(1,2,4,3).
Step 3 — Opportunity costs dij=cij−(ui+vj) for non-basic cells.
| cell | cij | ui+vj | dij |
|---|
| AI | 5 | 1 | +4 |
| BI | 4 | -2 | +6 |
| BII | 8 | -1 | +9 |
| BIV | 6 | 0 | +6 |
| CII | 6 | 5 | +1 |
| CIV | 5 | 6 | −1 |
The only negative entry is dCIV=−1, so the current solution is not optimal. The entering cell is CIV.
Step 4 — Closed loop and reallocation. Form the closed loop on basic cells starting at CIV:
CIV(+)→CIII(−)→AIII(+)→AIV(−)→CIV.
The minus cells carry CIII=1 and AIV=9; the reallocation amount is
θ=min(1,9)=1.
Adjust: CIV↑1, CIII↓1(→0), AIII↑1(→2), AIV↓1(→8). Cell CIII leaves the basis.
Step 5 — New solution.
| I | II | III | IV | Supply |
|---|
| A | – | 12 | 2 | 8 | 22 |
| B | – | – | 15 | – | 15 |
| C | 7 | – | – | 1 | 8 |
| Req | 7 | 12 | 17 | 9 | |
Cost: Z1=Z0+θ⋅dCIV=105+1(−1)=104. Directly:
Z1=2(12)+4(2)+3(8)+1(15)+4(7)+5(1)=24+8+24+15+28+5=104.
Step 6 — Optimality check. Recompute potentials: u=(0,−3,2), v=(2,2,4,3). All non-basic opportunity costs are now ≥0:
dAI=3, dBI=5, dBII=9, dBIV=6, dCII=2, dCIII=1.
All ≥0⇒ the solution is optimal. Since every reduced cost is strictly positive, the optimum is unique.
Answer
Optimal schedule:
- A→ II: 12, A→ III: 2, A→ IV: 8
- B→ III: 15
- C→ I: 7, C→ IV: 1
Minimum total shipping cost=104.