Operations Management: Previous Class (#8) : Demand Forecasting
Operations Management: Previous Class (#8) : Demand Forecasting
1
Housekeeping Issues
Final exam conflict declaration deadline
– Thursday, Dec 10th at 11:59pm by email
Assignments
– Assignment #4 is due Dec. 2nd, 11:59pm (submit at
https://utormat.io/#/login?r)
2
Linear Programming (LP) Problem
If both the objective function and the constraints are
linear, the problem is referred to as a linear programming
problem.
Solution Methods
– Graphical
» Graph Constraints, Objective function
» Find solution
– Excel Solver
Linear Programming Formulation
Step 1: Determine Decision Variables
Decision Variables
– T = # of tables
– C = # of chairs
Step 2: Objective Function
Specify the problem objective
Objective Function
– Maximize profit = 16T + 10C
Step 3: Constraints
Determine the Constraints
There are only 6 large blocks
2T + C ≤ 6
There are only 8 small blocks
2T + 2C ≤ 8
Not more than 5 tables
T≤5
Implicit Constraints
T, C ≥ 0
LP Formulation
maximize z = 16T + 10C
subject to 2T + C ≤ 6 (large block constraint)
2T + 2C ≤ 8 (small block constraint)
T ≤ 5 (no more than 5 tables)
T, C ≥ 0 (non-negativities)
Methods of Solution
Trial and Error
Linear Programming
– Graphical
– Simplex (not covered in this lecture)
– Computer – Excel Solver (and other software)
Method 1: Graphical
Step 1: Determine the feasible region.
– Plot a constraint line for each constraint
– For each constraint line, determine the feasible
side.
– Identify the set of solutions that satisfy all the
constraints.
Step 2: Identify an arbitrary objective function.
Step 3: For a maximization problem, move the
arbitrary objective function away from (0,0) until
further movement would take the line completely out
of the feasible region.
Step 1: Constraint 1 (SB)
2C + 2T ≤ 8
Maximum Tables = 4
2C + 2T = 8
Maximum Chairs = 4
Step 1: Constraint 2 (LB)
2C + 2T ≤ 8
Maximum Tables = 3
C + 2T ≤ 6
2C + 2T = 8
C + 2T = 6
Maximum Chairs = 6
Graphing Constraint 3 (Max T)
T =5
Feasible region
2C + 2T = 8
2C + 2T ≤ 8
C + 2T ≤ 6
T≤5
C + 2T = 6
Step1: Feasible Region
Constraints
2C + 2T ≤ 8
C + 2T ≤ 6
T≤5
Step 2: Arbitrary Objective Function
T≥0
C≥0
T≤5
Unbounded problem
Infeasible problem
Example: Unique Optimal
There is only one point in the feasible set that
maximizes the objective function (x1 = 8, x2 = 0)
x2
8
4x1 + 3x2 ≥ 12
Max 6x1 + 3x2 4
3 4 x1
Example: Infeasible Problem
No points satisfy both constraints
– no feasible region, no optimal solution
x2
8 2x1 + x2 ≥ 8
4x1 + 3x2 ≤ 12
4
3 4 x1
Example: Unbounded Problem
Objective function can be moved outward
without limit; z can be increased infinitely
x2
3x1 + x2 ≥ 8
8
5 x1 + x2 ≥ 5
Objective
– Minimize cost: z = 6S + 3C
LP Formulation
Decision Variables
– S = # of bags of SuperGrow
– C = # of bags of CropQuick
Objective
– Minimize cost: z = 6S + 3C
Constraints
– For nitrogen: 2S + 4C ≥ 16
– For phosphate: 4S + 3C ≥ 24
– Non-negativities: S, C≥0
Sensitivity Analysis
Looking Ahead
Sensitivity Analysis
– Objective function coefficient changes (Range of
optimality)
– Changes in RHS of constraints (Shadow Price and
Range of Feasibility)
» Non-binding Constraints
» Binding Constraints
Two Different Methods
– Graphical [Method 1] – will not fully cover
– Computer – Sensitivity Report [Method 2]
Impact of Possible Changes
Change objective
– may change optimal solution
Change existing constraints
– changes slope; may change size of feasible region
Add new constraint
– may decrease feasible region (if binding)
Remove constraint
– may increase feasible region (if binding)
LP Example
Kelson makes 2 different types of baseball gloves: a
regular glove and a catcher’s mitt. The firm has 900 hours
of production time available in its cutting and sewing
department, 300 hours available in its finishing department,
and 100 hours available in its packaging and shipping
department. The production time requirements and the
profit contribution for each product are shown below.
Assume the company is interested in maximizing the total
profit contribution.
Model Cutting& Packaging& Profit/glove
Finishing
Sewing Shipping
Regular 1 (hr) 0.5 0.125 $5
Catcher 1.5 0.333 0.25 $8
LP Formulation
1) Let R = number of regular gloves
C = number of catcher’s mitts
2) max z = 5R + 8C
3) s.t. 1R + 1.5C ≤ 900 (Cut&Sew)
0.5R + 0.333C ≤ 300 (Finishing)
0.125R + 0.25C ≤ 100 (Pack&Ship)
R, C ≥ 0 (Nonnegativity)
Graphical Solution
C
900 Finishing
Pack&Ship
600
400
(500, 150)
Cut&Sew
R
0 600 800 900
Excel Formulation
Data -> Solver
If you cannot see Solver in Data, go to Tools -> Excel Add-ons and choose Solver Add-in
(sometimes it would be in Excel -> Preferences -> Add-ons)
Solver - Options
Solver – dialog box
Excel Solution - I
Excel Solution - II
Pack&Ship
600
400
(500, 150)
Cut&Sew
R
0 600 800 900
Range of Optimality – Computer output
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Decision Variables R 500 0 5 7 1
$C$3 Decision Variables C 150 0 8 2 4.67
S.T.
1) 1 X1 + 1 X3 = 100
2) 1 X2 + 1 X4 = 150
3) 4 X1 + 3 X2 < 600
4) 6 X1 + 8 X2 < 1080
5) X1, X2, X3, X4 > 0
S.T. 1) 1 X1 + 1 X3 = 100
2) 1 X2 + 1 X4 = 150
3) 4 X1 + 3 X2 < 600
4) 6 X1 + 8 X2 < 1080
5) X1, X2, X3, X4 > 0
This
problem has multiple optimal solutions. The alternative
optimal solution is
• Objective function value of this solution is
Reduced Cost (Cont.)
Coefficient of X3 is reduced from 14 to 12.249 (1.751 units decrease because of
minimization objective)
MIN 10X1+6X2+12.249X3+9X4
S.T.
1) 1X1+1X3=100
2) 1X2+1X4=150
3) 4X1+3X2<600
4) 6X1+8X2<1080
5) X1, X2, X3, X4 > 0
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Product 1 0 0.001 10 1E+30 0.001
$C$3 Product 2 135 0 6 0.001333333 1E+30
$D$3 Product 3 100 0 12.249 0.001 1E+30
$E$3 Product 4 15 0 9 1E+30 0.001333333
600
400
Pack&Ship
(500, 150)
Cut&Sew
R
0 600 800 900
Shadow Price: Non-binding constraint
Cutting Constraint: 1R + 1.5C 900
At optimality, LHS of the constraint is 725 [900 – 175 = 725].
This is not a binding constraint as LHS is not equal to RHS at
optimality. Hence shadow price for this constraint is zero.
Shadow Price: Binding
When the RHS of finishing constraint is increased
by one unit, the feasible region changes and
C optimal solution changes as well.
400
The new OFV is 3703.
Pack&Ship This is an increase of 3
(500, 150) from original OFV.
Shadow price = 3
Cut&Sew
Cut&Sew
Cut&Sew