Lecture 9
Lecture 9
LINEAR PROGRAMMING
SENSITIVITY ANALYSIS
1
AGENDA
2
INTRODUCTION TO SENSITIVITY ANALYSIS
Understand trade-offs.
Obtain intuition.
3
WHAT IS SENSITIVITY ANALYSIS
𝐌𝐀𝐗 𝐌𝐈𝐍 𝑐 𝑥 𝑐 𝑥 𝑐 𝑥 … 𝑐 𝑥
s.t.
𝐴 𝑥 𝐴 𝑥 𝐴 𝑥 … 𝐴 𝑥 𝐵
Constraints:
𝐴 𝑥 𝐴 𝑥 𝐴 𝑥 … 𝐴 𝑥 𝐵
change in
𝐴 𝑥 𝐴 𝑥 𝐴 𝑥 … 𝐴 𝑥 𝐵 values on
… the rhs
…
𝐴 𝑥 𝐴 𝑥 𝐴 𝑥 … 𝐴 𝑥 𝐵
𝑥 0 or unrestricted for each 𝑖 1, … , 𝑛
4
HOW TO READ SENSITIVITY REPORT
“Reduced cost”
“Shadow price”
Simultaneous changes
“100% rule”
5
SENSITIVITY REPORT IN EXCEL
Sensitivity report:
Obj
function
analysis
Constraints
analysis
CHANGE IN A COEFFICIENT
Q1: What if the profit of a deluxe bag is $10, instead of $9? What
will the production plan and profit become?
Profit Contribution 𝐌𝐀𝐗 10 𝑥 9𝑥 10𝑥 10𝑥
s.t.
Cutting & Dyeing: 𝑥 𝑥 630
Sewing: 𝑥 𝑥 600
Finishing: 𝑥 𝑥 708
Inspection & Packaging: 𝑥 𝑥 135
Non-negativity: 𝑥 0, 𝑥 0
7
CHANGE IN A COEFFICIENT
Q1: What if the profit of a deluxe bag is $10, instead of $9? What
will the production plan and profit become?
Profit Contribution 𝐌𝐀𝐗 10 𝑥 9𝑥 10𝑥 10𝑥
s.t.
Cutting & Dyeing: 𝑥 𝑥 630
Sewing: 𝑥 𝑥 600
Finishing: 𝑥 𝑥 708
Inspection & Packaging: 𝑥 𝑥 135
Non-negativity: 𝑥 0, 𝑥 0
Answer:
10
DETECT MULTIPLE OPTIMAL SOLUTIONS
Par Example: Suppose the profit of a standard bag is now $12, and
the profit of a deluxe bag is $8.
Profit Contribution 𝐌𝐀𝐗 12 𝑥 8𝑥
s.t.
Cutting & Dyeing: 𝑥 𝑥 630
Sewing: 𝑥 𝑥 600
Finishing: 𝑥 𝑥 708
Inspection & Packaging: 𝑥 𝑥 135
Non-negativity: 𝑥 0, 𝑥 0
11
GRAPHICAL EXPLANATION:
MULTIPLE OPTIMAL SOLUTIONS
Cutting & Dyeing: 𝑥 𝑥 630
Sewing: 𝑥 𝑥 600
Finishing: 𝑥 𝑥 708
Inspection & Packaging: 𝑥 𝑥 135
Opt
solution
identified
There are infinitely many optimal solutions, where the objective line
touches the feasible region by overlapping with the finishing
constraint line.
12
Shift in profit
line if profit of
𝑥 decreases
or profit of 𝑥
increases.
If the slope of the objective line (profit) changes, the LP has to be re-
solved to obtain a new optimal solution.This happens when:
14
CHANGE IN OBJECTIVE FUNCTION COEFFICIENT –
REDUCED COST
Suppose we have the following golf bag problem:
Profit Contribution 𝐌𝐀𝐗 10 𝑥 6𝑥
s.t.
Cutting & Dyeing: 𝑥 𝑥 630 Optimal
solution:
Sewing: 𝑥 𝑥 600
708, 0
Finishing: 𝑥 𝑥 708
Inspection & Packaging: 𝑥 𝑥 135
Non-negativity: 𝑥 0, 𝑥 0
Q2: What is the minimal profit contribution of a deluxe bag so that
it is worthwhile to be produced?
Shift in profit
𝑃𝑟𝑜𝑓𝑖𝑡
10 𝑥 6𝑥 line in order for
deluxe bags to
be produced in
an optimal
solution.
10 1 2
⇒Δ 0.6666 … Reduced cost!
6 Δ 2/3 3
CHANGE IN RHS VALUE OF A CONSTRAINT –
SHADOW PRICE
1000
800
Feasible region
# Deluxe Bags
600
becomes bigger.
400
200
0
0 100 200 300 400 500 600 700 80017
# Standard Bags
The optimal solution (production plan) may change, but we can use
the shadow price to compute the new optimal profit. 18
Shadow price:
19
INTERPRETATIONS OF SHADOW PRICE
20
SIMULTANEOUS CHANGES IN PARAMETERS
21
100% RULE
Single change in
LP
Within Within
Use Outside Outside
allowable allowable
reduced allowable allowable
increase/ increase/
cost to find increase/ increase/
decrease: decrease:
necessary decrease: decrease:
same opt use shadow
change in 𝑐 . rewrite LP rewrite LP
soln. See price to find
See slide and re- and re-
slide 8 for new opt val.
15. solve. solve.
new opt val. See slide 18.
Binding Non-binding
constraint: constraint: same
different opt soln. opt soln.
24
SUMMARY
Multiple changes
in LP
Change 𝑐 in
Change multiple Change multiple
objective function
𝑐 in objective 𝑏 in RHS of
and 𝑏 in RHS of
function constraint
constraint
Rewrite LP
Satisfies and re-
Satisfies
100% rule: Violate Violate solve.
100% rule:
same opt 100% rule: 100% rule:
use shadow
soln and Rewrite LP Rewrite LP
price to find
find new opt and re- and re-
new opt val.
val. See solve. solve.
See slide 23.
slide 23.
At least one
All non-binding
binding
constraints: same
constraint:
opt soln.
different opt soln.
25
MEDIA SELECTION
Spreadsheet formulation
27
MEDIA SELECTION
Sensitivity Reports
28
MEDIA SELECTION
Ans:
29
MEDIA SELECTION
Ans:
30
MEDIA SELECTION
The radio station manager agrees to run the afternoon radio spots
during some of their more popular programs. He thinks this will
increase the audience reached per ad to 3,100. Will this change the
optimal solution? Why or why not?
Ans:
31
MEDIA SELECTION
32
SUMMARY
Decision variables
Linear constraints
Sign restrictions
Applications
Product mix
Blending
Multi-period investment
Transportation
Work scheduling
Solution:
Sensitivity Report