MIT and James Orlin © 2003 1 Chapter 5. Sensitivity Analysis presented as FAQs –Points illustrated on a running example of glass manufacturing. –Also the.

Slides:



Advertisements
Similar presentations
February 26, 2002 Sensitivity Analysis presented as FAQs – Points illustrated on a running example of glass manufacturing. – If time permits, we.
Advertisements

February 14, 2002 Putting Linear Programs into standard form
LINEAR PROGRAMMING SENSITIVITY ANALYSIS
Chapter 5 Sensitivity Analysis: An Applied Approach
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 5 Sensitivity Analysis: An Applied Approach to accompany Introduction to.
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
1/53 Slide Linear Programming: Sensitivity Analysis and Interpretation of Solution n Introduction to Sensitivity Analysis n Graphical Sensitivity Analysis.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
SENSITIVITY ANALYSIS.
Linear Programming: Simplex Method and Sensitivity Analysis
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
Sensitivity analysis BSAD 30 Dave Novak
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Spreadsheet Modeling & Decision Analysis:
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
Linear Programming.
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Kerimcan OzcanMNGT 379 Operations Research1 LP: Sensitivity Analysis and Interpretation of Solution Chapter 3.
Computational Methods for Management and Economics Carla Gomes
Introduction to Mathematical Programming OR/MA 504 Chapter 3.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Special Conditions in LP Models (sambungan BAB 1)
Readings Readings Chapter 3
Presentation: H. Sarper
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 6S Linear Programming.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
Managerial Decision Making and Problem Solving
Chapter 6 Sensitivity Analysis & Duality
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
THE GALAXY INDUSTRY PRODUCTION PROBLEM -
1 LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Chapter 6 Supplement Linear Programming.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Solving Linear Programming Problems: The Simplex Method
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
Chapter 6 Simplex-Based Sensitivity Analysis and Duality
Chapter 4 Linear Programming: The Simplex Method
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
1 1 Slide © 2005 Thomson/South-Western Simplex-Based Sensitivity Analysis and Duality n Sensitivity Analysis with the Simplex Tableau n Duality.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
1 The Geometry of Linear Programs –the geometry of LPs illustrated on GTC Handouts: Lecture Notes February 5, 2002.
Sensitivity analysis continued… BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12 th edition – some slides are directly.
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Lecture 6 Linear Programming Sensitivity Analysis
1. 2 We studying these special cases to: 1- Present a theoretical explanation of these situations. 2- Provide a practical interpretation of what these.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Chapter 4 The Simplex Algorithm and Goal Programming
MIT and James Orlin © The Geometry of Linear Programs –the geometry of LPs illustrated on GTC.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Linear Programming.
Chapter 5 Sensitivity Analysis: An Applied Approach
Linear Programming – Sensitivity Analysis
Presentation transcript:

MIT and James Orlin © Chapter 5. Sensitivity Analysis presented as FAQs –Points illustrated on a running example of glass manufacturing. –Also the financial example from a previous lecture

MIT and James Orlin © Glass Example (from AMP) x 1 = # of cases of 6-oz juice glasses (in 100s) x 2 = # of cases of 10-oz cocktail glasses (in 100s) x 3 = # of cases of champagne glasses (in 100s) max 5 x x x 3 ($100s) s.t 6 x x x 3  60 (prod. cap. in hrs) 10 x x x 3  150 (wareh. cap. in ft 2 ) x 1  8 (6-0z. glass dem.) x 1  0, x 2  0, x 3  0

MIT and James Orlin © FAQ. Could you please remind me what a shadow price is? Let us assume that we are maximizing. A shadow price is the increase in the optimum objective value per unit increase in a RHS coefficient, all other data remaining equal. The shadow price is valid in an interval.

MIT and James Orlin © FAQ. Of course, I knew that. But can you please provide an example. Certainly. Let us consider the glass example given in the book AMP. Let’s look at the objective function if we change the production time from 60 and keep all other values the same. Production hours Optimal obj. value difference / /1411/ / /1411/14 The shadow Price is 11/14.

MIT and James Orlin © More changes in the RHS Production hours Optimal obj. value difference /711/ /1411/ /11* /2215/22 The shadow Price is 11/14 until production = 65.5

MIT and James Orlin © FAQ. What is the intuition for the shadow price staying constant, and then changing? Recall from the simplex method that the simplex method produces a “basic feasible solution.” The basis can often be described easily in terms of a brief verbal description. Glass Example

MIT and James Orlin © The verbal description for the optimum basis for the glass problem: 1. Produce Juice Glasses and cocktail glasses only 2. Fully utilize production and warehouse capacity z = 5 x x 2 6 x x 2 = x x 2 = 150 x 1 = 6 3/7 x 2 = 4 2/7 z = 51 3/7

