mcgraw-hill/irwin © the mcgraw-hill companies, inc., 2008 5.1 table of contents chapter 5 (what-if...

43
© The McGraw-Hill Companies, Inc., 2008 5.1 McGraw-Hill/Irwin Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor Case Study (Section 5.2) 5.2 Changes in One Objective Function Coefficient (Section 5.3)5.3–5.9 Simultaneous Changes in Objective Function Coefficients (Section 5.4) 5.10–5.17 Single Changes in a Constraint (Section 5.5) 5.18–5.23 Simultaneous Changes in the Constraints (Section 5.6) 5.24–5.26 Sensitivity Analysis (UW Lecture) 5.27–5.43 These slides are based upon a lecture to first-year MBA students at the University of Washington that discusses sensitivity analysis for linear programming models (as taught by one of the authors).

Upload: gwenda-heath

Post on 12-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.1McGraw-Hill/Irwin

Table of ContentsChapter 5 (What-If Analysis for Linear Programming)

Continuing the Wyndor Case Study (Section 5.2) 5.2Changes in One Objective Function Coefficient (Section 5.3) 5.3–5.9Simultaneous Changes in Objective Function Coefficients (Section 5.4) 5.10–5.17Single Changes in a Constraint (Section 5.5) 5.18–5.23Simultaneous Changes in the Constraints (Section 5.6) 5.24–5.26

Sensitivity Analysis (UW Lecture) 5.27–5.43These slides are based upon a lecture to first-year MBA students at the University of Washington that discusses sensitivity analysis for linear programming models (as taught by one of the authors).

Page 2: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.2McGraw-Hill/Irwin

Wyndor (Before What-If Analysis)

3456789

101112

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,600

Hours Used Per Unit Produced

Page 3: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.3McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

3456789

101112

B C D E F GDoors Windows

Unit Profit $200 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,400

Hours Used Per Unit Produced

The profit per door has been revised from $300 to $200.No change occurs in the optimal solution.

Page 4: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.4McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The profit per door has been revised from $300 to $500.No change occurs in the optimal solution.

3456789

101112

B C D E F GDoors Windows

Unit Profit $500 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $4,000

Hours Used Per Unit Produced

Page 5: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.5McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The profit per door has been revised from $300 to $1,000.The optimal solution changes.

3456789

101112

B C D E F GDoors Windows

Unit Profit $1,000 $500Hours HoursUsed Available

Plant 1 1 0 4 <= 4Plant 2 0 2 6 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 4 3 $5,500

Hours Used Per Unit Produced

Page 6: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.6McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

3456789

10111213141516171819202122232425262728

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,600

Unit Profit Totalfor Doors Doors Windows Profit

2 6 $3,600$100$200$300$400$500$600$700$800$900

$1,000

Hours Used Per Unit Produced

Optimal Units ProducedSelect these cells (B18:E28), before choosing the Solver Table.

161718

C D ETotal

Doors Windows Profit=DoorsProduced =WindowsProduced =TotalProfit

Optimal Units Produced

Page 7: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.7McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

16171819202122232425262728

B C D EUnit Profit Totalfor Doors Doors Windows Profit

2 6 $3,600$100 2 6 $3,200$200 2 6 $3,400$300 2 6 $3,600$400 2 6 $3,800$500 2 6 $4,000$600 2 6 $4,200$700 2 6 $4,400$800 4 3 $4,700$900 4 3 $5,100

$1,000 4 3 $5,500

Optimal Units Produced

Page 8: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.8McGraw-Hill/Irwin

Using the Sensitivity Report to Find the Allowable Range

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$12 Units Produced Doors 2 0 300 450 300$D$12 Units Produced Windows 6 0 500 1E+30 300

Page 9: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.9McGraw-Hill/Irwin

Graphical Insight into the Allowable Range

The two dashed lines that pass through the solid constraint boundary lines are the objective function lines when PD (the unit profit for doors) is at an endpoint of its allowable range, 0 ≤ PD ≤ 750.

W

D

(2, 6) is optimal for 0 < PD < 750

PD = 0 (Profit = 0 D + 500 W)

PD = 300 (Profit = 300 D + 500 W)

PD = 750 (Profit = 750 D + 500 W)

Line A

Line C

Line B

0 2 4 6

2

4

6

8

Production rate for doors

Production ratefor windows

Feasibleregion

Page 10: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.10McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The profit per door has been revised from $300 to $450.The profit per window has been revised from $500 to $400.No change occurs in the optimal solution.

3456789

101112

B C D E F GDoors Windows

Unit Profit $450 $400Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,300

Hours Used Per Unit Produced

Page 11: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.11McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The profit per door has been revised from $300 to $600.The profit per window has been revised from $500 to $300.The optimal solution changes.

3456789

101112

B C D E F GDoors Windows

Unit Profit $600 $300Hours HoursUsed Available

Plant 1 1 0 4 <= 4Plant 2 0 2 6 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 4 3 $3,300

Hours Used Per Unit Produced

Page 12: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.12McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

3456789

101112131415161718192021

B C D E F G H IDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,600

Total Profit Unit Profit for Windows$3,600 $100 $200 $300 $400 $500$300

Unit Profit $400for Doors $500

$600

Hours Used Per Unit

Select these cells (C17:H21), before choosing the Solver Table.

17C

=TotalProfit

Page 13: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.13McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

161718192021

B C D E F G HTotal Profit Unit Profit for Windows

$3,600 $100 $200 $300 $400 $500$300 $1,500 $1,800 $2,400 $3,000 $3,600

Unit Profit $400 $1,900 $2,200 $2,600 $3,200 $3,800for Doors $500 $2,300 $2,600 $2,900 $3,400 $4,000

$600 $2,700 $3,000 $3,300 $3,600 $4,200

Page 14: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.14McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

242526272829

B C D E F G HUnits Produced (Doors, Windows) Unit Profit for Windows

(2, 6) $100 $200 $300 $400 $500$300 (4, 3) (4, 3) (2, 6) (2, 6) (2, 6)

Unit Profit $400 (4, 3) (4, 3) (2, 6) (2, 6) (2, 6)for Doors $500 (4, 3) (4, 3) (4, 3) (2, 6) (2, 6)

$600 (4, 3) (4, 3) (4, 3) (4, 3) (2, 6)

25C

="(" & DoorsProduced & ", " & WindowsProduced & ")"

Page 15: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.15McGraw-Hill/Irwin

The 100 Percent Rule

The 100 Percent Rule for Simultaneous Changes in Objective Function Coefficients: If simultaneous changes are made in the coefficients of the objective function, calculate for each change the percentage of the allowable change (increase or decrease) for that coefficient to remain within its allowable range. If the sum of the percentage changes does not exceed 100 percent, the original optimal solution definitely will still be optimal. (If the sum does exceed 100 percent, then we cannot be sure.)

Page 16: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.16McGraw-Hill/Irwin

Graphical Insight into 100 Percent Rule

W

D0 2 4 6

2

4

6

8

Production rate for doors

Production rate

for windows

Feasible

region

10

Objective function line now is

Profit = $3150 = 525 D + 350 W

since PD = $525, PW = $350.

Entire line segment is optimal

(4, 3)

(2, 6)

8

The estimates of the unit profits for doors and windows change to PD = $525 and PW = $350, which lies at the edge of what is allowed by the 100 percent rule.

Page 17: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.17McGraw-Hill/Irwin

Graphical Insight into 100 Percent Rule

When the estimates of the unit profits for doors and windows change to PD = $150 and PW = $250 (half their original values), the graphical method shows that the optimal solution still is (D, W) = (2, 6) even though the 100 percent rule says that the optimal solution might change.

0 2 4 6

2

4

6

8

(2, 6)

Feasible region

Optimal solution

Production rate for doors

Production rate for windows

Profit = $1800 = 150D + 250 W

8

W

D

Page 18: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.18McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The hours available in plant 2 have been increased from 12 to 13.The total profit increases by $150 per week.

3456789

101112

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 1.667 <= 4Plant 2 0 2 13 <= 13Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 1.667 6.5 $3,750

Hours Used Per Unit Produced

Page 19: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.19McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The hours available in plant 2 have been further increased from 13 to 18.The total profit increases by $750 per week ($150 per hour added in plant 2).

3456789

101112

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 0 <= 4Plant 2 0 2 18 <= 18Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 0 9 $4,500

Hours Used Per Unit Produced

Page 20: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.20McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

The hours available in plant 2 have been further increased from 18 to 20.The total profit does not increase any further.

3456789

101112

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 0 <= 4Plant 2 0 2 18 <= 20Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 0 9 $4,500

Hours Used Per Unit Produced

Page 21: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.21McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

3456789

1011121314151617181920212223242526272829303132333435

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4Plant 2 0 2 12 <= 12Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2 6 $3,600

Time Available Total Incrementalin Plant 2 (hours) Doors Windows Profit Profit

2 6 $3,6004 4 2 $2,2005 4 2.5 $2,450 $2506 4 3 $2,700 $2507 3.667 3.5 $2,850 $1508 3.333 4 $3,000 $1509 3 4.5 $3,150 $15010 2.667 5 $3,300 $15011 2.333 5.5 $3,450 $15012 2 6 $3,600 $15013 1.667 6.5 $3,750 $15014 1.333 7 $3,900 $15015 1 7.5 $4,050 $15016 0.667 8 $4,200 $15017 0.333 8.5 $4,350 $15018 0 9 $4,500 $15019 0 9 $4,500 $020 0 9 $4,500 $0

Hours Used Per Unit Produced

Optimal Units Produced

Select these cells (B18:E35), before choosing the Solver Table.

Page 22: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.22McGraw-Hill/Irwin

Using the Sensitivity Report

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$12 Units Produced Doors 2 0 300 450 300$D$12 Units Produced Windows 6 0 500 1E+30 300

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Plant 1 Used 2 0 4 1E+30 2$E$8 Plant 2 Used 12 150 12 6 6$E$9 Plant 3 Used 18 100 18 6 6

Page 23: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.23McGraw-Hill/Irwin

Graphical Interpretation of the Allowable Range

0 2 4 6

2

4

6

8

2 W = 6 Profit = 300 (4) + 500 (3) = $2,700

2 W = 18 Profit = 300 (0) + 500 (9) = $4,500

2 W = 12 Profit = 300 (2) + 500 (6) = $3,600

(4, 3)

(2, 6)

Feasible

region for

original

problem

Line B

Line A (D = 4)

Line C (3 D + 2 W = 18)

10

(0, 9)

D

W

Production rate for doors

Production rate for windows

Page 24: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.24McGraw-Hill/Irwin

Using the Spreadsheet to do Sensitivity Analysis

One available hour in plant 3 has been shifted to plant 2.The total profit increases by $50 per week.

3456789

101112

B C D E F GDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 1.333 <= 4Plant 2 0 2 13 <= 13Plant 3 3 2 17 <= 17

Doors Windows Total ProfitUnits Produced 1.333 6.5 $3,650

Hours Used Per Unit Produced

Page 25: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.25McGraw-Hill/Irwin

Using Solver Table to do Sensitivity Analysis

3456789

1011121314151617181920212223242526

B C D E F G HDoors Windows

Unit Profit $300 $500Hours HoursUsed Available

Plant 1 1 0 2 <= 4 Total (Plants 2 & 3)Plant 2 0 2 12 <= 12 30Plant 3 3 2 18 <= 18

Doors Windows Total ProfitUnits Produced 2.000 6 $3,600

Time Available Time Available Total Incrementalin Plant 2 (hours) in Plant 3 (hours) Doors Windows Profit Profit

2 6 $3,60012 18 2 6 $3,60013 17 1.333 6.5 $3,650 $5014 16 0.667 7 $3,700 $5015 15 0 7.5 $3,750 $5016 14 0 7 $3,500 -$25017 13 0 6.5 $3,250 -$25018 12 0 6 $3,000 -$250

Hours Used Per Unit Produced

Optimal Units Produced

Select these cells (C19:F26), before choosing the Solver Table.

Page 26: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.26McGraw-Hill/Irwin

The 100 Percent Rule

The 100 Percent Rule for Simultaneous Changes in Right-Hand Sides: The shadow prices remain valid for predicting the effect of simultaneously changing the right-hand sides of some of the functional constraints as long as the changes are not too large. To check whether the changes are small enough, calculate for each change the percentage of the allowable change (decrease or increase) for that right-hand side to remain within its allowable range. If the sum of the percentage changes does not exceed 100 percent, the shadow prices definitely will still be valid. (If the sum does exceed 100 percent, then we cannot be sure.)

Page 27: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.27McGraw-Hill/Irwin

A Production Problem

Weekly supply of raw materials:

6 Large Bricks

Products:

TableProfit = $20 / Table

ChairProfit = $15 / Chair

8 Small Bricks

Page 28: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.28McGraw-Hill/Irwin

Sensitivity Analysis Questions

• With the given weekly supply of raw materials and profit data, how many tables and chairs should be produced? What is the total weekly profit?

• What if one more large brick were available. How much would you be willing to pay for it?

• What if an additional two large bricks were available (to make a total of 9). How much would you be willing to pay for these two additional bricks?

• What if the profit per table were now $25. (Assume now there are only 6 large bricks again.) How many tables and chairs should now be produced?

• What if the profit per table were now $35. How many tables and chairs should now be produced?

Page 29: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.29McGraw-Hill/Irwin

Graphical Solution (Original Problem)

Maximize Profit = ($20)T + ($15)Csubject to

2T + C ≤ 6 large bricks2T + 2C ≤ 8 small bricks

andT ≥ 0, C ≥ 0.

1 2 3 4 5 6

1

2

3

4

T

C

2T + 2C < 8 small bricks

2T + C < 6 large bricks

Z = ($20)T + ($15)C = $70

Optimal Solution (2, 2). Profit = $70

Page 30: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.30McGraw-Hill/Irwin

7 Large Bricks

Maximize Profit = ($20)T + ($15)Csubject to

2T + C ≤ 7 large bricks2T + 2C ≤ 8 small bricks

andT ≥ 0, C ≥ 0.

1 2 3 4 5 6

1

2

3

4

T

C

2T + 2C < 8 small bricks

2T + C < 7 large bricks

Z = ($20)T + ($15)C = $75

Old Optimal Solution (2, 2). Profit = $70

New Optimal Solution (3, 1). Profit = $75

2T + C < 6 large bricks

Page 31: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.31McGraw-Hill/Irwin

9 Large Bricks

Maximize Profit = ($20)T + ($15)Csubject to

2T + C ≤ 9 large bricks2T + 2C ≤ 8 small bricks

andT ≥ 0, C ≥ 0.

1 2 3 4 5 6

1

2

3

4

T

C

2T + 2C < 8 small bricks

2T + C < 9 large bricks

Z = ($20)T + ($15)C = $80

Old Optimal Solution (2, 2). Profit = $70

New Optimal Solution (4, 0). Profit = $80

2T + C < 6 large bricks

Page 32: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.32McGraw-Hill/Irwin

$25 Profit per Table

Maximize Profit = ($25)T + ($15)Csubject to

2T + C ≤ 6 large bricks2T + 2C ≤ 8 small bricks

andT ≥ 0, C ≥ 0.

1 2 3 4 5 6

1

2

3

4

T

C

2T + 2C < 8 small bricks

2T + C < 6 large bricks

Z = ($25)T + ($15)C = $80

Optimal Solution (2, 2). Profit = $80

Page 33: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.33McGraw-Hill/Irwin

$35 Profit per Table

Maximize Profit = ($35)T + ($15)Csubject to

2T + C ≤ 6 large bricks2T + 2C ≤ 8 small bricks

andT ≥ 0, C ≥ 0.

1 2 3 4 5 6

1

2

3

4

T

C

2T + 2C < 8 small bricks

Z = ($35)T + ($15)C = $105

Old Optimal Solution (2, 2). Profit = $100

New Optimal Solution (3, 0). Profit = $105

Page 34: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.34McGraw-Hill/Irwin

Generating the Sensitivity Report

After solving with Solver, choose “Sensitivity” under reports:

34567891011

B C D E F GTables Chairs

Profit $20.00 $15.00

Total Used AvailableLarge Bricks 2 1 6 <= 6Small Bricks 2 2 8 <= 8

Tables Chairs Total ProfitProduction Quantity: 2 2 $70.00

Bill of Materials

Page 35: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.35McGraw-Hill/Irwin

The Sensitivity Report

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 2 0 20 10 5$D$11 Production Quantity: Chairs 2 0 15 5 5

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 6 5 6 2 2$E$8 Small Bricks Total Used 8 5 8 4 2

34567891011

B C D E F GTables Chairs

Profit $20.00 $15.00

Total Used AvailableLarge Bricks 2 1 6 <= 6Small Bricks 2 2 8 <= 8

Tables Chairs Total ProfitProduction Quantity: 2 2 $70.00

Bill of Materials

Page 36: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.36McGraw-Hill/Irwin

The Sensitivity Report

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 2 0 20 10 5$D$11 Production Quantity: Chairs 2 0 15 5 5

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 6 5 6 2 2$E$8 Small Bricks Total Used 8 5 8 4 2

The solutionAllowable range

(Solution stays the same)

Usage of the resource(Left-hand-side of constraint)

Allowable range(Shadow price is valid)

Increase in objective function value per unit increase in right-hand-side (RHS)∆Z = (shadow price)(∆RHS)

Page 37: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.37McGraw-Hill/Irwin

$35 Profit per Table

34567891011

B C D E F GTables Chairs

Profit $35.00 $15.00

Total Used AvailableLarge Bricks 2 1 6 <= 6Small Bricks 2 2 6 <= 8

Tables Chairs Total ProfitProduction Quantity: 3 0 $105.00

Bill of Materials

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 3 0 35 1E+30 5$D$11 Production Quantity: Chairs 0 -2.5 15 2.5 1E+30

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 6 17.5 6 2 6$E$8 Small Bricks Total Used 6 0 8 1E+30 2

Page 38: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.38McGraw-Hill/Irwin

7 Large Bricks

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 3 0 20 10 5$D$11 Production Quantity: Chairs 1 0 15 5 5

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 7 5 7 1 3$E$8 Small Bricks Total Used 8 5 8 6 1

34567891011

B C D E F GTables Chairs

Profit $20.00 $15.00

Total Used AvailableLarge Bricks 2 1 7 <= 7Small Bricks 2 2 8 <= 8

Tables Chairs Total ProfitProduction Quantity: 3 1 $75.00

Bill of Materials

Page 39: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.39McGraw-Hill/Irwin

9 Large Bricks

34567891011

B C D E F GTables Chairs

Profit $20.00 $15.00

Total Used AvailableLarge Bricks 2 1 8 <= 9Small Bricks 2 2 8 <= 8

Tables Chairs Total ProfitProduction Quantity: 4 0 $80.00

Bill of Materials

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 4 0 20 1E+30 5$D$11 Production Quantity: Chairs 0 -5 15 5 1E+30

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 8 0 9 1E+30 1$E$8 Small Bricks Total Used 8 10 8 1 8

Page 40: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.40McGraw-Hill/Irwin

100% Rule for Simultaneous Changesin the Objective Coefficients

For simultaneous changes in the objective coefficients, if the sum of the percentage changes does not exceed 100%, the original solution will still be optimal. (If it does exceed 100%, we cannot be sure—it may or may not change.)

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 2 0 20 10 5$D$11 Production Quantity: Chairs 2 0 15 5 5

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 6 5 6 2 2$E$8 Small Bricks Total Used 8 5 8 4 2

Examples: (Does solution stay the same?)Profit per Table = $24 & Profit per Chair = $13Profit per Table = $25 & Profit per Chair = $12Profit per Table = $28 & Profit per Chair = $18

Page 41: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.41McGraw-Hill/Irwin

100% Rule for Simultaneous Changesin the Right-Hand-Sides

For simultaneous changes in the right-hand-sides, if the sum of the percentage changes does not exceed 100%, the shadow prices will still be valid. (If it does exceed 100%, we cannot be sure—they may or may not be valid.)

Adjustable CellsFinal Reduced Objective Allowable Allowable

Cell Name Value Cost Coefficient Increase Decrease$C$11 Production Quantity: Tables 2 0 20 10 5$D$11 Production Quantity: Chairs 2 0 15 5 5

ConstraintsFinal Shadow Constraint Allowable Allowable

Cell Name Value Price R.H. Side Increase Decrease$E$7 Large Bricks Total Used 6 5 6 2 2$E$8 Small Bricks Total Used 8 5 8 4 2

Examples: (Are the shadow prices valid? If so, what’s the new total profit?)(+1 Large Brick) & (+2 Small Bricks)(+1 Large Brick) & (–1 Small Brick)

Page 42: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.42McGraw-Hill/Irwin

Summary of Sensitivity Report for Changes in the Objective Function Coefficients

• Final Value– The value of the decision variables (changing cells) in the optimal solution.

• Reduced Cost– Increase in the objective function value per unit increase in the value of a zero-

valued variable (for small increases)—may be interpreted as the shadow price for the nonnegativity constraint.

• Objective Coefficient– The current value of the objective coefficient.

• Allowable Increase/Decrease– Defines the range of the coefficients in the objective function for which the current

solution (value of the decision variables or changing cells in the optimal solution) will not change.

Page 43: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 5.1 Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor

© The McGraw-Hill Companies, Inc., 2008

5.43McGraw-Hill/Irwin

Summary of Sensitivity Report for Changes in the Right-Hand-Sides

• Final Value– The usage of the resource (or level of benefit achieved) in the optimal solution—the

left-hand side of the constraint.

• Shadow Price– The change in the value of the objective function per unit increase in the right-hand-

side of the constraint (RHS):∆Z = (Shadow Price)(∆RHS)

(Note: only valid if change is within the allowable range—see below.)

• Constraint R.H. Side– The current value of the right-hand-side of the constraint.

• Allowable Increase/Decrease– Defines the range of values for the RHS for which the shadow price is valid and

hence for which the new objective function value can be calculated. (NOT the range for which the current solution will not change.)