Professional Documents
Culture Documents
5 Duality
5 Duality
5 Duality
104
Duality in Linear Programming
▪ Next, it was found out that it has many applications, and perhaps
even a more natural and intuitive interpretation, in several
related areas such as nonlinear programming, networks and
game theory.
105
Defintion of the Dual Problem
Rules of the dual LP formulation
Primal problem
Dual variables
+ 0s1
Primal in s1 y1
standard form y2
S1 ≥ 0
107
Defintion of the Dual Problem
Example 1
Dual problem
108
Defintion of the Dual Problem
Example 2
Primal
Dual problem
109
Definition of the Dual Problem
Handling variables unrestricted in sign
110
Definition of the Dual Problem
Handling variables unrestricted in sign
Maximize Z = 15(a-b)+29𝑥2+11𝑥3+37𝑥4
Maximize Z = 15𝑥1+29𝑥2+11𝑥3+37𝑥4
Subject to:
Subject to:
Minimize 𝐶=250𝑦1−540𝑦2+600𝑦3−600𝑦4
Subject to:
10𝑦1−22𝑦2+15𝑦3−15𝑦4≥ 15
−10𝑦1+22𝑦2−15𝑦3+15𝑦4≥−15
15𝑦1+20𝑦2+13𝑦3−13𝑦4≥ 29
0𝑦1−20𝑦2+12𝑦3−12𝑦4≥ 11
14𝑦1+ 0𝑦2+13𝑦3−13𝑦4≥ 37
𝑦1,𝑦2,𝑦3,𝑦4≥0
112
Definition of the Dual Problem
Handling variables unrestricted in sign
Maximization Minimization
Constraints Variables
≥ ≤0
≤ ≥0
= unrestricted
Variables constraints
≥0 ≤
≤0 ≥
Unrestricted =
114
Primal-Dual relashionships
115
Primal-Dual relashionships
Example (1/2)
ST
Optimal solution:
(x1*, x2*) = (3/5, 4/5) → z* = −7/5 116
Primal-Dual relashionships
Example (2/2)
ST
Optimal solution:
(y1*, y2*) = (1/5, 2/5) → z* = −7/5.
117
In this example, we observe that the minimum value of the primal is equal to the
maximum value of the dual.
Primal-Dual relashionships
Simplex Tableau Layout
Inverse
General iteration matrix
118
Primal-Dual relashionships
Optimal dual solution
▪ The primal and dual solutions are closely related that the
optimal solution of one problem directly yields the optimal
solution to the other.
▪ Two methods for determining dual values:
Method 1
Method 2
119
Primal-Dual relashionships
Optimal dual solution
✓ Example: method 1
Final Simplex Tableau
Primal
Primal
Cj-Zj 54.8
Method 1
Dual Dual
✓ Example: method 2
Final Simplex Tableau
Primal
Primal
Cj-Zj 54.8
Method 2
Dual Dual
2/5 −1/5 29 2
(y1,y2) = (12, 5) * = ( ,− ) 121
1/5 2/5 5 5
Theorems related to duality
122
Theorems related to duality (contd.)
123
Theorems related to duality (contd.)
125
Interpretation of Duality
Primal Dual
128
Interpretation of Duality
Example 1 (contd.)
Dual E1 E2 E3 Y1 Y2 Zy
Solution 0 8 1/2 0 5/2 187,5
129
Interpretation of Duality
Example 1 (contd.)
Primal
▪ Assume that in the context of this LP, 3 products P1, Max ZX = 5X1 + 2X2 + 7X3
P2 et P3 are to be manufactured.
▪ The production process requires the use of 2
ST X1 + X2 + X3 50
130
Interpretation of Duality
Example 1 (contd.)
Primal
CJ 5 2 7 0 0
Max ZX = 5X1 + 2X2 + 7X3
Basis X1 X2 X3 S1 S2 bI
ST X1 + X2 + X3 50 (R1)
0 S1 0 -1 -1/2 1 -1/2 12,5
2X1 + 4X2 + 3X3 75 (R2) 5 X1 1 2 3/2 0 1/2 37,5
X1, X2, X3 0 J 0 -8 -1/2 0 -5/2 187,5
Primal
CJ 5 2 7 0 0
Max ZX = 5X1 + 2X2 + 7X3
Basis X1 X2 X3 S1 S2 bI
ST X1 + X2 + X3 50 (R1)
0 S1 0 -1 -1/2 1 -1/2 12,5
2X1 + 4X2 + 3X3 75 (R2) 5 X1 1 2 3/2 0 1/2 37,5
X1, X2, X3 0 J 0 -8 -1/2 0 -5/2 187,5
▪ The producer will not be ready to cede a unit of R1 (respectively R2) unless
he obtains against it at least 0 (respectively 2.5 dinars) additional gain.
▪ Equivalently, in order to acquire one more unit of R1 (respectively R2), the
producer will be willing to pay additional cost of 0 (respectively 2.5 dinars).
132
Interpretation of Duality
Example 1 (contd.)
133