Linear Programming Models: Graphical and Computer Methods
Linear Programming Models: Graphical and Computer Methods
Linear Programming
Models: Graphical and
Computer Methods
PowerPoint presentation to accompany
Balakrishnan/Render/Stair
Managerial Decision Modeling with Spreadsheets, 3/e
© 2013 Pearson Education, Inc. publishing as Prentice Hall 2-1
LEARNING OBJECTIVES
1. Understand the basic assumptions and properties
of linear programming (LP).
2. Use graphical procedures to solve LP problems
with only two variables to understand how LP
problems are solved.
3. Understand special situations such as
redundancy, infeasibility, unboundedness, and
alternate optimal solutions in LP problems.
4. Understand how to set up LP problems on a
spreadsheet and solve them using Excel’s Solver.
• Complete model
Maximize profit = $7T + $5C
Subject to
3T + 4C ≤ 2,400(carpentry time)
2T + 1C ≤ 1,000(painting time)
C ≤ 450 (maximum chairs allowed)
T ≥ 100 (maximum tables allowed)
T, C ≥ 0 (nonnegativity)
1,000 –
–
Number of Chairs (C)
800 – (T = 0, C = 600)
–
600 – Carpentry Constraint Line
–
400 – (T = 400, C = 300)
–
200 – (T = 800, C = 0)
–
0 –| | | | | | | | | | | |
0 200 400 600 800 1,000
Number of Tables(T)
Figure 2.1
1,000 –
– Region Satisfying
Number of Chairs (C)
800 – 3T + 4C ≤ 2,400
–
600 – (T = 300, C = 200)
–
400 – (T = 600, C = 400)
–
200 –
–
0 –| | | | | | | | | | | |
0 200 400 600 800 1,000
Number of Tables(T)
Figure 2.2
(T = 0, C = 600)
800 –
– Painting Constraint
600 –
(T = 300, C = 200)
–
Carpentry Constraint
400 –
– (T = 500, C = 200)
200 – (T = 500, C = 0)
– (T = 800, C = 0)
0 –| | | | | | | | | | | |
0 200 400 600 800 1,000
Number of Tables(T)
Figure 2.3
1,000 –
Infeasible Solution (T = 50, C = 500)
–
Number of Chairs (C)
800 –
Maximum Tables Required Constraint
–
600 – Maximum Chairs Allowed Constraint
–
400 – (T = 300, C = 200)
– Carpentry Constraint
200 – Infeasible Solution
Feasible (T = 500, C = 200)
–
Region
0 –| | | | | | | | | | | |
0 200 400 600 800 1,000
Number of Tables(T)
Figure 2.4
600 –
– Feasible Region
$7
400 –
T
$7
+$
T
–
+$
5C
(T = 300, C = 0)
5C
=$
200 –
=$
2,8
2,1
00
– (T = 400, C = 0)
00
| | | | | | | | | |
0–
0 200 400 600 800 1,000
Number of Tables(T) Figure 2.5
– 2 3
Optimal Corner Point Solution
$7
400 –
T
$7
+$
4
T
5C
=$
200 –
=$
2,8
00
2,1
Painting Constraint
–
00
| | | | | | | | | |
0–
0 1 200 400 5 600 800 1,000
Number of Tables(T) Figure 2.6
600 –
(T = 320, C = 360) is No
– 2 3 Longer Feasible
7 Additional Constraint C – T ≥ 75
400 –
4 Has a Positive Slope
– ($7T + $5C = $2,800)
200 –
6
This Portion of the Original Feasible
– Region Is No Longer Feasible
| | | | | | | | | |
0–
0 1 200 4005 600 800 1,000
Number of Tables(T) Figure 2.7
• Minimize cost
• Holiday Meal Turkey Ranch
• Two types of feed
Minimize cost = $0.10A + $0.15B
subject to
5A + 10B ≥ 45 (protein required)
4A + 3B ≥ 24 (vitamin required)
0.5A ≥ 1.5 (iron required)
A,B ≥ 0 (nonnegativity)
Table 2.1
1–
3
0–
| | | | | | | | | | |
0 1 2 3 4 5 6 7 8 9 10
Pounds of Brand A (A) Figure 2.8
• Redundant Constraints
• Do not affect the feasible region
• Changed constraint in Flair Furniture
problem
1,000 –
– C ≤ 450
Number of Chairs (C)
800 –
–
Carpentry Constraint Is Redundant
600 –
–
400 –
Feasible Region
Number of Tables(T)
Figure 2.10
• Infeasibility
• No one solution satisfies all the
constraints
• Changed constraint in Flair Furniture
problem
800 –
Two Regions
– Do Not Overlap Region
Satisfying
600 – 3T + 4C ≤ 2,400 Fourth
– Constraint
400 –
– Region 2T + C ≤ 1,000
Satisfying
200 –
Three
– Constraints
0 –| | | | | | | | | | | |
0 200 400 600 800 1,000
Number of Tables(T)
Figure 2.11
400 –
4
Optimal Solution Consists of All
–
Points Between Corner
Points 4 and 5
200 –
Feasible
– Region
| | | | | | | | | |
0–
0 1 200 400 5 600 800 1,000
Number of Tables(T) Figure 2.12
• Unbounded Solution
• May or may not have a finite solution
• Usually improper formulation
• Changed objective in Holiday Meal
problem
Screenshot 2-1A
Screenshot 2-1B
Screenshot 2-1B
Screenshot 2-1C
Screenshot 2-1D
Screenshot 2-1E
Screenshot 2-1F
© 2013 Pearson Education, Inc. publishing as Prentice Hall 2-48
Using Solver
Screenshot 2-2
Screenshot 2-3A
Screenshot 2-3B