Optimization Methods. Lecture 7: Sensitivity Analysis

Similar documents
SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT. BF360 Operations Research

AM 121: Intro to Optimization Models and Methods Fall 2017

56:171 Operations Research Midterm Exam Solutions October 22, 1993

Optimization Methods in Management Science

Solution to P2 Sensitivity at the Major Electric Company

56:171 Operations Research Midterm Exam Solutions Fall 1994

56:171 Operations Research Midterm Exam Solutions October 19, 1994

y 3 z x 1 x 2 e 1 a 1 a 2 RHS 1 0 (6 M)/3 M 0 (3 5M)/3 10M/ / /3 10/ / /3 4/3

Graphical Sensitivity Analysis

February 24, 2005

Econ 172A - Slides from Lecture 7

PERT 12 Quantitative Tools (1)

56:171 Operations Research Midterm Examination Solutions PART ONE

DAKOTA FURNITURE COMPANY

Quantitative Analysis for Management Linear Programming Models:

Advanced Operations Research Prof. G. Srinivasan Dept of Management Studies Indian Institute of Technology, Madras

56:171 Operations Research Midterm Examination Solutions PART ONE

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

DM559/DM545 Linear and integer programming

56:171 Operations Research Midterm Examination October 25, 1991 PART ONE

Duality & The Dual Simplex Method & Sensitivity Analysis for Linear Programming. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

Week 6: Sensitive Analysis

Dennis L. Bricker Dept. of Industrial Engineering The University of Iowa

WAYNE STATE UNIVERSITY Department of Industrial and Manufacturing Engineering

Optimization Methods. Lecture 16: Dynamic Programming

Chapter 2 Linear programming... 2 Chapter 3 Simplex... 4 Chapter 4 Sensitivity Analysis and duality... 5 Chapter 5 Network... 8 Chapter 6 Integer

Civil Engineering Systems Analysis Lecture VI. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Optimization Methods in Management Science

36106 Managerial Decision Modeling Sensitivity Analysis

IE 495 Lecture 11. The LShaped Method. Prof. Jeff Linderoth. February 19, February 19, 2003 Stochastic Programming Lecture 11 Slide 1

56:171 Operations Research Midterm Examination October 28, 1997 PART ONE

The Assignment Problem

DUALITY AND SENSITIVITY ANALYSIS

Lecture 7: Linear programming, Dedicated Bond Portfolios

Issues. Senate (Total = 100) Senate Group 1 Y Y N N Y 32 Senate Group 2 Y Y D N D 16 Senate Group 3 N N Y Y Y 30 Senate Group 4 D Y N D Y 22

LINEAR PROGRAMMING. Homework 7

Stochastic Programming and Financial Analysis IE447. Midterm Review. Dr. Ted Ralphs

Sensitivity Analysis with Data Tables. 10% annual interest now =$110 one year later. 10% annual interest now =$121 one year later

Integer Programming Models

Allocation of Risk Capital via Intra-Firm Trading

LP OPTIMUM FOUND AT STEP 2 OBJECTIVE FUNCTION VALUE

CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization

Introduction to Operations Research

Chapter Two: Linear Programming: Model Formulation and Graphical Solution

A Game Theoretic Approach to Promotion Design in Two-Sided Platforms

CONSUMER OPTIMISATION

Sensitivity Analysis LINDO INPUT & RESULTS. Maximize 7X1 + 10X2. Subject to X1 < 500 X2 < 500 X1 + 2X2 < 960 5X1 + 6X2 < 3600 END

COMP331/557. Chapter 6: Optimisation in Finance: Cash-Flow. (Cornuejols & Tütüncü, Chapter 3)

Operations Research I: Deterministic Models

Optimization Methods in Management Science

LP Sensitivity Analysis

A Robust Option Pricing Problem

Homework #3 Supply Chain Models: Manufacturing & Warehousing (ISyE 3104) - Fall 2001 Due September 20, 2001

$B$8 B&D

Robust Optimization Applied to a Currency Portfolio

Chapter Two: Linear Programming: Model Formulation and Graphical Solution

EE/AA 578 Univ. of Washington, Fall Homework 8

Optimization in Finance

