15.053/8 February 26, 2013



Similar documents
Degeneracy in Linear Programming

Linear Programming Notes VII Sensitivity Analysis

Solving Linear Programs in Excel

Sensitivity Report in Excel

Basic Components of an LP:

Special Situations in the Simplex Algorithm

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

4.6 Linear Programming duality

Tutorial: Using Excel for Linear Optimization Problems

Linear Programming. Solving LP Models Using MS Excel, 18

Linear Programming II: Minimization 2006 Samuel L. Baker Assignment 11 is on page 16.

Simplex method summary

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

56:171 Operations Research Midterm Exam Solutions Fall 2001

USING EXCEL 2010 TO SOLVE LINEAR PROGRAMMING PROBLEMS MTH 125 Chapter 4

Chapter 6: Sensitivity Analysis

Solving Linear Programs using Microsoft EXCEL Solver

Linear Programming Notes V Problem Transformations

Using EXCEL Solver October, 2000

Question 2: How do you solve a linear programming problem with a graph?

Linear Programming Problems

1 Solving LPs: The Simplex Algorithm of George Dantzig

Linear Programming. March 14, 2014

Duality in Linear Programming

Sensitivity Analysis with Excel

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

EXCEL SOLVER TUTORIAL

LS.6 Solution Matrices

Nonlinear Programming Methods.S2 Quadratic Programming

Using Excel s Solver

Standard Form of a Linear Programming Problem

information available. There is a tremendous amount of sensitivity information, or information

MEETINGONE ONLINE ACCOUNT MANAGEMENT PORTAL ACCOUNT ADMIN USER GUIDE

Notes on Excel Forecasting Tools. Data Table, Scenario Manager, Goal Seek, & Solver

Linear programming. Learning objectives. Theory in action

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

Images of Microsoft Excel dialog boxes Microsoft. All rights reserved. This content is excluded from our Creative Commons license.

Chapter 5. Linear Inequalities and Linear Programming. Linear Programming in Two Dimensions: A Geometric Approach

OPRE 6201 : 2. Simplex Method

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

Linear Programming in Matrix Form

Linear Programming Sensitivity Analysis

Linear Programming Refining Transportation

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Simple Regression Theory II 2010 Samuel L. Baker

3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

Linear functions Increasing Linear Functions. Decreasing Linear Functions

Lecture 2: August 29. Linear Programming (part I)

Linear Programming: Theory and Applications

To give it a definition, an implicit function of x and y is simply any relationship that takes the form:

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

Solving Linear Programs

Using CPLEX. =5 has objective value 150.

Managing Your Class. Managing Users

Airport Planning and Design. Excel Solver

Linear Programming Supplement E

Polynomial and Rational Functions

Excel Modeling Practice. The Svelte Glove Problem Step-by-Step With Instructions

Practical Guide to the Simplex Method of Linear Programming

Project and Production Management Prof. Arun Kanda Department of Mechanical Engineering, Indian Institute of Technology, Delhi

Everyday Excel Stuff Excel Day Planner Organizer Reference Guide

Solution Key Average = Range 9 to 25. BOSTON COLLEGE GRADUATE SCHOOL OF MANAGEMENT Operations and Strategic Management Department

Analyzing calorimetry data using pivot tables in Excel

Prot Maximization and Cost Minimization

Chapter 13: Binary and Mixed-Integer Programming

Linear Programming. April 12, 2005

Solving simultaneous equations using the inverse matrix

Question 2: How do you solve a matrix equation using the matrix inverse?

February 2013 Copyright 2013 by CTB McGraw-Hill Education. 1

Mathematical finance and linear programming (optimization)

Equations, Lenses and Fractions

8.1. Cramer s Rule for Solving Simultaneous Linear Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

LECTURE: INTRO TO LINEAR PROGRAMMING AND THE SIMPLEX METHOD, KEVIN ROSS MARCH 31, 2005

Question 2: How will changes in the objective function s coefficients change the optimal solution?

LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS. 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

Factoring Trinomials of the Form x 2 bx c

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

GENERALIZED INTEGER PROGRAMMING

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

1.4 Compound Inequalities

Because the slope is, a slope of 5 would mean that for every 1cm increase in diameter, the circumference would increase by 5cm.

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

4 UNIT FOUR: Transportation and Assignment problems

Chapter 2 Solving Linear Programs

Microsoft Word 2011: Create a Table of Contents

