← 2014 Paper 2

UPSC 2014 Maths Optional Paper 2 Q4c — Step-by-Step Solution

20 marks · Section A

Simplex method (basic) · Linear Programming · asked 9× in 13 yrs · Read the full method →

Question

Find all optimal solutions of the following linear programming problem by the simplex method:

Maximize Z=30x1+24x2  subject to  5x1+4x2200,  x132,  x240,  x1,x20.\text{Maximize }Z=30x_1+24x_2\;\text{subject to}\;5x_1+4x_2\le 200,\;x_1\le 32,\;x_2\le 40,\;x_1,x_2\ge 0.

Technique

Simplex method; alternative-optima detection via cjzj=0c_j-z_j=0 for a non-basic variable at optimum; iterate to find both extreme optimal vertices.

Solution

Step 1 — Standard form

Introduce slacks s1,s2,s3s_1,s_2,s_3 for each \le constraint:

5x1+4x2+s1=200,  x1+s2=32,  x2+s3=40.5x_1+4x_2+s_1=200,\;x_1+s_2=32,\;x_2+s_3=40.

Initial BFS: x1=x2=0x_1=x_2=0, (s1,s2,s3)=(200,32,40)(s_1,s_2,s_3)=(200,32,40), Z=0Z=0.

Step 2 — Iteration 1: x1x_1 in, s2s_2 out

For max simplex: enter the variable with the largest cjzjc_j-z_j. Initially cjzjc_j-z_j equals cjc_j: (30,24,0,0,0)(30, 24, 0, 0, 0). Largest: x1x_1 at 30.

Min ratio in x1x_1 column: min(200/5,  32/1)=min(40,32)=32\min(200/5,\;32/1)=\min(40, 32)=32 at s2s_2. So s2s_2 leaves.

Pivot. New tableau:

Basisx1x_1x2x_2s1s_1s2s_2s3s_3RHS
s1s_10044115-5004040
x1x_111000011003232
s3s_300110000114040

Z=3032=960Z=30\cdot 32=960.

Step 3 — Iteration 2: x2x_2 in, s1s_1 out

cjzjc_j-z_j: x2:240=24x_2: 24-0=24 (largest), s2:030=30s_2: 0-30=-30. Enter x2x_2.

Min ratio: 40/4=1040/4=10, 40/1=4040/1=40. Min 10 at s1s_1.

Pivot. New tableau:

Basisx1x_1x2x_2s1s_1s2s_2s3s_3RHS
x2x_200111/41/45/4-5/4001010
x1x_111000011003232
s3s_300001/4-1/45/45/4113030

Z=24(10)+30(32)=240+960=1200Z=24(10)+30(32)=240+960=1200.

Step 4 — Optimality check

cjzjc_j-z_j for non-basic:

All 0\le 0optimal. The 00 at s2s_2 signals alternative optima.

Optimum 1: x1=32,  x2=10,  Z=1200x_1=32,\;x_2=10,\;Z=1200.

Step 5 — Find other optimal vertex (bring s2s_2 into basis)

Min ratio in s2s_2 column (positive entries): x1:32/1=32x_1: 32/1=32, s3:30/(5/4)=24s_3: 30/(5/4)=24. Min 24 at s3s_3.

Pivot. New tableau:

Basisx1x_1x2x_2s1s_1s2s_2s3s_3RHS
x2x_200110000114040
x1x_111001/51/5004/5-4/588
s2s_200001/5-1/5114/54/52424

Z=2440+308=960+240=1200Z=24\cdot 40+30\cdot 8=960+240=1200 ✓.

Optimum 2: x1=8,  x2=40,  Z=1200x_1=8,\;x_2=40,\;Z=1200.

Step 6 — All optimal solutions

The set of optimal solutions is the line segment joining (32,10)(32,10) and (8,40)(8,40). Parametrically:

(x1,x2)=(1t)(32,10)+t(8,40)=(3224t,  10+30t),  t[0,1].(x_1,x_2)=(1-t)(32,10)+t(8,40)=(32-24t,\;10+30t),\;t\in[0,1].

Verification of ZZ on segment: Z=30(3224t)+24(10+30t)=960720t+240+720t=1200Z=30(32-24t)+24(10+30t)=960-720t+240+720t=1200 for all t[0,1]t\in[0,1] ✓.

Both endpoints satisfy 5x1+4x2=2005x_1+4x_2=200 (binding constraint), and the entire segment lies on this constraint boundary.

Answer

  All optimal solutions: (x1,x2)=(3224t,  10+30t) for t[0,1];  Zmax=1200.  \boxed{\;\text{All optimal solutions: }(x_1,x_2)=(32-24t,\;10+30t)\text{ for }t\in[0,1];\;Z_{\max}=1200.\;}
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.