6 DUALITY Theory
6 DUALITY Theory
Duality Theory
• Every linear programming problem has associated with it another linear
programming problem called the Dual. The original problem is called
Primal.
The watch maker’s Problem
Smith Family: Father (F) and Son (S)
How to convince them (Son and Father) to join him (John Blake)?
Comparable wages with respect to before : “at least” as good as before
Hire them at the minimum possible cost: “just enough” to effect the switch over
Min B = 50 y1 + 60 y2
S.t. 2 y1 + 3 y2 ≥ 60
y1 + 4 y2 ≥ 40
4 y1 + 2 y2 ≥ 80
y1, y2 ≥ 0
Solution: y1 = 15, y2 =10, Objective function B = $1350 per week
3
Solution of John Blake Problem
y2
• Obj B is min at
(0,40)
y1 = 15, y2 =10 3
• Objective function
B = $1350 per week
(0,20) 1
(15,10)
(0,10)
(24,4)
2 y1
(20,0) (30,0) (40,0)
4
Will the solution of John Blake help to solve Watch maker’s problem?
From watch maker’s constraint
2 x1 + x2 + 4 x3 ≤ 50 (1)
3 x1 + 4 x2 + 2 x3 ≤ 60 (2)
Dual Problem
m
Max W bi yi Where, yi: price of ith nutrient pill containing one unit of nutrient i
i 1
m
S.t. a
i 1
ij yi c j , j 1,2,...,n (Competitive pricing w.r.t. foods)
yi 0, i 1,2,...,m 6
How to get Dual (D) from Primal (P)?
Max Z = c1x1 + c2x2 + … + cnxn Dual Variable
P
S.t. a11x1 + a12x2 + … + a1n xn ≤ b1 y1
a21x1 + a22x2 + … + a2n xn ≤ b2 y2 (Optimal Allocation of Resources)
. .
. .
. .
am1x1 + am2x2 + … + amn xn ≤ bm ym
and xj ≥ 0, for j = 1, 2, …, n
D’ P
Min − 𝐜𝐱 => Max 𝐜𝐱
S.t. −𝐀𝐱 ≥ −𝐛 S.t. 𝐀𝐱 ≤ 𝐛
𝐱≥0 𝐱≥0
10
Primal [P] Dual [D]
Min W = yb
Max Z = cx Dual variable
S.t. yA ≥ c
S.t. Ax ≤ b y
y≥0
x≥0
13
Simplex Tableau for Primal at any iteration
BV xT xsT RHS
xB B-1A B-1 B-1b
Z cBB-1A - c cBB-1 cBB-1b
16
Complementary Slackness Theorem (CST)
Proof: Ax + u = b (i), yA - v = c (ii)
Where u, v ≥ 0 u1
u
u= 2 v= v1 v2 vn
u m
Pre-multiply (i) by y and post-multiply (ii) by x, we get
yAx + yu = yb (iii) and yAx - vx = cx (iv)
Now, (iii) – (iv),
yu + vx = yb – cx =>y(b-Ax)+(yA-c)x = yb – cx
and from the given condition y(b-Ax)+(yA-c)x = 0
yb – cx = 0 => yb = cx, which implies optimality of x and y (from
SDT)
The proof is complete when the other side of statement is also proved,
i.e. if x and y are optimal (=> yb = cx) it must be yu + vx = 0, which is
straightforward. 17
Implications of CST
(i) Complementary slackness conditions
Since x, u, y, v ≥ 0, if the sum of nonnegative terms equals
zero, then each term is zero.
yu = 0 => y(b – Ax) = 0
and vx = 0 => (yA – c)x = 0
𝑧𝑗 −𝑐𝑗 ≥ 0 optimality
• Dual simplex method: Starts with a dual feasible Basis and moves
towards primal feasibility
– Optimality
Algorithm: Dual Simplex
5) Entering variable: Maximum ratio rule, that xj for which the ratio
𝑧𝑗 −𝑐𝑗
: 𝑎𝑗𝑘 < 0 is maximum, where xk is leaving variable
𝑎𝑗𝑘
• Augmented form
M𝑎𝑥 𝑍 ′ = −𝑍 = −3𝑥1 − 2𝑥2
Subject to
−3𝑥1 − 𝑥2 + 𝑥3 = −3
−4𝑥1 − 3𝑥2 + 𝑥4 = −6
𝑥1 + 𝑥2 + 𝑥5 = 3
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 ≥ 0
Solving using Dual simplex
Basis RHS
-3 -1 1 0 0 -3
Iteration 0
-4 -3 0 1 0 -6
1 1 0 0 1 3
3 2 0 0 0 0
Ratio -3/4 -2/3 - - -
-5/3 0 1 -1/3 0 -1
Iteration 1
4/3 1 0 -1/3 0 2
-1/3 0 0 1/3 1 1
1/3 0 0 2/3 0 -4
Ratio -1/5 - - -2 --
1 0 -3/5 1/5 0 3/5
Iteration 2
0 1 4/5 -3/5 0 6/5
0 0 -1/5 2/5 1 6/5
0 0 1/5 3/5 0 -21/5
2 B
C
1
0 A D
1 2 3