Session 07 Duality Theory
Session 07 Duality Theory
Duality
RK Jana
1
Lecture Outline
Concept of duality
Formulation of dual
Duality theorems
Economic interpretation of dual
Concept of shadow price
Duality and simplex method
Dual Simplex algorithm
2
Concept of Duality
3
Case 1
4
Solution
Min: X1 + X2 + X3 + X4 + X5 + X6 + X7
subject to
X1 + 0.X2 + 0.X3 + X4 + X5 + X6 +X7 ≥ 8 (Sun)
X1 + X2 + 0.X3 + 0.X4 + X5 + X6 +X7 ≥ 6 (Mon)
X1 + X2 + X3 + 0.X4 + 0.X5 + X6 +X7 ≥ 5 (Tue)
X1 + X2 + X3 + X4 + 0.X5 + 0.X6 +X7 ≥ 4 (Wed)
X1 + X2 + X3 + X4 + X5 + 0.X6 + 0.X7 ≥ 6 (Thurs)
0.X1 + X2 + X3 + X4 + X5 +X6 +0.X7 ≥ 7 (Fri)
0.X1 + 0.X2 + X3 + X4 + X5 + X6 +X7 ≥ 9 (Sat)
All variables ≥ 0 and integer
5
Primal Dual Relationship
6
Formulation of Dual
7
Dual in Vector Notations
The Primal
Max Z = cx
s. t. Ax b, x 0
The Dual
Min w = bT v
s. t. AT v cT, v 0
8
Example 1
9
Continued…
10
Example 2
11
Continued…
12
Continued…
The primal problem can now take the following standard form:
13
Continued…
s. t.
4v1 - 2v2 + 5v3 - 5v4 12
7v1 - 5v2 + 4v3 - 4v4 4
v1 , v2 , v3 , v4 0
14
Example 3
15
Continued…
Writing equivalently:
17
Continued…
18
Continued…
Final form:
Min w = 7v5 + 3v3 - 5v4
s. t.
v5 + 2v3 2
- 5v5 - 5v3 - 3v4 3
3v5 + 3v3 + v4 =4
v3 , v4 0,
v5 (= v1 - v2 ) is unrestricted in sign
19
Additional Problems
20
Continued…
21
Important Theorems in Duality
22
Continued…
23
Fundamental Duality Theorem
24
Useful Summary
Primal Problem Dual Problem Conclusion
25
Duality & Simplex Method
Rule 1
26
Continued…
Rule 2
27
Continued…
Rule 3
28
Example 4
An animal feed manufacturing company manufactures two types of
feed, Feed Activex and Feed Solutex. Each of the feed must contain
some of the four ingredients prescribed by a veterinary doctor. These
ingredients are a, b, c and d. The daily per head requirement (in kgs)
of the feed and the ingredients in each of the product is given as
follows:
Ingredient Feed Feed Requirement
Activex Solutex
a 1 0 4
b 0 1 6
c 1 2 2
d 2 1 18
Cost 7 5
Determine the quantity of the feeds in the mixture so that the total
cost is minimum.
29
Continued…
31
Continued…
Table 1
cj 4 6 2 18 0 0
cB vB b v1 v2 v3 v4 s1 s2
0 s1 7 1 0 1 2 1 0
0 s2 5 0 1 2 1 0 1
zj – c j -4 -6 -2 -18 0 0
32
Continued…
Table 3
cj 4 6 2 18 0 0
cB vB b v1 v2 v3 v4 s1 s2
18 v4 7/2 1/2 0 1/2 1 1/2 0
6 v2 3/2 -1/2 1 3/2 0 -1/2 1
zj – c j 2 0 16 0 6 6
34
Continued…
35
Continued…
Optimal Table
cj -10 -6 -2 -1 0 0 -M -M
cB vB b v1 v2 v3 v4 s1 s2 s3 s4
-2 v3 1/2 -1/2 0 1 3/2 -1/2 1/2 1/2 -1/2
-6 v2 3/2 3/2 1 0 -1/2 -1/2 -1/2 1/2 1/2
zj – cj 2 0 0 1 4 2 M-4 M-2
Write the dual of the following LPP & hence solve it:
The dual
39
Continued…
40
Continued…
Table 1
cj -4 -6 -5 1 0 0
cB vB b v1 v2 v3 v4 s1 s2
-4 v1 3 1 0 1 0 -1 0
0 s2 2 0 -1 -1 1 0 1
zj – c j 0 6 1 -1 4 0
41
Continued…
Table 2
cj -4 -6 -5 1 0 0
cB vB b v1 v2 v3 v4 s1 s2
-4 v1 3 1 0 1 0 -1 0
1 v4 2 0 -1 -1 1 0 1
zj – c j 0 5 0 0 4 1
43
Continued…
44
Continued…
Table 1
cj -4 -6 -9 0 0 -M -M
cB vB b v1 v2 v3 s1 s2 s3 s4
-M s3 2 -1 1 1 -1 0 1 0
-M s4 3 2 1 3 0 -1 0 1
45
Continued…
Table 2
cj -4 -6 -9 0 0 -M -M
cB vB b v1 v2 v3 s1 s2 s3 s4
46
Continued…
Table 3
cj -4 -6 -9 0 0 -M -M
cB vB b v1 v2 v3 s1 s2 s3 s4
Dual problem:
Min W = 60v1 + 22v2
s. t. 6v1 + v2 3
4v1 + 2v2 4
v1 , v2 0
where v1 is the cost per hr on machine M1 and v2 is the cost per hr on
50
machine M2.
Continued…
Final Table using Simplex Method
cj 3 4 0 0
cB xB b x1 x2 s1 s2
3 x1 4 1 0 1/4 -1/2
4 x2 9 0 1 -1/8 -3/4
zj – cj 0 0 1/4 3/2
Market survey shows that the demand of Cow’s, Toned and Double
Toned milk are at least 14000, 22000 and 1000 bottles per day. The
operating costs per shift of running plants K and N are Rs 900 and Rs
600, respectively. How many shift should the firm run each plant per day
so that the production cost is minimum while still meeting the market
demand. Also, write the dual and give and economic interpretation of
dual variables.