Linear Programming Sensitivity Analysis



Similar documents
Introduction to Linear Programming (LP) Mathematical Programming (MP) Concept

4.6 Linear Programming duality

Solving Linear Programs in Excel

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

Linear Programming Notes V Problem Transformations

Sensitivity Analysis with Excel

Linear Programming Notes VII Sensitivity Analysis

3.1 Solving Systems Using Tables and Graphs

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

Sensitivity Report in Excel

Linear Programming. Solving LP Models Using MS Excel, 18

Chapter 2 Solving Linear Programs

Tutorial: Using Excel for Linear Optimization Problems

Solving Linear Programs using Microsoft EXCEL Solver

Several Views of Support Vector Machines

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

Using EXCEL Solver October, 2000

Discrete Optimization

Mathematical finance and linear programming (optimization)

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

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

Linear Programming. March 14, 2014

Proximal mapping via network optimization

Duality in General Programs. Ryan Tibshirani Convex Optimization /36-725

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

Special Situations in the Simplex Algorithm

Duality in Linear Programming

Linear Programming. April 12, 2005

24. The Branch and Bound Method

5 INTEGER LINEAR PROGRAMMING (ILP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

Chapter 4. Duality. 4.1 A Graphical Example

EXCEL SOLVER TUTORIAL

Airport Planning and Design. Excel Solver

Support Vector Machines Explained

Chapter 6: Sensitivity Analysis

Optimization: Optimal Pricing with Elasticity

Solving Linear Programs

Support Vector Machines

Linear Programming in Matrix Form

26 Linear Programming

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

56:171 Operations Research Midterm Exam Solutions Fall 2001

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Nonlinear Optimization: Algorithms 3: Interior-point methods

Walrasian Demand. u(x) where B(p, w) = {x R n + : p x w}.

Integrating Benders decomposition within Constraint Programming

International Doctoral School Algorithmic Decision Theory: MCDA and MOO

Basic Components of an LP:

Tutorial: Operations Research in Constraint Programming

Linear Programming Supplement E

Constrained optimization.

SENSITIVITY ANALYSIS AS A MANAGERIAL DECISION

5 Systems of Equations

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

Problema 1. x 2. 4 Optimal Solution. x 1 = 3, x 2 = 1.5 (3,1.5) x 1 (0,0) (4,0) Optimal Solution x 1 = 0, x 2 = 3. Value of Objective Function = 18

Support Vector Machine (SVM)

Nonlinear Programming Methods.S2 Quadratic Programming

15.053/8 February 26, 2013

Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

What is Linear Programming?

Linear Programming I

Simplex method summary

Big Data - Lecture 1 Optimization reminders

Modeling and solving linear programming with R. Jose M Sallan Oriol Lordan Vicenc Fernandez

Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization

Multiple Optimization Using the JMP Statistical Software Kodak Research Conference May 9, 2005

Issues in Information Systems Volume 14, Issue 2, pp , 2013

Special cases in Transportation Problems

Optimization Modeling for Mining Engineers

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

Using CPLEX. =5 has objective value 150.

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

Introduction to Support Vector Machines. Colin Campbell, Bristol University

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

Definition Given a graph G on n vertices, we define the following quantities:

Using Excel s Solver

1 Solving LPs: The Simplex Algorithm of George Dantzig

Nonlinear Algebraic Equations Example

2.3 Convex Constrained Optimization Problems

Long-Run Average Cost. Econ 410: Micro Theory. Long-Run Average Cost. Long-Run Average Cost. Economies of Scale & Scope Minimizing Cost Mathematically

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

A Simple Introduction to Support Vector Machines

3.4 Statistical inference for 2 populations based on two samples

15 Kuhn -Tucker conditions

Cost Minimization and the Cost Function

OPRE 6201 : 2. Simplex Method

Equilibrium computation: Part 1

Operation Research. Module 1. Module 2. Unit 1. Unit 2. Unit 3. Unit 1

Solving Linear Equations in One Variable. Worked Examples

Optimal shift scheduling with a global service level constraint

A Service Design Problem for a Railway Network

Name: ID: Discussion Section:

Principles of demand management Airline yield management Determining the booking limits. » A simple problem» Stochastic gradients for general problems

AN EXPLANATION OF JOINT DIAGRAMS

The Multiplicative Weights Update method

Lecture notes on Moral Hazard, i.e. the Hidden Action Principle-Agent Model

4 UNIT FOUR: Transportation and Assignment problems

Recovery of primal solutions from dual subgradient methods for mixed binary linear programming; a branch-and-bound approach

Lecture 11: 0-1 Quadratic Program and Lower Bounds

Transcription:

Linear Programming Sensitivity Analysis Massachusetts Institute of Technology LP Sensitivity Analysis Slide 1 of 22 Sensitivity Analysis Rationale Shadow Prices Definition Use Sign Range of Validity Opportunity Costs Definition Use Massachusetts Institute of Technology LP Sensitivity Analysis Slide 2 of 22 1

Rationale for Sensitivity Analysis Math problem is an approximation optimum is an approximation we need to check Constraints often artificial Designer should question them Should we have different specifications? Situations always probabilistic Prices change Need to assess risk Massachusetts Institute of Technology LP Sensitivity Analysis Slide 3 of 22 Shadow Price Definition Recall from Constrained Optimization: Shadow price = δ (objective function)/ δ (constraint) at the optimum Complementary Slackness: Either (Slack variable) or (shadow price) = 0 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 4 of 22 2

Shadow Price Illustration Max: Y = X 1 + 4X 2 s.t. X 1 + X 2 < 5 = b 1 X 1 > 3 = b 2 X 2 < 3 = b 3 X 1, X 2 > 0 X1 + X2 < 7 X1 + X2 < 6 Notes: a) X 1 * = 3; X 2 * = 2; Y* = 11 b) when b 1 = +1 X 1 * = 0 ; X 2 * = +1 Y*= +4 ; SP 1 = 4 c) SP 3 * = 0; slack 3 = 1 d) when b 1 > 6 slack 3 = 0; SP 3 0; SP 1 = 1 < 4 Proactive Use of Shadow Prices Identify constraints with high S.P See if they can be changed for better solutions Example: New York water supply Original Design for Third City Tunnel ($1 billion plus) pressure < 40 psi at curb (some point in Brooklyn) No allowance for local tanks, pumps Shadow price in millions of dollars! Massachusetts Institute of Technology LP Sensitivity Analysis Slide 6 of 22 3

