Linear Programming Models: Graphical and Computer Methods: To Accompany
Linear Programming Models: Graphical and Computer Methods: To Accompany
Linear Programming Models: Graphical and Computer Methods: To Accompany
To accompany
Quantitative Analysis for Management, Tenth Edition,
by Render, Stair, and Hanna © 2008 Prentice-Hall, Inc.
Power Point slides created by Jeff Heyl © 2009 Prentice-Hall, Inc.
Learning Objectives
After completing this chapter, students will be able to:
1. Understand the basic assumptions and
properties of linear programming (LP)
2. Graphically solve any LP problem that has
only two variables by both the corner point
and isoprofit line methods
3. Understand special issues in LP such as
infeasibility, unboundedness, redundancy,
and alternative optimal solutions
4. Understand the role of sensitivity analysis
5. Use Excel spreadsheets to solve LP
problems
© 2009 Prentice-Hall, Inc. 7–2
Chapter Outline
7.1 Introduction
7.2 Requirements of a Linear Programming
Problem
7.3 Formulating LP Problems
7.4 Graphical Solution to an LP Problem
7.5 Solving Flair Furniture’s LP Problem using
QM for Windows and Excel
7.6 Solving Minimization Problems
7.7 Four Special Cases in LP
7.8 Sensitivity Analysis
Table 7.2
100 –
– This Axis Represents the Constraint T ≥ 0
Number of Chairs
80 –
–
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.1 Number of Tables
80 –
–
60 –
–
40 –
–
(T = 60, C = 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.2 Number of Tables
80 –
–
60 –
–
(30, 40) (70, 40)
40 –
–
20 –
– (30, 20)
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.3 Number of Tables
100 – (T = 0, C = 100)
–
Number of Chairs
100 –
–
Number of Chairs
80 – Painting/Varnishing Constraint
–
60 –
–
40 –
–
Carpentry Constraint
20 – Feasible
Region
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.5 Number of Tables
80 –
–
60 –
–
(0, 42) $2,100 = $70T + $50C
40 –
–
(30, 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.6 Number of Tables
80 –
– $2,800 = $70T + $50C
60 –
– $2,100 = $70T + $50C
40 –
– $4,200 = $70T + $50C
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.7 Number of Tables
80 –
Maximum Profit Line
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,100 = $70T + $50C
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.8 Number of Tables
80 –
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
0 20 40
4 60 80 100 T
Figure 7.9 Number of Tables
Table 7.3
Program 7.1A
Program 7.1B
Program 7.1C
Program 7.1D
Program 7.2B
Program 7.2C
Program 7.2D
© 2009 Prentice-Hall, Inc. 7 – 53
Using Solver to Solve the Flair
Furniture Problem
Excel’s answer report for the Flair Furniture problem
Program 7.2E
© 2009 Prentice-Hall, Inc. 7 – 54
Solving Minimization Problems
Many LP problems involve minimizing an
objective such as cost instead of maximizing a
profit function
Minimization problems can be solved graphically
by first setting up the feasible solution region and
then using either the corner point method or an
isocost line approach (which is analogous to the
isoprofit approach in maximization problems) to
find the values of the decision variables (e.g., X1
and X2) that yield the minimum cost
Let
X1 = number of pounds of brand 1 feed purchased
X2 = number of pounds of brand 2 feed purchased
point method –
First we construct
the feasible 20 – Ingredient C Constraint
Pounds of Brand 2
solution region
The optimal 15 – Feasible Region
solution will lie at a
on of the corners 10 –
as it would in a Ingredient B Constraint
maximization 5– Ingredient A Constraint
b
problem
| | | | c | |
0–
5 10 15 20 25 X1
Figure 7.10 Pounds of Brand 1
© 2009 Prentice-Hall, Inc. 7 – 58
Holiday Meal Turkey Ranch
We solve for the values of the three corner points
Point a is the intersection of ingredient constraints
C and B
4X1 + 3X2 = 48
X1 = 3
Substituting 3 in the first equation, we find X2 = 12
Solving for point b with basic algebra we find X1 =
8.4 and X2 = 4.8
Solving for point c we find X1 = 18 and X2 = 0
approach –
Feasible Region
Choosing an
initial cost of 54 20 –
Pounds of Brand 2
cents, it is clear
improvement is 15 –
=2
54
¢
Di
possible re
cti
X
1 +
on 3X
of 2 Is
10 – De oc
31 os
.2¢ cr tL
=2 ea ine
sin
X gC
1 +
5– 3X os
2 t
(X1 = 8.4, X2 = 4.8)
| | | | | |
0–
5 10 15 20 25 X1
Figure 7.11 Pounds of Brand 1
© 2009 Prentice-Hall, Inc. 7 – 61
Holiday Meal Turkey Ranch
QM for Windows can also be used to solve the
Holiday Meal Turkey Ranch problem
Program 7.3
Program 7.4A
© 2009 Prentice-Hall, Inc. 7 – 63
Holiday Meal Turkey Ranch
Solution to the Holiday Meal Turkey Ranch
problem using Solver
Program 7.4B
© 2009 Prentice-Hall, Inc. 7 – 64
Four Special Cases in LP
X2
8–
–
6–
– Region Satisfying
4– Third Constraint
–
2–
–
0– | | | | | | | | | |
2 4 6 8 X1
X1 ≥ 5
15 –
X2 ≤ 10
10 –
Feasible Region
5–
X1 + 2X2 ≥ 15
| | | | |
0– 5 10 15 X1
Figure 7.13
© 2009 Prentice-Hall, Inc. 7 – 69
Four Special Cases in LP
Redundancy
A redundant constraint is one that does not
affect the feasible solution region
One or more constraints may be more binding
This is a very common occurrence in the real
world
It causes no particular problems, but
eliminating redundant constraints simplifies
the model
20 –
Redundant
Constraint
15 –
X1 ≤ 25
10 – X1 + X2 ≤ 20
Feasible
5– Region
| | | | | |
0–
Figure 7.14 5 10 15 20 25 30 X1
© 2009 Prentice-Hall, Inc. 7 – 71
Four Special Cases in LP
Alternate Optimal Solutions
Occasionally two or more optimal solutions
may exist
Graphically this occurs when the objective
function’s isoprofit or isocost line runs
perfectly parallel to one of the constraints
This actually allows management great
flexibility in deciding which combination to
select as the profit is the same at each
alternate solution
2–
B Isoprofit Line for $12
1 – Feasible Overlays Line Segment AB
Region
0– | | | | | | | |
Figure 7.15 1 2 3 4 5 6 7 8 X1
© 2009 Prentice-Hall, Inc. 7 – 73
Sensitivity Analysis
Optimal solutions to LP problems thus far have
been found under what are called deterministic
assumptions
This means that we assume complete certainty in
the data and relationships of a problem
But in the real world, conditions are dynamic and
changing
We can analyze how sensitive a deterministic
solution is to changes in the assumptions of the
model
This is called sensitivity analysis,
analysis postoptimality
analysis,
analysis parametric programming,
programming or optimality
analysis
60 –
30 –
Profit Line for 50X1 + 120X2
(Passes through Point a)
20 – b
a Profit Line for 50X1 + 150X2
(Passes through Point a)
10 –
c
| | | | | |
0– 10 20 30 40 50 60 X1
Figure 7.17
Program 7.5A
Program 7.5B
Program 7.6A
Program 7.6B
© 2009 Prentice-Hall, Inc. 7 – 82
Changes in the
Technological Coefficients
60 – 60 – 60 –
Stereo Receivers
Figure 7.18
X2 (a)
60 –
| c | | |
0– 20 40 50 60 X1
Figure 7.19
X2 (b)
60 –
X2 (c)
40 –
Constraint
Representing
60 Hours of Audio
20 – Technician’s
Time Resource
| | | | | |
0– 20 40 60 80 100 120
X1
Figure 7.19
Program 7.5A
Program 7.5B
Program 7.6B
© 2009 Prentice-Hall, Inc. 7 – 92