Graphing Parabolas With Microsoft Excel

Chapter 2: Introduction to Linear Programming

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

What is Linear Programming?

2: Entering Data. Open SPSS and follow along as your read this description.

ACCELERATION DUE TO GRAVITY

MULTIPLICATION AND DIVISION OF REAL NUMBERS In this section we will complete the study of the four basic operations with real numbers.

Determine If An Equation Represents a Function

Business Portal for Microsoft Dynamics GP. Key Performance Indicators Release 10.0

LINES AND PLANES CHRIS JOHNSON

The Benefits of USB Flash Drives

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Transcription:

15.053/8 February 26, 2013 Sensitivity analysis and shadow prices special thanks to Ella, Cathy, McGraph, Nooz, Stan and Tom 1

Quotes of the Day If the facts don't fit the theory, change the facts. -- Albert Einstein (attributed) What's the use of a good quotation if you can't change it? -- Doctor Who What s the use of a good quotation if you can t change it, and then claim credit for it? -- Professor Orlin 2

We re going to help with technical details. It s great to have the whole gang help with a lecture. And we will give some pointers on how this can be used in practice. This lecture is about sensitivity analysis. What happens to the optimal solution value if one number in the data is changed? I m going to ask insightful questions. I m going to be cute and sensitive. 3

MIT Computer Corporation (mc 2 ) motto: transforming Mass., energizing the world The following is a fictional case. It is based on the DEC case, developed by Rob Freund and Brian Shannahan in 1988. It demonstrates the use of linear programming for planning the ramping of new computer hardware. 4

Background MIT Computer Corp (mc 2 ) announced a new family of tablet computers and e-readers in the second quarter of 2010. Shipments began in the 3 rd quarter of 2010. The tablet computers and e-readers had the following code names: Aardvark. A high-end, general purpose tablet computer, with touch screen and with large memory disk space. Bison. A medium-end, general purpose tablet computer with touch screen Cougar. A general purpose tablet computer requiring a tablet pen Deer. A high-end e-reader with many additional functionalities Emu. An e-reader. The Aardvark required newly developed high speed memory, which was in limited supply. All of the Bisons, half of the Deers, and 20% of the Aardvarks required a new type of disk drive, which was in limited supply. 5

High Cap Mem. Chips Low Cap Mem. Chips Avg. # of new disk drives List Price (in $1000s) A B C D E Amount (in 1000s) 2 0 0 0 0 40 0 2 2 2 1 240.2 1 0.5 0 20 1.2.8.6.6.3 Item Demand (in 1000s) A 18 C 3 Tablets 38 e-readers 32 6

A Number of Aardvarks manufactured (in 1000s) B Number of Bisons manufactured (in 1000s) C, D, E Max 1.2 A +.8 B +.6 C +.6 D +.3 E s.t 2 A 40 2 B + 2 C + 2 D + E 240.2 A + B +.5 D 20 A 18 C 3 A + B + C 38 D + E 32 A, B, C, D, E 0 7

Original Spreadsheet: the solution A B C D E Decision Variables 18 16.4 3 0 32 Profit $46.12 in $ millions Constraints High Cap Memory 36 40 Low Cap Memory 70.8 240 New Drives 20 20 binding Max for A 18 18 binding Max for C 3 3 binding Max for tablets 37.4 38 Max for e-readers 32 32 binding 8

General rule: if there are small changes in the data, the optimal set of basic variables does not change. A B C D E S1 S2 S3 S4 S5 S6 S7 RHS 1.2 0.8 0.6 0.6 0.3 0 2 0 0 0 0 1 40 0 2 2 2 1 1 240 0.2 1 0 0.5 0 1 20 1 0 0 0 0 1 18 0 0 1 0 0 1 3 1 1 1 0 0 1 38 0 0 0 1 1 1 32 First tableau A B C D E S1 S2 S3 S4 S5 S6 S7 RHS -0.1-0.8-1.04-0.6-0.3-46.12 1 0 0 1 0 0 18 1 0.5 1-0.2 0 0 16.4 1 0 0 0 1 0 3 1 1 0 0 0 1 32 0 1 0-2 0 0 4 0 1-2 0.4-2 -1 169.2-0.5-1 -0.8-1 1 0 0.6 Optimal and final tableau 9

