Beruflich Dokumente
Kultur Dokumente
23)
Duality in Linear Programming
Math 20
December 3, 2007
Announcements
I
Outline
Recap
Example
Shadow Prices
Definition
A linear programming problem is a constrained optimization
problem with a linear objective function and linear inequality
constraints.
Definition
A linear programming problem is a constrained optimization
problem with a linear objective function and linear inequality
constraints.
Definition
An LP problem is in standard form if it is expressed as
max z = c1 x1 + c2 x2 + + cn xn
subject to the constraints
a11 x1 + a12 x2 + + a1n xn b1
a21 x1 + a22 x2 + + a2n xn b2
....
..
am1 x1 + am2 x2 + + amn xn bm
x1 , x2 , . . . , xn 0
x0
Outline
Recap
Example
Shadow Prices
Example
Example
We are starting a business selling two Harvard insignia products:
sweaters and scarves. The profits on each are $35 and $10,
respectively. Each has a pre-bought embroidered crest sewn on it;
we have 2000 crests on hand. Sweaters take four skeins of yarn
while scarves only take one, and there are 2300 skeins of yarn
available. Finally, we have available storage space for 1250 scarves;
we could use any of that space for sweaters, too, but sweaters take
up half again as much space as scarves.
What product mix maximizes revenue?
300
y =2
4x +
1250
20
00
3x
+
2y
(420, 620)
z(0, 0) = 0
=
00
25
575 833 1
3
2000
Answer
Outline
Recap
Example
Shadow Prices
2000
300
y =2
4x +
1250
20
01
3x
+
2y
(420, 620)
=
00
25
575 833 1
2000
301
y =2
4x +
1250
20
00
3x
2y
(420.4, 619.4)
=
00
25
575 833 1
2000
1250
20
00
+
3x
(419.8, 620.8)
2y
=
01
25
575 833 1
2000
Shadow Prices
Definition
In a linear programming problem in standard form, the change in
the objective function obtained by increasing a constraint by one is
called the shadow price of that constraint.
Shadow Prices
Definition
In a linear programming problem in standard form, the change in
the objective function obtained by increasing a constraint by one is
called the shadow price of that constraint.
Example
In our example problem,
I
Outline
Recap
Example
Shadow Prices
Question
Suppose an entrepreneur wants to buy our businesss resources.
What prices should be quoted for each crest? skein of yarn? unit
of storage?
Question
Suppose an entrepreneur wants to buy our businesss resources.
What prices should be quoted for each crest? skein of yarn? unit
of storage?
Answer.
Suppose the entrepreneur quotes p for each crest patch, q for each
skein of yarn, and r for each storage unit.
I
So we must have
p + 4q + 3r 35
p + q + 2r 10
for us to sell out. The entrepreneurs goal is to minimize the total
payout
w = 2000p + 2300q + 2500r
Definition
Given a linear programming problem in standard form, the dual
linear programming problem is
min w = b1 y1 + + bm ym
subject to constraints
a11 y1 + a21 y2 + + am1 ym p1
a12 y1 + a22 y2 + + am2 ym p2
....
..
a1n y1 + a2n y2 + + amn ym pn
y1 , . . . , ym 0
r
p
q
(0, 0, 83/4)
r
(0, 8, 1)
(12/3, 81/3, 0)
(0, 10, 0)
(35, 0, 0)
p
w = 21, 875
r
w = 20, 900
w = 22, 500
w = 23, 000 q
w = 70, 000
p
(0, 0, 83/4)
r
(0, 8, 1)
(12/3, 81/3, 0)
(0, 10, 0)
(35, 0, 0)
p
The payoff is the same in both the primal problem and the
dual problem