Menu Close

Duality in linear programming: UPSC Maths Optional PYQ Solutions (2008–2026)

All 10 questions UPSC has asked on duality in linear programming in the Mathematics Optional (Paper II, Linear Programming) from 2008 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Linear Programming topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the answer was worked out again independently with a linear-programming solver (SciPy/HiGHS), with the simplex tables recomputed in exact fractions.
  • ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1e 2025 · 3c 2024 · 3c 2022 · 3c 2021 · 3c 2019 · 4d 2015 · 4c 2011 · 4c 2010 · 1f 2008 · 1f

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Solve the dual problem of the following linear programming problem by the graphical method : Minimize Y=10y1+6y2+2y3+y4 subject to the constraints : y1+y2+y3+y4≥22y1+y2−y3−2y4≥1y1,y2,y3,y4≥0

2026 · Paper II · Q1e · 10 marks

Solution

The problem has 4 variables but only 2 constraints, so its dual has 2 variables and can be drawn.

Dual. With dual variables x1,x2≥0x_1,x_2\ge0 for the two ≥\ge constraints: Maximize W=2x1+x2\text{Maximize } W=2x_1+x_2 subject to x1+2x2≤10x1+x2≤6x1−x2≤2x1−2x2≤1x1,x2≥0.\begin{aligned}&x_1+2x_2\le10\\ &x_1+x_2\le6\\ &x_1-x_2\le2\\ &x_1-2x_2\le1\\ &x_1,x_2\ge0.\end{aligned}

Graphical solution. Draw the four lines x1+2x2=10x_1+2x_2=10, x1+x2=6x_1+x_2=6, x1−x2=2x_1-x_2=2, x1−2x2=1x_1-2x_2=1. The feasible region is the polygon on the origin side of all four lines, in the first quadrant. Its corner points come from intersecting neighbouring lines:

Corner Lines meeting W=2x1+x2W=2x_1+x_2
O(0,0)O(0,0) axes 00
A(1,0)A(1,0) x2=0x_2=0, x1−2x2=1x_1-2x_2=1 22
B(3,1)B(3,1) x1−2x2=1x_1-2x_2=1, x1−x2=2x_1-x_2=2 77
C(4,2)C(4,2) x1−x2=2x_1-x_2=2, x1+x2=6x_1+x_2=6 𝟏𝟎\mathbf{10}
D(2,4)D(2,4) x1+x2=6x_1+x_2=6, x1+2x2=10x_1+2x_2=10 88
E(0,5)E(0,5) x1+2x2=10x_1+2x_2=10, x1=0x_1=0 55

So the dual optimum is Wmax=10W_{\max}=10 at x1=4,x2=2x_1=4,\ x_2=2.

Back to the original problem. By the duality theorem, Ymin=Wmax=10Y_{\min}=W_{\max}=10. Complementary slackness gives the primal solution:

  • At CC, x1+2x2=8<10x_1+2x_2=8<10 and x1−2x2=0<1x_1-2x_2=0<1, so y1=0y_1=0 and y4=0y_4=0.
  • x1,x2>0x_1,x_2>0, so both primal constraints hold with equality: y2+y3=2y_2+y_3=2 and y2−y3=1y_2-y_3=1.

Hence y2=32,y3=12y_2=\tfrac32,\ y_3=\tfrac12 and Ymin=6⋅32+2⋅12=10at (y1,y2,y3,y4)=(0,32,12,0).\begin{aligned}&Y_{\min}=6\cdot\tfrac32+2\cdot\tfrac12=10\\ &\text{at } (y_1,y_2,y_3,y_4)=\left(0,\tfrac32,\tfrac12,0\right).\end{aligned}

✓ Checked by computer We checked by computer: an LP solver gives maxW=10\max W=10 at (4,2)(4,2) for the dual and minY=10\min Y=10 for the original problem.

↑ Back to the question list

