← 2019 Paper 2
UPSC 2019 Maths Optional Paper 2 Q3b — Step-by-Step Solution
15 marks · Section A
Simplex method (basic) · Linear Programming · asked 9× in 13 yrs · Read the full method →
Question
Solve the linear programming problem using Simplex method. Minimize Z=x1+2x2−3x3−2x4 subject to
x1+2x2−3x3+x4x1+2x2+x3+2x4=4=4
and x1,x2,x3,x4≥0.
Technique
Two-phase simplex (artificial variables for equality constraints); the structural cancellation 4x3+x4=0 collapses the feasible region.
Solution
Step 1 — A structural observation (feasible region forces x3=x4=0)
Subtract the first equation from the second:
(x1+2x2+x3+2x4)−(x1+2x2−3x3+x4)=0 ⟹ 4x3+x4=0.
With x3,x4≥0 this forces x3=0 and x4=0. Substituting back, both constraints reduce to the single equation x1+2x2=4. So every feasible point has x3=x4=0 and x1+2x2=4, on which
Z=x1+2x2−0−0=x1+2x2=4 (constant!).
Thus Z≡4 on the entire feasible region; the minimum (and maximum) is 4. We confirm this with a formal simplex run.
Step 2 — Phase-I setup (artificial variables)
Both RHS are +4>0; introduce artificials a1,a2≥0 and minimize a1+a2:
x1+2x2−3x3+x4+a1=4,x1+2x2+x3+2x4+a2=4.
Initial basis (a1,a2)=(4,4).
Iteration 1. Phase-I reduced costs (cost row a1+a2): for a structural column, zj−cj=(column sum)−0. Column sums: x1:2, x2:4, x3:−3+1=−2, x4:1+2=3. Most positive is x2 (=4); enter x2. Ratios 4/2=2, 4/2=2 (tie); pivot on row 1, a1 leaves. Pivot (divide row1 by 2):
21x1+x2−23x3+21x4+21a1=2.
Eliminate x2 from row 2 (subtract 2×row1): row2 becomes
0⋅x1+0⋅x2+(1+3)x3+(2−1)x4−a1+a2=4−4=0, i.e. 4x3+x4−a1+a2=0.
Iteration 2. Remaining artificial a2=0 (degenerate). Phase-I objective now a2; its row has 4x3+x4 with positive entries but RHS 0, so any pivot keeps the value at 0; Phase-I optimum =0 is reached — feasibility achieved with a1=a2=0. Drop artificials. Basic feasible solution: x2=2, x1=x3=x4=0 (the row-2 relation 4x3+x4=0⇒x3=x4=0 as found in Step 1).
Step 3 — Phase-II (optimize Z=x1+2x2−3x3−2x4)
Current basis {x2} with the second (reduced) row 4x3+x4=0 pinning x3,x4. Express Z in nonbasic variables using x2=2−21x1+23x3−21x4 (from the pivoted row 1) and x3=41(−x4), i.e. on the feasible set x3=x4=0:
Z=x1+2x2−3x3−2x4=x1+2(2−21x1)=x1+4−x1=4.
All reduced costs are 0 along feasible directions (and the only feasible directions keep x3=x4=0, x1+2x2=4). No entering variable improves Z: optimal.
Answer
Zmin=4, attained for every feasible point, e.g. (x1,x2,x3,x4)=(0,2,0,0) or (4,0,0,0).