MIT and James Orlin © The verbal description for the optimum basis for the glass problem: 1. Produce Juice Glasses and cocktail glasses only 2. Fully utilize production and warehouse capacity z = 5 x x 2 6 x x 2 = 60 +  10 x x 2 = 150 x 1 = 6 3/7 + 2  /7 x 2 = 4 2/7 –  /7 z = 51 3/7 + 11/14  For  = 5.5, x 1 = 8, and the constraint x 1  8 is binding.

MIT and James Orlin © FAQ. How can shadow prices be used for managerial interpretations? Let me illustrate with the previous example. How much should you be willing to pay for an extra hour of production? Glass Example

MIT and James Orlin © FAQ. Does the shadow price always have an economic interpretation? The answer is no, unless one wants to really stretch what is meant by an economic interpretation. Consider ratio constraints

MIT and James Orlin © Apartment Development x 1 = number of 1-bedroom apartments built x 2 = number of 2-bedroom apartments built x 3 = number of 3-bedroom apartments build x 1 /(x 1 + x 2 + x 3 ) .5  x 1 .5x 1 +.5x 2 +.5x 3 .5x 1 –.5x 2 -.5x 3  0 The shadow price is the impact of increasing the 0 to a 1. This has no obvious managerial interpretation.

MIT and James Orlin © FAQ. Right now, I’m new to this. But as I gain experience will interpretations of the shadow prices always be obvious? No. But they should become straightforward for examples given in

MIT and James Orlin © FAQ. What are the interpretations for the shadow prices for the other two constraints in the glass problem? You can probably answer this one yourself. How much would you be willing to pay for additional storage capacity? How much would you be willing to pay in order to increase the demand for 6-oz Juice Glasses? Glass Example

MIT and James Orlin © FAQ. In the book, they sometimes use “dual price” and we use shadow price. Is there any difference? No

MIT and James Orlin © FAQ. Excel gives a report known as the Sensitivity report. Does this provide shadow prices? Yes, plus lots more. In particular, it gives the range for which the shadow price is valid. Glass Example

MIT and James Orlin © FAQ. I have heard that Excel occasionally gives incorrect shadow prices. Is this true? There is the possibility that the interval in which the shadow price is valid is empty. Excel can also give incorrect Shadow prices under certain circumstances that will not occur in spreadsheets for

MIT and James Orlin © FAQ. You have told me that Excel sometimes makes mistakes. Also, I can do sensitivity analysis by solving an LP a large number of times, with varying data. So, what good is the Sensitivity Report? For large problems it is much more efficient, and for LP models used in practice, it will be accurate. For large problems it can be used to identify opportunities. It can identify which coefficients are most sensitive to changes in value (their accuracy is the most important).

MIT and James Orlin © FAQ. How do we interpret the intervals? If we change one coefficient in the RHS, say production capacity, by  the “basis” remains optimal, that is, the same equations remain binding. So long as the basis remains optimal, the shadow prices are unchanged. The basic feasible solution varies linearly with . If  is big enough or small enough the basis will change.

MIT and James Orlin © Shadow price of production capacity as production capacity varies 11/14

MIT and James Orlin © FAQ. Would you please summarize what we have learned so far. Of course. Here it is. –The shadow price is the unit change in the optimal objective value per unit change in the RHS. –Shadow prices usually but not always have economic interpretations that are managerially useful. –Shadow prices are valid in an interval, which is provided by the Excel Sensitivity Report. –Excel provides correct shadow prices for our LPs but can be incorrect in other situations

MIT and James Orlin © Overview of what is to come Using insight from managerial situations to obtain properties of shadow prices reduced costs and pricing out

MIT and James Orlin © FAQ. The shadow prices for an equality constraints can be anything, but the shadow price for a  constraint is nonnegative. Why? Let us illustrate with an example: Maximize revenue Subject to 6x 1 + 5x 2 + 8x 3  60 x 1  5 and additional constraints Will the max revenue go up if the RHS is increased from 60? the RHS is increased from 5?

MIT and James Orlin © Illustration with the glass example: max 5 x x x 3 ($100s) s.t 6 x x x 3  60 (prod. cap. in hrs) 10 x x x 3  150 (wareh. cap. in ft 2 ) x 1  8 (6-0z. glass dem.) x 1  0, x 2  0, x 3  0 The shadow price is the “increase” in the optimal value per unit increase in the RHS. If an increase in RHS coefficient leads to an increase in optimal objective value, then the shadow price is positive. If an increase in RHS coefficient leads to a decrease in optimal objective value, then the shadow price is negative.

