Stairs
Stairs
Fourteenth Edition
Chapter 7
Linear Programming
Models: Graphical and
Computer Methods
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives
After completing this chapter, students will be able to:
7.1 Identify the basic assumptions and properties of linear programming (L P).
7.3 Graphically solve any LP problem that has only two variables by both the
corner point and isoprofit line methods.
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Requirements of a Linear Programming
Problem
• Linear programming (LP)
– Mathematical modeling technique
– Resource allocation—product mix
• Four properties in common
– Maximize or minimize some quantity (the objective
function)
– Restrictions or constraints are present
– Alternative courses of action are available
– Linear equations or inequalities
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
LP Properties and Assumptions
Table 7.1 LP Properties and Assumptions of Linear Programs
Properties of Linear Programs
1. One objective function
2. One or more constraints
3. Alternative courses of action
4. Objective function and constraints are linear—proportionality and
divisibility
5. Certainty
6. Divisibility
7. Nonnegative variables
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Formulating LP Problems
Steps in formulating a LP problem
1. Identify the objective and the constraints
2. Define the decision variables
3. Write mathematical expressions for the objective
function and the constraints in terms of the decision
variables
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Flair Furniture Company (1 of 3)
• Product mix problem
• Maximize profit based on combination of two products
• Limited resources available
Table 7.2 Flair Furniture Company Data
Hours Required to Hours Required to
Produce 1 Unit Produce 1 Unit Available Hours this
Department Tables (T) Chairs (C) Week
Carpentry 4 3 240
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Flair Furniture Company (2 of 3)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Flair Furniture Company (2 of 3)
• Create objective function in terms of T and C
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Flair Furniture Company (3 of 3)
• Create objective function in terms of T and C
– For painting and varnishing, total time used is lower or equals 100
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Flair Furniture Company (3 of 3)
• Create objective function in terms of T and C
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Linear Programming Model
Subject to:
4T 3C 240
2T 1C 100
T ,C 0
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Solve the Model
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (1 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (2 of 7)
4T + 3C = 240
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (3 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (4 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (5 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (6 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Graphical Representation of Constraints (7 of 7)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Isoprofit Line Solution Method (1 of 5)
• Find the optimal solution from the many possible
solutions
• Speediest method is to use the isoprofit line
• Starting with a small possible profit value, graph the
objective function
• Move the objective function line in the direction of
increasing profit while maintaining the slope
• The last point it touches in the feasible region is the
optimal solution
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Isoprofit Line Solution Method (2 of 5)
• Choose a profit of $2,100
• The objective function is
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Isoprofit Line Solution Method (3 of 5)
Figure 7.6 Profit Line of $2,100 Plotted for the Flair Furniture Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Isoprofit Line Solution Method (4 of 5)
Figure 7.7 Four Isoprofit Lines Plotted for the Flair Furniture Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Isoprofit Line Solution Method (5 of 5)
Figure 7.8 Optimal Solution to the Flair Furniture Problem
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Corner Point Solution Method (1 of 3)
• Solve for the intersection of the two constraint lines
• Using the elimination method to solve simultaneous
equations method, select a variable to be eliminated
• Eliminate T by multiplying the second equation by 2
and add it to the first equation
2 2T 1C 100 4T 2C 200
4T 3C 240 carpentry
4T 2C 200 painting
C 40
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Corner Point Solution Method (2 of 3)
Figure 7.9 Four Corner Points of • Evaluate the objective function
the Feasible Region at every corner point of the
feasible region
• An optimal solution must lie at
one of the corner points or
extreme points
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Corner Point Solution Method (3 of 3)
• Substitute C = 40 into either equation to solve for T
4T 3 40 240
4T 120 240
4T 120
T 30 Thus, the corner point is (30, 40)
Table 7.3 Feasible Corner Points and Profits for Flair Furniture
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Slack and Surplus (1 of 2)
• Slack is the amount of a resource that is not used
– For a less-than-or-equal constraint
Slack (Amount of resource available) (Amount Used)
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Slack and Surplus (2 of 2)
• Surplus is used with a greater-than-or-equal-to constraint
to indicate the amount by which the right-hand side of the
constraint is exceeded
Surplus Actual amount Minimum amount
– New constraint
T C 42
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Summaries of Graphical Solution
Methods (2 of 2)
Table 7.4 [continued]
Corner Point Method
1. Graph all constraints and find the feasible region.
2. Find the corner points of the feasible region.
3. Compute the profit (or cost) at each of the feasible
corner points.
4. Select the corner point with the best value of the
objective function found in step 3. This is the optimal
solution.
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (1 of 7)
1. Enter problem data
– Variable names, coefficients for the objective function
and constraints, RHS values for each constraint
2. Designate specific cells for the values of the decision
variables
3. Write a formula to calculate the value of the objective
function
4. Write a formula to compute the left-hand sides of each
of the constraints
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (2 of 7)
Program 7.2A Excel Data Input for Flair Furniture Example
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (3 of 7)
Program 7.2C Excel Spreadsheet for Flair Furniture
Example
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (4 of 7)
Program 7.2D Starting Solver in Excel
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (5 of 7)
Program 7.2E Solver Parameters Dialog Box
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (6 of 7)
Program 7.2F Solver Add Constraint Dialog Box
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Using Excel’s Solver (7 of 7)
Program 7.2H Flair Furniture Solution Found by Solver
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (1 of 8)
The Holiday Meal Turkey Ranch is considering buying two
different brands of turkey feed and blending them to provide a
good, low-cost diet for its turkeys
Table 7.5 Holiday Meal Turkey Ranch data
Composition of Each Composition of Each Minimum Monthly
Pound of Feed (OZ.) Pound of Feed (OZ.) Requirement per
Ingredient Brand 1 Feed Brand 2 Feed Turkey (OZ.)
A 5 10 90
B 4 3 48
C 0.5 0 1.5
Blank
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (2 of 8)
• Let
X1 number of pounds of brand 1 feed purchased
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (4 of 8)
• Solve for the values of the three corner points
– Point a is the intersection of ingredient constraints C
and B
4 X1 3 X 2 48
X1 3
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (5 of 8)
• Substituting these values back into the objective function
we find
Cost 2 X1 3 X 2
Cost at point a 2 3 3 12 42
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (7 of 8)
Program 7.4 Solution to the Holiday Meal Turkey Ranch
Problem in QM for Windows
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Holiday Meal Turkey Ranch (8 of 8)
Program 7.5A Excel Solution for Holiday Meal Turkey Ranch Problem
• Program 7.5B Excel Solution showing formulas for Holiday Meal Turkey
Ranch Problem
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Four Special Cases in LP
• Four special cases and difficulties arise at times when
using the graphical approach
1. No feasible solution
2. Unboundedness
3. Redundancy
4. Alternate optimal solutions
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
No Feasible Solution
• A common occurrence in Figure 7.12 A problem with
the real world no feasible solution
• No solution satisfies all
the constraints
• Generally, one or more
constraints are relaxed
X1 2 X 2 6
2X 1 X 2 8
X1 7
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Unboundedness
• Sometimes a linear Figure 7.13 A Feasible Region
program will not have a That Is Unbounded to the Right
finite solution
• In a maximization
problem, the profit, can
be made infinitely large
without violating any
constraints
• Usually means the
problem has been
formulated improperly
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Redundancy
• A redundant constraint is Figure 7.14 Example of a
one that does not affect Redundant Constraint
the feasible solution
region, eliminating it
simplifies the model
• One or more constraints
may be binding
• Very common
occurrence in the real
world
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Alternate Optimal Solutions
• Occasionally, two or more Figure 7.15 Example of
optimal solutions may exist Alternate Optimal Solutions
• Graphically, this occurs
when the objective
function’s isoprofit or isocost
line runs perfectly parallel to
one of the constraints
• Allows management great
flexibility in selecting
solutions
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Sensitivity Analysis
• One assumption using LP is certainty, but real-world
conditions are dynamic
• Analyze how sensitive a deterministic solution is to
changes in the assumptions of the model
• Sensitivity analysis (or postoptimality analysis, parametric
programming, optimality analysis) determine how
sensitive a solution is to changes.
• Can be conducted with trial and error or Excel sensitivity
report.
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
High Note Sound Company (1 of 3)
• The company manufactures quality speakers and stereo
receivers
• Products require a certain amount of skilled artisanship which
is in limited supply
• Product mix LP model
2X1
available)
3X1
time available)
0
Blank blank X sub 1, X sub 2. Greater than or equal to 0. Blank
X1 , X 2
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
High Note Sound Company (2 of 3)
Figure 7.16 High Note Sound Company Graphical Solution
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
High Note Sound Company (3 of 3)
• Electrician hours used are
2X1 4 X 2 2 0 4 20 80
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Objective Function
Coefficient (2 of 2)
Figure 7.17 Changes in the Receiver Contribution Coefficients
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Excel Solver (1 of 3)
Program 7.7A Excel Spreadsheet for the High Note Sound
Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Excel Solver (2 of 3)
Program 7.7B Excel Solution and Solver Results Window
for the High Note Sound Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Excel Solver (3 of 3)
Program 7.7C Excel Sensitivity Report for the High Note Sound
Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Technological
Coefficients (1 of 2)
• Changes in the technological coefficients often reflect
changes in the state of technology
• If the amount of resources needed changes, coefficients
in the constraint equations will change
• May produce significant change in the shape of the
feasible region
• May cause a change in the optimal solution
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Technological
Coefficients (2 of 2)
Figure 7.18 Change in the Technological Coefficients for
the High Note Sound Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in Resources or Right-Hand-
Side Values (1 of 3)
• Right-hand-side values of the constraints often represent
resources available to the firm
• Additional resources may lead to higher total profit
• Sensitivity analysis answers:
1. How much should be paid for additional resources
2. How much more of a resource would be useful
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in Resources or Right-Hand-
Side Values (2 of 3)
• Changing the RHS will change the feasible region,
unless the constraint is redundant
• Often changes the optimal solution
• The dual price or dual value:
– The amount of change in the objective function value
that results from a unit change in one of the resources
– The dual price for a constraint is the improvement in
the objective function value that results from a one-
unit increase in the right-hand side of the constraint
– Can be thought of as a marginal return
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in Resources or Right-Hand-
Side Values (3 of 3)
• The amount of possible increase in the RHS is limited
• If the RHS is increased beyond the upper bound, then the
objective function would no longer increase by the dual
price
• There would be excess (slack) resources
• The dual price is relevant only within limits
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Electricians’ Time
Resource (1 of 3)
Figure 7.19 Changes in the Electricians’ Time Resource for the High
Note Sound Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Electricians’ Time
Resource (2 of 3)
Figure 7.19 Changes in the Electricians’ Time Resource for the High
Note Sound Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Changes in the Electricians’ Time
Resource (3 of 3)
Figure 7.19 Changes in the Electricians’ Time Resource for
the High Note Sound Company
Copyright © 2024, 2018, 2015 Pearson Education, Inc. All Rights Reserved