14.05 Lecture Notes. Labor Supply

Chapter Two: Linear Programming: Model Formulation and Graphical Solution

Econ 172A, W2002: Final Examination, Solutions

Final Exam (Solutions) ECON 4310, Fall 2014

14.54 International Trade Lecture 3: Preferences and Demand

Game Theory Tutorial 3 Answers

Practice Problems 1: Moral Hazard

1.2: USING ALGEBRA(meaning no calculators), find the Intersection of the two Lines.

PORTFOLIO OPTIMIZATION AND EXPECTED SHORTFALL MINIMIZATION FROM HISTORICAL DATA

Interior-Point Algorithm for CLP II. yyye

Handout 4: Deterministic Systems and the Shortest Path Problem

Firm s demand for the input. Supply of the input = price of the input.

What can we do with numerical optimization?

Lecture 3. Understanding the optimizer sensitivity report 4 Shadow (or dual) prices 4 Right hand side ranges 4 Objective coefficient ranges

Lecture 2. (1) Permanent Income Hypothesis. (2) Precautionary Savings. Erick Sager. September 21, 2015

14.54 International Trade Lecture 12: Specific Factors Model (II)

Optimization for Chemical Engineers, 4G3. Written midterm, 23 February 2015

Lecture Notes 1

Operations Research I: Deterministic Models

Marginal Analysis Outline

Math 140 Exam II Review

Scenario reduction and scenario tree construction for power management problems

Equity correlations implied by index options: estimation and model uncertainty analysis

Financial Optimization ISE 347/447. Lecture 15. Dr. Ted Ralphs

The Ramsey Model. Lectures 11 to 14. Topics in Macroeconomics. November 10, 11, 24 & 25, 2008

Approximate Dynamic Programming for a Spare Parts Problem: The Challenge of Rare Events

Linear Programming: Simplex Method

Linear Programming: Sensitivity Analysis and Interpretation of Solution

Midterm 2 Example Questions

17. Forestry Applications of Linear Programming

Worst-case-expectation approach to optimization under uncertainty

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

The Correlation Smile Recovery

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #24 Scribe: Jordan Ash May 1, 2014

3.3 - One More Example...

Outline for today. Stat155 Game Theory Lecture 19: Price of anarchy. Cooperative games. Price of anarchy. Price of anarchy

Online Appendix: Extensions

Performance Measurement and Best Practice Benchmarking of Mutual Funds:

Discussion of Financial Networks and Contagion Elliott, Golub, and Jackson (2013)

14.02 Principles of Macroeconomics Solutions to Problem Set # 2

Optimization Methods in Finance

Chapter 2: Economists View of Behavior

Transcription:

5.093 Optimization Methods Lecture 7: Sensitivity Analysis

Motivation. Questions z = min s.t. c x Ax = b Slide How does z depend globally on c? on b? How does z change locally if either b, c, A change? How does z change if we add new constraints, introduce new variables? Importance: Insight about LO and practical relevance 2 Outline. Global sensitivity analysis Slide 2 2. Local sensitivity analysis (a) Changes in b (b) Changes in c (c) A new variable is added (d) A new constraint is added (e) Changes in A 3. Detailed example 3 Global sensitivity analysis 3. Dependence on c G(c) = min s.t. c x Ax = b i G(c) = min i=,...,n c x is a concave function of c 3.2 Dependence on b Primal F(b) = min c x s.t. Ax = b Dual F(b) = max i=,...,n (p i ) b is a convex function of b F(b) = max p b s.t. p A c Slide 3 Slide 4

( c + q d) ' ( x 3 ) ( c + q d) '( x 2) ( c + q d) ' ( x )... 4 ( c + q d) ' ( x ) x optimal x 2 optimal x 3 optimal x 4 optimal q f ( q ) ( p ) '( b * + q d) ( p 2 ) '( b * + q d) ( p 3 ) '( b * + q d) q q 2 q 2

