CHAPTER 2-2 Graphical Method of Solving Linear Programming Problems
CHAPTER 2-2 Graphical Method of Solving Linear Programming Problems
2.3.1. Introduction
In the previous section, you have seen how to formulate a given problem as a Linear
Programming model. The next step, after the formulation of LP model is to devise effective
methods to solve the model and ascertain the optimal solution. Let’s start with the Graphical
Method of solving LPP and then move on to Simplex Algorithm for solving the Linear
Programming model.
Graphical linear programming is a relatively straightforward for determining the optimal solution
to certain linear programming problems involving only two decision variables. Although graphic
method is limited as a solution approach, it is very useful in the presentation of LP, in that it
gives a “picture” of how a solution is derived thus a better understanding of the solution.
Moreover, graphical methods provide a visual portrayal of many important concepts.
The graphic solution procedure is one of the methods of solving two variable linear
programming problems.
In this method, the two decision variables are considered as ordered pairs (X 1, X2), which
represent a point in a plane, i.e, X1 is represented on X-axis and X2 on Y-axis.
Step II Plot the constraints graphically. Each inequality in the constraint equation has to be
treated as an equation. An arbitrary value is assigned to one variable & the value of the other
variable is obtained by solving the equation. In the similar manner, a different arbitrary value is
again assigned to the variable & the corresponding value of other variable is easily obtained.
These 2 sets of values are now plotted on a graph and connected by a straight line. The same
procedure has to be repeated for all the constraints. Hence, the total straight lines would be equal
to the total no of equations, each straight line representing one constraint equation.
Step III: Locate the solution space. Solution space or the feasible region is the graphical area
which satisfies all the constraints at the same time. Such a solution point (x, y) always occurs at
the corner Points of the feasible Region the feasible region is determined as follows:
a) For "greater than" & "greater than or equal to" constraints, the feasible region or the solution
space is the area that lays above the constraint lines.
b) For" Less than" &" Less than or equal to" constraint, the feasible region or the solution space
is the area that lays below the constraint lines.
Step IV Selecting the graphic solution technique. Select the appropriate graphic technique to be
used for generating the solution. There are two graphic techniques to find solution;
13
Chap 2 part 2
Note. Convex set is a polygon "Convex" implies that if any two points of the polygon are
selected arbitrarily then straight line segment joining these two points lays completely within the
polygon. The extreme points of the convex set are the basic solution to the linear programming
problem.
Important Terms
Some of the important terms commonly used in linear programming are disclosed as follows:
a. Solution: Values of the decision variable satisfying the constraints of a
general linear programming model is known as the solution to that linear programming
model.
b. Feasible solution: Out of the total available solution a solution that also satisfies the non-
negativity restrictions of the linear programming problem is called a feasible solution.
c. Basic solution: For a set of simultaneous equations in Q unknowns (P, Q) a solution
obtained by setting (P - Q) of the variables equal to zero & solving the remaining P equation
in P unknowns is known as a basic solution. The variables which take zero values at any
solution are detained as non-basic variables & remaining are known as-basic variables, often
called basic solution.
d. Basic feasible solution: A feasible solution to a general linear programming problem which
is also basic solution is called a basic feasible solution.
e. Optimal feasible solution: Any basic feasible solution which optimizes (i.e. maximize or
minimizes) the objective function of a LP models is known as the optimal feasible solution
to that linear programming model.
14
Chap 2 part 2
Example 1
XYZ Ltd. Co. Wishes to purchase a maximum of 3600 units of two types of product, A & B are
available in the market. Product A occupies a space of 3 cubic feet & cost Birr 9 whereas B
occupies a space of 1 cubic feet & cost Birr 13 per unit. The budgetary constraints of the
company do not allow spending more than Birr 39,000. The total availability of space in the
company's god-own is 6000 cubic feet. Profit margin of both the product A & B is Birr 3 & Birr
4 respectively. Formulate the above problem as a linear programming model and solve it by
using graphical method. You are required to ascertain the best possible combination of purchase
of A & B so that the total profits are maximized.
Solution
(Budgetary constraint)
Put
Draw the graph with x1 on x-axis & x2 on y-axis as shown in the following figure.
Put
Draw the graph with x1 on x-axis & x2 on y-axis as shown in the following figure.
15
Chap 2 part 2
Put
Draw the graph with x1 on x-axis & x2 on y-axis as shown in the Figure 2.1.
Step II: Determine the set of the points which satisfy the constraint:
This can easily be done by verifying whether the origin (0, 0) satisfies the constraint.
Here, hence the solution is true; all the points below the line will satisfy
the constraint.
Like it’s in the above iteration, determine the set of points which satisfy the constraint
. At origin;
. Hence, all the points below the line will satisfy the constraint.
Like it’s in the above iteration, determine the set of points which satisfy the constraint.
At origin;
. Hence, all the points below the line will satisfy the constraint.
The intersection of the above graphic denotes the feasible region for the given problem.
B
of
s X
X12
ite
un
6000
of (Maximum unites constraint)
r
be
3600 (Storage area constraint)
m
u
B (Budgetary constraint)
3000 A
N
Feasible
region
O X1
(0, 0) C
2000 3600 16 39000/9
Number of unites of A
Chap 2 part 2
Step IV. Find the optimal solution by the corner point method.
At corner points (O, A, B, C), find the profit value from the objective function. Those
points which maximize the profit are the optimal point.
Corner point Coordinates Objective function Value
O (0,0) Z=0+0 0
A (0,3000) Z=0+4x3000 12,000
Optimal
B (1300,2100) Z=3x1300 + 4 x2100 12,300
solution C (2000,0) 3 x 2000 + 0 6000
In order to get the value of point B apply simultaneous equation by taking the two
intersection lines. Solve the point.
(Maximum unit constraint)
(Budgetary constraint)
(∴ A+B these two lines are intersecting)
…1
…2
Multiply equation (1) by -9 on both sides:
-9x1 - 3x 2 -18000 …3
…4
__ __ __
10X2 = 21000 ∴ =2100
Put the Value of x2 in first equation:
⇒X1=1300
At point (1300, 2100)
Z (3 * 1300) (4 * 2100) 12,300
= 12,300 which is the maximum value
Result
17
Chap 2 part 2
Example 2:
Suppose that a machine shop has two different types of machines; machine 1 and machine 2,
which can be used to make a single product .These machine vary in the amount of product
produced per hour, in the amount of labor used and in the cost of operation.
Assume that at least a certain amount of product must be produced and that we would like to
utilize at least the regular labor force. How much should we utilize each machine in order to
utilize total costs and still meets the requirement? The resource used, the cost and the required
hour is given in the following table.
Min.Z 25 X 130 X 2
Subjectto :
20 X 115 X 2 100
2 X 13 X 2 15 LPP Model
X1, X 2 0
Put
Put
Draw the graph with x1 on x-axis & x2 on y-axis as shown in the following figure.
The 2nd constraint is 2X1+3X2≥15 change this in to 2X1+3X2=15 and find X and Y
intercept.
Put
Put
18
Chap 2 part 2
Draw the graph with x1 on x-axis & x2 on y-axis as shown in the following figure.
Determine the set of the points which satisfy the constraint:
This can easily be done by verifying whether the origin (0, 0) satisfies the constraint.
Here,
Hence the solution is false; all the points above the line will satisfy the
constraint.
Like it’s in the above iteration, determine the set of points which satisfy the constraint
2X1 + 3X2 ≥ 15 at origin;
. Hence, all the points above the line will satisfy the constraint.
X2
X1 =0
A (0, 20/3) 2X1 + 3X2 = 15
Feasible Region
5
B (2.5, 3.33)
X2 =0
X1
5 C (7.5, 0)
Minimize.Z 25 X 130 X 2
A (0,20/3) Z=0+20/3×30 201
B (2.5, 3.33) Z=2.5×25+3.33x30 150
C (7.5, 0) Z=7.5x25+0 187.5
19
Chap 2 part 2
Use the same stapes to find the value of B by using the simultaneous equation as
presented previously.
Result
The optimal solution is:
X1 =2.5, X2=3.33 and Minimum cost Z= 150
Example1
20
Chap 2 part 2
The above Figure demonstrates how alternative optima can arise in LP model when the objective
function is parallel to a binding constraint. Any point on the line segment BC represents an
alternative optimum with the same objective value z = 10. Mathematically, we can determine all
the points (x1, x2) on the line segment BC as a nonnegative weighted average of the points B and
C. That is, given 0, α, and 1 and
B: x1= 0, x2=5/2
C: x1= 3, x2= 1
Example 2:
The information given below is for the products A and B.
_______________________________________________________________________________________________________________
Machine hours per week Maximum available
Assembly 1 1 200
Assume that the company has a marketing constraint on selling products B and therefore
it can sale a maximum of 125 units of this product.
Required:
a. Formulate the LPP of this problem?
b. Find the optimal solution?
Solution: Let X1 =The Number of units’ f product A produced per week
X2 = The number of units f product B produced per week
a) The LPP Model of the problem is:
Max.Z 8 X 116 X 2
Subjectto :
3 X 16 X 2 900
X 1 X 2 200
X 2 125
X1, X 2 0
X2=0
X2
(0, 200) X 1 X 2 200
FR X1=0
A (0, 0) X1
(200, 0) (300, 0)
==>Multiple optimal solutions provide more choices for management to reach their
objectives.
b) 2. Infeasible Solution
A solution is called feasible if it satisfies all the constraints and the constraints and non-
negativity condition. However, it is sometimes possible that the constraints may be
inconsistent so that there is no feasible solution to the problem. Such a situation is called
infeasibility.
Example:
Maximize Z=20X1+30X2
Subject to:
2X1+X2< 40
4X1+X2< 60
X1 > 30 and X1, X2 > 0
Solution:
X2 X1=0
(0, 60) X1=30
4X1+X2= 60
(0, 40)
2X1+X2= 40
X2=0
X1
(15, 0) (20, 0) (30, 0)
Note:
- In the above graph, there is no common point in the shaded area.
- All constraints cannot be satisfied simultaneously and there is no feasible solution
to the problem.
c) Unbounded Solution
When the value of decision variables in LP is permitted to increase infinitely without
violating the feasibility condition, then the solution is said to be unbounded .Here, the
objective function value can also be increased infinitely. However, an unbounded feasible
region may yield some definite value of the objective function.
Example:
Use the graphical method to solve the following LPP.
1. Maximize Z=3X1+4X2
Subject to:
X1-X2<-1==> -X1+X2>1 since the quantity solution is positive
23
Chap 2 part 2
-X1+X2< 0
X1, X2 > 0
X2 X1-X2 =-1
X1+X2 =0
1 Unbounded
Feasible region
Feasible Region X1
2. Maximize Z=3X1+2X2
Subject to:
X1 - X2 <1
X1 +X2 ≥3
X1, X2 > 0
X2
A (0, 3) Unbounded
Feasible Region
X1-X2=1
B (2, 1)
X1+X2=3
X1
Note: here that the two corners of the region are A(0,3) and .B(2,1).The value of
Maximize Z(A)=6 and Maximize Z(B)=8. But there exist number of points in the shaded
region for which the value of the objective function is more than 8.For example, the point
(10, 12) lies in the region and the function value at this point is 70 which is more than 8.
Remark: An unbounded solution does not mean that there is no solution to the given
LPP, but implies that there exits an infinite number of solutions.
Exercise 1
24
Chap 2 part 2
Exercise 2
II. A manufacturer produces two different models; X and Y, of the same product .The raw
materials r1 and r2 are required for production. At least 18 Kg of r1 and 12 Kg of r2 must be used
daily. Almost at most 34 hours of labor are to be utilized .2Kg of r1 are needed for each model
X and 1Kg of r1 for each model Y. For each model of X and Y, 1Kg of r2 is required. It takes 3
hours to manufacture a model X and 2 hours to manufacture a model Y. The profit realized is
$50 per unit from model X and $30 per unit from model Y. How many units of each model
should be produced to maximize the profit?
Answer: 10 units of model X, 2 units of model Y and the maximum profit is $ 560.
25
Chap 2 part 2
III. A manufacturing firm produces two machine parts P1 and P2 using milling and grinding
machines .The different machining times required for each part, the machining times available
on different machines and the profit on each machine part are as given below:
_____________________________________________________________________________
Manufacturing time Maximum time
Required (min) available per week (minimum)
Machine P1 P2
_____________________________________________________________________________
Lathe 10 5 25,000
Milling Machine 4 10 2000
Grinding Machine 1 1.5 450
Profit per unit ($) $50 $100
_____________________________________________________________________
Determine the number of pieces of P1 and P2 to be manufactured per week to maximize
profit.
Answer: X1=187.5, X2 =125 and Maximize Z=21,875
26