Class 3 - LP Introduction&Graphical Solution
Class 3 - LP Introduction&Graphical Solution
Quantitative Methods I
Ammar Sarhan
Linear Programming – Introduction
Formulation.
Process of translating problem scenario into LP model
framework with set of mathematical relationships.
Solution.
Mathematical relationships resulting from the formulation
process are solved to identify an optimal solution.
Interpretation and Sensitivity Analysis.
Problem solver or analyst works with manager to:
• Interpret results and implications of problem solution.
• Investigate changes in input parameters and model
variables and impact on problem solution results.
Formulating a LP Problem
Maximize: P=7T+5C
Subject to (constraints)
¾Carpentry restriction: 4 T + 3 C ≤ 240
¾Painting restriction: 2 T + C ≤ 100
¾Inventory condition: C ≤ 60
¾Non-negativity condition: T ≥ 0, C≥ 0
Graphical Solution
1) Carpentry Constraint
4 T + 3 C ≤ 240
T = 0, C = 80
100
80
C 60
40 Ca
rp
en
tr yC T = 60, C = 0
on
20 str
ai nt
0
0 20 40 60 80
T
Graphical Solution
2) Painting Constraint
2 T + C ≤ 100
T = 0, C = 100
100
Pa
80 in
tin
g Co
ns
tra
C 60 in
t
40
T = 50, C = 0
20
0
0 20 40 60 80
T
Graphical Solution
3) Inventory Constraint
C ≤ 60
100
80
Inventory Constraint
C 60
40
20
0
0 20 40 60 80
T
Graphical Solution
Feasible Region – Satisfies all constraints
100 Pa
in
tin
gC
80 on
str
ain
(0, 60) t Inventory Constraint
C 60
(15, 60)
(30, 40)
40 Ca
rp
Feasible en
tr yC
20 Region on
str
ai nt
0
(0, 0)
0 20 40 (50, 0) 60 80
T
Graphical Solution
Optimal solution is the point in
the feasible region that produces
100 highest profit
There are many possible solution
80 points in the region.
Which one is the best?
C 60 The one yielding highest profit?
40
Feasible
20 Region
0
0 20 40 60 80
T
Graphical Solution
100 Point 1 (T = 0, C = 0)
80 Point 2 (T = 0, C = 60)
2 3
C 60 Point 3 (T = 15, C = 60)
4
40 Point 4 (T = 30, C = 40)
Feasible
20 Region Point 5 (T = 50, C = 0)
0 5
1 0 20 40 60 80
T
Graphical Solution Procedure
100 Point 1 (T = 0, C = 0)
Pa
in profit = $7(0) + $5(0) = $0
tin
gC
80 on Point 2 (T = 0, C = 60)
str
a Chairs limit constraint profit = $7(0) + $5(60) = $300
2 3
in
t
C 60 Point 3 (T = 15, C = 60)
profit = $7(15) + $5(60) = $405
4
40 Ca Point 4 (T = 30, C = 40)
rp
Feasible en profit = $7(30) + $5(40) = $410
tr yC
20 Region on Point 5 (T = 50, C = 0)
str
ai nt
5 profit = $7(50) + $5(0) = $350
0
1 0 20 40 60 80
T
Example 2
DVD 2 hours electronics work
4 hours assembly time
MP3 3 hours electronics work
1 hours assembly time
9 Brand A feed costs ranch $0.02 per pound, while Brand B feed costs
$0.03 per pound.
Ranch owner would like lowest-cost diet that meets minimum
monthly intake requirements for each nutritional ingredient.
Example - Fall 2009
Example - Fall 2009