SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
Lesson 30 (Section 19.2–3)
           Duality in Linear Programming

                          Math 20


                     December 3, 2007


Announcements
   Problem Set 11 on the WS. Due December 5.
   next OH: Monday 1–2 (SC 323)
   next PS: Sunday 6–7 (SC B-10)
   Midterm II review: Tuesday 12/4, 7:30-9:00pm in Hall E
   Midterm II: Thursday, 12/6, 7-8:30pm in Hall A
Outline



   Recap


   Example


   Shadow Prices


   The Dual Problem
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
In vector notation, an LP problem in standard form looks like

                           max z = c · x

subject to constraints

                  Ax ≤ b                   x≥0
Theorem of the Day for Friday




   Theorem (The Corner Principle)
   In any linear programming problem, the extreme values of the
   objective function, if achieved, will be achieved on a corner of the
   feasibility set.
Outline



   Recap


   Example


   Shadow Prices


   The Dual Problem
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?
Formulating the problem


   Let x be the number of sweaters and y the number of scarves
   made. We want to
                         max z = 35x + 10y
   subject to

                             x + y ≤ 2000
                            4x + y ≤ 2300
                           3x + 2y ≤ 2500
                               x, y ≥ 0
Finding the corners

  2300

  2000

                                                       Notice one constraint is
           4x +



                                                       superfluous!
                                x
                y =2




                                    +                            z(0, 0) = 0
  1250                                  y
                                            =                  z(575, 0) = 20, 125
                     300




                                                20
                                                  00        z(0, 1250) = 12, 500
                                                           z(420, 620) = 20, 900
                    3x




                   •
                           +




   (420, 620)
                           2y
                               =
                                25
                                   00




                       575 833 1                        2000
                                     3
Answer




  We should make 420 sweaters and 620 scarves.
Outline



   Recap


   Example


   Shadow Prices


   The Dual Problem
Suppose our business were suddenly given
    one additional crest patch?
    one additional skein of yarn?
    one additional unit of storage space?
How much would profits change?
One more patch

2300                                                    Since we weren’t “up against”
                                                        this constraint in the first place,
2000                                                    one extra doesn’t change our
                                                        optimal product mix.
         4x +




                                                        At this product mix, the
                                                        marginal profit of patches is 0.
                                 x
              y =2




                                     +
1250                                     y
                                             =
                                                 20
                   300




                                                   01
                  3x




                 •
                         +




 (420, 620)
                         2y
                             =
                              25
                                 00




                     575 833 1                          2000
                                     3
One more skein

 2300                                                  We’ll make a little more sweater
                                                       and less scarf
 2000
                                                       The marginal profit is
           4x +




                                                       ∆z = 35(0.4) + 10(−0.6) = 8
                y =2




                                x
                                    +
 1250                                   y
                                            =
                     301




                                                20
                                                  00
                    3x




                    •
                           +
                           2y




(420.4, 619.4)
                               =
                                25
                                   00




                      575 833 1                        2000
                                     3
One more storage unit

2300                                            We’ll make a little less sweater
                                                and more scarf
2000
                                                The marginal profit is

                                                ∆z = 35(−0.2) + 10(0.8) = 1

                         x
                             +
1250                             y
                                     =
                                         20
                                           00
             •
                 3x




(419.8, 620.8)
                    +
                    2y
                        =
                         25
                             01




                 575 833 1                      2000
                             3
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,
       The shadow price of patches is zero
       The shadow price of yarn is 8
       The shadow price of storage is 1
   We should look into getting more yarn!
Outline



   Recap


   Example


   Shadow Prices


   The Dual Problem
Question
Suppose an entrepreneur wants to buy our business’s resources.
What prices should be quoted for each crest? skein of yarn? unit
of storage?
Question
Suppose an entrepreneur wants to buy our business’s 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.
    Each sweater takes one patch, 4 skeins, and 3 storage units,
    so effectively p + 4q + 3r is bid per sweater
    Likewise, p + q + 2r is bid per scarf.
