RSM270 Winter 2024 - Lecture 10
RSM270 Winter 2024 - Lecture 10
Linear Programming
Case 2 has been released and will be due on April 7th, 11:59pm via Quercus.
– Working in groups is optional.
– All groups from Case 1 have been dissolved. They do not carry forward
automatically.
– You must actively reach out/confirm your group members for Case 2.
– If you work in a group, you may work in groups of up to five.
– Eligible group members are anyone in the Thursday sections of RSM270
(Saunders).
RSM 270 / Linear Programming I 3
Steps in Developing a LP Model
1) Problem Formulation
2) Solution Techniques
3) Interpretation of Results
1) Problem Formulation
2) Solution Techniques
3) Interpretation of Results
2. Objective Function
» Profit or Cost Parameters
» Maximization/Minimization
3. Constraints
» Constraint Parameters
» Right-Hand-Side Constants
2. Objective Function
» Profit or Cost Parameters
» Maximization/Minimization
3. Constraints
» Constraint Parameters
» Right-Hand-Side Constants
2. Objective Function
» Profit or Cost Parameters
» Maximization/Minimization
3. Constraints
» Constraint Parameters
» Right-Hand-Side Constants
RSM 270 / Linear Programming I 8
Step 1: Problem Formulation
2. Objective Function
» Profit or Cost Parameters
» Maximization/Minimization
3. Constraints
» Constraint Parameters
» Right-Hand-Side Constants
RSM 270 / Linear Programming I 9
Step 1: Problem Formulation
Tables Chairs
(per table) (per chair)
Unit Profit $7 $5 Hours Available
Carpentry 3 hrs 4 hrs 2400
Painting 2 hrs 1 hr 1000
Decision Variables:
Let T = Number of tables to make each month
C = Number of chairs to make each month
Maximize 7T + 5C
Constraints:
Constraints:
1) Problem Formulation
2) Solution Techniques
3) Interpretation of Results
- Graphical Solutions
- Microsoft Excel (Solver)
- Simplex Method
- Karamarkar’s Algorithm
- IBM CPLEX
- Gurobi
- MATLAB
- Mathematica
Note that the same properties with two decision variables apply to
all LP models and solutions with n decision variables!
0 T
RSM 270 / Linear Programming I 20
Example Graphic Solution: Flair Furniture Continued
Carpentry
Constraint Line: C
3T + 4C = 2400 6𝟎𝟎 =
𝟐𝟒𝟎𝟎
𝟒 Infeasible
600
(i.e., 3T + 4C < 2400) 3T
> 2400 hrs
+4
C=
24
00
Intercepts:
Feasible
(T = 0, C = 600) Region
(T = 800, C = 0) 0
0 800 T
𝟐𝟒𝟎𝟎
𝟖𝟎𝟎 =
𝟑
RSM 270 / Linear Programming I 21
Example Graphic Solution: Flair Furniture Continued
C
Painting 1000
Constraint Line:
2T + 1C = 1000
2T
+1
(i.e., 2T + 1C < 1000) 600
C=
100
0
Intercepts:
(T = 0, C = 1000) Feasible
Region
(T = 500, C = 0)
0
0 500 800 T
RSM 270 / Linear Programming I 22
Example Graphic Solution: Flair Furniture Continued
C
1000
Max Chair Line:
C = 450
450
7T
+5
C=
300
7T + 5C
$2
7T
7T
,8 0
+5
+5
0
Optimal point satisfies all constraints of the model.
C=
C=
200
$4
$2
To see whether this is an accurate statement, you
,0 4
,1 0
can go ahead and plug in the optimal point in each
0
0
constraint of the model.
100 Feasible
Region
200
C – T > 75
100
Left Hand Side (LHS) Right Hand Side (RHS)
Redundant Constraints
Infeasible Solution
Corner
400 Feasible Points
Region
300
200
Optimal
100 Point
0
0 100 200 300 400 500 T
RSM 270 / Linear Programming I 29
Example Excel Solution: Flair Furniture Continued
1) Problem Formulation
2) Solution Techniques
3) Interpretation of Results
What is the model telling you to do? What actions should you
take to:
– Minimize your costs? Maximize your profits?
– Read and interpret the MS Excel Answer Report
Variable Cells
Cell Name Original Value Final Value Integer
$B$5 Number of units Tables 0 320 Contin
$C$5 Number of units Chairs 0 360 Contin
Range Information
Shadow Price Information
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$5 Number of Units Tables 320 0 7 3 3.25
$C$5 Number of Units Chairs 360 0 5 4.333333333 1.5
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$11 Minimum tables 320 0 100 220 1E+30
$D$8 Carpentry hours 2400 0.6 2400 225 900
$D$9 Painting hours 1000 2.6 1000 600 150
$D$10 Maximum chairs 360 0 450 1E+30 90
RSM 270 / Linear Programming I 39
Flair Furniture Continued: Sensitivity Analysis Questions
Flair Furniture is offered 100 more painting hours at a cost of $250. Should they take
the deal?
– Yes. The objective is maximization and 100 * 2.6 (profit) > 250 (cost)
Flair Furniture is offered 100 more carpentry hours at a cost of $250. Should they
take the deal?
– No. The objective is maximization and 100 * 0.6 (profit) < 250 (cost).
What would be the impact of decreasing the minimum number of tables in 50 units?
– No impact on the optimal solution
What would be the impact of increasing the maximum number of chairs in 50 units?
– No impact on the optimal solution
RSM 270 / Linear Programming I 40
General Principles on Shadow Prices
The unit of the shadow price is the unit of the objective function divided by the
unit of the constraint:
D (optimal objective function value)
Shadow Price =
D (RHS value)
42
RSM 270 / Linear Programming I 42
Linear Programming Applications
Product mix
Make-buy
Media selection
Marketing research
Portfolio allocation
Market microstructure
Shipping & transportation
Multi-period scheduling
For a better grasp of the key concepts, the following readings are
only recommended:
– Appendix A of Jacobs and Chase.