The structure of the solution stays the same with small changes of data The basic feasible solution is obtained by solving linear systems of equations. With small changes in data, we solve almost the same system. If the RHS changes, the solution and the optimal objective change linearly. If the cost coefficients change, the optimal solution stays the same. The sensitivity report puts lots of this information in a useful format. 10

Sensitivity Report (SR) Part 1 Name Final Value Reduced Cost Objective Coef Increase Decrease A 18 0 1.2 1.00E+30 1.04 B 16.4 0 0.8 5.2 0.2 C 3 0 0.6 1.00E+30 0.6 D 0-0.1 0.6 0.1 1.00E+30 E 32 0 0.3 1.00E+30 0.1 11

Sensitivity Report (SR) Part 2 Final Value Shadow Price Constraint R.H. Side Increase Decrease Name High Cap Memory 36 0 40 1.00E+30 4 Low Cap Memory 70.8 0 240 1.00E+30 169.2 New Drives 20 0.8 20 0.6 16.4 Max for A 18 1.04 18 0.75 18 Max for C 3 0.6 3 0.6 3 Max for tablets 37.4 0 38 1.00E+30 0.6 Max for e-readers 32 0.3 32 169.2 32 12

What is the optimal solution? The optimal solution is in the original spreadsheet. A B C D E Decision Variables 18 16.4 3 0 32 Profit $46.12 in $ millions It is also in SR part 1, in the column labeled final value. Note: the SR report does not have the profit. 13

Troubleshooting tip #1 If you see Lagrange multiplier instead of shadow price in the SR, it is because you forgot to click on simplex as the solver, or you forgot to click on assume linear mode in the former version of Excel. Shadow Price 0 0 0.8 1.04 0.6 0 0.3 Lagrange Multiplier 0 0 0.8 1.04 0.6 0 0.3 14

Changes that we will consider 1. Change the cost coefficient of a variable 2. Change the RHS of a constraint Changing the initial conditions Purchasing resources at a cost 3. Introducing a new product Reduced costs 15

Why do we need to use a report? Can t we just solve the problem many times using Solver? Solving the problem multiple times is OK for small spreadsheets, but there are advantages of understanding the SR. The SR is a compact way of storing information. LP Solvers generate lots of useful information with a single report. Solving multiple times is not practical if there are 1000s of constraints. In addition, it is needed to understand LP theory. Tom Cathy Finally, it will be on the first midterm. 16

And why aren t we considering changes in the rest of the data, such as the coefficients that make up the LHS of constraints? The SR reports can be used to investigate changes in these coefficients for nonbasic variables, but not for basic variables. I ll try to explain this once we know about reduced costs. Tom Cathy 17

Changing the cost coefficient of a basic variable mc 2 is uncertain as to whether the Aardvark is priced to high. They are considering lowering the price from $1200 to $1000. What will be the impact on the total revenue? In practice, lowering the price should result in an increase in demand. But here we assume demand is unchanged. In this sensitivity analysis, we change only one number in the data at a time, and assume all other data is unchanged. 18

The analysis For very small changes in the cost coefficients, the optimal solution is unchanged. Check the allowable increase and decrease of the cost coefficient to see if the solution changes. If the optimal solution is unchanged, then you can compute the new objective value. Name Final Value Reduced Cost Objective Coef Increase Decrease A 18 0 1.2 1.00E+30 1.04 19

QUESTION FOR STUDENTS Suppose that the list price of the Aardvark is changed from $1,200 to $11,200. What is the best answer below? 1. The sensitivity report says that the optimal solution will not change. 2. The objective value will increase by $180 million. 3. The model becomes very inaccurate since it assumes that demand for Aardvarks does not change. 4. All of the above. 20

Currently, there are no Deer being produced. What would be the list price at which deer would be produced? Name Final Value Reduced Cost Objective Coef Increase Decrease D 0-0.1 0.6 0.1 1.00E+30 1. $100 2. $500 3. $700 4. Deer would never be produced 21

I noticed that the reduced cost is the negative of allowable increase for D. Is that a coincidence? Tom, that is not a coincidence. We ll return to that later when we discuss reduced costs. Tom Cathy 22

Changing the RHS of a constraint mc 2 expects to receive 20,000 new drives. However, the drives are manufactured in a country experiencing labor strikes. What would be the impact on the optimal solution value if only 15,000 new drives were available? We want to find out how the optimal plan would change if the number of drives were 15,000. If we learned about labor strikes after starting to implement a plan, things would be far worse since it is costly to change a plan after it is implemented. 23

