← 2023 Paper 2
UPSC 2023 Maths Optional Paper 2 Q3c — Step-by-Step Solution
20 marks · Section A
Big-M / two-phase method (artificial variables) · Linear Programming · asked 5× in 13 yrs · Read the full method →
Question
Solve the following linear programming problem by Big M method:
Minimize Z=2x1+3x2
subject to
x1+x2≥9,x1+2x2≥15,2x1−3x2≤9,x1,x2≥0.
Is the optimal solution unique? Justify your answer.
Technique
Big-M simplex; two iterations sufficed because both artificials left the basis with positive penalties.
Solution
Introduce surplus s1,s2 for the ≥ constraints, slack s3 for the ≤, and artificials a1,a2 for the ≥ constraints to obtain a starting BFS:
x1+x2−s1+a1x1+2x2−s2+a22x1−3x2+s3all variables=9,=15,=9,≥0.
Big-M objective (minimisation; artificials carry large penalty M):
minZ=2x1+3x2+0⋅s1+0⋅s2+0⋅s3+Ma1+Ma2.
Step 2 — Initial simplex tableau
Initial basis B(0)={a1,a2,s3} with a1=9,a2=15,s3=9, Z(0)=24M. Cost row cB=(M,M,0)T.
zj−cj values (recall: for a min problem, enter the variable with the largest positive zj−cj; optimal when all zj−cj≤0):
| Variable | zj | cj | zj−cj |
|---|
| x1 | M+M+0=2M | 2 | 2M−2 |
| x2 | M+2M+0=3M | 3 | 3M−3 |
| s1 | −M | 0 | −M |
| s2 | −M | 0 | −M |
| s3 | 0 | 0 | 0 |
Largest positive: x2 column. Min-ratio: min{9/1,15/2}=15/2=7.5 → a2 leaves. Pivot on entry (row2,x2).
Step 3 — Iteration 1: x2 in, a2 out
Divide row 2 by 2; eliminate x2 from rows 1 and 3.
| Basis | x1 | x2 | s1 | s2 | s3 | a1 | RHS |
|---|
| a1 | 0.5 | 0 | −1 | 0.5 | 0 | 1 | 1.5 |
| x2 | 0.5 | 1 | 0 | −0.5 | 0 | 0 | 7.5 |
| s3 | 3.5 | 0 | 0 | −1.5 | 1 | 0 | 31.5 |
(a2 column is dropped; it has left and won’t re-enter.)
New cB=(M,3,0)T.
| Variable | zj | cj | zj−cj |
|---|
| x1 | 0.5M+1.5+0=0.5M+1.5 | 2 | 0.5M−0.5 |
| s1 | −M+0+0=−M | 0 | −M |
| s2 | 0.5M−1.5+0=0.5M−1.5 | 0 | 0.5M−1.5 |
| s3 | 0 | 0 | 0 |
Largest positive: x1 (0.5M−0.5). Min-ratio: min{1.5/0.5,7.5/0.5,31.5/3.5}=min{3,15,9}=3 → a1 leaves. Pivot on entry (row1,x1).
Step 4 — Iteration 2: x1 in, a1 out
Divide row 1 by 0.5; eliminate x1 from rows 2, 3.
| Basis | x1 | x2 | s1 | s2 | s3 | RHS |
|---|
| x1 | 1 | 0 | −2 | 1 | 0 | 3 |
| x2 | 0 | 1 | 1 | −1 | 0 | 6 |
| s3 | 0 | 0 | 7 | −5 | 1 | 21 |
(a1 column dropped.)
New cB=(2,3,0)T, Z=2(3)+3(6)+0=24.
zj−cj:
| Variable | zj | cj | zj−cj |
|---|
| s1 | 2(−2)+3(1)+0(7)=−1 | 0 | −1 |
| s2 | 2(1)+3(−1)+0(−5)=−1 | 0 | −1 |
All zj−cj≤0 → optimal.
Step 5 — Optimum and uniqueness
Answer
x1=3,x2=6,Zmin=24.