4 Local sensitivity analysis z = min s.t. c x Ax = b What does it mean that a basis B is optimal? Slide 5. Feasibility conditions: B b 0 2. Optimality conditions: c c B B A 0 Suppose that there is a change in either b or c for example Slide 6 How do we find whether B is still optimal? Need to check whether the feasibility and optimality conditions are satis fied 5 Local sensitivity analysis 5. Changes in b b i becomes b i + Δ, i.e. (P) min c x (P ) min c x s.t. Ax = b s.t. Ax = b + Δe i Slide 7 B optimal basis for (P) Is B optimal for (P )? Need to check: Slide 8. Feasibility: B (b + Δe i ) 0 2. Optimality: c c B B A 0 Observations:. Changes in b affect feasibility 2. Optimality conditions are not affected B (b + Δe i ) 0 β ij = [B ] ij b j = [B b] j Thus, (B b) j + Δ(B e i ) j 0 b j + Δβ ji 0 Slide 9 3

( ) ( ) b j b j max Δ min β ji >0 β ji β ji <0 β ji Slide 0 Δ Δ Δ Within this range Current basis B is optimal z = c B B (b + Δe i ) = c B B b + Δp i What if Δ = Δ? What if Δ > Δ? Current solution is infeasible, but satisfies optimality conditions use dual simplex method 5.2 Changes in c c j c j + Δ Is current basis B optimal? Need to check: Slide. Feasibility: B b 0, unaffected 2. Optimality: c c B B A 0, affected There are two cases: x j basic x j nonbasic 5.2. x j nonbasic c B unaffected (c j + Δ) c B B A j 0 c j + Δ 0 Solution optimal if Δ c j What if Δ = c j? What if Δ < c j? Slide 2 4

5.2.2 x j basic Slide 3 c B ĉ B = c B + Δe j Then, [c ĉ B B A] i 0 c i [c B + Δe j ] B A i 0 [B A] ji = a ji ci ci c i Δa ji 0 max Δ min a ji <0 a ji What if Δ is outside this range? use primal simplex 5.3 A new variable is added a ji >0 a ji min c x min c x + c n+ x n+ s.t. Ax = b s.t. Ax + A n+ x n+ = b Slide 4 In the new problem is x n+ = 0 or x n+ > 0? (i.e., is the new activity profitable?) Slide 5 Current basis B. Is solution x = B b, x n+ = 0 optimal? Feasibility conditions are satisfied Optimality conditions: c n+ c B B A n+ 0 c n+ p A n+ 0? If yes, solution x = B b, x n+ = 0 optimal Otherwise, use primal simplex 5.4 A new constraint is added min c x min c x s.t. Ax = b s.t. Ax = b a m+ x = b m+ If current solution feasible, it is optimal; otherwise, apply dual simplex Slide 6 5

5.5 Changes in A Suppose a ij a ij + Δ Slide 7 Assume A j does not belong in the basis Feasibility conditions: B b 0, unaffected Optimality conditions: c l c B B A l 0, l = j, unaffected Optimality condition: c j p (A j + Δe i ) 0 c j Δp i 0 What if A j is basic? BT, Exer. 5.3 6 Example 6. A Furniture company A furniture company makes desks, tables, chairs Slide 8 The production requires wood, finishing labor, carpentry labor Profit 60 Wood (ft) 8 Finish hrs. 4 Carpentry hrs. 2 Desk Table (ft) Chair Avail. 30 6 2.5 20.5 0.5-48 20 8 6.2 Formulation Decision variables: x = # desks, x 2 = # tables, x 3 = # chairs Slide 9 max 60x + 30x 2 + 20x 3 s.t. 8x + 6x 2 + x 3 4x + 2x 2 +.5x 3 2x +.5x 2 + 0.5x 3 x, x 2, x 3 48 20 8 0 6.3 Simplex tableaus Initial tableau: s = s 2 = s 2 = 0 48 20 8 s s 2 s 3 0 0 0 x -60 8 4 2 x 2-30 6 2.5 x 3-20.5 0.5 Slide 20 6

