Graphical Solution of LP Models
Graphical Solution of LP Models
Non-negativity constraint: 𝑥, 𝑦 ≥ 0
The graph, feasible solution, 𝑆, and corner points (A, B and C) are shown:
𝑥 + 𝑦 ≤ 100,000,000
𝑥 − 4𝑦 ≥ 0
• The coordinates of the corner points may be obtained using
solution of systems of linear equations.
• To do this, one must identify the lines that intersect at the corner
points. Hence, for corner point B, solve the system 𝑥 – 4𝑦 = 0 and
𝑥 + 𝑦 = 100𝑀 in order to obtain its coordinates.
• The values of the objective function Z are obtained after evaluating
the function at each corner point.
We can see from the table
that the maximum for the
objective function 𝑍 =
Corner Points 𝑍 = 0.10𝑥 + 0.12𝑦
0.10𝑥 + 0.12𝑦 occurs at
A (0, 0) 𝑍𝐴 = 0.10 0 + 0.12 0 = 𝑃ℎ𝑃 0 corner point B. Thus,
Moonlife Financials should
B (80M, 20M) 𝑍𝐵 = 0.10 80𝑀 + 0.12 20𝑀
= 𝑃ℎ𝑃 10.4𝑀 extend PhP 80M to home
C (100M, 0) 𝑍𝐶 = 0.10 100𝑀 + 0.12 0𝑀 loans and PhP 20M to auto
= 𝑃ℎ𝑃 10𝑀 loans to realize a maximum
annual returns of PhP 10.4M.
Formulate the LP problem and solve graphically using the Method of Corners:
NNC x, y ≥ 0
The graph, feasible solution, 𝑆, and corner points (A, B, C and D) are shown. Notice that S is
unbounded.
5x + 15y ≥ 1,500
10x + 15y ≥
2,100
The values of the objective function Z are obtained
after evaluating the function at each corner point.
2𝑥 + 𝑦 ≤ 30 𝑥 ≤ 12
2𝑥 + 3𝑦 ≤ 54
Some possible optimal solutions
Here, the rightmost objective function are:
line coincides with segment BC, hence,
Corner Points 𝑍 = 10𝑥 + 15𝑦
there are infinitely many solutions to the
LP problem, not just corner points B and B (0, 18) 𝑍𝐵 = 10 0 + 15 18
C. The values of the objective function = 𝑃ℎ𝑃 270
C (9, 12) 𝑍𝑐 = 10 9 + 15 12
Z are obtained after evaluating the = 𝑃ℎ𝑃 270
function at points B and C. Since 0 ≤ (2, 50/3) 𝑍𝐵 = 10 2 + 15 50/3
𝑥 ≤ 9, other solutions may be obtained = 𝑃ℎ𝑃 270
(4, 46/3) 𝑍𝐵 = 10 4 + 15 46/3
by assigning values of x within the = 𝑃ℎ𝑃 270
given range of values using the equation (6, 14) 𝑍𝐵 = 10 6 + 15 14
of segment BC, 2x + 3y = 54. = 𝑃ℎ𝑃 270
Neuro-Iron and Sango-Iron Problem
A nutritionist advises an individual who is Objective: To minimize cost, z
suffering from iron and vitamin-B deficiency
to take at least 2400 mg of iron, 2100 mg of Let x be the number of capsules of Neuro-
vitamin B1 and 1500 mg of vitamin B2 over Decision Iron
a certain period of time. Two vitamin Variables: y be the number of capsules of Sango-
capsules are suitable, Neuro-Iron and Iron
Sango-Iron. Each Neuro-Iron capsule costs Objective
P6 and contains 40 mg of iron, 10 mg of Function:
Minimize z = 6x + 8y
vitamin B1 and 5 mg of vitamin B2. Each
Sango-Iron costs P8 and contains 10 mg or Constraint
Iron Requirement: 40x + 10y ≥ 2,400
iron and 15 mg each of vitamins B1 and B2. s:
What combination of each brand should the B1 Requirement: 10x + 15y ≥ 2,100
individual purchase in order to meet the
minimum iron and vitamin requirements at B2 Requirement: 5x + 15y ≥ 1,500
the lowest cost?
NNC x, y ≥ 0
The graph, feasible
solution, 𝑆 , and corner
points (A, B, C and D) are
shown. From z = 6x + 8y, 40x + 10y ≥ 2,400
the slope of the objective
−6
function line is 𝑚 = = Optimal objective function
8 line
−3
4
. For a minimization
problem, the left-most
corner point intersected
by the objective function
line is the optimal 5x + 15y ≥ 1,500
𝑍𝐵 = 6 30 + 8 120
B (30, 120)
= 𝑃ℎ𝑃 1,140
Solve graphically using the Method of
Corners.
Objective
Max z = 5A + 5B
Function:
Constraint
𝐴 ≤ 100
s:
𝐵 ≤ 80
2𝐴 + 4𝐵 ≤ 400
𝐴, 𝐵 ≥ 100
Corner Points and Cost at each corner Optimal Solution:
point:
Formulate the LP problem and solve graphically
using the Objective Function Line Method.
Optimal Solution:
Computer Solution of LP Model
(Maximum demand): y ≤ 2
Steps to use Solver