← 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 \ Destinations D 1 D_1 D 1 D 2 D_2 D 2 D 3 D_3 D 3 D 4 D_4 D 4 D 5 D_5 D 5 Supply O 1 O_1 O 1 4 7 0 3 6 14 O 2 O_2 O 2 1 2 − 3 -3 − 3 3 8 9 O 3 O_3 O 3 3 − 1 -1 − 1 4 0 5 17 Demand 8 3 8 13 8
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 = 14 + 9 + 17 = 40 ; total demand = 8 + 3 + 8 + 13 + 8 = 40 =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 + n − 1 = 3 + 5 − 1 = 7 m+n-1=3+5-1=7 m + 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):
Rows: O 1 : 3 − 0 = 3 O_1:3-0=3 O 1 : 3 − 0 = 3 , O 2 : 1 − ( − 3 ) = 4 O_2:1-(-3)=4 O 2 : 1 − ( − 3 ) = 4 , O 3 : ( − 1 ) − ( − 1 ) O_3:(-1)-(-1) O 3 : ( − 1 ) − ( − 1 ) ? smallest − 1 -1 − 1 , next 0 0 0 ⇒ 0 − ( − 1 ) = 1 \Rightarrow 0-(-1)=1 ⇒ 0 − ( − 1 ) = 1 .
Cols: D 1 : 3 − 1 = 2 D_1:3-1=2 D 1 : 3 − 1 = 2 , D 2 : 2 − ( − 1 ) = 3 D_2:2-(-1)=3 D 2 : 2 − ( − 1 ) = 3 , D 3 : 0 − ( − 3 ) = 3 D_3:0-(-3)=3 D 3 : 0 − ( − 3 ) = 3 , D 4 : 3 − 0 = 3 D_4:3-0=3 D 4 : 3 − 0 = 3 , D 5 : 6 − 5 = 1 D_5:6-5=1 D 5 : 6 − 5 = 1 .
Max penalty = 4 =4 = 4 (O 2 O_2 O 2 ). Least-cost cell in O 2 O_2 O 2 is ( O 2 , D 3 ) = − 3 (O_2,D_3)=-3 ( O 2 , D 3 ) = − 3 . Allocate min ( 9 , 8 ) = 8 \min(9,8)=8 min ( 9 , 8 ) = 8 .
→ x 23 = 8 x_{23}=8 x 23 = 8 . D 3 D_3 D 3 demand met (0). Cross out D 3 D_3 D 3 . (O 2 O_2 O 2 supply → 1 \to1 → 1 .)
Step 2 — Iteration 2 (columns D 1 , D 2 , D 4 , D 5 D_1,D_2,D_4,D_5 D 1 , D 2 , D 4 , D 5 )
Rows: O 1 : 3 − 0 O_1:3-0 O 1 : 3 − 0 ? costs { 4 , 7 , 3 , 6 } ⇒ 4 − 3 = 1 \{4,7,3,6\}\Rightarrow4-3=1 { 4 , 7 , 3 , 6 } ⇒ 4 − 3 = 1 ; O 2 O_2 O 2 costs { 1 , 2 , 3 , 8 } ⇒ 2 − 1 = 1 \{1,2,3,8\}\Rightarrow2-1=1 { 1 , 2 , 3 , 8 } ⇒ 2 − 1 = 1 ; O 3 O_3 O 3 costs { 3 , − 1 , 0 , 5 } ⇒ 0 − ( − 1 ) = 1 \{3,-1,0,5\}\Rightarrow0-(-1)=1 { 3 , − 1 , 0 , 5 } ⇒ 0 − ( − 1 ) = 1 .
Cols: D 1 : 3 − 1 = 2 D_1:3-1=2 D 1 : 3 − 1 = 2 , D 2 : 2 − ( − 1 ) = 3 D_2:2-(-1)=3 D 2 : 2 − ( − 1 ) = 3 , D 4 : 3 − 0 = 3 D_4:3-0=3 D 4 : 3 − 0 = 3 , D 5 : 6 − 5 = 1 D_5:6-5=1 D 5 : 6 − 5 = 1 .
Max penalty = 3 =3 = 3 (tie D 2 , D 4 D_2,D_4 D 2 , D 4 ; take D 2 D_2 D 2 ). Least-cost cell in D 2 D_2 D 2 is ( O 3 , D 2 ) = − 1 (O_3,D_2)=-1 ( O 3 , D 2 ) = − 1 . Allocate min ( 17 , 3 ) = 3 \min(17,3)=3 min ( 17 , 3 ) = 3 .
→ x 32 = 3 x_{32}=3 x 32 = 3 . D 2 D_2 D 2 demand met. Cross out D 2 D_2 D 2 . (O 3 O_3 O 3 supply → 14 \to14 → 14 .)
Step 3 — Iteration 3 (columns D 1 , D 4 , D 5 D_1,D_4,D_5 D 1 , D 4 , D 5 )
Rows: O 1 : { 4 , 3 , 6 } ⇒ 4 − 3 = 1 O_1:\{4,3,6\}\Rightarrow4-3=1 O 1 : { 4 , 3 , 6 } ⇒ 4 − 3 = 1 ; O 2 : { 1 , 3 , 8 } ⇒ 3 − 1 = 2 O_2:\{1,3,8\}\Rightarrow3-1=2 O 2 : { 1 , 3 , 8 } ⇒ 3 − 1 = 2 ; O 3 : { 3 , 0 , 5 } ⇒ 3 − 0 = 3 O_3:\{3,0,5\}\Rightarrow3-0=3 O 3 : { 3 , 0 , 5 } ⇒ 3 − 0 = 3 .
Cols: D 1 : 3 − 1 = 2 D_1:3-1=2 D 1 : 3 − 1 = 2 , D 4 : 3 − 0 = 3 D_4:3-0=3 D 4 : 3 − 0 = 3 , D 5 : 6 − 5 = 1 D_5:6-5=1 D 5 : 6 − 5 = 1 .
Max penalty = 3 =3 = 3 (tie O 3 , D 4 O_3,D_4 O 3 , D 4 ; take O 3 O_3 O 3 ). Least-cost cell in O 3 O_3 O 3 is ( O 3 , D 4 ) = 0 (O_3,D_4)=0 ( O 3 , D 4 ) = 0 . Allocate min ( 14 , 13 ) = 13 \min(14,13)=13 min ( 14 , 13 ) = 13 .
→ x 34 = 13 x_{34}=13 x 34 = 13 . D 4 D_4 D 4 demand met. Cross out D 4 D_4 D 4 . (O 3 O_3 O 3 supply → 1 \to1 → 1 .)
Step 4 — Iteration 4 (columns D 1 , D 5 D_1,D_5 D 1 , D 5 )
Rows: O 1 : { 4 , 6 } ⇒ 6 − 4 = 2 O_1:\{4,6\}\Rightarrow6-4=2 O 1 : { 4 , 6 } ⇒ 6 − 4 = 2 ; O 2 : { 1 , 8 } ⇒ 8 − 1 = 7 O_2:\{1,8\}\Rightarrow8-1=7 O 2 : { 1 , 8 } ⇒ 8 − 1 = 7 ; O 3 : { 3 , 5 } ⇒ 5 − 3 = 2 O_3:\{3,5\}\Rightarrow5-3=2 O 3 : { 3 , 5 } ⇒ 5 − 3 = 2 .
Cols: D 1 : 3 − 1 = 2 D_1:3-1=2 D 1 : 3 − 1 = 2 , D 5 : 6 − 5 = 1 D_5:6-5=1 D 5 : 6 − 5 = 1 .
Max penalty = 7 =7 = 7 (O 2 O_2 O 2 ). Least-cost cell in O 2 O_2 O 2 is ( O 2 , D 1 ) = 1 (O_2,D_1)=1 ( O 2 , D 1 ) = 1 . Allocate min ( 1 , 8 ) = 1 \min(1,8)=1 min ( 1 , 8 ) = 1 .
→ x 21 = 1 x_{21}=1 x 21 = 1 . O 2 O_2 O 2 supply exhausted. Cross out O 2 O_2 O 2 . (D 1 D_1 D 1 demand → 7 \to7 → 7 .)
Step 5 — Iteration 5 (rows O 1 , O 3 O_1,O_3 O 1 , O 3 ; columns D 1 , D 5 D_1,D_5 D 1 , D 5 )
Rows: O 1 : { 4 , 6 } ⇒ 2 O_1:\{4,6\}\Rightarrow2 O 1 : { 4 , 6 } ⇒ 2 ; O 3 : { 3 , 5 } ⇒ 2 O_3:\{3,5\}\Rightarrow2 O 3 : { 3 , 5 } ⇒ 2 .
Cols: D 1 : 4 − 3 = 1 D_1:4-3=1 D 1 : 4 − 3 = 1 , D 5 : 6 − 5 = 1 D_5:6-5=1 D 5 : 6 − 5 = 1 .
Max penalty = 2 =2 = 2 (tie O 1 , O 3 O_1,O_3 O 1 , O 3 ; take O 1 O_1 O 1 ). Least-cost cell in O 1 O_1 O 1 is ( O 1 , D 1 ) = 4 (O_1,D_1)=4 ( O 1 , D 1 ) = 4 . Allocate min ( 14 , 7 ) = 7 \min(14,7)=7 min ( 14 , 7 ) = 7 .
→ x 11 = 7 x_{11}=7 x 11 = 7 . D 1 D_1 D 1 demand met. Cross out D 1 D_1 D 1 . (O 1 O_1 O 1 supply → 7 \to7 → 7 .)
Step 6 — Iteration 6 (column D 5 D_5 D 5 ; rows O 1 , O 3 O_1,O_3 O 1 , O 3 )
Only D 5 D_5 D 5 remains (demand 8 8 8 ), supplies O 1 : 7 , O 3 : 1 O_1:7,\ O_3:1 O 1 : 7 , O 3 : 1 . Costs ( O 1 , D 5 ) = 6 , ( O 3 , D 5 ) = 5 (O_1,D_5)=6,\ (O_3,D_5)=5 ( O 1 , D 5 ) = 6 , ( O 3 , D 5 ) = 5 .
Allocate to satisfy: x 15 = 7 x_{15}=7 x 15 = 7 (exhausts O 1 O_1 O 1 ), then x 35 = 1 x_{35}=1 x 35 = 1 (exhausts O 3 O_3 O 3 and meets D 5 D_5 D 5 ).
Step 7 — Allocation table and cost
D 1 D_1 D 1 D 2 D_2 D 2 D 3 D_3 D 3 D 4 D_4 D 4 D 5 D_5 D 5 Supply O 1 O_1 O 1 7 7 14 O 2 O_2 O 2 1 8 9 O 3 O_3 O 3 3 13 1 17 Demand 8 3 8 13 8
Number of occupied cells = 7 = m + n − 1 =7=m+n-1 = 7 = m + n − 1 → non-degenerate BFS.
Total transportation cost:
Z = 7 ( 4 ) ⏟ O 1 D 1 + 7 ( 6 ) ⏟ O 1 D 5 + 1 ( 1 ) ⏟ O 2 D 1 + 8 ( − 3 ) ⏟ O 2 D 3 + 3 ( − 1 ) ⏟ O 3 D 2 + 13 ( 0 ) ⏟ O 3 D 4 + 1 ( 5 ) ⏟ O 3 D 5 = 28 + 42 + 1 − 24 − 3 + 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} Z = O 1 D 1 7 ( 4 ) + O 1 D 5 7 ( 6 ) + O 2 D 1 1 ( 1 ) + O 2 D 3 8 ( − 3 ) + O 3 D 2 3 ( − 1 ) + O 3 D 4 13 ( 0 ) + O 3 D 5 1 ( 5 ) = 28 + 42 + 1 − 24 − 3 + 0 + 5 = 49.
Answer
VAM initial BFS cost = 49 (7 allocations: x 11 = 7 , x 15 = 7 , x 21 = 1 , x 23 = 8 , x 32 = 3 , x 34 = 13 , x 35 = 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).\;} VAM initial BFS cost = 49 (7 allocations: x 11 = 7 , x 15 = 7 , x 21 = 1 , x 23 = 8 , x 32 = 3 , x 34 = 13 , x 35 = 1 ) .