Apply the principle of duality to solve the following linear programming problem : Maximize Z=3x1+4x2 subject to the constraints x1−x2≤1x1+x2≥4x1−3x2≤3x1,x2≥0

2025 · Paper II · Q3c · 15 marks

Solution

Primal in standard (≤) form. Write x1+x2≥4x_1+x_2\ge4 as −x1−x2≤−4-x_1-x_2\le-4: Maximize Z=3x1+4x2x1−x2≤1−x1−x2≤−4x1−3x2≤3x1,x2≥0.\begin{aligned}&\text{Maximize } Z=3x_1+4x_2\\ &x_1-x_2\le1\\ &-x_1-x_2\le-4\\ &x_1-3x_2\le3\\ &x_1,x_2\ge0.\end{aligned}

Dual. With dual variables y1,y2,y3≥0y_1,y_2,y_3\ge0: Minimize W=y1−4y2+3y3y1−y2+y3≥3−y1−y2−3y3≥4y1,y2,y3≥0.\begin{aligned}&\text{Minimize } W=y_1-4y_2+3y_3\\ &y_1-y_2+y_3\ge3\\ &-y_1-y_2-3y_3\ge4\\ &y_1,y_2,y_3\ge0.\end{aligned}

The dual is infeasible. For y1,y2,y3≥0y_1,y_2,y_3\ge0 the left side −y1−y2−3y3-y_1-y_2-3y_3 is ≤0\le0, so it can never be ≥4\ge4. The dual has no feasible solution.

Consequence for the primal. By the duality theorem, if the dual is infeasible, the primal is either infeasible or unbounded. The primal is feasible: e.g. (x1,x2)=(2,2)(x_1,x_2)=(2,2) satisfies 0≤10\le1, 4≥44\ge4, −4≤3-4\le3. Hence the primal has an unbounded solution: ZZ has no finite maximum.

(Directly: along x1=2x_1=2, x2=t≥2x_2=t\ge2, all constraints hold and Z=6+4t→∞Z=6+4t\to\infty.)

✓ Checked by computer We checked by computer: an LP solver reports the primal unbounded, and the dual has no feasible point.

↑ Back to the question list

Using duality principle, solve the following linear programming problem : Minimize z=4x1+3x2+x3 subject to x1+2x2+4x3≥123x1+2x2+x3≥8x1,x2,x3≥0

2024 · Paper II · Q3c · 15 marks

Solution

Dual. The primal is a minimisation with ≥\ge constraints, so its dual (variables y1,y2≥0y_1,y_2\ge0) is Maximize W=12y1+8y2y1+3y2≤42y1+2y2≤34y1+y2≤1y1,y2≥0.\begin{aligned}&\text{Maximize } W=12y_1+8y_2\\ &y_1+3y_2\le4\\ &2y_1+2y_2\le3\\ &4y_1+y_2\le1\\ &y_1,y_2\ge0.\end{aligned} This has only ≤\le constraints, so the simplex method starts directly with slacks s1,s2,s3s_1,s_2,s_3.

Initial table — y1y_1 enters (most negative Δj\Delta_j), s3s_3 leaves (least ratio); pivot 44 in bold.

Basis cB xB y1 y2 s1 s2 s3 Ratio
cj 12 8 0 0 0
s1 0 4 1 3 1 0 0 4
s2 0 3 2 2 0 1 0 3/2
s3 0 1 4 1 0 0 1 1/4
Δj 0 −12 −8 0 0 0

Table 2 — y2y_2 enters (most negative Δj\Delta_j), y1y_1 leaves (least ratio); pivot 1/41 / 4 in bold.

Basis cB xB y1 y2 s1 s2 s3 Ratio
cj 12 8 0 0 0
s1 0 15/4 0 11/4 1 0 −1/4 15/11
s2 0 5/2 0 3/2 0 1 −1/2 5/3
y1 12 1/4 1 1/4 0 0 1/4 1
Δj 3 0 −5 0 0 3

