How To Solve Problem by Using Graphical Method
How To Solve Problem by Using Graphical Method
How To Solve Problem by Using Graphical Method
graphical Method
Find-out decision variables
Write objective function
Write constraint function
Convert the constraint function in to equality form by
converting < or > to =.
Solve each constraint for each product to get
quadrant for the graph
Feasible solution is the region within the constraints
Optimal solution is the one where both the line
intersects each other
HOURS REQUIRED TO
PRODUCE 1 UNIT
(T) (C) AVAILABLE HOURS
DEPARTMENT TABLES CHAIRS THIS WEEK
Carpentry 4 3 240
Table 7.2
100 –
– This Axis Represents the Constraint T ≥ 0
Number of Chairs
80 –
–
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|– | | | | | | | | | | |
Figure 7.1 0 20 40 60 80 100 T
Number of Tables
Copyright © 2012 Pearson Education 7-8
Graphical Representation of a
Constraint
The first step in solving the problem is to
identify a set or region of feasible
solutions.
To do this we plot each constraint
equation on a graph.
We start by graphing the equality portion
of the constraint equations:
4T + 3C = 240
We solve for the axis intercepts and draw
the line.
100 –
–
(T = 0, C = 80)
Number of Chairs
80 –
–
60 –
–
40 –
–
(T = 60, C = 0)
20 –
–
Figure 7.2 |– | | | | | | | | | | |
0 20 40 60 80 100 T
Copyright © 2012 Pearson Education Number of Tables 7-11
Graphical Representation of a
Constraint
When Flair produces no tables, the
painting constraint is:
2T + 1C = 100
2(0)+1(C)=100
C=100
Similarly for no chairs:
2T + 1C = 100
2(T)+1(0)=100
C=50
This line is shown on the following graph:
100 – (T = 0, C = 100)
–
Number of Chairs
80 –
–
60 –
–
40 –
–
(T = 50, C = 0)
20 –
–
Figure 7.4 |– | | | | | | | | | | |
0 20 40 60 80 100 T
Copyright © 2012 Pearson Education Number of Tables 7-13
Graphical Representation of a
Constraint
100 –
–
Number of Chairs
80 – Painting/Varnishing Constraint
–
60 –
–
40 –
–
Carpentry Constraint
20 – Feasible
Region
–
|– | | | | | | | | | | |
Figure 7.5
0 20 40 60 80 100 T
Number of Tables
Copyright © 2012 Pearson Education 7-15
Optimal profit Line Solution
Method
Optimal Solution to the Flair Furniture problem
C
100 –
–
Number of Chairs
80 –
Maximum Profit Line
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,100 = $70T + $50C
20 –
–
Figure 7.8 |– | | | | | | | | | | |
0 20 40 60 80 100 T
Copyright © 2012 Pearson Education
Number of Tables 7-16
Graphical Representation of a
Constraint
For the point (30, 20)
100 –
–
Number of Chairs
80 –
Maximum Profit Line
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,100 = $70T + $50C
20 –
–
Figure 7.8 |– | | | | | | | | | | |
0 20 40 60 80 100 T
Copyright © 2012 Pearson Education
Number of Tables 7-20
Corner Point Solution Method
A second approach to solving LP problems
employs the corner point method.
It involves looking at the profit at every
corner point of the feasible region.
The mathematical theory behind LP is that
the optimal solution must lie at one of the
corner points,
points or extreme point,
point in the
feasible region.
For Flair Furniture, the feasible region is a
four-sided polygon with four corner points
labeled 1, 2, 3, and 4 on the graph.
Copyright © 2012 Pearson Education 7-21
Corner Point Solution Method
Four Corner Points of the Feasible Region
C
100 –
2 –
Number of Chairs
80 –
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
Figure 7.9
0 20 40
4 60 80 100 T
Number of Tables
Copyright © 2012 Pearson Education 7-22
Corner Point Solution Method
To find the coordinates for Point 3 accurately we have to
solve for the intersection of the two constraint lines.
Using the simultaneous equations method,
method we multiply the
painting equation by –2 and add it to the carpentry equation
4T + 3C = 240 (carpentry line)
– 4T – 2C = –200 (painting line)
C = 40
Substituting 40 for C in either of the original equations
allows us to determine the value of T.
4T + (3)(40) = 240 (carpentry line)
4T + 120 = 240
T = 30
Copyright © 2012 Pearson Education 7-23
Corner Point Solution Method
Point 1 : (T = 0, C = 0) Profit = $70(0) + $50(0) = $0
Point 2 : (T = 0, C = 80) Profit = $70(0) + $50(80) =
$4,000
4
Point : (T = 50, C = 0) Profit = $70(50) + $50(0) =
3
$3,500
Point : (T = 30, C = 40) Profit = $70(30) + $50(40) =
Because
$4,100 Point 3 returns the highest profit, this is
the optimal solution.
Table 7.4
Example: x1 = 5 bowls
x2 = 10 mugs
Z = $40x1 + $50x2 = $700
Example: x1 = 10 bowls
x2 = 20 mugs
Z = $40x1 + $50x2 = $1400
X2 is mugs
X1 is bowls
Figure 2.2 Coordinates for Graphical
Analysis
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Labor Constraint
Graphical Solution of Maximization Model (2
of 12)
Nitrogen Phosphate
Brand
(lb/ bag) (lb/ bag)
Super-gro 2 4
Crop-quick 4 3
Model Constraints:
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (non-negativity constraint)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Constraint Graph – Minimization (4 of
8)
Step 3:
Establish Model Constraints
x1 + x2 = 1,000 lb
x1 500 lb of chicken
x2 200 lb of beef
x1/x2 2/1 or x1 - 2x2 0
x1, x2 0
The Model: Minimize Z = $3x1 + 5x2
subject to: x1 + x2 = 1,000 lb
x1 500
x2 200
x1 - 2x2 0
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Example Problem No. 2 (1 of 3)