1/71
Built from the Exam 2 study guide, lecture slides, Quiz 3 and 4, and sensitivity practice problems. Ch 6 & 7 sensitivity analysis, Ch 8 & 9 transportation and transshipment.
Sensitivity analysis
Used to determine how the optimal solution is affected by changes in (1) the objective function coefficients and (2) the right-hand side (RHS) values.
Why is sensitivity analysis also called postoptimality analysis?
Because it begins only after the optimal solution to the original linear programming problem has been found.
Sensitivity analysis is concerned with how certain changes affect the ______ solution.
Optimal solution
Range of optimality
The range of an objective function coefficient over which the current solution stays optimal. It's the amount a coefficient can change before a different set of decision variable values becomes optimal.
Rule: when does the optimal solution stay the same after an objective coefficient changes?
When the slope of the new objective function line is still between the slopes of the binding constraints. If it falls outside that range, you have to find a new optimal solution.
How do you find the slope of a constraint or objective function?
Rewrite it in y = ax + b form (solve for the y variable). The slope is a. Shortcut: for aX + bY = c, slope = -a/b.
Slope of the constraint X + Y = 10
Y = -X + 10, so slope = -1
Slope of the constraint 8X + 2Y = 10
2Y = -8X + 10, so Y = -4X + 5, slope = -4
Slope of the objective function Z = 2X + Y
Y = -2X + Z, so slope = -2
Max 2X + Y s.t. X + Y ≤ 10, 8X + 2Y ≤ 10. Does the objective lead to the same optimal solution?
Constraint slopes are -1 and -4, objective slope is -2. Since -4 ≤ -2 ≤ -1, the slope is between the two binding constraints, so the optimal solution stays the same.
Par, Inc.: when does extreme point 3 (S = 540, D = 252) stay optimal?
When -3/2 ≤ slope of the objective function ≤ -7/10. Line B (finishing): D = -3/2 S + 1062. Line A (cutting and dyeing): D = -7/10 S + 630.
Practice: Max 3A + 2B s.t. A + B ≤ 10, 3A + B ≤ 24. What are the constraint slopes and the optimality range?
Constraint 1: B = -A + 10 (slope -1). Constraint 2: B = -3A + 24 (slope -3). Optimal solution stays the same as long as -3 ≤ objective slope ≤ -1. Optimal solution: A = 7, B = 3.
Practice: Max 3A + 2B s.t. A + B ≤ 10, 3A + B ≤ 24. Coefficient of A changes from 3 to 5. Does the optimal solution change?
New objective 5A + 2B gives B = -2.5A + 0.5P, slope -2.5. Since -3 ≤ -2.5 ≤ -1, it does NOT change. Still A = 7, B = 3.
Practice: Max 3A + 2B s.t. A + B ≤ 10, 3A + B ≤ 24. Coefficient of B changes from 2 to 4. Does the optimal solution change?
New objective 3A + 4B gives B = -0.75A + 0.25P, slope -0.75. That is NOT between -3 and -1, so YES it changes. New optimal solution: A = 0, B = 10.
Practice Problem 1: Max Z = 3A + 2B s.t. A + B ≤ 6, 2A + B ≤ 8. Constraint slopes and optimal solution?
Constraint 1: B = -A + 6 (slope -1). Constraint 2: B = -2A + 8 (slope -2). Objective slope is -3/2, which is between -2 and -1, so the optimal solution is the intersection: A = 2, B = 4 (Z = 14).
Practice Problem 1 (Max 3A + 2B, A + B ≤ 6, 2A + B ≤ 8): coefficient of A changes from 3 to 4. Does the optimal solution change?
New Z = 4A + 2B, so B = -2A + 1/2 Z, slope -2. Still within -2 ≤ slope ≤ -1 (right on the edge), so A = 2, B = 4 is still optimal.
Practice Problem 1 (Max 3A + 2B, A + B ≤ 6, 2A + B ≤ 8): coefficient of B changes from 2 to 5. Does the optimal solution change?
New Z = 3A + 5B, so B = -3/5 A + 1/5 Z, slope -3/5. Not between -2 and -1, so YES it changes. New optimal: A = 0, B = 6 (Z = 30).
Practice Problem 2: Max Z = 5A + 2B s.t. A + B ≤ 8, A + 2B ≤ 10. Constraint slopes and optimal solution?
Constraint 1: B = -A + 8 (slope -1). Constraint 2: B = -1/2 A + 5 (slope -1/2). Objective slope is -5/2, steeper than both, so the optimal is the extreme point A = 8, B = 0 (Z = 40).
Practice Problem 2 (Max 5A + 2B, A + B ≤ 8, A + 2B ≤ 10): coefficient of A changes from 5 to 1. Does the optimal solution change?
New Z = A + 2B, so B = -1/2 A + 1/2 Z, slope -1/2. The slope is no longer steeper than -1, so YES it changes. It now matches constraint 2's slope, so (6, 2) and (0, 5) both give Z = 10 (alternative optimal solutions).
Practice Problem 2 (Max 5A + 2B, A + B ≤ 8, A + 2B ≤ 10): coefficient of B changes from 2 to 3. Does the optimal solution change?
New Z = 5A + 3B, so B = -5/3 A + 1/3 Z, slope -5/3. Still steeper than -1, so NO change. Optimal stays A = 8, B = 0.
Changes in the right-hand side (RHS)
Changing a constraint's RHS shifts that constraint line, which changes the feasible region and can change the optimal solution and the objective function value.
Par, Inc.: what happens with 10 more hours of cutting and dyeing time (630 to 640)?
The feasible region expands. New optimal solution: S = 527.5, D = 270.75. Profit goes from $7,668.00 to $7,711.75, an increase of $43.75.
Reduced cost (decision variables)
The amount by which the objective function coefficient of a decision variable must improve before that variable becomes part of the optimal solution (if it is currently not in the solution).
What does a reduced cost of zero mean?
The decision variable is already part of the optimal solution.
Reduced cost in a MAXIMIZATION problem
Negative reduced cost: increasing the objective coefficient (profit) makes it more attractive to include. Zero: already in the solution. Positive reduced cost is NOT possible.
Reduced cost in a MINIMIZATION problem
Positive reduced cost: decreasing the objective coefficient (cost) makes it more attractive to include. Zero: already in the solution. Negative reduced cost is NOT possible.
Dual value (shadow price)
How much the objective function value changes per one-unit increase or decrease in the RHS of a constraint, with everything else held constant.
What does a shadow price of zero mean?
The constraint is non-binding (slack or surplus > 0). Changing its RHS has no impact on the optimal objective function value.
Binding constraint
Slack or surplus = 0 and shadow price > 0. The resource is fully used, so increasing its availability would improve the objective (profit).
Non-binding constraint
Slack or surplus > 0 and shadow price = 0. There is unused capacity, so increasing the RHS will not improve the objective function.
Par, Inc. shadow prices from the sensitivity report
Cutting and dyeing = 4.375, Finishing = 6.9375, Sewing = 0, Inspection and packaging = 0. One more hour of cutting and dyeing adds about $4.38 of profit; one more hour of finishing adds about $6.94.
Par, Inc.: which constraints are binding and which are non-binding?
Binding: Cutting and dyeing (4.375) and Finishing (6.9375). Non-binding: Sewing and Inspection and packaging (shadow price 0, unused capacity).
Allowable increase / allowable decrease (RHS)
As long as the RHS doesn't change by more than the allowable increase or decrease, the shadow price gives the exact change in the objective value per unit change in the RHS.
Range of feasibility
The range of RHS values over which the dual value (shadow price) stays valid. Formula: (RHS - allowable decrease, RHS + allowable increase).
The range of feasibility measures…
The right-hand-side values for which the dual prices (shadow prices) will not change.
Par, Inc. finishing constraint: RHS 708, allowable increase 192, allowable decrease 128. Range of feasibility?
(708 - 128, 708 + 192) = (580, 900)
Par, Inc. cutting and dyeing: RHS 630, allowable increase 52.36, allowable decrease 134.4. Range of feasibility?
(630 - 134.4, 630 + 52.36) = (495.6, 682.36)
Par, Inc. Standard bag: objective coefficient 10, allowable increase 3.5, allowable decrease 3.7. Range of optimality?
(10 - 3.7, 10 + 3.5) = 6.3 to 13.5
Par, Inc. Deluxe bag: objective coefficient 9, allowable increase 5.2857, allowable decrease 2.3333. Range of optimality?
(9 - 2.3333, 9 + 5.2857) = about 6.67 to 14.29
Excel Solver sensitivity report: what's in the Variable (Adjustable) Cells section?
Final Value, Reduced Cost, Objective Coefficient, Allowable Increase, Allowable Decrease (used for the range of optimality).
Excel Solver sensitivity report: what's in the Constraints section?
Final Value, Shadow Price, Constraint R.H. Side, Allowable Increase, Allowable Decrease (used for the range of feasibility).
Cautionary note: how is the dual value interpreted when the RHS is the amount of a resource available?
As the maximum amount you should be willing to pay for one additional unit of that resource.
Sunk cost
A cost that has already been paid or must be paid no matter what, so it doesn't change based on decisions. NOT reflected in the objective function coefficients. The dual value shows the full value (profit) an additional unit adds.
Relevant cost
A cost that depends on the decision being made. It IS reflected in the objective function coefficients. The dual value shows how much the resource's value exceeds its cost (the net benefit of getting more).
Par, Inc.: why are the 630 labor hours a sunk cost?
Par has to pay for those hours whether they use them fully or not, so the cost is already committed and isn't part of the decision.
True or False: The amount of a sunk cost will vary depending on the values of the decision variables.
False. Sunk costs don't change based on decisions.
Limitation of classical sensitivity analysis: simultaneous changes
It assumes only ONE coefficient changes at a time while everything else stays fixed. If two or more change at once, further analysis is needed.
True or False: When two or more objective function coefficients change simultaneously, further analysis is necessary to determine whether the optimal solution will change.
True
Limitation of classical sensitivity analysis: constraint (LHS) coefficients
It doesn't tell you how the solution changes if a coefficient of a constraint (like a resource usage rate) is modified.
Transportation problem: usual objective
Minimize the cost of shipping goods from several origins to several destinations.
Transportation network: nodes vs arcs
Each origin and each destination is a node. Each possible shipping route is an arc.
Transportation decision variable xij
The number of units shipped from origin i to destination j.
Constraint signs in a transportation problem
Supply constraints are "≤" and demand constraints are "=".
Number of decision variables in a transportation LP
Number of constraints in a transportation LP
True or False: A transportation problem with three sources and four destinations will have seven decision variables.
False. It has 3 x 4 = 12 decision variables (7 is the number of constraints).
True or False: If a transportation problem has four origins and five destinations, the LP formulation will have nine constraints.
True. 4 + 5 = 9 constraints (and 20 decision variables).
Foster Generators example: 3 plants (Cleveland 5000, Bedford 6000, York 2500) and 4 distribution centers (Boston, Chicago, St. Louis, Lexington). How many variables and constraints?
12 decision variables (3 x 4) and 7 constraints (3 + 4).
Write the LP: Origins 1 (100), 2 (200), 3 (300). Destinations A (300), B (300). Costs: 1A=2, 1B=4, 2A=3, 2B=5, 3A=7, 3B=6.
Min 2X1A + 4X1B + 3X2A + 5X2B + 7X3A + 6X3B s.t. X1A + X1B ≤ 100; X2A + X2B ≤ 200; X3A + X3B ≤ 300; X1A + X2A + X3A = 300; X1B + X2B + X3B = 300; all xij ≥ 0.
Variation: total supply EXCEEDS total demand
No change to the LP formulation is needed. Excess supply shows up as slack, which is the unused supply (amount not shipped) at that origin.
Variation: total supply is LESS THAN total demand
The LP has no feasible solution. Fix it by adding a dummy origin (fake supplier) with supply equal to total demand minus total supply.
Variation: maximization objective in a transportation problem
Use profit or revenue per unit as the objective coefficients and solve a maximization LP. The constraints do not change.
Variation: unacceptable routes
If a route isn't possible, remove the corresponding variable from the LP formulation.
True or False: When a route in a transportation problem is unacceptable, the corresponding variable can be removed from the LP formulation.
True
Transshipment problem
An extension of the transportation problem that adds intermediate nodes, called transshipment nodes, for locations like warehouses.
Objective of the transshipment problem
Determine how many units should be shipped over each arc in the network to satisfy destination demand at the minimum transportation cost.
Transshipment node constraint
Flow out - flow in = 0 (everything that comes in must go out). Example: -x13 - x23 + x35 + x36 + x37 + x38 = 0
Number of decision variables in a transshipment LP
(# of origins x # of transshipment points) + (# of transshipment points x # of destinations)
Number of constraints in a transshipment LP
Ryan Electronics transshipment example: 2 plants (Denver 600, Atlanta 400), 2 warehouses (Kansas City, Louisville), 4 retail outlets (Detroit 200, Miami 150, Dallas 350, New Orleans 300). Variables and constraints?
12 variables: (2 x 2) + (2 x 4). 8 constraints: 2 + 2 + 4.
Ryan Electronics: what do the constraints look like?
Plant supply: x13 + x14 ≤ 600 and x23 + x24 ≤ 400. Warehouses: flow out - flow in = 0. Retail demand: x35 + x45 = 200, x36 + x46 = 150, x37 + x47 = 350, x38 + x48 = 300.
In a transshipment problem, shipments…
Can occur between any two nodes.