Table 3 — all Δj≥0\Delta_j\ge0, so this table is optimal.

Basis cB xB y1 y2 s1 s2 s3
cj 12 8 0 0 0
s1 0 1 −11 0 1 0 −3
s2 0 1 −6 0 0 1 −2
y2 8 1 4 1 0 0 1
Δj 8 20 0 0 0 8

Dual optimum: y1=0,y2=1y_1=0,\ y_2=1, Wmax=8\ W_{\max}=8.

Primal solution from the final table. The optimal primal values are the Δj\Delta_j in the slack columns of the dual’s optimal table: x1=Δs1=0x2=Δs2=0x3=Δs3=8.\begin{aligned}&x_1=\Delta_{s_1}=0\\ &x_2=\Delta_{s_2}=0\\ &x_3=\Delta_{s_3}=8.\end{aligned} So zmin=Wmax=8z_{\min}=W_{\max}=8, at x1=0,x2=0,x3=8x_1=0,\ x_2=0,\ x_3=8. (Check: 4(8)=32≥124(8)=32\ge12, 8≥88\ge8, z=8z=8.)

✓ Checked by computer We checked by computer: an LP solver gives zmin=8z_{\min}=8 at (0,0,8)(0,0,8), and Wmax=8W_{\max}=8 at (0,1)(0,1) for the dual.

↑ Back to the question list

Solve the following linear programming problem by the simplex method. Write its dual. Also, write the optimal solution of the dual from the optimal table of the given problem : Maximize Z=x1+x2+x3 subject to 2x1+x2+x3≤24x1+2x2+x3≤2x1,x2,x3≥0

2022 · Paper II · Q3c · 15 marks

Solution

Add slacks s1,s2≥0s_1,s_2\ge0: 2x1+x2+x3+s1=2,4x1+2x2+x3+s2=2\ 2x_1+x_2+x_3+s_1=2,\ \ 4x_1+2x_2+x_3+s_2=2. When several Δj\Delta_j tie, we take the first.

Initial table — x1x_1 enters (most negative Δj\Delta_j), s2s_2 leaves (least ratio); pivot 44 in bold.

Basis cB xB x1 x2 x3 s1 s2 Ratio
cj 1 1 1 0 0
s1 0 2 2 1 1 1 0 1
s2 0 2 4 2 1 0 1 1/2
Δj 0 −1 −1 −1 0 0

Table 2 — x3x_3 enters (most negative Δj\Delta_j), s1s_1 leaves (least ratio); pivot 1/21 / 2 in bold.

Basis cB xB x1 x2 x3 s1 s2 Ratio
cj 1 1 1 0 0
s1 0 1 0 0 1/2 1 −1/2 2
x1 1 1/2 1 1/2 1/4 0 1/4 2
Δj 1/2 0 −1/2 −3/4 0 1/4

Table 3 — x2x_2 enters (most negative Δj\Delta_j), x1x_1 leaves (least ratio); pivot 1/21 / 2 in bold.

Basis cB xB x1 x2 x3 s1 s2 Ratio
cj 1 1 1 0 0
x3 1 2 0 0 1 2 −1 –
x1 1 0 1 1/2 0 −1/2 1/2 0
Δj 2 0 −1/2 0 3/2 −1/2

Table 4 — all Δj≥0\Delta_j\ge0, so this table is optimal.

Basis cB xB x1 x2 x3 s1 s2
cj 1 1 1 0 0
x3 1 2 0 0 1 2 −1
x2 1 0 2 1 0 −1 1
Δj 2 1 0 0 1 0

Optimal solution: x1=0,x2=0,x3=2x_1=0,\ x_2=0,\ x_3=2, Zmax=2\ Z_{\max}=2. (The basic variable x2x_2 is zero, so this solution is degenerate. It is still the only optimum: from the second constraint, x1+x2+x3≤2−3x1−x2≤2x_1+x_2+x_3\le 2-3x_1-x_2\le2, with equality only at (0,0,2)(0,0,2).)