MIT and James Orlin © Illustration with the glass example: max 5 x x x 3 ($100s) s.t 6 x x x 3  60 (prod. cap. in hrs) 10 x x x 3  150 (wareh. cap. in ft 2 ) x 1  8 (6-0z. glass dem.) x 1  0, x 2  0, x 3  0 Claim: the shadow price of the production capacity constraint cannot be negative. Reason: any feasible solution for this problem remains feasible after the production capacity increases. So, the increase in production capacity cannot cause the optimum objective value to go down.

MIT and James Orlin © Illustration with the glass example: max 5 x x x 3 ($100s) s.t 6 x x x 3  60 (prod. cap. in hrs) 10 x x x 3  150 (wareh. cap. in ft 2 ) x 1  8 (6-0z. glass dem.) x 1  0, x 2  0, x 3  0 Claim: the shadow price of the “ x 1  0” constraint cannot be positive. Reason: Let x* be the solution if we replace the constraint “ x 1  0” with the constraint “ x 1  1”. Then x* is feasible for the original problem, and thus the original problem has at least as high an objective value.

MIT and James Orlin © Signs of Shadow Prices for maximization problems “  constraint”. The shadow price is non-negative. “  constraint”. The shadow price is non-positive. “ = constraint”. The shadow price could be zero or positive or negative.

MIT and James Orlin © Signs of Shadow Prices for minimization problems The shadow price for a minimization problem is the “increase” in the objective function per unit increase in the RHS. “  constraint”. The shadow price is … ? “  constraint”. The shadow price is … ? “ = constraint”. The shadow price could be zero or positive or negative. Please answer with your partner.

MIT and James Orlin © The shadow price of a non-binding constraint is 0. This is known as “Complementary Slackness.” max 5 x x x 3 ($100s) s.t 6 x x x 3  60 (prod. cap. in hrs) 10 x x x 3  150 (wareh. cap. in ft 2 ) x 1  8 (6-0z. glass dem.) x 1  0, x 2  0, x 3  0 In the optimum solution, x 1 = 6 3/7. Claim: The shadow price for the constraint “x 1  8 ” is zero. Intuitive Reason: If your optimum solution has x 1 8.

MIT and James Orlin © FAQ. Is the shadow price the change in the optimal objective value if the RHS increases by 1 unit. That is an excellent rule of thumb! It is true so long as the shadow price is valid in an interval that includes an increase of 1 unit. Glass Example

MIT and James Orlin © FAQ. The shadow price is valid if only one right hand side changes. What if multiple right hand side coefficients change? The shadow prices are valid if multiple RHS coefficients change, but the ranges are no longer valid. Glass Example

MIT and James Orlin © Multiple changes in the RHS max 5 x x x 3 ($100s) s.t 6 x x x 3  x x x 3  x 1  x 1  0, x 2  0, x 3  0 shadow price ……11/14 ……1/35 …….0 Effect on cost - 6 x 11/ x 1/ x 0 = – 33/7 – 2/7 = - 5 In the basic feasible solution x 1 decreases by 1

MIT and James Orlin © FAQ. Do the non-negativity constraints also have shadow prices? Yes. They are very special and are called reduced costs? Look at the reduced costs for –Juice glasses reduced cost = 0 –Cocktail glasses reduced cost = 0 –Champagne glasses red. cost = -4/7

MIT and James Orlin © FAQ. Does Excel provide information on the reduced costs? Yes. They are also part of the sensitivity report. Glass Example

MIT and James Orlin © FAQ. What is the managerial interpretation of a reduced cost? There are two interpretations. Here is one of them. We are currently not producing champagne glasses. How much would the profit of champagne glasses need to go up for us to produce champagne glasses in an optimum solution? The reduced cost for champagne classes is –4/7. If we increase the revenue for these glasses by 4/7 (from 6 to 6 4/7), then there will be an alternative optimum in which champagne glasses are produced.

MIT and James Orlin © FAQ. Why are they called the reduced costs? Nothing appears to be “reduced” That is a very astute question. The reduced costs can be obtained by treating the shadow prices are real costs. This operation is called “pricing out.”

MIT and James Orlin © Pricing Out max 5 x x x 3 ($100s) s.t 6 x x x 3  x x x 3  x 1  8 x 1  0, x 2  0, x 3  0 shadow price ……11/14 ……1/35 …….0 Pricing out treats shadow prices as though they are real prices. The result is the “reduced costs.”

MIT and James Orlin © Pricing Out of x 1 max 5 x x x 3 ($100s) s.t 6 x x x 3  x x x 3  x 1  8 x 1  0, x 2  0, x 3  0 shadow price ……11/14 ……1/35 …….0 Reduced cost of x 1 = x 11/ x 1/ x 0 = 5 – 33/7 – 2/7 = 0

MIT and James Orlin © Pricing Out of x 2 max 5 x x x 3 ($100s) s.t 6 x x x 3  x x x 3  x 1  8 x 1  0, x 2  0, x 3  0 shadow price ……11/14 ……1/35 …….0 Reduced cost of x 2 = x 11/ x 1/ x 0 = 4.5 – 55/14 – 4/7 = 0

