Professional Documents
Culture Documents
Content
Example 1
Example 1-continued
Formulation-example 1
max Z 80 x1 60 x 2 50 x 3
x
8 x1 6 x 2 4 x3 100
5x1 4 x2 4 x 3 60
x1 , x 2 , x3 0
Duality-example 1
Problem D1
min w 100 y1 60 y2
y
8 y1 5 y2 80
6 y1 4 y2 60
4 y1 4 y2 50
y1, y2 0
Example 2-continued
Formulating example 2
min Z 10 x1 2 x2
x
80 x1 40 x 2 400
20 x1 50 x 2 200
30 x1 20 x 2 100
x1 , x 2 0
80 y1 20 y2 30 y3 10
40 y1 50 y2 20 y3 2
y1, y2 , y3 0
Comments
max Z c j x j
x
j 1
i 1
Definition
Dual Problem
Primal Problem
z*: max Z cx
w* : min w yb
x
s.t.
s. t .
Ax b
x 0
yA c
y 0
Example
Max Z = 10X1 + 5X2
2X1 + 3X2 10
6X1 + X2 15
4X1 5X2 35
X1, X2 0
21
Y1
6 X1 + X2 15
Y2
4 X1 5 X2 35
Y3
X1, X2 0
1st constraint
Min ZY =
Y1+
2nd constraint
Y2 +
Y3
Y1 +
Y2 +
Y3
Y1
Y2
Y3
Y1,Y2,Y3 0
22
Example
Primal
max Z 5x1 3x 2 8 x3 0 x 4 12 x5
x
3 x1 8x 2
9 x 4 15x 5 20
18x1 5x 2 8 x3 4 x4 12 x5 30
x1, x2 , x3 , x4 , x5 0
Dual
min w 20 y1 30 y2
y
3y1 18 y2 5
8 y1 5y 2 3
8y2 8
9y1 4 y2 0
15 y1 12 y2 12
y1, y 2 0
Primal-Dual relationship
D ual
(m in w )
y1 0
y2 0
x1 0
a11
a21
x2 0
a12
a22
.. .
. ..
...
am1
am2
ym 0
Z=
c1
c2
xn 0
a1n
a2n
amn
cn
w =
b1
b2
. ..
. ..
bn
Example
max Z 4 x1 10 x2 9 x3
x
5 x1 18 x2 5 x3 15
8 x1 12 x2 8x3 8
12 x1 4 x 2 8 x3 10
2 x1
5 x3 5
x1, x2 , x3 0
Dual
(min w)
y1 0
y2 0
y3 0
y4 0
Z=
x1 0
5
8
12
2
x2 0
x3 0
- 18
12
-4
0
5
0
8
-5
10
-9
w=
15
8
10
5
Dual
5 y1 8 y2 12 y 3 2 y 4 4
18 y1 12 y 2 4 y 3
10
5 y1
8y 3 5 y 4 9
y1 , y2 , y 3 , y4 0
di xi e
i1
di xi e
i1
k
di xi e
i1
d x
i
i 1
k
di x i e
i 1
Canonical form!
Example
max Z x1 x2 x3
x
2 x2 x 3 4
x1 3x 2 4 x 3 5
x1 2 x 2
Conversion
Dual
min w 4 y1 5 y2 5y3 3 y4
y
y2 y3 y4 1
2 y1 3y2 3y3 2y4 1
y1 4y2 4y3
y1 4y2 4y3
y1, y2 , y3, y4 0
1
1
Example (Continued)
min w 4 y1 5 y2 5y3 3 y4
y
y2 y3 y4 1
2 y1 3y2 3y3 2y4 1
y1 4y2 4y3
y1 4y2 4y3
y1, y2 , y3, y4 0
1
1
,
,
,
min
w
4
y
5
y
3
y
1
2
3
,
y
,
,
y2 y3 1
,
,
,
2 y1 3 y2 2 y3 1
,
,
y1 + 4 y2
1
correction
,
,
,
y1, y3 0; y2 urs
Primal-Dual relationship
Primal Problem
Dual Problem
opt=max
opt=min
Constraint i :
<= form
= form
Variable i :
yi >= 0
yi urs
Variable j:
xj >= 0
xj urs
Constraint j:
>= form
= form
Example
max Z 5x1 4 x 2
x
3x1 8 x2 6
x1 6 x 2 5
8 x1
10
x 2 0; x1 urs
3 x1 8 x 2 6
x1 6 x2 5
8 x1
10
x 2 0; x1 urs
3 y1 y2 8 y3 5
8y1 6 y2
4
y1 0; y2 , y3 urs
w* : min w yb
x
s.t.
yA c
y 0
max w yb
max w yb
s.t.
s.t.
yA c
y 0
yA c
y 0
min Z cx
max Z cx
s. t .
s. t .
Ax b
x 0
Ax b
x 0
Important Observation
Primal-Dual Relationship
Primal or Dual
opt=max
Constraint i :
<= form
= form
Variable j:
xj >= 0
xj urs
Dual or Primal
opt=min
Variable i :
yi >= 0
yi urs
Constraint j:
>= form
= form
Example
min Z 6 x1 4 x2
x
3x1 5 x2 12
x1 2 x 2 8
5x1 x2 10
x1, x1 0
Equivalent form
min Z 6 x1 4 x2
x
3x1 5x 2 12
x1 2 x2 8
5 x1 x2 10
x1 , x 2 0
Dual
max w 12 y1 8 y2 10 y3
y
3y1 y2 5 y3 6
5 y1 2 y2 y3 4
y1, y3 0; y2 urs
Maximization
Number of constraints
constraint
constraint
constraint =
Number of variables
Variable positive or zero
Variable negative or zero
Unconstrained Variable
Coefficient of the jth variable
In the objective function
RHS of the
ith
constraint
Minimization
Number of variables
Variable positive or zero
Variable negative or zero
Unconstrained Variable
Number of constraints
constraint
constraint
constraint =
RHS of the jth constraint
Example
Primal
Max ZX = 5X1 + 4X2 2X3
2X1 + 3X2 20
X1 4X3 5
X1 + X2 + X3 = 30
X1, X2 0
Dual
Min ZY = 20Y1 + 5Y2 + 30Y3
2Y1 + Y2 + Y3 5
3Y1 + Y3
- 4Y2 + Y3
=- 2
Y1 0 , Y2 0, Y3 IR
Primal
Dual
Max ZY = 10Y1+50Y2+2Y3+120Y4
X1 X2 10
Y1 + 7Y2 - Y3 + 9Y4 15
7X1 + 2X2 50
- X1 + 3X2 2
Y1 0 , Y2 0, Y3 0, Y4 IR
9X1 + X2 = 120
X1 0, X2 IR
54
Results
55
Theorem
Theorem. The dual of the dual is the primal.
Proof: The dual problem LP2 is equivalent to the following problem:
Max
- bT y
s. t.
- AT y c
y 0.
( AT x b
x 0,
or equivalently,
Max
cT x
s. t.
Ax b
x 0.
56
57
Theorems-continued
Interpretation of Duality
Discussion
Discussion-continued
Discussion-continued
Discussion-continued
Example
Consider the following LP and its dual :
Max ZX = 5X1 + 2X2 + 7X3
X1 + X2 + X3 50
Y1 + 2Y2 5
Y1 + 4Y2 2
X1, X2, X3 0
Y1 + 3Y2 7
Y1 0 , Y2 0
CJ
Basis
0
S1
5
X1
J
Dual
Solution
5
X1
0
1
0
E1
0
2
X2
-1
2
-8
E2
8
7
X3
-1/2
3/2
-1/2
E3
1/2
0
S1
1
0
0
Y1
0
0
S2
bI
-1/2 12,5
1/2
37,5
-5/2 187,5
Y2
ZY
5/2 187,5
65
X1 + X2 + X3 50
2X1 + 4X2 + 3X3 75
X1, X2, X3 0
67
lost profit.
69
71
Y1 + 2Y2 5
Y1 + 4Y2 2
Y1 + 3Y2 7
Y1, Y2 0
(R1)
(R2)
X1, X2, X3 0
CJ
0
5
Basis
S1
X1
CJ-ZJ
5
X1
0
1
0
2
X2
-1
2
-8
7
X3
-1/2
3/2
-1/2
0
S1
1
0
0
0
S2
-1/2
1/2
-5/2
bi
12,5
37,5
187,5
75
76
78