Dual. With dual variables w1,w2w_1,w_2: Minimize W=2w1+2w2\text{Minimize } W=2w_1+2w_2 subject to 2w1+4w2≥1w1+2w2≥1w1+w2≥1w1,w2≥0.\begin{aligned}&2w_1+4w_2\ge1\\ &w_1+2w_2\ge1\\ &w_1+w_2\ge1\\ &w_1,w_2\ge0.\end{aligned}

Dual solution from the optimal table. The optimal dual values are the Δj\Delta_j of the starting slack columns: w1=Δs1=1w_1=\Delta_{s_1}=1, w2=Δs2=0w_2=\Delta_{s_2}=0. Then Wmin=2⋅1+2⋅0=2=ZmaxW_{\min}=2\cdot1+2\cdot0=2=Z_{\max}, as the duality theorem requires.

✓ Checked by computer We checked by computer: an LP solver gives Zmax=2Z_{\max}=2 at (0,0,2)(0,0,2) and Wmin=2W_{\min}=2 for the dual.

↑ Back to the question list

Convert the following LPP into dual LPP : Minimize Z=x1−3x2−2x3 subject to 3x1−x2+2x3≤72x1−4x2≥12−4x1+3x2+8x3=10 where x1, x2≥0 and x3 is unrestricted in sign.

2021 · Paper II · Q3c · 15 marks

Solution

Put the primal in canonical form. For a minimisation, write every inequality as ≥\ge. Multiply the first constraint by −1-1: Minimize Z=x1−3x2−2x3−3x1+x2−2x3≥−72x1−4x2+0x3≥12−4x1+3x2+8x3=10x1,x2≥0,x3 unrestricted.\begin{aligned}&\text{Minimize } Z=x_1-3x_2-2x_3\\ &-3x_1+x_2-2x_3\ge-7\\ &2x_1-4x_2+0x_3\ge12\\ &-4x_1+3x_2+8x_3=10\\ &x_1,x_2\ge0,\ x_3\text{ unrestricted.}\end{aligned}

Rules.

  • One dual variable per constraint: w1,w2≥0w_1,w_2\ge0 for the two ≥\ge constraints, and w3w_3 unrestricted for the equation.
  • One dual constraint per primal variable: “≤\le” for x1,x2≥0x_1,x_2\ge0, and “==” for the unrestricted x3x_3.
  • The dual maximises, with the right-hand sides −7,12,10-7,12,10 as costs.

Dual LPP. Maximize W=−7w1+12w2+10w3−3w1+2w2−4w3≤1w1−4w2+3w3≤−3−2w1+8w3=−2w1,w2≥0,w3 unrestricted.\begin{aligned}&\text{Maximize } W=-7w_1+12w_2+10w_3\\ &-3w_1+2w_2-4w_3\le1\\ &w_1-4w_2+3w_3\le-3\\ &-2w_1+8w_3=-2\\ &w_1,w_2\ge0,\ w_3\text{ unrestricted.}\end{aligned} (The third constraint has no w2w_2 term because x3x_3 does not appear in the second primal constraint.)

✓ Proof checked step by step Formulation checked line by line against the primal–dual rules.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Consider the following LPP, Maximize Z=2x1+4x2+4x3−3x4 subject to x1+x2+x3=4x1+4x2+x4=8 and x1,x2,x3,x4≥0 Use the dual problem to verify that the basic solution (x1,x2) is not optimal.

2019 · Paper II · Q4d · 10 marks

Solution

The basic solution. With x1,x2x_1,x_2 basic and x3=x4=0x_3=x_4=0: x1+x2=4x1+4x2=8⇒x2=43x1=83Z=163+163=323.\begin{aligned}&x_1+x_2=4\\ &x_1+4x_2=8\ \Rightarrow\ x_2=\tfrac43\\ &x_1=\tfrac83\\ &Z=\tfrac{16}{3}+\tfrac{16}{3}=\tfrac{32}{3}.\end{aligned}

