Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.

Slides:



Advertisements
Similar presentations
Understanding optimum solution
Advertisements

Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Chapter 6 Linear Programming: The Simplex Method
Sensitivity Analysis Sensitivity analysis examines how the optimal solution will be impacted by changes in the model coefficients due to uncertainty, error.
1/53 Slide Linear Programming: Sensitivity Analysis and Interpretation of Solution n Introduction to Sensitivity Analysis n Graphical Sensitivity Analysis.
Optimization Models Module 9. MODEL OUTPUT EXTERNAL INPUTS DECISION INPUTS Optimization models answer the question, “What decision values give the best.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Chapter 3 Linear Programming: Sensitivity Analysis and Interpretation of Solution MT 235.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science 3d edition by Cliff Ragsdale.
Sensitivity analysis BSAD 30 Dave Novak
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 6 th edition Cliff T. Ragsdale © 2011 Cengage Learning. All Rights.
Chapter 4: Linear Programming Sensitivity Analysis
1 Linear Programming Using the software that comes with the book.
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Spreadsheet Modeling & Decision Analysis:
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
1-1 Introduction to Optimization and Linear Programming Chapter 1.
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
Introduction to Mathematical Programming OR/MA 504 Chapter 5 Integer Linear Programming.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
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.
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
Introduction to Management Science
Sensitivity Analysis What if there is uncertainly about one or more values in the LP model? 1. Raw material changes, 2. Product demand changes, 3. Stock.
Managerial Decision Making and Problem Solving
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Spreadsheet Modeling & Decision Analysis:
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 6-1 Integer Linear Programming Chapter 6.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
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.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Linear Programming: Sensitivity Analysis and Interpretation of Solution Pertemuan 5 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
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.
Linear Programming (LP) Problems MAX (or MIN): c 1 X 1 + c 2 X 2 + … + c n X n Subject to:a 11 X 1 + a 12 X 2 + … + a 1 n X n
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
Chapter 1 Introduction n Introduction: Problem Solving and Decision Making n Quantitative Analysis and Decision Making n Quantitative Analysis n Model.
1 Sensitivity Analysis (II). 2 Sensitivity Report.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Lecture 6 Linear Programming Sensitivity Analysis
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
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.
Managerial Decision Modeling with Spreadsheets Chapter 4 Linear Programming Sensitivity Analysis.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
St. Edward’s University
Chapter 5 Sensitivity Analysis: An Applied Approach
MAN 305 OPERATIONS RESEARCH II Week 4 –Sensitivity Analysis with Spreadsheets DR. KAZIM BARIŞ ATICI.
Spreadsheet Modeling & Decision Analysis
Lecture 4 Part I Mohamed A. M. A..
Spreadsheet Modeling & Decision Analysis:
Presentation transcript:

Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale

Sensitivity Analysis and the Simplex Method Chapter 4

Introduction  When solving an LP problem we assume that values of all model coefficients are known with certainty.  Such certainty rarely exists.  Sensitivity analysis helps answer questions about how sensitive the optimal solution is to changes in various coefficients in a model.

General Form of a Linear Programming (LP) Problem MAX (or MIN): c 1 X 1 + c 2 X 2 + … + c n X n Subject to: a 11 X 1 + a 12 X 2 + … + a 1 n X n <= b 1 : a k 1 X 1 + a k 2 X 2 + … + a kn X n <= b k : a m 1 X 1 + a m 2 X 2 + … + a mn X n = b m  How sensitive is a solution to changes in the c i, a ij, and b i ?

Approaches to Sensitivity Analysis  Change the data and re-solve the model! –Sometimes this is the only practical approach.  Solver also produces sensitivity reports that can answer various questions…

Solver’s Sensitivity Report  Answers questions about: –Amounts by which objective function coefficients can change without changing the optimal solution. –The impact on the optimal objective function value of changes in constrained resources. –The impact on the optimal objective function value of forced changes in decision variables. –The impact changes in constraint coefficients will have on the optimal solution.

Software Note When solving LP problems, be sure to select the “Assume Linear Model” option in the Solver Options dialog box as this allows Solver to provide more sensitivity information than it could otherwise do.

Once Again, We’ll Use The Blue Ridge Hot Tubs Example... MAX: 350X X 2 } profit S.T.:1X 1 + 1X 2 <= 200} pumps 9X 1 + 6X 2 <= 1566} labor 12X X 2 <= 2880} tubing X 1, X 2 >= 0} nonnegativity

The Answer Report See file Fig4-1.xlsFig4-1.xls

