Professional Documents
Culture Documents
Week 3 - "What-If" Analysis For Linear Programming and Intro To Network Optimization Problems
Week 3 - "What-If" Analysis For Linear Programming and Intro To Network Optimization Problems
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Last Time
• The important of “What-if” Analysis to Managers and from the Perspective of Systems Engineer
• Understanding the challenges of Modeling the Real World and how “What-If” Analysis can help
• Trial & Error - Changing Parameters on Spreadsheets and seeing the effect
• Parameter Analysis Report with RSPE – The Effect of Changes in One Objective Function Coefficient
The Parameter Analysis Report
• From the above report on RSPE it is clear that between $700 and $800 Unit Profit per Door there is switch in the Optimal number of Doors and Windows
• What is the allowable range Unit Profit Per Door such that the Optimal Solution remains 2 Doors and 6 Windows?
5-4
Running Wyndor with Solver
Sensitvity
Report
is built in
Using the Sensitivity Report to Find the Allowable Range
Variable Cells
Final 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
• Allowable r0 ≤ ≤ 750
______________________________________________________________________
• Current value of 00
• Allowable r ≥ 200
5-6
Graphical Insight into the Allowable Range
W
Production rate
for windows
4 Line C
PD = 300 (Profit = 300 D + 500 W)
Feasible
region
2
PD = 750 (Profit = 750 D + 500 W)
Line A
0 2 4 6 D
Production rate for doors
The two dashed lines that pass through the solid constraint boundary lines are the objective function lines when PD (the unit profit for
5-7
Interactive Graphical Linear Programming Tool
Solving …
Solved – No Surprise
What Happens if we Press the “Sensitivity Button”?
@ (2,6)
Sensitivity Analysis
Optimum Shift – Rotating the Objective
What happens if the estimates of the unit profits of both
Wyndor’s new products are inaccurate?
The profit per door has been revised from $300 to $450. The profit per window has been revised from $500 to
The profit per door has been revised from $300 to $600. The profit per window has been revised from $500 to 5-13
Creating a Two-Way Parameter Analysis Report – Part 1
5-14
Creating a Two-Way Parameter Analysis Report – Part 2
Creating a Two-Way Parameter Analysis Report – Part 3
My Version – Actual Output - $C$4 is Unit Profit per Door while $D$4 is Unit Profit per Window
Else)
Note: Checkbox
5-18
What if we look at Units Produced instead of Profit?
5-20
Illustration of the 100 Percent Rule – 3 Scenarios
•
Percent of Allowable Increase = )% =
______________________________________________________
Increase
Available
Hours from
12 to 13
The hours available in plant 2 have been increased from 12 to 13. The total profit increases by $150 per week.
Increase
Available
Hours from
13 to 18
The hours available in plant 2 have been further increased from 13 to 18. The total profit increases by $750 per week
Increase
Available
Hours from
18 to 20
The hours available in plant 2 have been further increased from 18 to 20. The total profit does not increase any further.(the increase does not help –
Changing Constraints
• Issue: The Right Hand Sides of the Functional Constraints may represent
managerial policy decisions rather than hard constraints/quantities that are
outside the control of management. Management may want a means of
analyzing the effect of altering these policy decisions
• However, how can we tell the limits of these changes and what effect they will
have on the optimal solution?
• What if the number of available hours for Plant 2 varied between 4 and 20?
– What would happen with total profit?
– How would this affect the number of Doors and Windows Produced?
– What is the incremental profit for each additional available hour added?
Parameter Analysis Set-up – Hours Available Plant 2
My Version:
is added with
A formula!
Textbook
Slide Version:
5-27
Making Sense of This
• Issue: The Right Hand Sides of the Functional Constraints may represent managerial policy decisions rather than hard
constraints/quantities that are outside the control of management. Management may want a means of analyzing the effect of altering
• However, how can we tell the limits of these changes and what effect they will have on the optimal solution and objective?
• Beginning with the original Wyndor Parameters, if Plant 2 starts with 12 Hours Available, each additional hour allocated yields an
additional $150 in profit (up to 18 hours after which additional profit is $0)
• If hours are taken away from Plant 2, each hour lost causes a loss of $150 profit (down to 6 hours available)
• This “rate of change” in the profit for increases and decreases in the RHS of a constraint is known as the Shadow Price
Using the Sensitivity Report
Variable Cells
Final 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
Constraints
Final 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
5-29
Some Definitions
• Given an optimal solution and the corresponding value of the objective function for a linear programming model, the Shadow Price for
a functional constraint is the rate at which the value of the objective function can be increased by increasing the RHS of the constraint
by a small amount
• The Allowable Range for the RHS of a functional constraint is the range of values for this RHS over which this constraint’s shadow
• Unlike the allowable range for the Objective Function Coefficients, a change that is within the allowable range for the RHS does not
mean that the original solution is still optimal. In fact, any time the Shadow Price is not zero, a change to the RHS leads to a change in
• Therefore the Shadow Price indicates how much the value of the Objective Function will change as the Optimal Solution changes.
Using RSPE to Analyze Plant 3
Keys:
Plant 3: 4 to 30
2 – Steps for
Range
From
18
What would happen if Simultaneous Changes were made in the
constraints?
questions as to the effect if the true values of the parameters simultaneously deviate significantly from the
estimates
– What is the managerial policy decisions were changed? What would be the effect of this?
5-32
Specifically What would happen if Simultaneous Changes were made in
the number of hours of production time per week being made available to
Wyndor’s new products in all plants?
One available hour in plant 3 has been shifted to plant 2. The total profit increases by $50 per week.
By inserting a formula into cell G8 that keeps the total number of hours available in plant 2 and 3 equal to 30, it will be
possible to generate a one-way parameter analysis report that shows the effect of shifting more and more of the hours from
plant 3 to plant 2.
5-34
Parameter Analysis Report
This parameter analysis report shows the effect of shifting more and more of the hours available from plant 3 to plant 2 for the
Wyndor problem.
5-35
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.)
5-36
Table of Contents
Chapter 6 (Network Optimization Problems)
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Introduction to Network Optimization Problems
• Three main types:
– Minimum Cost Flow – e.g. minimize the cost of shipping goods through a distribution
network
– Maximum Flow – e.g. maximize the flow of goods through a distribution network
– Shortest Path – e.g. find the shortes route between two locations Special
Cases of
MCF
6-38
Distribution Unlimited Co. Problem
• The Distribution Unlimited Co. has two factories producing a product that
needs to be shipped to two warehouses
– Factory 1 produces 80 units.
– Factory 2 produces 70 units.
– Warehouse 1 needs 60 units.
– Warehouse 2 needs 90 units.
• There are rail links directly from Factory 1 to Warehouse 1 and Factory 2 to
Warehouse 2.
6-39
The Distribution Network & Data Model Representation
80 units F1 W1 60 units
produced needed
DC
70 units W2 90 units
F2
produced needed
DC
$400/unit
$500/unit
70 units $1,000/unit 90 units
F2 W2 6-40
produced needed 6-40
Data Model Distribution Network & Network Model
80 units $700/unit 60 units
F1 W1
produced needed
$300/unit $200/unit
DC
$400/unit
$500/unit
70 units $1,000/unit 90 units
F2 W2
produced needed
[80] [- 60]
$700
F1 W1
$300
$200
[50] [0] [50]
DC
$500 $400
[50] [50]
$1,000
F2 W2
6-41
6-41
[70] [- 90]
Some Notes on the Network Model
• The number in the square brackets [] next to the location of each facility indicates the net number of
units (outflow minus inflow) generated there. Therefore the number of units terminating at each
• The number at the distribution center is 0 since the number of units leaving minus the number of units
• The number on the top of each arrow show the unit shipping cost along that shipping lane.
• Any number in square brackets underneath an arrow gives the maximum number of units that can be
shipped along that shipping lane. (The absence of a number in square brackets beneath an arrow
$700
F1 W1
$300
$200
[50] [0] [50]
DC
$500 $400
[50] [50]
$1,000
F2 W2
6-43
[70] [- 90]
Terminology for Minimum-Cost Flow Problems
6-44
Assumptions of a Minimum-Cost Flow Problem
6-45
Properties of Minimum-Cost Flow Problems
• The Integer Solutions Property: As long as all the supplies, demands, and
arc capacities have integer values, any minimum-cost flow problem with
feasible solutions is guaranteed to have an optimal solution with integer values
for all its flow quantities.
6-46
Spreadsheet Model – Distribution Network Example
From To Ship Capacity Unit Cost Nodes Net Flow Supply/Demand
F1 W1 30 $700 F1 80 = 80
F1 DC 50 <= 50 $300 F2 70 = 70
DC W1 30 <= 50 $200 DC 0 = 0
DC W2 50 <= 50 $400 W1 -60 = -60
F2 DC 30 <= 50 $400 W2 -90 = -90
F2 W2 40 $900
6-47
The SUMIF Function
• The SUMIF formula can be used to simplify the node flow constraints.
=SUMIF(Range A, x, Range B)
• For each quantity in (Range A) that equals x, SUMIF sums the corresponding entries in (Range B).
• The net outflow (flow out – flow in) from node x is then
Operation of a Intermediate
Vendors Processing facilities
supply network warehouses
6-49
Special Type of Minimum-Cost Flow Problems
• Transportation Problems – sources and destinations are the supply nodes and
demand nodes.
6-50
The BMZ Maximum Flow Problem
• BMZ needs to execute a plan quickly for shipping as much as possible from
the main factory in Stuttgart, Germany to the distribution center in Los
Angeles over the next month.
• The limiting factor on how much can be shipped is the limited capacity of the
company’s distribution network.
Question: How many units should be sent through each shipping lane to
maximize the total units flowing from Stuttgart to Los Angeles?
6-51
The BMZ Distribution Network
RO Rotterdam
[60 units max.]
LA New Orleans LI
Los Angeles Lisbon
[70 units max] NO [30 units max.]
6-52
A Network Model for BMZ
RO
[60]
NY [50]
[80]
[40]
LA BO ST
[70]
[50]
[70]
NO
[40]
[30]
LI
6-53
Spreadsheet Model for BMZ
B C D E F G H I J K
3 From To Ship Capacity Nodes Net Flow Supply/Demand
4 Stuttgart Rotterdam 50 <= 50 Stuttgart 150
5 Stuttgart Bordeaux 70 <= 70 Rotterdam 0 = 0
6 Stuttgart Lisbon 30 <= 40 Bordeaux 0 = 0
7 Rotterdam New York 50 <= 60 Lisbon 0 = 0
8 Bordeaux New York 30 <= 40 New York 0 = 0
9 Bordeaux New Orleans 40 <= 50 New Orleans 0 = 0
10 Lisbon New Orleans 30 <= 30 Los Angeles -150
11 New York Los Angeles 80 <= 80
12 New Orleans Los Angeles 70 <= 70
13
14 Maximum Flow 150
6-54
Main Points on BMZ Model Set-up
2. No longer minimizing the total cost of the flow through the network
6-55
Model Set-up Details - BMZ
Assumptions of Maximum Flow Problems
1. All flow through the network originates at one node, called the source, and
terminates at one other node, called the sink. (The source and sink in the BMZ
problem are the factory and the distribution center, respectively.)
4. The objective is to maximize the total amount of flow from the source to the
sink. This amount is measured in either of two equivalent ways, namely, either
the amount leaving the source or the amount entering the sink.
6-57
BMZ with Multiple Supply and Demand Points
• The distribution center in Seattle has the capability of supplying parts to the
customers of the distribution center in Los Angeles when shortages occur at
the latter center.
Question: How many units should be sent through each shipping lane to
maximize the total units flowing from Stuttgart and Berlin to Los Angeles
and Seattle?
6-58
Network Model for The Expanded BMZ Problem
HA
[40]
BN [60]
[30]
[20]
SE RO BE
[20]
[40]
[60]
NY [50]
[10]
[40]
[80]
LA BO ST
[70]
[50]
[70]
NO
[40]
[30]
LI
6-59
Spreadsheet Model
B C D E F G H I J K
3 From To Ship Capacity Nodes Net Flow Supply/Demand
4 Stuttgart Rotterdam 40 <= 50 Stuttgart 140
5 Stuttgart Bordeaux 70 <= 70 Berlin 80
6 Stuttgart Lisbon 30 <= 40 Hamburg 0 = 0
7 Berlin Rotterdam 20 <= 20 Rotterdam 0 = 0
8 Berlin Hamburg 60 <= 60 Bordeaux 0 = 0
9 Rotterdam New York 60 <= 60 Lisbon 0 = 0
10 Bordeaux New York 30 <= 40 Boston 0 = 0
11 Bordeaux New Orleans 40 <= 50 New York 0 = 0
12 Lisbon New Orleans 30 <= 30 New Orleans 0 = 0
13 Hamburg New York 30 <= 30 Los Angeles -160
14 Hamburg Boston 30 <= 40 Seattle -60
15 New Orleans Los Angeles 70 <= 70
16 New York Los Angeles 80 <= 80
17 New York Seattle 40 <= 40
18 Boston Los Angeles 10 <= 10
19 Boston Seattle 20 <= 20
20
21 Maximum Flow 220
6-60
Some Applications of Maximum Flow Problems
2. Maximize the flow through a company’s supply network from its vendors to
its processing facilities.
6-61
Homework #3 – Due 9/29/2015