Duality
Duality
Every linear programming problem has a mirror image problem which is also a linear
programming problem. Using a set of rules, the mirror image problem, called the dual can be
obtained for a given linear programming problem, known as primal problem in this context.
Before writing the dual to an LPP, it is necessary to express it in standard form if it is not so.
(ii) all the constraints should be of ≤ type if the problem is of maximisation type, and of ≥
type if it of the minimisation nature.
s.t.
𝑥1 + 𝑥2 + 𝑥3 ≤ 90
𝑥1 ≥ 0; 𝑥3 ≥ 0
Ans.
s.t.
𝑥1 + 𝑥4 − 𝑥5 + 𝑥3 ≤ 90
𝑥1 ≥ 0; 𝑥3 ≥ 0; 𝑥4 ≥ 0 ; 𝑥5 ≥ 0
Page 1 of 7
When all constraints are not in the 'right' direction
−7𝑥1 + 5𝑥2 ≤ −4
2𝑥1 + 𝑥2 = 50
2𝑥1 + 𝑥2 ≤ 50
2𝑥1 + 𝑥2 ≥ 50
2𝑥1 + 𝑥2 ≤ 50
−2𝑥1 − 𝑥2 ≤ −50
Primal
Maximise Z = cx
Subject to
ax ≤ b
x≥0
Dual
Minimise G = b′ y
Page 2 of 7
Subject to
a′ y ≥ c′
y≥0
c′= transpose of the matrix of the objective function coefficients of the primal problem,
Example 4.1
For the LPP given in Example 3.1 reproduced below, write the dual.
Subject to
2𝑥1 + 3𝑥2 ≤ 60
4𝑥1 + 3𝑥2 ≤ 96
𝑥1 , 𝑥2 ≥ 0
Subject to
2𝑦1 + 4𝑦2 ≥ 40
3𝑦1 + 3𝑦2 ≥ 35
𝑦1 , 𝑦2 ≥ 0
Primal: Dual:
Subject to Subject to
Page 3 of 7
𝑥1 , 𝑥2 ≥ 0 𝑦1 , 𝑦2 ≥ 0
Example 4.2
Write the dual of the following LPP:
Subject to
3𝑥1 + 2𝑥2 ≥ 18
𝑥1 + 3𝑥2 ≥ 8
2𝑥1 − 𝑥2 ≤ 6
𝑥1 , 𝑥2 ≥ 0
Solution.
Here, the first two inequalities are in the right direction (being type with a minimisation type
of objective function) while the third one is not. Multiplying both sides by —1, this can be
written as
−2𝑥1 + 𝑥2 ≥ −6
Primal Dual
Subject to subject to
−2𝑥1 + 𝑥2 ≥ −6
𝑥1 , 𝑥2 ≥ 0 𝑦1 , 𝑦2 , 𝑦3 ≥ 0
Dual
Page 4 of 7
Maximize 𝐺 = 18𝑦1 + 8𝑦2 − 6𝑦3
subject to
3𝑦1 + 𝑦2 − 2𝑦3 ≤ 10
2𝑦1 + 3𝑦2 + 𝑦3 ≤ 20
𝑦1 , 𝑦2 , 𝑦3 ≥ 0
Example 4.3
Obtain the dual of the LPP given here:
Subject to
𝑥1 − 𝑥3 ≤ 4
2𝑥1 + 4𝑥2 ≤ 12
𝑥1 + 𝑥2 + 𝑥3 ≥ 2
3𝑥1 + 2𝑥2 − 𝑥3 = 8
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Dual
Min 𝐺 = 4𝑦1 + 12𝑦2 − 2𝑦3 + 8𝑦4 − 8𝑦5
Subject to
−𝑦1 + 0𝑦2 − 𝑦3 − 𝑦4 + 𝑦5 ≥ 5
𝑦1 , 𝑦2 , 𝑦3 , 𝑦4 , 𝑦5 ≥ 0
Page 5 of 7
Another way
Subject to
𝑦1 + 2𝑦2 − 𝑦3 + 3𝑦6 ≥ 8
−𝑦1 + 0𝑦2 − 𝑦3 − 𝑦6 ≥ 5
𝑦1 , 𝑦2 , 𝑦3 ≥ 0, 𝑦6 unrestricted in sign
Example 4.4.
Obtain the dual of the following LPP:
Subject to
𝑥1 + 𝑥2 + 3𝑥3 ≤ 10
4𝑥1 − 𝑥2 + 2𝑥3 ≥ 15
𝑥1 , 𝑥2 ≥ 0, 𝑥3 unrestricted in sign
Ans.
Page 6 of 7
−4𝑥1 + 𝑥2 − 2𝑥3 ≤ −15
Primal
Maximise 𝑍 = 3𝑥1 + 5𝑥2 + 7𝑥4 − 7𝑥5
Subject to
𝑥1 + 𝑥2 + 3𝑥4 − 3𝑥5 ≤ 10
𝑥1 , 𝑥2 , 𝑥4 , 𝑥5 ≥ 0
Dual
Subject to
𝑦1 − 4𝑦2 ≥ 3
𝑦1 + 𝑦2 ≥ 5
3𝑦1 − 2𝑦2 ≥ 7
−3𝑦1 + 2𝑦2 ≥ −7
𝑦1 , 𝑦2 ≥ 0
Alternatively
Subject to
𝑦1 − 4𝑦2 ≥ 3
𝑦1 + 𝑦2 ≥ 5
3𝑦1 − 2𝑦2 = 7
𝑦1 , 𝑦2 ≥ 0
Page 7 of 7