Solving linear programming problem - Graphical Method
Solving linear programming problem - Graphical Method
Linear Programming solves the type of problem in which two or more candidates or activities
are competing to utilize the available limited resources, with a view to optimize the
objective function of the problem. The objective may be to maximize the returns or to
minimize the costs. The various methods available to solve the problem are:
1. The Graphical Method when we have two decision variables in the problem. (To deal with
more decision variables by graphical method will become complicated, because we have to deal
with planes instead of straight lines. Hence in graphical method let us limit ourselves to two
variable problems.
2. The Systematic Trial and Error method, where we go on giving various values to variables
until we get optimal solution.
3. The Vector method. In this method each decision variable is considered as a vector and
principles of vector algebra is used to get the optimal solution.
4. The Simplex method. When the problem is having more than two decision variables, simplex
method is the most powerful method to solve the problem. It has a systematic programme, which
can be used to solve the problem.
Graphical Method
Only two variable problems are considered, because we can draw straight lines in two-
dimensional plane (X- axis and Y-axis). More over as we have non-negativity constraint in the
problem (that is, all the decision variables must have positive values always) the solution to the
problem lies in first quadrant of the graph.
The characteristics of Graphical method are:
(i) Generally the method is used to solve the problem, when it involves two decision variables.
(ii) For three or more decision variables, the graph deals with planes and requires high
imagination to identify the solution area.
(iv) This method provides a basis for understanding the other methods of solution.
Problem:
A sweets company manufactures two products, chocolate bars and candy by using three
machines A, B, and C. Machine A has 4 hours of capacity available during the coming week.
Similarly, the available capacity of machines B and C during the coming week is 24 hours and
35 hours respectively. One unit of chocolate bar requires one hour of Machine A, 3 hours of
machine B and 10 hours of machine C. Similarly one unit of candy requires 1 hour, 8 hour and 7
hours of machine A, B and C respectively. When one chocolate bar is sold in the market, it
yields a profit of Ksh. 5/- per product and that of candy is Ksh. 7/- per unit. Solve the problem by
using graphical method to find the optimal product mix.
Maximise Z = 5x + 7y s.t.
1x + 1y ≤ 4
3x + 8y ≤ 24
10x + 7y ≤ 35 and
Both x and y are ≥ 0.
Maximise Z = 5x + 7y s.t.
1x + 1y = 4
3x + 8y = 24
10x + 7y = 35 and both x and y are ≥ 0
Generate boundary conditions for machine A, B and C which forms the feasible area for all the
three machines combined.
The area covered by all the three lines PQ. RS, and TU form a closed polygon ROUVW. This
polygon is the feasible area for the three machines. This means that all the points on the lines of
polygon and any point within the polygon satisfies the inequality conditions of all the three
machines.
To find the optimal solution, we have two methods.
Method 1.
Here we find the co-ordinates of corners of the closed polygon ROUVW and substitute the
values in the objective function. In maximisation problem, we select the co-ordinates giving
maximum value. And in minimisation problem, we select the co-ordinates, which gives
minimum value.
Points to note:
(i) In case lsoprofit line passes through more than one point, then it means that the problem has
more than one optimal solution, i.e., alternate solutions all giving the same profit. This helps the
manager to take a particular solution depending on the demand position in the market. He has
options.
(ii) If the lsoprofit line passes through single point, it means to say that the problem has unique
solution.
(iii) If the Isoprofit line coincides any one line of the polygon, then all the points on the line are
solutions, yielding the same profit. Hence the problem has innumerable solutions.
(iv) If the line do not pass through any point (in case of open polygons), then the problem do not
have solution, and we say that the problem is UNBOUND.