← 2017 Paper 2

UPSC 2017 Maths Optional Paper 2 Q4b — Step-by-Step Solution

15 marks · Section A

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

Question

For the following transportation problem, find the initial basic feasible solution using Vogel’s approximation method and find the cost.

Origins \ DestinationsD1D_1D2D_2D3D_3D4D_4D5D_5Supply
O1O_14703614
O2O_2123-3389
O3O_331-140517
Demand838138

Technique

Vogel’s Approximation Method — iterate (largest penalty → least-cost cell → allocate → cross out), tracking row/column penalties as (2nd-smallest − smallest) cost; sum cost over occupied cells.

Solution

Step 0 — Balance check

Total supply =14+9+17=40=14+9+17=40; total demand =8+3+8+13+8=40=8+3+8+13+8=40. Balanced, so no dummy row/column is needed. A non-degenerate basic feasible solution will have m+n1=3+51=7m+n-1=3+5-1=7 allocations.

Vogel’s Approximation Method (VAM): repeatedly compute, for every remaining row and column, the penalty = (second-smallest cost) - (smallest cost); pick the row/column with the largest penalty and allocate as much as possible to its least-cost cell; cross out the exhausted row/column; repeat. (Negative costs are handled exactly like any other number when ordering.)

Step 1 — Iteration 1

Penalties (two smallest costs in each line):

Max penalty =4=4 (O2O_2). Least-cost cell in O2O_2 is (O2,D3)=3(O_2,D_3)=-3. Allocate min(9,8)=8\min(9,8)=8. → x23=8x_{23}=8. D3D_3 demand met (0). Cross out D3D_3. (O2O_2 supply 1\to1.)

Step 2 — Iteration 2 (columns D1,D2,D4,D5D_1,D_2,D_4,D_5)

Max penalty =3=3 (tie D2,D4D_2,D_4; take D2D_2). Least-cost cell in D2D_2 is (O3,D2)=1(O_3,D_2)=-1. Allocate min(17,3)=3\min(17,3)=3. → x32=3x_{32}=3. D2D_2 demand met. Cross out D2D_2. (O3O_3 supply 14\to14.)

Step 3 — Iteration 3 (columns D1,D4,D5D_1,D_4,D_5)

Max penalty =3=3 (tie O3,D4O_3,D_4; take O3O_3). Least-cost cell in O3O_3 is (O3,D4)=0(O_3,D_4)=0. Allocate min(14,13)=13\min(14,13)=13. → x34=13x_{34}=13. D4D_4 demand met. Cross out D4D_4. (O3O_3 supply 1\to1.)

Step 4 — Iteration 4 (columns D1,D5D_1,D_5)

Max penalty =7=7 (O2O_2). Least-cost cell in O2O_2 is (O2,D1)=1(O_2,D_1)=1. Allocate min(1,8)=1\min(1,8)=1. → x21=1x_{21}=1. O2O_2 supply exhausted. Cross out O2O_2. (D1D_1 demand 7\to7.)

Step 5 — Iteration 5 (rows O1,O3O_1,O_3; columns D1,D5D_1,D_5)

Max penalty =2=2 (tie O1,O3O_1,O_3; take O1O_1). Least-cost cell in O1O_1 is (O1,D1)=4(O_1,D_1)=4. Allocate min(14,7)=7\min(14,7)=7. → x11=7x_{11}=7. D1D_1 demand met. Cross out D1D_1. (O1O_1 supply 7\to7.)

Step 6 — Iteration 6 (column D5D_5; rows O1,O3O_1,O_3)

Only D5D_5 remains (demand 88), supplies O1:7, O3:1O_1:7,\ O_3:1. Costs (O1,D5)=6, (O3,D5)=5(O_1,D_5)=6,\ (O_3,D_5)=5. Allocate to satisfy: x15=7x_{15}=7 (exhausts O1O_1), then x35=1x_{35}=1 (exhausts O3O_3 and meets D5D_5).

Step 7 — Allocation table and cost

D1D_1D2D_2D3D_3D4D_4D5D_5Supply
O1O_17714
O2O_2189
O3O_3313117
Demand838138

Number of occupied cells =7=m+n1=7=m+n-1non-degenerate BFS.

Total transportation cost:

Z=7(4)O1D1+7(6)O1D5+1(1)O2D1+8(3)O2D3+3(1)O3D2+13(0)O3D4+1(5)O3D5=28+42+1243+0+5=49.\begin{aligned} Z&=\underbrace{7(4)}_{O_1D_1}+\underbrace{7(6)}_{O_1D_5}+\underbrace{1(1)}_{O_2D_1}+\underbrace{8(-3)}_{O_2D_3}+\underbrace{3(-1)}_{O_3D_2}+\underbrace{13(0)}_{O_3D_4}+\underbrace{1(5)}_{O_3D_5}\\ &=28+42+1-24-3+0+5=49. \end{aligned}

Answer

  VAM initial BFS cost=49 (7 allocations: x11=7,x15=7,x21=1,x23=8,x32=3,x34=13,x35=1).  \boxed{\;\text{VAM initial BFS cost}=49\ \text{(7 allocations: }x_{11}=7,x_{15}=7,x_{21}=1,x_{23}=8,x_{32}=3,x_{34}=13,x_{35}=1).\;}
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.