← 2022 Paper 2
UPSC 2022 Maths Optional Paper 2 Q1e — Step-by-Step Solution
10 marks · Section A
Big-M / two-phase method (artificial variables) · Linear Programming · asked 5× in 13 yrs · Read the full method →
Question
Use two-phase method: Minimize Z=x1+x2 subject to 2x1+x2≥4, x1+7x2≥7, x1,x2≥0.
Technique
Two-phase method: Phase 1 drives artificials to zero (minimize sum of artificials); Phase 2 minimizes the original objective with the remaining basis.
Solution
Setup. Two ≥-constraints; need surplus variables and artificial variables.
Standard form:
- 2x1+x2−s1+a1=4
- x1+7x2−s2+a2=7
- x1,x2,s1,s2,a1,a2≥0.
Phase 1 — Minimize w=a1+a2
Initial basis: a1,a2. Initial values: a1=4,a2=7, w=11.
| Basis | x1 | x2 | s1 | s2 | a1 | a2 | RHS |
|---|
| a1 | 2 | 1 | -1 | 0 | 1 | 0 | 4 |
| a2 | 1 | 7 | 0 | -1 | 0 | 1 | 7 |
Reduced cost for Phase 1 (c=(0,0,0,0,1,1)): cˉj=cj−cBTAj.
For x1: 0−(1)(2)−(1)(1)=−3.
For x2: 0−(1)(1)−(1)(7)=−8.
For s1: 0−(1)(−1)=1.
For s2: 0−(1)(−1)=1.
Most negative: −8 for x2. x2 enters.
Ratio test: a1:4/1=4, a2:7/7=1. Min at a2 row. a2 leaves.
Pivot on (a2,x2):
New x2 row: (1/7,1,0,−1/7,0,1/7,1) (divide a2 row by 7).
New a1 row: a1−1⋅x2: (2−1/7,0,−1,1/7,1,−1/7,3)=(13/7,0,−1,1/7,1,−1/7,3).
Updated reduced costs:
cˉx1=0−(1)(13/7)−(0)(1/7)=−13/7.
Most negative: −13/7 for x1. x1 enters.
Ratio test: a1:3/(13/7)=21/13, x2:1/(1/7)=7. Min at a1. a1 leaves.
Pivot on (a1,x1):
New x1 row: (1,0,−7/13,1/13,7/13,−1/13,21/13).
New x2 row: x2−1/7⋅x1: (0,1,−7/13⋅(−1/7)⋅…) — let me redo carefully.
Old x2 row: (1/7,1,0,−1/7,0,1/7,1).
Subtract (1/7) times new x1 row: (1/7−1/7,1−0,0−(1/7)(−7/13),−1/7−(1/7)(1/13),0−(1/7)(7/13),1/7−(1/7)(−1/13),1−(1/7)(21/13))
=(0,1,1/13,−2/13,−1/13,2/13,1−3/13)=(0,1,1/13,−2/13,−1/13,2/13,10/13).
Wait, −1/7−(1/7)(1/13)=−1/7⋅(1+1/13)=−1/7⋅14/13=−2/13 ✓.
All artificial variables a1,a2 are now out of the basis. Phase 1 complete with w=0.
Phase 1 solution: x1=21/13,x2=10/13,s1=s2=0,a1=a2=0.
Phase 2 — Restore original objective
Drop artificial columns; minimize Z=x1+x2.
Basis: {x1,x2}. Current values: x1=21/13,x2=10/13. Z=31/13.
Tableau (drop a1,a2 columns):
| Basis | x1 | x2 | s1 | s2 | RHS |
|---|
| x1 | 1 | 0 | -7/13 | 1/13 | 21/13 |
| x2 | 0 | 1 | 1/13 | -2/13 | 10/13 |
Reduced costs for Z: c=(1,1,0,0). cB=(1,1).
For s1: 0−(1)(−7/13)−(1)(1/13)=7/13−1/13=6/13>0.
For s2: 0−(1)(1/13)−(1)(−2/13)=−1/13+2/13=1/13>0.
All non-basic reduced costs are non-negative ⇒ current solution is optimal.
Answer
x1=21/13,x2=10/13,Zmin=31/13≈2.385.