Reactive Use of Shadow Prices Respond to new opportunities Example: client changes specifications Respond to proposals for new constraints Example: trace chemicals Massachusetts Institute of Technology LP Sensitivity Analysis Slide 7 of 22 Sign of Shadow Prices "Obvious Rule" (+SP with + b) not correct Correct Reasoning: What makes the optimum better? Expansion of feasible region => "Relaxation of constraints" What changes will increase the feasible region? Increase upper bound Σ j a ij X j < b i Decrease lower bound Σ k a kj X j > b k i.e., "Raise the roof, lower the floor." Massachusetts Institute of Technology LP Sensitivity Analysis Slide 8 of 22 4

Shadow Price Illustration Max: Y = X 1 + 4X 2 s.t. X 1 + X 2 < 5 = b 1 X 1 > 3 = b 2 X 2 < 3 = b 3 X 1, X 2 > 0 X1 + X2 < 7 X1 + X2 < 6 Notes: a) X 1 * = 3; X 2 * = 2; Y* = 11 b) when b 1 = +1 X 1 * = 0 ; X 2 * = +1 Y*= +4 ; SP 1 = 4 c) SP 3 * = 0; slack 3 = 1 d) when b 1 > 6 slack 3 = 0; SP 3 0; SP 1 = 1 < 4 Shadow Prices As Constraints Change increase an upper bound ("raise the roof") decrease a lower bound ("lower the floor") b 2 : 3 --> 2 new X* = [2,3] new Y* = 14 DY* = 3 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 10 of 22 5

Range of Shadow Prices In Linear Programming, Shadow prices are constant Until a constraint changes enough so that a new constraint is binding Results given as: New Constraint Binding SP K = constant for r L < b K < r U Outside the range: Shadow prices decrease as constraint is relaxed Shadow prices increase as constraint is tightened High Point Direction of Change in Constraint Shadow Price Ranges for Example Max: Y = X 1 + 4X 2 s.t. X 1 + X 2 < 5 = b 1 X 1 > 3 = b 2 X 2 < 3 = b 3 X 1, X 2 > 0 X1 + X2 < 7 X1 + X2 < 6 Shadow Prices SP 1 = 4 3 < b 1 < 6 SP 2 = 3 2 < b 2 < 5 SP 3 = 0 2 < b 3 6