So we must have

                         p + 4q + 3r ≥ 35
                          p + q + 2r ≥ 10

for us to sell out. The entrepreneur’s 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
In fancy vector language, the dual of the problem

           max z = p · x subject to Ax ≤ b and x ≥ 0

is
           min w = b · y subject to A y ≥ p and y ≥ 0
Solving the Dual Problem

      The feasible set is unbounded (extending away from you)




                  r

                                           p
        q
Solving the Dual Problem

            The feasible set is unbounded (extending away from you)




                (0, 0, 83/4)
                               •




                                   r                                         •

(0, 8, 1)           (12/3, 81/3, 0)                             (35, 0, 0)
                                                 p
            •
       •        •

                    q
  (0, 10, 0)
Solving the Dual Problem

         The feasible set is unbounded (extending away from you)




         w = 21, 875
                       •




                    r                                                   •
  w = 20, 900                                             w = 70, 000
           w = 22, 500
                                              p
         •
     •       •

w = 23, 000 q
Solving the Dual Problem

            The feasible set is unbounded (extending away from you)
            w (0, 8, 1) = 20, 900 is minimal




                (0, 0, 83/4)
                               •




                                   r                                         •

(0, 8, 1)           (12/3, 81/3, 0)                             (35, 0, 0)
                                                 p
            •
       •        •

                    q
  (0, 10, 0)
The Big Idea




      The shadow prices are the solutions to the dual problem
      The payoff is the same in both the primal problem and the
      dual problem

Contenu connexe

Tendances

Summary (chapter 1 chapter6)
Summary (chapter 1  chapter6)Summary (chapter 1  chapter6)
Summary (chapter 1 chapter6)
Nizam Mustapha
 
Eight Regression Algorithms
Eight Regression AlgorithmsEight Regression Algorithms
Eight Regression Algorithms
guestfee8698
 
Datamining 6th svm
Datamining 6th svmDatamining 6th svm
Datamining 6th svm
sesejun
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
markme18
 
12 X1 T07 01 V And A In Terms Of X
12 X1 T07 01 V And A In Terms Of X12 X1 T07 01 V And A In Terms Of X
12 X1 T07 01 V And A In Terms Of X
Nigel Simmons
 

Tendances (20)

Lesson 27: Integration by Substitution (Section 10 version)
Lesson 27: Integration by Substitution (Section 10 version)Lesson 27: Integration by Substitution (Section 10 version)
Lesson 27: Integration by Substitution (Section 10 version)
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
Bresenham's line algorithm
Bresenham's line algorithmBresenham's line algorithm
Bresenham's line algorithm
 
Performance of Optimal Registration Estimator
Performance of Optimal Registration EstimatorPerformance of Optimal Registration Estimator
Performance of Optimal Registration Estimator
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
 
Lesson 10: the Product and Quotient Rules
Lesson 10: the Product and Quotient RulesLesson 10: the Product and Quotient Rules
Lesson 10: the Product and Quotient Rules
 
Summary (chapter 1 chapter6)
Summary (chapter 1  chapter6)Summary (chapter 1  chapter6)
Summary (chapter 1 chapter6)
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
 
Eight Regression Algorithms
Eight Regression AlgorithmsEight Regression Algorithms
Eight Regression Algorithms
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
Datamining 6th svm
Datamining 6th svmDatamining 6th svm
Datamining 6th svm
 
整卷
整卷整卷
整卷
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
 
Computer Aided Manufacturing Design
Computer Aided Manufacturing DesignComputer Aided Manufacturing Design
Computer Aided Manufacturing Design
 
solucionario de purcell 1
solucionario de purcell 1solucionario de purcell 1
solucionario de purcell 1
 
solucionario de purcell 0
solucionario de purcell 0solucionario de purcell 0
solucionario de purcell 0
 