Shadow Prices Definition: The shadow price of a constraint of a linear program is the increase in the optimal objective value per unit increase in the RHS of the constraint. VERY IMPORTANT: The Shadow Price of the i-th constraint is ONLY valid within the RHS range of the i-th constraint. Name Final Value Shadow Price Constraint R.H. Side Increase Decrease New Drives 20 0.8 20 0.6 16.4 24

On the shadow price for new drives Name Final Value Shadow Price Constraint R.H. Side Increase Decrease New Drives 20 0.8 20 0.6 16.4 Shadow Price =.8 Shadow Price is valid if the RHS number ND of new drives satisfies: 3.6 ND 20.6 Nooz The SR report tells how the objective value changes, but does not say what the new solution is. It also doesn t tell you what happens if the RHS change is not in the allowable range. 25

Question. What is the increase in the optimal objective value if the number of disk drives is reduced to 15,000? 1. It cannot be determined from the data 2. $4,000 3. -$4,000 4. $4,000,000 5. -$4,000,000 6. $12,000,000 26

On the demand for tablet computers The total demand for tablets (A, B, C) is currently 38,000. What would be the value of increasing the demand to 40,000, possibly via a marketing campaign? Final Value Shadow Price Constraint R.H. Side Increase Decrease Name Max for tablets 37.4 0 38 1.00E+30 0.6 If an inequality constraint does not hold with equality in the optimum solution, the constraint is non-binding. The shadow price of each non-binding constraint is 0. 27

Question: mc 2 is considering an advertizing campaign that will increase the demand of Aardvarks to 18,500. The cost of the campaign is $400,000. Is it worthwhile? Name Final Value Shadow Price Constraint R.H. Side Increase Decrease Max for A 18 1.04 18 0.75 18 1. Yes 2. No 3. Cannot be determined from the available data. 28

Question: mc 2 is considering an advertizing campaign that will increase the demand of Aardvarks to 20,000. The cost of the campaign is $1,000,000. Is it worthwhile? Name Final Value Shadow Price Constraint R.H. Side Increase Decrease Max for A 18 1.04 18 0.75 18 1. Yes 2. No 3. Cannot be determined from the available data. 29

The real change in Z as the bound on A increases 48.5 48 47.5 Slope is 0 47 46.5 46 18 19 20 21 22 30

Midclass Break 31

Simultaneous Changes in the RHS One of the forecasters at mc 2 is pessimistic about the demand forecasts. One can t rely on the demand for A and C to be as high as predicted. It is much safer to use estimates of 15 and 2. What will be the impact on the optimum objective value if the maximum value of A is reduced to 15 and the maximum value of C is reduced to 2? Name Final Value Shadow Price Constraint R.H. Side Increase Decrease Max for A 18 1.04 18 0.75 18 Max for C 3 0.6 3 0.6 3 32

I know this one. There is not enough information to know. Tom, it turns out that there is a rule that I haven t mentioned yet. It s called the 100% rule. And it will help answer the question about changes of demand. Tom Ella 33

A rule for two changes in RHS Name Shadow Price R.H.S Increase Decrease Max for A 1.04 18 0.75 18 Max for C 0.6 3 0.6 3 C A (-18,0) (0,.6) The red dots are permissible changes. So is the region in yellow. (0,-3)

The 100% for two changes in RHS Name Shadow Price R.H.S Increase Decrease Max for A 1.04 18 0.75 18 Max for C 0.6 3 0.6 3 100% allowable increase of C 100% allowable decrease of A 100% allowable increase of A The red dots are permissible changes. 100% allowable decrease of C 35

The 100% rule illustrated C increase -18 A decrease Points satisfying the 100% rule.6.75 A increase The red dots are permissible changes. -3 C decrease 36

The actual increases in A and C so that the basis does not change. C increase -18 A decrease Points satisfying Points the at which 100% rule the shadow prices remain valid.6.75 A increase The red dots are permissible changes. -3 C decrease 37

The 100% rule For each RHS that changes, compute the amount of change divided by the total allowable change. Add up these fractions. If the total value is less than 1, then the shadow prices are valid. Shadow Name Price R.H.S Increase Decrease Max for A 1.04 18 0.75 18 Proposed Decrease proposed /allowable 3 1/6 Max for C 0.6 3 0.6 3 You can learn more about the 100% rule in Section 3.7 of AMP. 1 1/3 Total 1/2 Objective increases by -3 1.04 + -1.6 = -3.72 Revenue decreases by $3.72 million 38