Dual. Both primal constraints are equations, so the dual variables y1,y2y_1,y_2 are unrestricted: Minimize W=4y1+8y2y1+y2≥2(x1)y1+4y2≥4(x2)y1≥4(x3)y2≥−3(x4)y1,y2 unrestricted.\begin{aligned}&\text{Minimize } W=4y_1+8y_2\\ &y_1+y_2\ge2 &&(x_1)\\ &y_1+4y_2\ge4 &&(x_2)\\ &y_1\ge4 &&(x_3)\\ &y_2\ge-3 &&(x_4)\\ &y_1,y_2\text{ unrestricted.}\end{aligned}

Dual solution matching the basis. For a basis to be optimal, the corresponding dual solution yT=cBTB−1y^T=c_B^TB^{-1} must be dual feasible. Since x1,x2x_1,x_2 are basic, their dual constraints hold with equality: y1+y2=2y1+4y2=4⇒y2=23y1=43.\begin{aligned}&y_1+y_2=2\\ &y_1+4y_2=4\ \Rightarrow\ y_2=\tfrac23\\ &y_1=\tfrac43.\end{aligned} Check the other dual constraints:

  • x3x_3: y1=43≥4y_1=\tfrac43\ge4? No — this constraint is violated.
  • x4x_4: y2=23≥−3y_2=\tfrac23\ge-3, which holds.

The dual solution is not feasible: its x3x_3-constraint fails, i.e. Δ3=y1−c3=43−4<0\Delta_3=y_1-c_3=\tfrac43-4<0. So the basic solution (x1,x2)(x_1,x_2) is not optimal; bringing x3x_3 into the basis increases ZZ.

(Indeed the optimum is x2=2,x3=2x_2=2,\ x_3=2, with Z=16>323Z=16>\tfrac{32}{3}. Its dual y1=4,y2=0y_1=4,\ y_2=0 is feasible, and W=16W=16.)

✓ Checked by computer We checked by computer: the dual values (43,23)\left(\tfrac43,\tfrac23\right) violate y1≥4y_1\ge4, and an LP solver gives the true optimum Z=16Z=16 at (0,2,2,0)(0,2,2,0).

↑ Back to the question list

Solve the following linear programming problem by the simplex method. Write its dual. Also, write the optimal solution of the dual from the optimal table of the given problem : Maximize Z=2x1−4x2+5x3subject tox1+4x2−2x3≤2−x1+2x2+3x3≤1x1,x2,x3≥0

2015 · Paper II · Q4c · 20 marks

Solution

Add slacks s1,s2s_1,s_2: x1+4x2−2x3+s1=2,−x1+2x2+3x3+s2=1\ x_1+4x_2-2x_3+s_1=2,\ \ -x_1+2x_2+3x_3+s_2=1.

Initial table — x3x_3 enters (most negative Δj\Delta_j), s2s_2 leaves (least ratio); pivot 33 in bold.

Basis cB xB x1 x2 x3 s1 s2 Ratio
cj 2 −4 5 0 0
s1 0 2 1 4 −2 1 0 –
s2 0 1 −1 2 3 0 1 1/3
Δj 0 −2 4 −5 0 0

Table 2 — x1x_1 enters (most negative Δj\Delta_j), s1s_1 leaves (least ratio); pivot 1/31 / 3 in bold.

Basis cB xB x1 x2 x3 s1 s2 Ratio
cj 2 −4 5 0 0
s1 0 8/3 1/3 16/3 0 1 2/3 8
x3 5 1/3 −1/3 2/3 1 0 1/3 –
Δj 5/3 −11/3 22/3 0 0 5/3

