← 2019 Paper 2
UPSC 2019 Maths Optional Paper 2 Q4d — Step-by-Step Solution
10 marks · Section A
Duality · Linear Programming · asked 4× in 13 yrs · Read the full method →
Question
Consider the following LPP, Maximize Z=2x1+4x2+4x3−3x4 subject to
x1+x2+x3x1+4x2+x4=4=8
and x1,x2,x3,x4≥0. Use the dual problem to verify that the basic solution (x1,x2) is not optimal.
Technique
Construct the dual (free dual variables for equality constraints); use complementary slackness to read off the dual point forced by the basis, then test dual feasibility — a violated dual constraint certifies primal non-optimality (equivalently, a positive reduced cost).
Solution
Step 1 — The candidate basic solution (x1,x2)
With x3=x4=0, the constraints become
x1+x2=4,x1+4x2=8.
Subtracting: 3x2=4⇒x2=34, x1=4−34=38. Both >0, so (x1,x2)=(38,34) is a (feasible) basic solution with
Z=2⋅38+4⋅34=316+316=332≈10.667.
The primal has equality constraints, so the dual variables w1,w2 are unrestricted in sign. For a maximization primal maxc⊤x s.t. Ax=b, x≥0, the dual is minb⊤w s.t. A⊤w≥c:
min W=4w1+8w2
subject to (one constraint per primal variable, columns of A):
x1:x2:x3:x4:w1+w2 ≥ 2w1+4w2 ≥ 4w1 ≥ 4 w2 ≥ −3w1,w2 free.
Step 3 — Dual values implied by the basis (x1,x2)
By complementary slackness, since x1>0 and x2>0 their dual constraints must hold with equality at the corresponding dual solution:
w1+w2=2,w1+4w2=4.
Subtract: 3w2=2⇒w2=32, w1=2−32=34. Dual objective W=4⋅34+8⋅32=316+316=332=Z (so weak duality holds with equality between these candidate values).
Step 4 — Test dual feasibility (this is the optimality certificate)
Check the remaining dual constraints (those for the nonbasic x3,x4):
- x3 constraint: w1≥4? We have w1=34≥4. Violated.
- x4 constraint: w2≥−3? 32≥−3. ✓
Because the dual solution induced by the basis (x1,x2) is dual-infeasible (it violates w1≥4), the primal basic solution (x1,x2) does not satisfy the optimality (complementary-slackness) conditions. Equivalently, the reduced cost of x3 is
cˉ3=c3−w⊤a3=4−(w1⋅1+w2⋅0)=4−34=38>0,
a positive reduced cost in a maximization — bringing x3 into the basis would increase Z.
Answer
The dual solution (w1,w2)=(34,32) forced by basis (x1,x2) violates w1≥4; ∴(x1,x2) is NOT optimal.