Opportunity Cost - Definition Objective Function = Σ c i X i Opportunity costs associated with c i -- the coefficients of design/decision variables At optimum, some decision variables = 0 These are non-optimal decision variables Opportunity cost is: Degradation of optimum per unit of non-optimal variable introduced into design A "cost" in that it is a worsening of optimum. Units may be almost anything; equal to whatever units are being optimized. Massachusetts Institute of Technology LP Sensitivity Analysis Slide 13 of 22 Meaning of Opportunity Costs Opportunity cost defines design trigger "price" The value of the coefficient of the decision variable for which that variable should be in the design Suppose: Obj.Function =... + c K X K +... and X K not optimal with an opportunity cost = OC K Then, as c K changes for the better, (greater for maximization, lesser for minimization) OC K lower OC K = 0 at c K ' = c K - OC K c K ' is trigger price; defines the limit of best design Massachusetts Institute of Technology LP Sensitivity Analysis Slide 14 of 22 7

Illustration of Opportunity Cost What happens when forced to use a non-optimal decision variable? Example: Min Cost = 2X 1 + 10X 2 + 20 X 3 s.t. X 1 + X 2 + X 3 > 3 X* = (2, 1, 0); cost* = 14 X 2 > 1 X 1, X 2, X 3 > 0 If forced to use X 3, new X* = (1,1,1); new cost* = 32 Thus: (opportunity cost) 3 = Z*/1 = 18 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 15 of 22 Use of Opportunity Cost At what price would it be desirable to use X 3? If X 3 is used with no change in its unit cost (= c 3 ), the optimal cost would increase by 18 If the cost of X 3 were to fall by an amount equal to the opportunity cost (c 3 ' = c 3 - OC 3 = 20-18 = 2). It would then compete with X 1 So the answer is: When its unit cost falls by its opportunity cost: 20-18 = 2 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 16 of 22 8

How do you find SP and OC? LP optimization programs all calculate shadow prices and opportunity costs routinely and print them out for you Sometimes, programs report this information in special ways. Thus: Shadow Prices => Shadow prices or dual decision variables Opportunity Costs => Reduced Gradient or dual slack variables More on duality later Massachusetts Institute of Technology LP Sensitivity Analysis Slide 17 of 22 A Possible Semantic Confusion Note that the Phrases shadow price and opportunity cost have somewhat different meanings in LP and Economics literature The opportunity cost of an action in economics can be interpreted as the shadow price of that action on the budget Massachusetts Institute of Technology LP Sensitivity Analysis Slide 18 of 22 9

Example for Assumptions minimize: Z = 3X 1 + 5X 2 s.t. X 1 + X 2 > 5 3X 1 + 2X 2 < 18 6X 1 + 5X 2 < 42-7X 1 + 8X 2 < 0 0 < X 1 < 4 0 < X 2 < 6 Solution: X 1 * = 4 X 2 * = 1 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 19 of 22 Example Solution from Excel Solver X(SUB1) X(SUB2) OBJ FCN 4 1 17 EXPRESSION CONSTRAINT LIMIT X1 +X2 5 >= 5 3 X1 + 2 X2 14 <= 18 6 X1 +5 X2 29 <= 42 (-7 X1) + 8 X2-20 <= 0 X1 4 >= 0 X1 4 <= 4 X2 1 >= 0 X2 1 <= 6 Massachusetts Institute of Technology LP Sensitivity Analysis Slide 20 of 22 10

Example Sensitivity Report from Excel Solver Adjustable Cells Final Reduced Cell Name Value Gradient $B$5 X(SUB1) 4 0 $C$5 0 0 $D$5 X(SUB2) 1 0 Constraints Final Lagrange Cell Name Value Multiplier $B$8 X1 +X2 CONSTRAINT 5 5 $B$9 3 X1 + 2 X2 CONSTRAINT 14 0 $B$10 6 X1 +5 X2 CONSTRAINT 29 0 $B$11 (-7 X1) + 8 X2 CONSTRAINT -20 0 $B$12 X1 CONSTRAINT 4 0 $B$13 X1 CONSTRAINT 4-2 $B$14 X2 CONSTRAINT 1 0 $B$15 X2 CONSTRAINT 1 0 => Opportunity Cost => Shadow Price Massachusetts Institute of Technology LP Sensitivity Analysis Slide 21 of 22 Summary on LP Sensitivity Analysis LP Optimization Programs automatically provide important information useful for improving/changing design Shadow prices -- to help redefine constraints Opportunity costs -- to identify critical prices Need to understand these quantities carefully Massachusetts Institute of Technology LP Sensitivity Analysis Slide 22 of 22 11