MIT and James Orlin © Pricing Out of x 3 max 5 x x x 3 ($100s) s.t 6 x x x 3  x x x 3  x 1  8 x 1  0, x 2  0, x 3  0 shadow price ……11/14 ……1/35 …….0 Reduced cost of x 3 = x 11/ x 1/ x 0 = 6 – 44/7 – 2/7 = -4/7

MIT and James Orlin © FAQ. Can we use pricing out to figure out whether a new type of glass should be produced? max 5 x x x 4 ($100s) s.t 6 x x x 4  x x x 4  x 1  8 x 1  0, x 2  0, x 4  0 shadow price ……11/14 ……1/35 …….0 Reduced cost of x 4 = x 11/ x 1/ x 0 = 7 – 44/7 – 4/7 = 1/7

MIT and James Orlin © Pricing Out of x j max 5 x x 2 + c j x j ($100s) s.t 6 x x 2 + a 1j x j  x x 2 + a 2j x j  150 ……….. ………. + a mj x j = b m x 1  0, x 2  0, x 3  0 shadow price ……y 1 ……y 2 ……… ……y m Reduced cost of x j = ? Please complete with your partner.

MIT and James Orlin © Brief summary on reduced costs The reduced cost of a non-basic variable x j is the “increase” in the objective value of requiring that x j >= 1. The reduced cost of a basic variable is 0. The reduced cost can be computed by treating shadow prices as real prices. This operation is known as “pricing out.” Pricing out can determine if a new variable would be of value (and would enter the basis).

MIT and James Orlin © Would you please summarize what we have learned this lecture? I’d be happy to.

MIT and James Orlin © Summary The shadow price is the unit change in the optimal objective value per unit change in the RHS. The shadow price for a “  0” constraint is called the reduced cost. Shadow prices usually but not always have economic interpretations that are managerially useful. Non-binding constraints have a shadow price of 0. The sign of a shadow price can often be determined by using the economic interpretation Shadow prices are valid in an interval, which is provided by the Excel Sensitivity Report. Reduced costs can be determined by pricing out

MIT and James Orlin © The Financial Problem from Lecture 2 Sarah has $1.1 million to invest in five different projects for her firm. Goal: maximize the amount of money that is available at the beginning of –(Returns on investments are on the next slide). At most $500,000 in any investment Can invest in CDs, at 5% per year. Financial Example

MIT and James Orlin © Return on investments (undiscounted dollars) ABCDE Jan Jan Jan Jan

MIT and James Orlin © The LP formulation -x A – x C – x D – x CD02 = x A – x B x D x CD02 – x CD03 = 0.8 x A +.4 x B - x E x CD03 – x CD04 = 0.8 x B x D x E x CD04 Max s.t..8 x A +.4 x B - x E x CD03 – x CD04 = 0 0  x j .5 for j = A, B, C, D, E, CD02 CD03, and CD04 Financial Example

MIT and James Orlin © The verbal description of the optimum basis 1. Invest as much as possible in C and D in Invest the remainder in A. 2. Take the returns in 2003 and invest as much as possible in B. Invest the remainder in CDs 3. Take all returns in 2004 and invest them in E. Note: if an extra dollar became available in years 2002 or 2003 or 2004, we would invest it in A or 2003CDs or E

MIT and James Orlin © A graph for the financial Problem A CD2003 E $.40 $.80 $1.05 $1.20 Any additional money in 2002 is invested in A. Any additional money in 2003 is invested in CD2003. Any additional money in 2004 is invested in E.

MIT and James Orlin © Shadow Price Interpretation A CD2003 E $.40 $.80 $1.05 $1.20 Constraint: cash flow into 2004 is all invested. Shadow price: -1.2 Interpretation: an extra $1 in 2004 would be worth $1.20 in x A +.4 x B - x E x CD03 – x CD04 = 0

MIT and James Orlin © More on the shadow price for 2004 constraintshadow price CVAllowable Increase Allowable Decrease 2004 cash flow x A +.4 x B - x E x CD03 – x CD04 = 0 Increase the RHS by , and x E decreases by ..x E =.427 in the optimal solution

MIT and James Orlin © Shadow Price Interpretation A CD2003 E $.40 $.80 $1.05 $1.20 Constraint: cash flow into 2003 is all invested. Shadow price: Interpretation: an extra $1 in 2003 would be worth $1.26 in 2005.

MIT and James Orlin © Shadow Price Interpretation A CD2003 E $.40 $.80 $1.05 $1.20 Constraint: all $1.1 million is invested in Shadow price: Interpretation: an extra $1 in 2002 would be worth $1.46 in x 1.05 x x 1.2 = 1.464