Professional Documents
Culture Documents
QM3 Week 1 Chapter 2
QM3 Week 1 Chapter 2
Mathematical programming:
Sensitivity analysis
Week 1, chapter 2
2020-2021
09/09/2023 1
Sensitivity analysis. WHAT is it?
Max
3
Spreadsheet Case Production Planning
4
Solver reports
5
Sensitivity report
Microsoft Excel 14.0 Sensitivity Report
Worksheet: [QM2 math week 5 Production Planning.xlsx]Case Production Planning
Report Created: 27-2-2018 10:33:05
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 1400
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$6 Demand Alpha LHS 40 0 60 1E+30 20
$D$7 Demand Beta LHS 70 0 90 1E+30 20
$D$8 Oven hrs LHS 1100 233,33333 1100 120 300
$D$9 Distribution hrs LHS 3400 33,33333 3400 600 600
6
Spreadsheet Case Production Planning
Case Production Planning
Products
A B
Variables 40 70
Objective 4000 3000 370000
Constraints Coefficients LHS Operator RHS
Demand Alpha 1 40 <= 60
Demand Beta 1 70 <= 90
Oven hrs 10 10 1100 <= 1100
Distribution hrs 50 20 3400 <= 3400
50
50 A 9
Geometry of changes in
objective coefficients (OCs)
Compare:
B
4000 4000 A + 3000 B
100
3000 with
5000 A + 3000 B
5000
3000
50
50 A 10
Geometry of changes in
objective coefficients (OCs)
Compare:
B
4000 4000 A + 3000 B
100
3000 with
5000 A + 3000 B
5000
3000 Level curve of the objective
50 turns around the optimal point.
50 A 11
Sensitivity report
Microsoft Excel 14.0 Sensitivity Report
Worksheet: [QM2 math week 5 Production Planning.xlsx]Case Production Planning
Report Created: 27-2-2018 10:33:05
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 1400
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$6 Demand Alpha LHS 40 0 60 1E+30 20
$D$7 Demand Beta LHS 70 0 90 1E+30 20
$D$8 Oven hrs LHS 1100 233,33333 1100 120 300
$D$9 Distribution hrs LHS 3400 33,33333 3400 600 12600
Spreadsheet Case Production Planning
Case Production Planning
Products
A B
Variables 40 70
Objective 4000 3000 370000
Constraints Coefficients LHS Operator RHS
Demand Alpha 1 40 <= 60
Demand Beta 1 70 <= 90
Oven hrs 10 10 1100 <= 1100
Distribution hrs 50 20 3400 <= 3400
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 1400
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$6 Demand Alpha LHS 40 0 60 1E+30 20
$D$7 Demand Beta LHS 70 0 90 1E+30 20
$D$8 Oven hrs LHS 1100 233,33333 1100 120 300
$D$9 Distribution hrs LHS 3400 33,33333 3400 600 600
16
Shadow price constraint distribution hrs
Case Production Planning
Products
A B
Variables 40,33 69,97
Objective 4000 3000 370033,33
Constraints Coefficients LHS Operator RHS
Demand Alpha 1 40 <= 60
Demand Beta 1 70 <= 90
Oven hrs 10 10 1100 <= 1100
Distribution hrs 50 20 3401 <= 3401
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 1400
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$6 Demand Alpha LHS 40 0 60 1E+30 20
$D$7 Demand Beta LHS 70 0 90 1E+30 20
$D$8 Oven hrs LHS 1100 233,33333 1100 120 300
$D$9 Distribution hrs LHS 3400 33,33333 3400 600 19600
Changes in Constraint RHS Values
50
50 A
21
Geometry of changes in
Right-hand sides (RHS)
Compare the constraints
B
100
10A + 10B ≤ 1100
and
10A + 10B ≤ 1150 10A + 10B ≤ 1150
50
50 A
Geometry of changes in
Right-hand sides (RHS)
Compare the constraints
B
100
10A + 10B ≤ 1100
and
10A + 10B ≤ 1150 10A + 10B ≤ 1150
50 A
23
Changes in the Right-hand sides
Microsoft Excel 14.0 Sensitivity Report
Worksheet: [QM2 math week 5 Production Planning.xlsx]Case Production Planning
Report Created: 27-2-2018 10:33:05
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 1400
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$6 Demand Alpha LHS 40 0 60 1E+30 20
$D$7 Demand Beta LHS 70 0 90 1E+30 20
$D$8 Oven hrs LHS 1100 233,33333 1100 120 300
$D$9 Distribution hrs LHS 3400 33,33333 3400 600 600
24
Overview: What happens in
case of small single changes?
• Small changes in Objective Coefficients:
– Optimal solution remains the same.
– Objective value changes with (increase of
objective coefficient) (value variable).
• Small changes in Right-Hand Sides:
– Optimal solution changes “along the line” of
the binding constraints.
– Objective value changes with (increase of
RHS) (Shadow price)
25
Reduced costs (bad name)
Consider a new product C that
– uses 5 hours of oven capacity per unit
– uses 10 hours of distribution capacity per unit
– has a revenue of 1300 per unit
Is it profitable to produce C or not?
– Revenue: 1300
27
New sensitivity report
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Variables A 40 0 4000 3500 1000
$C$3 Variables B 70 0 3000 1000 400
$D$3 Variables C 0 -200 1300 200 1E+30
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$E$6 Demand Alpha LHS 40 0 60 1E+30 20
$E$7 Demand Beta LHS 70 0 90 1E+30 20
$E$8 Oven hrs LHS 1100 233,33333 1100 120 300
$E$9 Distribution hrs LHS 3400 33,33333 3400 600 600
28
Relation Reduced Cost and
Shadow Price (1)
The reduced cost for a product is its per-unit
(marginal) profit: per-unit revenue minus the per-
unit cost of the resources it consumes (using the
shadow prices).
Short hand:
𝑅𝐶=𝑂𝐶− ∑ 𝑆𝑃 ∗𝑢𝑛𝑖𝑡𝑠
𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 29
Relation Reduced Cost and
Shadow Price (2)
𝑅𝐶=𝑂𝐶− ∑ 𝑆𝑃 ∗ 𝑢𝑛𝑖𝑡𝑠
𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠
Profit = Revenue – Costs