← 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+4x33x4Z=2x_1+4x_2+4x_3-3x_4 subject to

x1+x2+x3=4x1+4x2+x4=8\begin{aligned}x_1+x_2+x_3&=4\\ x_1+4x_2+x_4&=8\end{aligned}

and x1,x2,x3,x40x_1,x_2,x_3,x_4\ge 0. Use the dual problem to verify that the basic solution (x1,x2)(x_1,x_2) 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)(x_1,x_2)

With x3=x4=0x_3=x_4=0, the constraints become

x1+x2=4,x1+4x2=8.x_1+x_2=4,\qquad x_1+4x_2=8.

Subtracting: 3x2=4x2=43, x1=443=833x_2=4\Rightarrow x_2=\tfrac43,\ x_1=4-\tfrac43=\tfrac83. Both >0>0, so (x1,x2)=(83,43)(x_1,x_2)=(\tfrac83,\tfrac43) is a (feasible) basic solution with

Z=283+443=163+163=32310.667.Z=2\cdot\tfrac83+4\cdot\tfrac43=\tfrac{16}{3}+\tfrac{16}{3}=\frac{32}{3}\approx10.667.

Step 2 — Form the dual

The primal has equality constraints, so the dual variables w1,w2w_1,w_2 are unrestricted in sign. For a maximization primal maxcx\max c^\top x s.t. Ax=b, x0Ax=b,\ x\ge0, the dual is minbw\min b^\top w s.t. AwcA^\top w\ge c:

min W=4w1+8w2\min\ W=4w_1+8w_2

subject to (one constraint per primal variable, columns of AA):

x1:w1+w2  2x2:w1+4w2  4x3:w1   4x4:     w2  3w1,w2 free.\begin{aligned} x_1:&\quad w_1+w_2\ \ge\ 2\\ x_2:&\quad w_1+4w_2\ \ge\ 4\\ x_3:&\quad w_1\quad\ \ \ge\ 4\\ x_4:&\quad \ \ \ \ \ w_2\ \ge\ -3 \end{aligned}\qquad w_1,w_2\ \text{free.}

Step 3 — Dual values implied by the basis (x1,x2)(x_1,x_2)

By complementary slackness, since x1>0x_1>0 and x2>0x_2>0 their dual constraints must hold with equality at the corresponding dual solution:

w1+w2=2,w1+4w2=4.w_1+w_2=2,\qquad w_1+4w_2=4.

Subtract: 3w2=2w2=23, w1=223=43.3w_2=2\Rightarrow w_2=\tfrac23,\ w_1=2-\tfrac23=\tfrac43. Dual objective W=443+823=163+163=323=ZW=4\cdot\tfrac43+8\cdot\tfrac23=\tfrac{16}{3}+\tfrac{16}{3}=\tfrac{32}{3}=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,x4x_3,x_4):

Because the dual solution induced by the basis (x1,x2)(x_1,x_2) is dual-infeasible (it violates w14w_1\ge4), the primal basic solution (x1,x2)(x_1,x_2) does not satisfy the optimality (complementary-slackness) conditions. Equivalently, the reduced cost of x3x_3 is

cˉ3=c3wa3=4(w11+w20)=443=83>0,\bar c_3=c_3-w^\top a_3=4-(w_1\cdot1+w_2\cdot0)=4-\tfrac43=\tfrac83>0,

a positive reduced cost in a maximization — bringing x3x_3 into the basis would increase ZZ.

Answer

  The dual solution (w1,w2)=(43,23) forced by basis (x1,x2) violates w14; (x1,x2) is NOT optimal.  \boxed{\;\text{The dual solution }(w_1,w_2)=(\tfrac43,\tfrac23)\text{ forced by basis }(x_1,x_2)\text{ violates }w_1\ge4;\ \therefore (x_1,x_2)\text{ is NOT optimal.}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.