Lecture 6 - Chapter 7 - Linear Programming Models - Graphical and Computer Method
Lecture 6 - Chapter 7 - Linear Programming Models - Graphical and Computer Method
methods for
business
Chapter 7: Linear Programming Models:
Graphical Methods
Learning Objectives
After completing this chapter, students will be able to:
LINEAR
PROGRAMMING
mathematical
• A widely used
modeling technique designed to
help managers in planning and decision making
relative to resource allocation.
• Non-negativity
• Divisibility (Continuity) - the decision variables can be divided into non-integer values,
taking on fractional values.
• Additivity - the function value is the sum of the contributions of each term.
• Certainty; that is, that the coefficients are known and constant.
MAXIMIZATION PROBLEM
Example - Flair Furniture Company
100 –
– This Axis Represents the Constraint T ≥ 0
80 –
Number of Chairs
–
First constraint: T, C ≥ 0
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
subject to Number of Tables
(nonnegativity constraint)
40(carpentry constraint)
00(painting and varnishing constraint)
Graphical Representation of a Constraint
C Any point on or below the constraint plot will
not violate the restriction (feasible region)
100 –
Any point above the plot will violate the
–
restriction (infeasible region)
80 –
Number of Chairs
–
60 –
Second constraint: 4T + 3C <= 240
–
(30, 40) (70, 40)
40 –
–
20 –
(30, 20) Graph of carpentry constraint equation
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
subject to Number of Tables
(nonnegativity constraint)
40(carpentry constraint)
00(painting and varnishing constraint)
Graphical Representation of a Constraint
C
100 – (T = 0, C = 100)
–
80 – Graph of painting and varnishing
Number of Chairs
– constraint equation
60 –
– Third constraint: 2T + 1C <= 100
40 –
–
(T = 50, C = 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
subject to Number of Tables
(nonnegativity constraint)
40(carpentry constraint)
00(painting and varnishing constraint)
Graphical Representation of a Constraint
C Feasible solution region for Flair Furniture
100 –
–
80 – Painting/Varnishing Constraint
Number of Chairs
–
Which points lie on the feasible region?
60 –
(a) T = 30, C=20
–
(b) T= 70, C=40
40 – (c) T = 50, C=5
–
Carpentry Constraint
20 – Feasible
Region
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
subject to Number of Tables
(nonnegativity constraint)
40(carpentry constraint)
00(painting and varnishing constraint)
Graphical Representation of a Constraint
A feasible solution does not violate any of the
constraints:
For the point (30, 20)
subject to
0(nonnegativity constraint)
240(carpentry constraint)
100(painting and varnishing constraint)
Graphical Solution Methods
ISOPROFIT METHOD
1. Graph all constraints and find the feasible region.
2. Select a specific profit (or cost) line and graph it to find the slope.
3. Move the objective function line in the direction of increasing profit
(or decreasing cost) while maintaining the slope. The last point it
touches in the feasible region is the optimal solution.
4. Find the values of the decision variables at this last point and
compute the profit (or cost).
Isoprofit Line Solution Method
C
Isoprofit line at $2,100
100 –
–
80 –
Number of Chairs
–
60 –
–
(0, 42) $2,100 = $70T + $50C
40 –
–
(30, 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Isoprofit Line Solution Method
C
Four isoprofit lines
100 –
–
$3,500 = $70T + $50C
80 –
Number of Chairs
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,200 = $70T + $50C
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Graphical Solution Methods
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
0 20 40
4 60 80 100 T
Number of Tables
Corner Point Solution Method
To find the coordinates for Point accurately we have to
solve for the intersection of the two constraint lines
Using the simultaneous equations method,
method we multiply
the painting equation by –2 and add it to the carpentry
equation
4T + 3C = 240 (carpentry line)
– 4T – 2C = –200 (painting line)
C = 40
Substituting 40 for C in either of the original equations
allows us to determine the value of T
4T + (3)(40) = 240 (carpentry line)
4T + 120 = 240
T = 30
Corner Point Solution Method
The term slack is used for the amount of a resource that is not used.
Slack = (Amount of resource available) – (Amount of resource
used)
Example:
If the company decided to produce 20 tables and 25 chairs instead of the optimal solution,
the amount of carpentry time used (4T + 3C) would be: 4(20) + 3(25) = 155
Slack time in carpentry = 240 – 155 = 85
Let
X1 = number of pounds of brand 1 feed purchased
X2 = number of pounds of brand 2 feed purchased
Minimize cost (in cents) = 2X1 + 3X2
subject to:
5X1 + 10X2 ≥ 90 ounces (ingredient constraint A)
4X1 + 3X2 ≥ 48 ounces (ingredient constraint B)
0.5X1 ≥ 1.5 ounces (ingredient constraint C)
X1 ≥ 0 (nonnegativity constraint)
X2 ≥ 0 (nonnegativity constraint)
• Using the corner point method
Holiday Meal Turkey Ranch • First we construct the feasible solution
region
• The optimal solution will lie at on of the
corners as it would in a maximization
problem
X2
–
• Point a is the intersection
of ingredient constraints
20 – Ingredient C Constraint
C and B
4X1 + 3X2 = 48
X1 = 3 Pounds of Brand 2 15 – Feasible Region
Substituting 3 in the first a
equation, we find X2 = 12 10 –
• Solving for point b with Ingredient B Constraint
basic algebra we find X1 =
5– b Ingredient A Constraint
8.4 and X2 = 4.8
• Solving for point c we | | | | c | |
find X1 = 18 and X2 = 0 0–
5 10 15 20 25 X1
Pounds of Brand 1
Holiday Meal Turkey Ranch
• Substituting these value back into the objective function we
find
approach –
Feasible Region
• Choosing an initial
cost of 54 cents, it is 20 –
clear improvement is
possible Pounds of Brand 2 15 – 54
¢=
Dir 2X
ctie 1 +
3X
on 2 Is
10 – of oco
31 D e st
.2¢ cre Li n
=2 asi e
X ng
1 + Co
5– 3X st
2
Feasible Region
5–
X1 + 2X2 ≥ 15
| | | | |
0– 5 10 15 X1
Four Special Cases in LP
• Redundancy (3/4)
• A redundant constraint is one that does not affect the feasible
solution region
• Eliminating redundant constraints simplifies the model.
X2
30 –
25 –
2X1 + X2 ≤ 30
Maximize profit = $1X1 + $2X2
20 –
X1 + X2 <= 20 Redundant
2X1 + X2 <=30 Constraint
X1 <= 25 15 –
X1 ≤ 25
X1, X2 >= 0
10 – X1 + X2 ≤ 20
Feasible
5– Region
| | | | | |
0–
5 10 15 20 25 30 X1
Four Special Cases in LP
• Alternate Optimal Solutions (4/4)
• Occasionally two or more optimal solutions may exist
• Allow management great flexibility in deciding which combination to
select as the profit is the same at each alternate solution.
X2
8–
7–
A
Maximize profit = $3X1 + $2X2 6– Optimal Solution Consists of All
6X1 + 4X2 <= 24 Combinations of X1 and X2 Along the AB
5–
X1 <= 3 Segment
X1, X2 >= 0 4–
2–
B Isoprofit Line for $12 Overlays
1 – Feasible Line Segment AB
Region
0– | | | | | | | |
1 2 3 4 5 6 7 8 X1
Sensitivity Analysis
+ $120X2
Subject to 2X1
X2
(receivers) + 4X2
60 – ≤ 80
– Optimal Solution at Point a (hours of
X1 = 0 CD Players electrician’s time
40 – available)
X2 = 20 Receivers
3X1
a = (0, 20) – Profits = $2,400
b = (16, 12)
+ 1X2
20 –
Isoprofit Line: $2,400 = 50X1 + 120X2
≤ 60
10 –
| | | | | | (hours of audio
0–
10 20 30 40 50 60 X1 technician’s time
c = (20, 0) (CD players) available)
Sensitivity Analysis
1/3 Changes in the Objective Function Coefficient
• What if a technical breakthrough help raise the profit per receiver (X2) from $120 to $150?
• What if the coefficient for X2 is only $80?
X2
40 –
Profit per receiver (X2) Profit Line for 50X1 + 80X2
increased from $120 to (Passes through Point b)
$150, the solution at
30 –
point a (0, 20) is still
Profit Line for 50X1 + 120X2
optimal because the Optimal
(Passes through Point a)
lines still pass through point
20 – b
point a. The new profit
a Profit Line for 50X1 + 150X2
= 0($50) + 20($150) =
(Passes through Point a)
$3000 10 –
c
| | | | | |
0– 10 20 30 40 50 60 X1
If X2’s profit coefficient is now only $80, the slope of the profit line changes enough to cause
a new corner point b (16,12) to become optimal. The profit = 16($50) + 12($80) = $1760
2/3- Changes in the Technological Coefficients
• Reflect changes in the state of technology If fewer or more resources are
needed to produce a product such as a CD player or receiver, coefficients in
the constraint equations will change.
• These changes will have no effect on the objective function, but it can
produce a significant change in the shape of the feasible region may
cause a change in the optimal solution
|c | | | e | | | |c | |
0– 20 40 X1 0– 20 30 40 X1 0– 20 40 X1
CD Players
3/3 Changes in Resources or Right-Hand-Side
Values
| c | | |
0– 20 40 50 60 X1
The extra 20 hours of time resulted in an increase in profit of $600 = $3000 - $2400 or $30
per hour.
3/3 Changes in Resources or Right-Hand-Side Values
Changes in the Electrician's Time for High Note Sound
X2 (b)
40 –
Constraint
Representing
60 Hours of Audio
20 – Technician’s
Time Resource
| | | | | |
0– 20 40 60 80 100 120
X1
If the total hours of electrician times were 240 hours, the optimal solution would
be (0, 60) and the profit would be $7200. Again, this is an increase of $30 profit per
hour (the dual price) for each 160 hours that were added to the original amount.
HOMEWORK
Textbooks