← 2021 Paper 2
UPSC 2021 Maths Optional Paper 2 Q3c — Step-by-Step Solution
15 marks · Section A
Duality · Linear Programming · asked 4× in 13 yrs · Read the full method →
Question
Convert into dual:
Min Z=x1−3x2−2x3
subject to
3x1−x2+2x3≤7,2x1−4x2≥12,−4x1+3x2+8x3=10,
x1,x2≥0, x3 unrestricted.
Technique
Apply primal-dual conversion rules; track sign restrictions based on Min/Max and ≤/≥/= direction.
Solution
For minimisation, the standard dual form uses ≥ constraints.
Convert:
- 3x1−x2+2x3≤7⇒−3x1+x2−2x3≥−7.
- 2x1−4x2≥12 — already ≥.
- −4x1+3x2+8x3=10 — equality. Split into two ≥: −4x1+3x2+8x3≥10 and 4x1−3x2−8x3≥−10 (or treat equality as unrestricted-sign dual variable).
Better approach: use the direct rules for primal–dual:
| Primal (Min) | Dual (Max) |
|---|
| variable xj≥0 | constraint ≤cj |
| variable xj unrestricted | constraint =cj |
| constraint ≥bi | variable yi≥0 |
| constraint ≤bi | variable yi≤0 |
| constraint =bi | variable yi unrestricted |
Step 2 — Apply rules
Primal (Min):
- Constraint 1: 3x1−x2+2x3≤7 → dual variable y1≤0.
- Constraint 2: 2x1−4x2≥12 → dual variable y2≥0.
- Constraint 3: −4x1+3x2+8x3=10 → dual variable y3 unrestricted.
Primal variables:
- x1≥0 → dual constraint ≤c1=1.
- x2≥0 → dual constraint ≤c2=−3.
- x3 unrestricted → dual constraint =c3=−2.
Step 3 — Build dual
Dual: Maximize W=7y1+12y2+10y3
subject to:
- (for x1): 3y1+2y2−4y3≤1.
- (for x2): −y1−4y2+3y3≤−3.
- (for x3): 2y1+0⋅y2+8y3=−2, i.e., 2y1+8y3=−2, equivalently y1+4y3=−1.
with y1≤0, y2≥0, y3 unrestricted.
Answer
Dual: Max W=7y1+12y2+10y3,y1≤0,y2≥0,y3 unrestricted; 3 constraints as above.