Table 3 — all Δj≥0\Delta_j\ge0, so this table is optimal.

Basis cB xB x1 x2 x3 s1 s2
cj 2 −4 5 0 0
x1 2 8 1 16 0 3 2
x3 5 3 0 6 1 1 1
Δj 31 0 66 0 11 9

Optimal solution: x1=8,x2=0,x3=3x_1=8,\ x_2=0,\ x_3=3, Zmax=16+15=31\ Z_{\max}=16+15=31.

Dual. With dual variables y1,y2≥0y_1,y_2\ge0: Minimize W=2y1+y2\text{Minimize } W=2y_1+y_2 subject to y1−y2≥24y1+2y2≥−4−2y1+3y2≥5y1,y2≥0.\begin{aligned}&y_1-y_2\ge2\\ &4y_1+2y_2\ge-4\\ &-2y_1+3y_2\ge5\\ &y_1,y_2\ge0.\end{aligned}

Dual solution from the optimal table. The dual values are the Δj\Delta_j under the starting slack columns: y1=Δs1=11y_1=\Delta_{s_1}=11, y2=Δs2=9y_2=\Delta_{s_2}=9. Then Wmin=2(11)+9=31=Zmax.W_{\min}=2(11)+9=31=Z_{\max}. (Check: 11−9=211-9=2, 44+18=62≥−444+18=62\ge-4, −22+27=5-22+27=5.)

✓ Checked by computer We checked by computer: an LP solver gives Zmax=31Z_{\max}=31 at (8,0,3)(8,0,3) and Wmin=31W_{\min}=31 at (11,9)(11,9) for the dual.

↑ Back to the question list

Write down the dual of the following LP problem and hence solve it by graphical method : Minimize, Z=6x1+4x2 Constraints, 2x1+x2≥13x1+4x2≥1.5x1,x2≥0

2011 · Paper II · Q4c · 20 marks

Solution

Dual. With dual variables y1,y2≥0y_1,y_2\ge0: Maximize W=y1+1.5y22y1+3y2≤6y1+4y2≤4y1,y2≥0.\begin{aligned}&\text{Maximize } W=y_1+1.5y_2\\ &2y_1+3y_2\le6\\ &y_1+4y_2\le4\\ &y_1,y_2\ge0.\end{aligned}

Graphical solution of the dual. Draw 2y1+3y2=62y_1+3y_2=6 (intercepts (3,0)(3,0), (0,2)(0,2)) and y1+4y2=4y_1+4y_2=4 (intercepts (4,0)(4,0), (0,1)(0,1)). The feasible region is the quadrilateral with corners:

Corner Lines meeting W=y1+1.5y2W=y_1+1.5y_2
(0,0)(0,0) axes 00
(3,0)(3,0) y2=0y_2=0, 2y1+3y2=62y_1+3y_2=6 𝟑\mathbf3
(125,25)\left(\tfrac{12}{5},\tfrac25\right) 2y1+3y2=62y_1+3y_2=6, y1+4y2=4y_1+4y_2=4 𝟑\mathbf3
(0,1)(0,1) y1=0y_1=0, y1+4y2=4y_1+4y_2=4 1.51.5

Wmax=3W_{\max}=3, attained at both (3,0)(3,0) and (125,25)\left(\tfrac{12}{5},\tfrac25\right), and along the edge joining them (the objective is parallel to 2y1+3y2=62y_1+3y_2=6).

Primal solution. By duality, Zmin=Wmax=3Z_{\min}=W_{\max}=3. Use complementary slackness at the dual optimum (125,25)\left(\tfrac{12}{5},\tfrac25\right):

  • y1,y2>0y_1,y_2>0, so both primal constraints are tight: 2x1+x2=12x_1+x_2=1 and 3x1+4x2=1.53x_1+4x_2=1.5.
  • Solving gives x1=12,x2=0x_1=\tfrac12,\ x_2=0.
  • The second dual constraint is tight there, but at (3,0)(3,0) it is slack (3<43<4), which also forces x2=0x_2=0.