The Sensitivity Report See file Fig4-1.xlsFig4-1.xls

How Changes in Objective Coefficients Change the Slope of the Level Curve X2X2 X1X new optimal solution original level curve original optimal solution new level curve

How Changes in Objective Coefficients Change the Slope of the Level Curve See file Fig4-4.xlsFig4-4.xls

Changes in Objective Function Coefficients Values in the “Allowable Increase” and “Allowable Decrease” columns for the Changing Cells indicate the amounts by which an objective function coefficient can change without changing the optimal solution, assuming all other coefficients remain constant.

Alternate Optimal Solutions Values of zero (0) in the “Allowable Increase” or “Allowable Decrease” columns for the Changing Cells indicate that an alternate optimal solution exists.

Changes in Constraint RHS Values  The shadow price of a constraint indicates the amount by which the objective function value changes given a unit increase in the RHS value of the constraint, assuming all other coefficients remain constant.  Shadow prices hold only within RHS changes falling within the values in “Allowable Increase” and “Allowable Decrease” columns.  Shadow prices for nonbinding constraints are always zero.

Comments About Changes in Constraint RHS Values  Shadow prices only indicate the changes that occur in the objective function value as RHS values change.  Changing a RHS value for a binding constraint also changes the feasible region and the optimal solution (see graph on following slide).  To find the optimal solution after changing a binding RHS value, you must re-solve the problem.

How Changing an RHS Value Can Change the Feasible Region and Optimal Solution X2X2 X1X old optimal solution new optimal solution old labor constraint new labor constraint Suppose available labor hours increase from 1,566 to 1,728.

See file Fig4-4.xlsFig4-4.xls How Changing an RHS Value Can Change the Feasible Region and Optimal Solution

Other Uses of Shadow Prices  Suppose a new Hot Tub (the Typhoon-Lagoon) is being considered. It generates a marginal profit of $320 and requires: –1 pump (shadow price = $200) – 8 hours of labor (shadow price = $16.67) –13 feet of tubing (shadow price = $0)  Q: Would it be profitable to produce any ? A: $320 - $200*1 - $16.67*8 - $0*13 = -$13.33 = No!

The Meaning of Reduced Costs  The reduced cost for each product equals its per-unit marginal profit minus the per-unit value of the resources it consumes (priced at their shadow prices).Optimal Value of Type of Problem Decision Variable Reduced Cost at simple lower bound<=0 Maximizationbetween lower & upper bounds=0 at simple upper bound>=0 at simple lower bound>=0 Minimizationbetween lower & upper bounds=0 at simple upper bound<=0

Key Points - I  The shadow prices of resources equate the marginal value of the resources consumed with the marginal benefit of the goods being produced.  Resources in excess supply have a shadow price (or marginal value) of zero.

Key Points-II  The reduced cost of a product is the difference between its marginal profit and the marginal value of the resources it consumes.  Products whose marginal profits are less than the marginal value of the goods required for their production will not be produced in an optimal solution.

Analyzing Changes in Constraint Coefficients  Q: Suppose a Typhoon-Lagoon required only 7 labor hours rather than 8. Is it now profitable to produce any? A: $320 - $200*1 - $16.67*7 - $0*13 = $3.31 = Yes!  Q: What is the maximum amount of labor Typhoon-Lagoons could require and still be profitable? A: We need $320 - $200*1 - $16.67*L 3 - $0*13 >=0 The above is true if L 3 <= $120/$16.67 = $7.20

Simultaneous Changes in Objective Function Coefficients  The 100% Rule can be used to determine if the optimal solutions changes when more than one objective function coefficient changes.  Two cases can occur: –Case 1: All variables with changed obj. coefficients have nonzero reduced costs. –Case 2: At least one variable with changed obj. coefficient has a reduced cost of zero.

Simultaneous Changes in Objective Function Coefficients: Case 1  The current solution remains optimal provided the obj. coefficient changes are all within their Allowable Increase or Decrease. (All variables with changed obj. coefficients have nonzero reduced costs.)

Simultaneous Changes in Objective Function Coefficients: Case 2  For each variable compute: (At least one variable with changed obj. coefficient has a reduced cost of zero.)  If more than one objective function coefficient changes, the current solution remains optimal provided the r j sum to <= 1.  If the r j sum to > 1, the current solution, might remain optimal, but this is not guaranteed.

