3 Sensitivity Analysis PDF
3 Sensitivity Analysis PDF
Operations Research
Applications
1
Post-optimality Analysis
p When the output of a model is studied, often
many what-if questions arise:
n What if estimates of the parameters in the model
are inaccurate?
n How do the conclusions change if different
assumptions are made about the problem?
n What happens when certain managerial options are
pursued that are not incorporated in the current
model?
2
Why Post-optimality Analysis?
1. Typically, many of the input parameters are only
estimates and need to be refined if the model output
is “sensitive” to small changes in these parameters.
3
Sensitivity Analysis
p Sensitivity analysis is used to determine how
the optimal solution is affected by changes in
model inputs
4
Graphical Sensitivity Analysis
p For linear programming problems with two
decision variables, graphical methods can be
used to perform sensitivity analysis on
n the objective function coefficients, and
n the right-hand-side values for the constraints.
5
Changes in Objective Function
Coefficients
p Suppose an LP has been solved to optimality
with specified values of the input data and
the coefficient of a variable in the objective
function takes a different value.
1. Would the feasible region be affected?
2. Would the optimal solution be affected?
3. Without solving the new LP, can we conclude if
the optimal solution will be different?
6
Objective Function Coefficients
p The range of optimality for each coefficient
provides the range of values over which the
current solution will remain optimal.
7
Example 1
p LP Formulation
x1, x2 > 0
8
Example 1 Graphical Solution
x2
8
x1 + x2 < 8
Max 5x1 + 7x2
7
6
x1 < 6
5
Optimal:
4
x1 = 5, x2 = 3, z = 46
3
2
2x1 + 3x2 < 19
1
1 2 3 4 5 6 7 8 9 10 x1
9
Example 1 Changing the Slope of the
Objective Function
x2 8
5 5
4
3
Feasible
4
2
Region 3
1
1 2
1 2 3 4 5 6 7 8 9 10 x1
10
Range of Optimality
p Changing a coefficient in the objective function
changes the slope of the objective function line.
11
Calculating Range of Optimality
1. Determine which constraints are binding at
the current optimal solution.
2. Find the slopes of the binding constraints.
Let s1 and s2 be the slopes, where s1 £ s2.
3. To guarantee the optimality of the current
solution the following must hold:
s1 £ slope of objective function line £ s2
12
Calculating Range of Optimality
5
x1 < 6
4
1 2 3 4 5 6 7 8 9 10 x1
14
Example 1
p Slope of binding constraints:
2
!" = −1, !' = −
3
p Range of optimality for coefficient of x1:
Find the range of values for c1 (with c2 staying at
7) such that the objective function line slope lies
between that of the two binding constraints:
−*"
≥ −1 ⟹ *" ≤ 7
7
−*" 2 14
≤ − ⟹ *" ≥
7 3 3
14
≤ *" ≤ 7
3 15
Class Exercise
p Range of Optimality for coefficient of x2:
Find the range of values for c2 (with c1
staying at 5) such that the objective function
line slope lies between that of the two binding
constraints:
!"
#$
≥ −1 ⟹ )* ≥ 5
−5 2 15
≤ − ⟹ )* ≤
)* 3 2
15
≤ )* ≤ 5 16
2
Changes in Right Hand-Side Coefficients
17
Example 1 RHS changes
x2
8
x1 + x2 < 8
7
5
x1 < 6
Optimal:
4
x1 = 5, x2 = 3,
3 z = 46
2
Max 5x1 + 7x2
1 2x1 + 3x2 < 19
1 2 3 4 5 6 7 8 9 10 x1
18
Right-Hand Sides
p As the RHS of a (non-redundant) constraint
changes, the feasible region will expand or
contract.
n If the constraint is in the form
a1x1 + a2x2 £ b,
then increasing b would relax the constraint, so the
feasible region expands.
n If the constraint is in the form
a1x1 + a2x2 ³ b,
then increasing b would restrict the constraint, so
the feasible region contracts.
19
Right-Hand Sides
p The change in the objective function value of
the optimal solution per unit increase in the
right-hand side is called the shadow price.
21
Class Exercise
p Shadow Prices?
n Constraint 1: x1 < 6
n Constraint 2: 2x1 + 3x2 < 19
n Constraint 3: x1 + x2 < 8
x2
8
x1 + x2 < 8
7
6
x1 < 6
5
Optimal:
4
x1 = 5, x2 = 3,
3 z = 46
2
Max 5x1 + 7x2
1 2x1 + 3x2 < 19
1 2 3 4 5 6 7 8 9 10 x1 22
Range of Feasibility
p The range of feasibility for a change in the
right hand side value is the range of values
for this coefficient such that the shadow price
remains constant.
x2
8
x1 + x2 < 8
7
6
x1 < 6
5
Optimal:
4
x1 = 5, x2 = 3,
3 z = 46
2
Max 5x1 + 7x2
1 2x1 + 3x2 < 19
1 2 3 4 5 6 7 8 9 10 x1 24
Standard Computer Output
Software packages provide the following LP
information:
1. Information about the objective function:
n its optimal value
n coefficient ranges (ranges of optimality)
2. Information about the decision variables:
n their optimal values
n their reduced costs
3. Information about the constraints:
n the amount of slack or surplus
n right-hand side ranges (ranges of feasibility)
n the shadow prices 25
Example 2: Olympic Bike Co.
27
Example 2: Model Formulation
p Decision Variables
x1 = Number of Deluxe frames per week
28
Example 2: Olympic Bike Co.
p Sensitivity Report
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$11 Bikes made Deluxe 15 0 10 12.5 2.5
$D$11 Bikes made Professional 17.5 0 15 5 8.333333333
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
29
Example 2: Olympic Bike Co.
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$11 Bikes made Deluxe 15 0 10 12.5 2.5
$D$11 Bikes made Professional 17.5 0 15 5 8.333333333
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
p Range of Optimality
Question 1: Suppose the profit on deluxe frames is
increased to $20. Is the above solution still optimal?
What is the value of the objective function when this unit
profit is increased to $20?
30
Example 2: Olympic Bike Co.
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$11 Bikes made Deluxe 15 0 10 12.5 2.5
$D$11 Bikes made Professional 17.5 0 15 5 8.333333333
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
p Range of Optimality
Question 2: If the unit profit on deluxe
frames were $6 instead of $10, would the
optimal solution change? 31
Example 2: Olympic Bike Co.
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$11 Bikes made Deluxe 15 0 10 12.5 2.5
$D$11 Bikes made Professional 17.5 0 15 5 8.333333333
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
Should Olympic Bike take this offer and sell EZ-Bikes 40 lbs
of the 80 lbs of steel alloy it receives each week? 33
Example 2: Olympic Bike Co.
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$11 Bikes made Deluxe 15 0 10 12.5 2.5
$D$11 Bikes made Professional 17.5 0 15 5 8.333333333
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$C$16 Aluminum Amount Used 100 3.125 100 60 46.66666667
$C$17 Steel Amount Used 80 1.25 80 70 30
p Modifying the model:
Question 5: Olympic Bike’s Marketing Department warns that the
Deluxe model received more demand than the Professional model
in their market research. The management is considering to set
up a policy to produce at least as many Deluxe bikes as
Professional bikes.
With this policy,
n Will the optimal solution be different?
n How will the total profit be affected? 34
Example 2: Olympic Bike Co.
p Modifying the Model (Sunk Cost vs. Relevant
Cost)
Question 6: Olympic makes an agreement
with the supplier so that it will pay the
supplier only for the amount of alloy it uses
(up to the available amounts).
38
Example 3: Formulation