Linear Programming: Graphical Methods Guide
Linear Programming: Graphical Methods Guide
Chapter 7
Linear Programming Models:
Graphical Methods
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.
1
8 Jan 2024
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 Minimization Problems
7.6 Four Special Cases in LP
7.7 Sensitivity Analysis
Introduction
◼ Many management decisions involve
trying to make the most effective use of
limited resources.
◼ Linear programming (LP) is a widely used
mathematical modeling technique
designed to help managers in planning and
decision making relative to resource
allocation.
◼ This belongs to the broader field of
mathematical programming.
◼ In this sense, programming refers to modeling
and solving a problem mathematically.
2
8 Jan 2024
Requirements of a Linear
Programming Problem
◼ All LP problems have 4 properties in common:
1. All problems seek to maximize or minimize some
quantity (the objective function).
2. Restrictions or constraints that limit the degree to
which we can pursue our objective are present.
3. There must be alternative courses of action from which
to choose.
4. The objective and constraints in problems must be
expressed in terms of linear equations or inequalities.
Basic Assumptions of LP
◼ We assume conditions of certainty exist and
numbers in the objective and constraints are
known with certainty and do not change during
the period being studied.
◼ We assume proportionality exists in the objective
and constraints.
◼ We assume additivity in that the total of all
activities equals the sum of the individual
activities.
◼ We assume divisibility in that solutions need not
be whole numbers.
◼ All answers or variables are nonnegative.
3
8 Jan 2024
Formulating LP Problems
◼ Formulating a linear program involves developing
a mathematical model to represent the managerial
problem.
◼ The steps in formulating a linear program are:
1. Completely understand the managerial
problem being faced.
2. Identify the objective and the constraints.
3. Define the decision variables.
4. Use the decision variables to write
mathematical expressions for the objective
function and the constraints.
4
8 Jan 2024
Formulating LP Problems
◼ One of the most common LP applications is the
product mix problem.
◼ Two or more products are produced using
limited resources such as personnel, machines,
and raw materials.
◼ The profit that the firm seeks to maximize is
based on the profit contribution per unit of each
product.
◼ The company would like to determine how
many units of each product it should produce
so as to maximize overall profit given its limited
resources.
5
8 Jan 2024
HOURS REQUIRED TO
PRODUCE 1 UNIT
(T) (C) AVAILABLE HOURS
DEPARTMENT TABLES CHAIRS THIS WEEK
Carpentry 4 3 240
Table 7.2
6
8 Jan 2024
7
8 Jan 2024
8
8 Jan 2024
Graphical Representation of a
Constraint
Quadrant Containing All Positive Values
C
100 –
– This Axis Represents the Constraint T ≥ 0
80 –
Number of Chairs
–
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|– | | | | | | | | | | |
Figure 7.1 0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
9
8 Jan 2024
Graphical Representation of a
Constraint
◼ When Flair produces no tables, the
carpentry constraint is:
4(0) + 3C = 240
3C = 240
C = 80
◼ Similarly for no chairs:
4T + 3(0) = 240
4T = 240
T = 60
◼ This line is shown on the following graph:
Graphical Representation of a
Constraint
Graph of carpentry constraint equation
C
100 –
–
80 –
Number of Chairs
(T = 0, C = 80)
–
60 –
–
40 –
–
(T = 60, C = 0)
20 –
–
Figure 7.2 |– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
10
8 Jan 2024
Graphical Representation of a
Constraint
Region that Satisfies the Carpentry Constraint
C
◼ Any point on or below
100 – the constraint plot will
– not violate the
80 – restriction.
Number of Chairs
Graphical Representation of a
Constraint
11
8 Jan 2024
Graphical Representation of a
Constraint
Region that Satisfies the Painting and
Varnishing Constraint
C
100 – (T = 0, C = 100)
–
80 –
Number of Chairs
–
60 –
–
40 –
–
(T = 50, C = 0)
20 –
–
|– | | | | | | | | | | |
Figure 7.4
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
12
8 Jan 2024
Graphical Representation of a
Constraint
Feasible Solution Region for the Flair
Furniture Company Problem
C
100 –
–
80 –
Number of Chairs
Painting/Varnishing Constraint
–
60 –
–
40 –
–
Carpentry Constraint
20 – Feasible
– Region
|– | | | | | | | | | | |
Figure 7.5
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
◼ For the point (30, 20)
13
8 Jan 2024
Graphical Representation of a
Constraint
◼ For the point (50, 5)
14
8 Jan 2024
100 –
–
80 –
Number of Chairs
–
60 –
– $2,100 = $70T + $50C
(0, 42)
40 –
–
(30, 0)
20 –
–
|– | | | | | | | | | | |
Figure 7.6
0 20 40 60 80 100 T
Number of Tables
15
8 Jan 2024
100 –
–
$3,500 = $70T + $50C
80 –
Number of Chairs
100 –
–
80 –
Number of Chairs
16
8 Jan 2024
100 –
2 –
80 –
Number of Chairs
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
Figure 7.9 0 20 40 60 80 100
4 T
Number of Tables
17
8 Jan 2024
18
8 Jan 2024
Table 7.4
19
8 Jan 2024
20
8 Jan 2024
Program 7.1A
Program 7.1B
21
8 Jan 2024
Program 7.1C
Program 7.1D
22
8 Jan 2024
23
8 Jan 2024
Program 7.2A
24
8 Jan 2024
Program 7.2B
Program 7.2C
25
8 Jan 2024
26
8 Jan 2024
Figure 7.2D
Figure 7.2E
27
8 Jan 2024
Figure 7.2F
Figure 7.2G
28
8 Jan 2024
Figure 7.2H
29
8 Jan 2024
Table 7.5
30
8 Jan 2024
X2
–
20 –
Ingredient C Constraint
Pounds of Brand 2
15 –
Feasible Region
a
10 –
Ingredient B Constraint
5–
b Ingredient A Constraint
Figure 7.10
0 |– | | | c | |
5 10 15 20 25 X1
Pounds of Brand 1
31
8 Jan 2024
32
8 Jan 2024
20 –
Pounds of Brand 2
15 –
10 –
5–
Program 7.3
33
8 Jan 2024
Program 7.4A
Program 7.4B
34
8 Jan 2024
35
8 Jan 2024
8–
–
6–
–
Region Satisfying
4– Third Constraint
–
2–
–
0– | | | | | | | | | |
Figure 7.12 2 4 6 8 X1
Region Satisfying First Two Constraints
36
8 Jan 2024
X1 ≥ 5
15 –
X2 ≤ 10
10 –
Feasible Region
5–
X1 + 2X2 ≥ 15
0 |– | | | |
Figure 7.13 5 10 15 X1
37
8 Jan 2024
25 –
2X1 + X2 ≤ 30
20 –
Redundant
Constraint
15 –
X1 ≤ 25
10 –
X1 + X2 ≤ 20
Feasible
5–
Figure 7.14 Region
0– | | | | | |
5 10 15 20 25 30 X1
38
8 Jan 2024
7–
6 –A
Optimal Solution Consists of All
5– Combinations of X1 and X2 Along
the AB Segment
4–
2–
B Isoprofit Line for $12
1 – Feasible Overlays Line Segment AB
Figure 7.15
Region
0– | | | | | | | |
1 2 3 4 5 6 7 8 X1
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, postoptimality
analysis, parametric programming, or optimality
analysis.
39
8 Jan 2024
Sensitivity Analysis
◼ Sensitivity analysis often involves a series of
what-if? questions concerning constraints,
variable coefficients, and the objective function.
◼ One way to do this is the trial-and-error method
where values are changed and the entire model is
resolved.
◼ The preferred way is to use an analytic
postoptimality analysis.
◼ After a problem has been solved, we determine a
range of changes in problem parameters that will
not affect the optimal solution or change the
variables in the solution.
40
8 Jan 2024
Changes in the
Objective Function Coefficient
41
8 Jan 2024
Changes in the
Objective Function Coefficient
Changes in the Receiver Contribution Coefficients
X2
40 –
Profit Line for 50X1 + 80X2
(Passes through Point b)
30 –
Old Profit Line for 50X1 + 120X2
(Passes through Point a)
20 –
b
a Profit Line for 50X1 + 150X2
10 – (Passes through Point a)
0– | | c | | | |
10 20 30 40 50 60 X1
Figure 7.17
Program 7.5A
Program 7.5B
42
8 Jan 2024
Program 7.6A
Figure 7.6B
43
8 Jan 2024
Program 7.6C
Changes in the
Technological Coefficients
44
8 Jan 2024
Changes in the
Technological Coefficients
Change in the Technological Coefficients for the
High Note Sound Company
Changes in Resources or
Right-Hand-Side Values
◼ The right-hand-side values of the
constraints often represent resources
available to the firm.
◼ If additional resources were available, a
higher total profit could be realized.
◼ Sensitivity analysis about resources will
help answer questions about how much
should be paid for additional resources
and how much more of a resource would
be useful.
45
8 Jan 2024
Changes in Resources or
Right-Hand-Side Values
◼ If the right-hand side of a constraint is changed,
the feasible region will change (unless the
constraint is redundant).
◼ Often the optimal solution will change.
◼ The amount of change in the objective function
value that results from a unit change in one of the
resources available is called the dual price or dual
value .
◼ 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.
Changes in Resources or
Right-Hand-Side Values
◼ However, the amount of possible increase in the
right-hand side of a resource is limited.
◼ If the number of hours increased beyond the
upper bound, then the objective function would no
longer increase by the dual price.
◼ There would simply be excess (slack) hours of a
resource or the objective function may change by
an amount different from the dual price.
◼ The dual price is relevant only within limits.
46
8 Jan 2024
X2 (a)
60 –
40 –
Constraint Representing 60 Hours of
Audio Technician’s Time Resource
a
25 –
20 – b Changed Constraint Representing 100 Hours
of Electrician’s Time Resource
– | c | | |
0 20 40 50 60 X1
Figure 7.19
X2 (b)
60 –
40 –
Constraint Representing 60 Hours of
Audio Technician’s Time Resource
– c | | | |
0 20 30 40 60 X1
Figure 7.19
47
8 Jan 2024
X2 (c)
60 –
Changed Constraint Representing 240 Hours
of Electrician’s Time Resource
40 –
Constraint
Representing
20 – 60 Hours of Audio
Technician’s
Time Resource
– | | | | | |
0 20 40 60 80 100 120
X1
Figure 7.19
Program 7.5B
48
8 Jan 2024
Program 7.6C
49