So Zmin=6⋅12+4⋅0=3Z_{\min}=6\cdot\tfrac12+4\cdot0=3, at x1=12,x2=0x_1=\tfrac12,\ x_2=0.

✓ Checked by computer We checked by computer: an LP solver gives Wmax=3W_{\max}=3 for the dual and Zmin=3Z_{\min}=3 at (12,0)\left(\tfrac12,0\right) for the primal.

↑ Back to the question list

Construct the dual of the primal problem : Maximize z=2x1+x2+x3, subject to the constraints x1+x2+x3≥6, 3x1−2x2+3x3=3, −4x1+3x2−6x3=1, and x1,x2,x3≥0.

2010 · Paper II · Q1f · 12 marks

Solution

Canonical form. For a maximisation, write each inequality as ≤\le. Multiply the first constraint by −1-1: Maximize z=2x1+x2+x3−x1−x2−x3≤−63x1−2x2+3x3=3−4x1+3x2−6x3=1x1,x2,x3≥0.\begin{aligned}&\text{Maximize } z=2x_1+x_2+x_3\\ &-x_1-x_2-x_3\le-6\\ &3x_1-2x_2+3x_3=3\\ &-4x_1+3x_2-6x_3=1\\ &x_1,x_2,x_3\ge0.\end{aligned}

Dual. Take y1≥0y_1\ge0 for the inequality, and y2,y3y_2,y_3 unrestricted for the two equations. Each xj≥0x_j\ge0 gives a “≥\ge” dual constraint: Minimize W=−6y1+3y2+y3−y1+3y2−4y3≥2−y1−2y2+3y3≥1−y1+3y2−6y3≥1y1≥0,y2,y3 unrestricted.\begin{aligned}&\text{Minimize } W=-6y_1+3y_2+y_3\\ &-y_1+3y_2-4y_3\ge2\\ &-y_1-2y_2+3y_3\ge1\\ &-y_1+3y_2-6y_3\ge1\\ &y_1\ge0,\ y_2,y_3\text{ unrestricted.}\end{aligned}

✓ Proof checked step by step Formulation checked line by line against the primal–dual rules.

↑ Back to the question list

Find the dual of the following linear programming problem: Max. Z=2x1−x2+x3 such that x1+x2−3x3≤84x1−x2+x3=22x1+3x2−x3≥5x1,x2,x3≥0

2008 · Paper II · Q1f · 12 marks

Solution

Canonical form. For a maximisation, write inequalities as ≤\le. Multiply the third constraint by −1-1: Maximize Z=2x1−x2+x3x1+x2−3x3≤84x1−x2+x3=2−2x1−3x2+x3≤−5x1,x2,x3≥0.\begin{aligned}&\text{Maximize } Z=2x_1-x_2+x_3\\ &x_1+x_2-3x_3\le8\\ &4x_1-x_2+x_3=2\\ &-2x_1-3x_2+x_3\le-5\\ &x_1,x_2,x_3\ge0.\end{aligned}

Dual. Take y1,y3≥0y_1,y_3\ge0 for the inequalities and y2y_2 unrestricted for the equation: Minimize W=8y1+2y2−5y3y1+4y2−2y3≥2y1−y2−3y3≥−1−3y1+y2+y3≥1y1,y3≥0,y2 unrestricted.\begin{aligned}&\text{Minimize } W=8y_1+2y_2-5y_3\\ &y_1+4y_2-2y_3\ge2\\ &y_1-y_2-3y_3\ge-1\\ &-3y_1+y_2+y_3\ge1\\ &y_1,y_3\ge0,\ y_2\text{ unrestricted.}\end{aligned}

✓ Proof checked step by step Formulation checked line by line against the primal–dual rules.

↑ Back to the question list

More on Linear Programming

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted