← 2020 Paper 2

UPSC 2020 Maths Optional Paper 2 Q4c — Step-by-Step Solution

20 marks · Section A

Transportation problem · Linear Programming · asked 5× in 13 yrs · Read the full method →

Question

Find the initial basic feasible solution of the following transportation problem by Vogel’s approximation method (VAM) and use it to find the optimal solution and the transportation cost. Cost matrix (rows = sources S1,S2,S3; cols = destinations D1,D2,D3,D4): S1: [10, 0, 20, 11], availability 15 S2: [12, 8, 9, 20], availability 25 S3: [0, 14, 16, 18], availability 10 Demand: D1=5, D2=20, D3=15, D4=10.

Technique

Vogel’s Approximation Method for the initial BFS (penalty = gap between two least costs), then MODI/u–v method for optimality; one loop pivot (θ=5\theta=5) reaches the optimum.

Solution

D1D2D3D4Supply
S1100201115
S212892025
S3014161810
Demand520151050/5050/50

Step 0 — Check balance

Total supply =15+25+10=50=15+25+10=50; total demand =5+20+15+10=50=5+20+15+10=50. Balanced, so no dummy needed. A basic feasible solution will have m+n1=3+41=6m+n-1=3+4-1=6 occupied cells.

Step 1 — Vogel’s Approximation Method (penalties = difference of two smallest costs)

We repeatedly compute, for each remaining row/column, the penalty = (2nd smallest cost) − (smallest cost), pick the row/column with the largest penalty, and allocate the maximum to its least-cost cell.

Allocation 1. Penalties — Rows: S1 0,1010|0,10|\to10, S2 8,91|8,9|\to1, S3 0,1414|0,14|\to14; Cols: D1 0,1010|0,10|\to10, D2 0,88|0,8|\to8, D3 9,167|9,16|\to7, D4 11,187|11,18|\to7. Largest =14=14 (S3). Least cost in S3 is cell (S3,D1)=0(S3,D1)=0. Allocate min(10,5)=5\min(10,5)=5x31=5x_{31}=5. D1 satisfied (remove column D1); S3 left with 55.

Allocation 2. Remaining cols D2,D3,D4. Penalties — Rows: S1 0,1111|0,11|\to11, S2 8,91|8,9|\to1, S3 14,162|14,16|\to2; Cols: D2 0,88|0,8|\to8, D3 9,167|9,16|\to7, D4 11,187|11,18|\to7. Largest =11=11 (S1). Least cost in S1 (over D2,D3,D4) is (S1,D2)=0(S1,D2)=0. Allocate min(15,20)=15\min(15,20)=15x12=15x_{12}=15. S1 exhausted (remove row S1); D2 left with 55.

Allocation 3. Rows S2,S3; cols D2,D3,D4. Penalties — Rows: S2 8,91|8,9|\to1, S3 14,162|14,16|\to2; Cols: D2 8,146|8,14|\to6, D3 9,167|9,16|\to7, D4 18,202|18,20|\to2. Largest =7=7 (D3). Least cost in D3 is (S2,D3)=9(S2,D3)=9. Allocate min(25,15)=15\min(25,15)=15x23=15x_{23}=15. D3 satisfied (remove D3); S2 left with 1010.

Allocation 4. Rows S2,S3; cols D2,D4. Penalties — Rows: S2 8,2012|8,20|\to12, S3 14,184|14,18|\to4; Cols: D2 8,146|8,14|\to6, D4 18,202|18,20|\to2. Largest =12=12 (S2). Least cost in S2 (over D2,D4) is (S2,D2)=8(S2,D2)=8. Allocate min(10,5)=5\min(10,5)=5x22=5x_{22}=5. D2 satisfied (remove D2); S2 left with 55.

Allocation 5 & 6. Only D4 remains (demand 1010) with S2 (55) and S3 (55). Allocate x24=5x_{24}=5 and x34=5x_{34}=5. All supplies/demands met.

Initial BFS (VAM)

D1D2D3D4
S115
S25155
S355

Occupied cells =6=m+n1=6=m+n-1 (non-degenerate). Cost:

ZVAM=015+85+915+205+05+185=0+40+135+100+0+90=365.Z_{\text{VAM}}=0\cdot15+8\cdot5+9\cdot15+20\cdot5+0\cdot5+18\cdot5=0+40+135+100+0+90=365.

Step 2 — Optimality test by MODI (u–v method)

Set u1=0u_1=0 and solve ui+vj=ciju_i+v_j=c_{ij} on the 66 basic cells {(1,2),(2,2),(2,3),(2,4),(3,1),(3,4)}\{(1,2),(2,2),(2,3),(2,4),(3,1),(3,4)\}:

u1=0, u2=8, u3=6;v1=6, v2=0, v3=1, v4=12.u_1=0,\ u_2=8,\ u_3=6;\qquad v_1=-6,\ v_2=0,\ v_3=1,\ v_4=12.

Opportunity costs Δij=cijuivj\Delta_{ij}=c_{ij}-u_i-v_j for the non-basic cells:

cellΔ\DeltacellΔ\Delta
(1,1)1616(1,3)1919
(1,4)1\mathbf{-1}(2,1)1010
(3,2)88(3,3)99

Δ14=1<0\Delta_{14}=-1<0, so the solution is not optimal; cell (S1,D4)(S1,D4) should enter the basis.

Step 3 — Loop pivot on entering cell (S1,D4)(S1,D4)

Closed loop with alternating +/+/- signs starting at (1,4)(1,4):

(1,4)+(2,4)(2,2)+(1,2)(1,4).(1,4)^{+}\to(2,4)^{-}\to(2,2)^{+}\to(1,2)^{-}\to(1,4).

The minimum allocation on the "-" cells is θ=min{x24,x12}=min{5,15}=5\theta=\min\{x_{24},x_{12}\}=\min\{5,15\}=5. Adjust:

x14=0+5=5,x24=55=0,x22=5+5=10,x12=155=10.x_{14}=0+5=5,\quad x_{24}=5-5=0,\quad x_{22}=5+5=10,\quad x_{12}=15-5=10.

(2,4)(2,4) leaves the basis.

New solution

D1D2D3D4
S1105
S21015
S355

Step 4 — Re-test optimality (MODI)

New potentials (u1=0u_1=0): u2=8, u3=7; v1=7, v2=0, v3=1, v4=11u_2=8,\ u_3=7;\ v_1=-7,\ v_2=0,\ v_3=1,\ v_4=11. Opportunity costs for all non-basic cells:

Δ11=17, Δ13=19, Δ21=11, Δ24=1, Δ32=7, Δ33=8.\Delta_{11}=17,\ \Delta_{13}=19,\ \Delta_{21}=11,\ \Delta_{24}=1,\ \Delta_{32}=7,\ \Delta_{33}=8.

All Δij0\Delta_{ij}\ge0optimal.

Step 5 — Optimal cost

Z\*=010+115+810+915+05+185=0+55+80+135+0+90=360.Z^\*=0\cdot10+11\cdot5+8\cdot10+9\cdot15+0\cdot5+18\cdot5 =0+55+80+135+0+90=360.

Answer

  Optimal: x12=10, x14=5, x22=10, x23=15, x31=5, x34=5;Z\*=360.  \boxed{\;\text{Optimal: }x_{12}=10,\ x_{14}=5,\ x_{22}=10,\ x_{23}=15,\ x_{31}=5,\ x_{34}=5;\quad Z^\*=360.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.