A Warning About Degeneracy  The solution to an LP problem is degenerate if the Allowable Increase of Decrease on any constraint is zero (0).  When the solution is degenerate: 1.The methods mentioned earlier for detecting alternate optimal solutions cannot be relied upon. 2.The reduced costs for the changing cells may not be unique. Also, the objective function coefficients for changing cells must change by at least as much as (and possibly more than) their respective reduced costs before the optimal solution would change.

 When the solution is degenerate (cont’d) : 3. The allowable increases and decreases for the objective function coefficients still hold and, in fact, the coefficients may have to be changed beyond the allowable increase and decrease limits before the optimal solution changes. 4. The given shadow prices and their ranges may still be interpreted in the usual way but they may not be unique. That is, a different set of shadow prices and ranges may also apply to the problem (even if the optimal solution is unique).

The Limits Report See file Fig4-1.xlsFig4-1.xls

The Sensitivity Assistant  An add-in on the CD-ROM for this book that allows you to create: –Spider Tables & Plots  Summarize the optimal value for one output cell as individual changes are made to various input cells. –Solver Tables  Summarize the optimal value of multiple output cells as changes are made to a single input cell.

The Sensitivity Assistant See files: Fig4-12.xls & Fig4-14.xls

The Simplex Method For example: a k 1 X 1 + a k 2 X 2 + … + a kn X n <= b k converts to: a k 1 X 1 + a k 2 X 2 + … + a kn X n + S k = b k And:a k 1 X 1 + a k 2 X 2 + … + a kn X n >= b k converts to: a k 1 X 1 + a k 2 X 2 + … + a kn X n - S k = b k  To use the simplex method, we first convert all inequalities to equalities by adding slack variables to = constraints.

For Our Example Problem... MAX: 350X X 2 } profit S.T.:1X 1 + 1X 2 + S 1 = 200} pumps 9X 1 + 6X 2 + S 2 = 1566} labor 12X X 2 + S 3 = 2880} tubing X 1, X 2, S 1, S 2, S 3 >= 0} nonnegativity  If there are n variables in a system of m equations (where n>m ) we can select any m variables and solve the equations (setting the remaining n-m variables to zero.)

Possible Basic Feasible Solutions Basic Nonbasic Objective VariablesVariables SolutionValue 1S 1, S 2, S 3 X 1, X 2 X 1 =0, X 2 =0, S 1 =200, S 2 =1566, S 3 = X 1, S 1, S 3 X 2, S 2 X 1 =174, X 2 =0, S 1 =26, S 2 =0, S 3 =79260,900 3X 1, X 2, S 3 S 1, S 2 X 1 =122, X 2 =78, S 1 =0, S 2 =0, S 3 =16866,100 4X 1, X 2, S 2 S 1, S 3 X 1 =80, X 2 =120, S 1 =0, S 2 =126, S 3 =064,000 5X 2, S 1, S 2 X 1, S 3 X 1 =0, X 2 =180, S 1 =20, S 2 =486, S 3 =054,000 6*X 1, X 2, S 1 S 2, S 3 X 1 =108, X 2 =99, S 1 =-7, S 2 =0, S 3 =067,500 7*X 1, S 1, S 2 X 2, S 3 X 1 =240, X 2 =0, S 1 =-40, S 2 =-594, S 3 =084,000 8*X 1, S 2, S 3 X 2, S 1 X 1 =200, X2=0, S 1 =0, S 2 =-234, S 3 =48070,000 9*X 2, S 2, S 3 X 1, S 1 X 1 =0, X 2 =200, S 1 =0, S 2 =366, S 3 =-32060,000 10*X 2, S 1, S 3 X 1, S2X 1 =0, X 2 =261, S 1 =-61, S 2 =0, S 3 = ,300 * denotes infeasible solutions

Basic Feasible Solutions & Extreme Points X2X2 X1X X 1 =0, X 2 =0, S 1 =200, S 2 =1566, S 3 =2880 2X 1 =174, X 2 =0, S 1 =26, S 2 =0, S 3 =792 3X 1 =122, X 2 =78, S 1 =0, S 2 =0, S 3 =168 4X 1 =80, X 2 =120, S 1 =0, S 2 =126, S 3 =0 5X 1 =0, X 2 =180, S 1 =20, S 2 =486, S 3 =0 Basic Feasible Solutions

Simplex Method Summary  Identify any basic feasible solution (or extreme point) for an LP problem, then moving to an adjacent extreme point, if such a move improves the value of the objective function.  Moving from one extreme point to an adjacent one occurs by switching one of the basic variables with one of the nonbasic variables to create a new basic feasible solution (for an adjacent extreme point).  When no adjacent extreme point has a better objective function value, stop -- the current extreme point is optimal.

End of Chapter 4