graphicalmethod for linear programming problem
graphicalmethod for linear programming problem
After formulating the linear programming problem, our aim is to determine the
values of decision variables to find the optimum (maximum or minimum) value of
the objective function. Linear programming problems which involve only two
variables can be solved by graphical method. If the problem has three or more
variables, the graphical method is impractical.
(ii) Write all the constraints in the form of equations and draw the graph
(iv) Find the coordinates of each vertex (corner points) of the feasible region. The
coordinates of the vertex can be obtained either by inspection or by solving the two
equations of the lines intersecting at the point
(v) By substituting these corner points in the objective function we can get the
values of the objective function
(vi) If the problem is maximization then the maximum of the above values is the
optimum value. If the problem is minimization then the minimum of the above
values is the optimum value
Example 10.5
Maximize Z = 2 x1 +5x2
3x1+x2 ≤ 21
Solution:
First we have to find the feasible region using the given conditions.
Since both the decision variables x1 and x2 are non-negative ,the solution lies in the
first quadrant.
Therefore we have the lines x1+ 4x2=24 ; 3x1 + x2 = 21; x1 + x2= 9 x1+ 4x2= 24 is a
line passing through the points (0 , 6) and (24 , 0). [(0,6) is obtained by taking x1=0
in x1 + 4x2 = 24 , (24 , 0) is obtained by taking x2 = 0 in x1+ 4x2 = 24].
Any point lying on or below the line x1 + 4x2 = 24 satisfies the constraint x1 + 4x2≤
24 .
3x1 +x2= 21 is a line passing through the points (0, 21) and (7, 0). Any point
lying on or below the line 3 x1 + x2 = 21 satisfies the constraint 3 x1 + x2 ≤ 21.
x1+ x2 = 9 is a line passing through the points (0 , 9) and ( 9 , 0) .Any point lying
on or below the line x1 + x2 = 9 satisfies the constraint x1+ x2 ≤ 9.
Example 10.6
Solution:
Since both the decision variables x1 and x2 are non-negative, the solution lies in the
first quadrant of the plane.
4x1+x 2 = 40 is a line passing through the points (0,40) and (10,0).Any point lying
on or above the line 4x1+x2= 40 satisfies the constraint 4x1+ x2 ≥ 40.
2x1+3x2 = 90 is a line passing through the points (0,30) and (45,0). Any point lying
on or above the line 2 x1+3x2= 90 satisfies the constraint 2x1+3x2 ≥ 90.
Example 10.7
Solution:
Since both the decision variables x1 and x2 are non-negative, the solution lies in the
first quadrant of the plane.
x1+x2 =30 is a line passing through the points (0,30) and (30,0)
The feasible region satisfying all the conditions x1+ x2≤ 30; x2≤ 12 ; x1≤ 20
and x1, x2 ≥ 0 is shown in the following graph.
The feasible region satisfying all the conditions is OABCD.
The co-ordinates of the points are O(0,0) ; A(20,0); B(20,10) ; C(18,12) and
D(0,12).
Maximum value of Z occurs at C. Therefore the solution is x1 = 18 , x2= 12, Z max =
72
Example 10.8
Maximize Z = 3x1 + 4x2 subject to x1 – x2 < –1; –x1+x2 < 0 and x1, x2 ≥ 0
Solution:
Since both the decision variables x1, x2 are non-negative ,the solution lies in the first
quadrant of the plane.
x1– x2 =–1 is a line passing through the points (0,1) and (–1,0)
Now we draw the graph satisfying the conditions x1 – x2 < –1; –x1+x2 < 0
and x1, x2≥0
There is no common region(feasible region) satisfying all the given conditions.