Linear Programming
Linear Programming
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.
Linear Programming (LP)
Many management decisions involve trying to
make the most effective use of limited resources
Machinery, labor, money, time, warehouse space, raw
materials
Linear programming (LP)
LP is a model consisting of
linear relationships representing a firm’s objective
and resource constraints
Belongs to the broader field of mathematical
programming
In this sense, programming refers to modeling and
solving a problem mathematically
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
80 – Painting/Varnishing Constraint
–
60 –
–
40 –
–
20 – Feasible
Carpentry Constraint
– Region
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Figure 7.5
80 –
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
0 20 40
4 60 80 100 T
Figure 7.9 Number of Tables
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 – 32
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 – 35
Exercise 2: A nutrition Problem
A nutritionist advises an individual who is suffering from
iron and vitamin B deficiency to take at least 2400
milligrams (mg) of iron, 2100 mg of vitamin B1, and 1500 mg
of vitamin B2 over a period of time.
Two vitamin pills are suitable, brand-A and brand-B.
Each brand-A pill costs 6 cents and contains 40 mg of iron,
10 mg of vitamin B1, and 5 mg of vitamin B2.
Each brand-B pill costs 8 cents and contains 10 mg of iron
and 15 mg each of vitamins B1 and B2.
What combination of pills should the individual purchase in
order to meet the minimum iron and vitamin requirements
at the lowest cost?
X2
X1+2X2≤6
2X1+X2≤8 8–
–
X1≥7 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 – 41
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 – 43
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 – 45
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
60 – 60 – 60 –
Stereo Receivers
Figure 7.18
X2 (a)
If the electricians’ hours are changed from 80 to
60 – 100, the new optimal solution is (0,25) with profit
of $3,000. The extra 20 hours resulted in an
increase in profit of $600 or $30/hour
| c | | |
0– 20 40 50 60 X1
Figure 7.19
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
budget is spent?
For the optimal solution, how much square footage will be
used?
Would the solution change is the budget were only $300
instead of $400?
What would the optimal solution be if the profit on the large