Question. Suppose that the Maximum for A Decreased by 1000 (to 17,000), and the Maximum for C increased by 500 (to 3500). What would be the increase in the optimum revenue? Name Shadow Price R.H.S Increase Decrease Max for A 1.04 18 0.75 18 Max for C 0.6 3 0.6 3 1. It cannot be determined from the data 2. - $.74 million 3. $1.34 million 4. -$1.34 million 39

Name Final Value Reduced Cost Objective Coef Increase Decrease D 0-0.1 0.6 0.1 1.00E+30 E 32 0 0.3 1.00E+30 0.1 I m ready to hear about reduced costs. What are they? There are several equivalent definitions. If you understand reduced costs you really understand linear programming. 40

Name Final Value Reduced Cost Objective Coef Increase Decrease D 0-0.1 0.6 0.1 1.00E+30 E 32 0 0.3 1.00E+30 0.1 Definition 1. The reduced cost for a variable is the shadow price for the nonnegativity constraint. If we change the constraint D 0 to D 1 the objective increases by -0.1 If we change the constraint E 0 to E 1 the objective increases by 0. 41

Name Final Value Reduced Cost Objective Coef Increase Decrease D 0-0.1 0.6 0.1 1.00E+30 E 32 0 0.3 1.00E+30 0.1 Although the reduced cost is a kind of shadow price, the allowable increase column refers to the change that can be made in the cost while keeping the same solution optimal. If we increase the profit of D by less than.1, the same solution stays optimal. If we increase it by more than.1, then the solution will change. In this case, D will be positive in the new optimal solution. 42

-z A B C D E 1 0 0 0-0.1 0 The objective row of the final tableau. The second definition is that the reduced cost is the objective value coefficient of a variable in the final and optimal tableau. Wow. I am dumbfounded by the interconnections. 43

Reduced costs are the costs in the z-row. Basic Var -z x 1 x 2 x 3 x 4 x 5 RHS -z 1 0-2 0 0 6 = -11 x 3 0 0 2 1 0 2 = 4 x 4 0 0-1 0 1-2 = 1 x 1 0 1 6 0 0 3 = 9 The reduced costs in the S.A. refer to the optimal reduced costs (those of the optimal tableau). Basic Var -z x 1 x 2 x 3 x 4 x 5 RHS -z 1 0-8 -3 0 0 = -23 15.053 x 5 0 0 1 0.5 0 1 = 2 x 4 0 0 1 1 1 0 = 5 x 1 0 1 3-1.5 0 0 = 3 44

-z A B C D E 1 0 0 0-0.1 0 The objective row of the final tableau. The third definition is that the reduced cost is the objective coefficient obtained after pricing out the constraints. Wow! I have no clue what you are talking about. 45

Pricing Out Reduced cost of D = original objective value minus the sumproduct of the RHS and the constraint coefficients for the variable. D E Shadow Price Pricing out D Pricing out E obj. 0.6 0.3.6.3 0 0 0-0 0-0 0 2 1 0-2 0-1 0 0.5 0 0.8 -.5.8-0.8 0 0 1.04-0 1.04-0 1.04 0 0 0.6-0.6-0.6 0 0 0-0 0-0 0 1 1 0.3-1.3-1.3 red. cost -.1 0 = -.1 = 0 46

Pricing Out the Constraints Shadow Price Pricing out A Pricing out B A B obj. 1.2 0.8 2 0 0-0 - 0 0 2 0-0 - 0 0.2 1 0.8 -.8 -.8 1 0 1.04-1.04-1.04 0 0 0.6 -.6 -.6 1 1 0-0 - 0 0 0 0.3 -.3 -.3 red. cost = = 47

Pricing Out a new Variable Shadow Price Pricing out F F.65 0 0-0 2 0-0 0.4 0.8 -.8 0 1.04-1.04 0 0.6 -.6 0 0-0 1 0.3 -.3 = Suppose that a new e- reader is introduced, codenamed the fox. F uses 2 low capacity memory chips and has.4 new hard drives on average. It lists for $650. Is it profitable to produce F? 48

Summary Shadow Prices Ranges Reduced costs Pricing out 49

MIT OpenCourseWare http://ocw.mit.edu 15.053 Optimization Methods in Management Science Spring 2013 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.