12 X1 T07 01 V And A In Terms Of X
12 X1 T07 01 V And A In Terms Of X12 X1 T07 01 V And A In Terms Of X
12 X1 T07 01 V And A In Terms Of X
 
solucionario de purcell 2
solucionario de purcell 2solucionario de purcell 2
solucionario de purcell 2
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
 

Similaire à Lesson 30: Duality In Linear Programming

งานคณิตศาสตร์อาจารย์เค
งานคณิตศาสตร์อาจารย์เคงานคณิตศาสตร์อาจารย์เค
งานคณิตศาสตร์อาจารย์เค
krookay2012
 
Lesson 6 - Introduction To Determinants (Slides+Notes)
Lesson 6 - Introduction To  Determinants (Slides+Notes)Lesson 6 - Introduction To  Determinants (Slides+Notes)
Lesson 6 - Introduction To Determinants (Slides+Notes)
Matthew Leingang
 
5.2 Solving Quadratic Equations by Factoring
5.2 Solving Quadratic Equations by Factoring5.2 Solving Quadratic Equations by Factoring
5.2 Solving Quadratic Equations by Factoring
hisema01
 

Similaire à Lesson 30: Duality In Linear Programming (20)

Operational research
Operational researchOperational research
Operational research
 
Review for final exam
Review for final examReview for final exam
Review for final exam
 
Lesson 22: Quadratic Forms
Lesson 22: Quadratic FormsLesson 22: Quadratic Forms
Lesson 22: Quadratic Forms
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
 
Problem Application of Antiderivatives
Problem Application of AntiderivativesProblem Application of Antiderivatives
Problem Application of Antiderivatives
 
Unexpected ineq
Unexpected ineqUnexpected ineq
Unexpected ineq
 
Lesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers ILesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers I
 
Ism et chapter_12
Ism et chapter_12Ism et chapter_12
Ism et chapter_12
 
251109 Or
251109 Or251109 Or
251109 Or
 
Linear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditLinear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima Pandit
 
LINEAR PROGRAMING
LINEAR PROGRAMINGLINEAR PROGRAMING
LINEAR PROGRAMING
 
งานคณิตศาสตร์อาจารย์เค
งานคณิตศาสตร์อาจารย์เคงานคณิตศาสตร์อาจารย์เค
งานคณิตศาสตร์อาจารย์เค
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solution
 
Day 01
Day 01Day 01
Day 01
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Lenier Equation
Lenier EquationLenier Equation
Lenier Equation
 
Nis differentiation1
Nis differentiation1Nis differentiation1
Nis differentiation1
 
Lesson 6 - Introduction To Determinants (Slides+Notes)
Lesson 6 - Introduction To  Determinants (Slides+Notes)Lesson 6 - Introduction To  Determinants (Slides+Notes)
Lesson 6 - Introduction To Determinants (Slides+Notes)
 
5.2 Solving Quadratic Equations by Factoring
5.2 Solving Quadratic Equations by Factoring5.2 Solving Quadratic Equations by Factoring
5.2 Solving Quadratic Equations by Factoring
 
Lesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange MultipliersLesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange Multipliers
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Lesson 30: Duality In Linear Programming

  • 1. Lesson 30 (Section 19.2–3) Duality in Linear Programming Math 20 December 3, 2007 Announcements Problem Set 11 on the WS. Due December 5. next OH: Monday 1–2 (SC 323) next PS: Sunday 6–7 (SC B-10) Midterm II review: Tuesday 12/4, 7:30-9:00pm in Hall E Midterm II: Thursday, 12/6, 7-8:30pm in Hall A
  • 2. Outline Recap Example Shadow Prices The Dual Problem
  • 3. Definition A linear programming problem is a constrained optimization problem with a linear objective function and linear inequality constraints.
  • 4. 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
  • 5. In vector notation, an LP problem in standard form looks like max z = c · x subject to constraints Ax ≤ b x≥0
  • 6. Theorem of the Day for Friday Theorem (The Corner Principle) In any linear programming problem, the extreme values of the objective function, if achieved, will be achieved on a corner of the feasibility set.
  • 7. Outline Recap Example Shadow Prices The Dual Problem
  • 8. 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?
  • 9. Formulating the problem Let x be the number of sweaters and y the number of scarves made. We want to max z = 35x + 10y subject to x + y ≤ 2000 4x + y ≤ 2300 3x + 2y ≤ 2500 x, y ≥ 0
  • 10. Finding the corners 2300 2000 Notice one constraint is 4x + superfluous! x y =2 + z(0, 0) = 0 1250 y = z(575, 0) = 20, 125 300 20 00 z(0, 1250) = 12, 500 z(420, 620) = 20, 900 3x • + (420, 620) 2y = 25 00 575 833 1 2000 3
  • 11. Answer We should make 420 sweaters and 620 scarves.
  • 12. Outline Recap Example Shadow Prices The Dual Problem
  • 13. Suppose our business were suddenly given one additional crest patch? one additional skein of yarn? one additional unit of storage space? How much would profits change?
  • 14. One more patch 2300 Since we weren’t “up against” this constraint in the first place, 2000 one extra doesn’t change our optimal product mix. 4x + At this product mix, the marginal profit of patches is 0. x y =2 + 1250 y = 20 300 01 3x • + (420, 620) 2y = 25 00 575 833 1 2000 3
  • 15. One more skein 2300 We’ll make a little more sweater and less scarf 2000 The marginal profit is 4x + ∆z = 35(0.4) + 10(−0.6) = 8 y =2 x + 1250 y = 301 20 00 3x • + 2y (420.4, 619.4) = 25 00 575 833 1 2000 3
  • 16. One more storage unit 2300 We’ll make a little less sweater and more scarf 2000 The marginal profit is ∆z = 35(−0.2) + 10(0.8) = 1 x + 1250 y = 20 00 • 3x (419.8, 620.8) + 2y = 25 01 575 833 1 2000 3
  • 17. 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.
  • 18. 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, The shadow price of patches is zero The shadow price of yarn is 8 The shadow price of storage is 1 We should look into getting more yarn!
  • 19. Outline Recap Example Shadow Prices The Dual Problem
  • 20. Question Suppose an entrepreneur wants to buy our business’s resources. What prices should be quoted for each crest? skein of yarn? unit of storage?
  • 21. Question Suppose an entrepreneur wants to buy our business’s 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. Each sweater takes one patch, 4 skeins, and 3 storage units, so effectively p + 4q + 3r is bid per sweater Likewise, p + q + 2r is bid per scarf. So we must have p + 4q + 3r ≥ 35 p + q + 2r ≥ 10 for us to sell out. The entrepreneur’s goal is to minimize the total payout w = 2000p + 2300q + 2500r
  • 22. 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
  • 23. In fancy vector language, the dual of the problem max z = p · x subject to Ax ≤ b and x ≥ 0 is min w = b · y subject to A y ≥ p and y ≥ 0
  • 24. Solving the Dual Problem The feasible set is unbounded (extending away from you) r p q
  • 25. Solving the Dual Problem The feasible set is unbounded (extending away from you) (0, 0, 83/4) • r • (0, 8, 1) (12/3, 81/3, 0) (35, 0, 0) p • • • q (0, 10, 0)
  • 26. Solving the Dual Problem The feasible set is unbounded (extending away from you) w = 21, 875 • r • w = 20, 900 w = 70, 000 w = 22, 500 p • • • w = 23, 000 q
  • 27. Solving the Dual Problem The feasible set is unbounded (extending away from you) w (0, 8, 1) = 20, 900 is minimal (0, 0, 83/4) • r • (0, 8, 1) (12/3, 81/3, 0) (35, 0, 0) p • • • q (0, 10, 0)
  • 28. The Big Idea The shadow prices are the solutions to the dual problem The payoff is the same in both the primal problem and the dual problem