Final tableau: s = x 3 = x = s s 2 s 3 x x 2 x 3 280 0 0 0 0 5 0 24 2-8 0-2 0 8 0 2-4 0-2 2 0-0.5.5.25 0 6.4 Information in tableaus What is B? 8 B = 0.5 4 0 0.5 2 What is B? 2 8 B = 0 2 4 0 0.5.5 What is the optimal solution? What is the optimal solution value? Is it a bit surprising? What is the optimal dual solution? What is the shadow price of the wood constraint? What is the shadow price of the finishing hours constraint? What is the reduced cost for x 2? 6.5 Shadow prices Why the dual price of the finishing hours constraint is 0? Slide 2 Slide 22 Slide 23 Suppose that finishing hours become 2 (from 20). Currently only desks (x ) and chairs (x 3 ) are produced Finishing and carpentry hours constraints are tight Does this change leaves current basis optimal? New Previous 8x + x 3 + s = 48 s = 26 24 New solution: 4x +.5x 3 = 2 x =.5 2 2x + 0.5x 3 = 8 x 3 = 0 8 Solution change: z z = (60.5 + 20 0) (60 2 + 20 8) = 0 Slide 24 Slide 25 7

Suppose you can hire h of finishing overtime at $7. Would you do it? Another check 2 8 c B B = (0, 20, 60) 0 2 4 = 0 0.5.5 (0, 0, 0) 6.6 Reduced costs What does it mean that the reduced cost for x 2 is 5? Slide 26 Suppose you are forced to produce x 2 = ( table) How much will the profit decrease? 8x + x 3 + s + 6 = 48 s = 26 4x +.5x 3 + 2 = 20 x = 0.75 2x + 0.5x 3 +.5 = 8 x 3 = 0 z z = (60 0.75 + 20 0) (60 2 + 20 8 + 30 ) = 35 + 30 = 5 Slide 27 Another way to calculate the same thing: If x 2 = Direct profit from table +30 Decrease wood by -6 6 0 = 0 Decrease finishing hours by -2 2 0 = 20 Decrease carpentry hours by -.5.5 0 = 5 Total Effect 5 Suppose profit from tables increases from $30 to $34. Should it be produced? At $35? At $36? 6.7 Cost ranges Suppose profit from desks becomes 60 + Δ. For what values of Δ does current basis remain optimal? Optimality conditions: c j c B B A j 0 [ 2 ] 8 p = c B B = [0, 20, (60 + Δ)] 0 2 4 0 0.5.5 s, x 3, x are basic Reduced costs of non-basic variables = [0, 0 0.5Δ, 0 +.5Δ] Slide 28 Slide 29 8

6 c 2 = c 2 p A 2 = 30 + [0, 0 0.5Δ, 0 +.5Δ] 2 = 5 +.25Δ.5 c s2 = 0 0.5Δ c s3 = 0 +.5Δ Current basis optimal: 5 +.25Δ 0 0 0.5Δ 0 4 Δ 20 0 +.5Δ 0 56 c 80 solution remains optimal. If c < 56, or c > 80 current basis is not optimal. Suppose c = 00(Δ = 40) What would you do? 6.8 Rhs ranges Slide 30 Suppose finishing hours change by Δ becoming (20 + Δ) What happens? 48 2 8 48 B 20 + Δ = 0 2 4 20 + Δ 8 0 0.5.5 8 24 + 2Δ = 8 + 2Δ 0 2 0.5Δ 4 Δ 4 current basis optimal Slide 3 Note that even if current basis is optimal, optimal solution variables change: s = 24 + 2Δ x 3 = 8 + 2Δ x = 2 0.5Δ z = 60(2 0.5Δ) + 20(8 + 2Δ) = 280 + 0Δ Suppose Δ = 0 then s 44 x 3 = 25 inf. (Use dual simplex) x 3 6.9 New activity Suppose the company has the opportunity to produce stools Profit $5; requires ft of wood, finishing hour, carpentry hour Should the company produce stools? Slide 32 Slide 33 max 60x +30x 2 +20x 3 +5x 4 8x +6x 2 +x 3 +x 4 +s = 48 4x +2x 2 +.5x 3 +x 4 +s 2 = 20 2x +.5x 2 +0.5x 3 +x 4 +s 3 = 8 x i 0 9

( ) c 4 c B B A 4 = 5 (0, 0, 0) = 5 0 Current basis still optimal. Do not produce stools 0

MIT OpenCourseWare http://ocw.mit.edu 5.093J / 6.255J Optimization Methods Fall 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.