



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Having formulated a linear programming problem, we have to find the solution for the same. To find the solution to a linear programming model, we have the graphical and the algebraic methods that can be applied successfully.
If the problem involves only two decision variables, graphical method of solution is quite adequate. Even when three decision variables are involved, a graphical solution can be resorted to. But this involves three- dimensional representation. Therefore we can conveniently restrict the graphical method to problems involving two decision variables.
The second method is the algebraic procedure or simplex method, which involves an iterative procedure. This can be applied to linear programming problems involving two or more variables. This is the most versatile method of solving linear programming models. In this method, an initial solution is assumed and this solution s modified progressively through a well-defined iterative process until we get the optimal solution. The procedure is simple and so mechanical that it requires time and patience to execute it manually. However, an electronic computer with the readymade programmes can be used as a handy tool for solving LP problems involving many variables.
Graphical solution to LPP
We all know that a point can be represented by two co-ordinates namely and x and y in a graph. From the origin we have to go x units along x axis and y units along y-axis. If we plot two points in a graph and join them we get a segment of a straight line. A minimum of two points is needed to a draw a straight line. In a linear programming problem, the objective function and constraints are linear, so that we can plot the straight lines representing constraints and the objectives function.
Let us take an algebraic equation 3 x + 5 y =15. This is a first-degree equation in x and y. geometrically this represents a straight line. If we want to represent the above equation geometrically, we require a minimum of two points to plot a line. Let x = 0, we get y = 3 and let y = 0 we get x = 5. Hence we have two points A (0, 3) and B (5, 0) and connect them to get a straight line
Fig 1
We normally come across, in linear programming problems, the linear constraints having inequalities either 'greater than equal to' or 'less than equal to' or strictly 'equal to'.
Consider the inequality 3 x + 5 y < 15
To plot the feasible area satisfying the above inequality, we consider the equation 3 x + 5 y = 15.
This has been plotted in the figure 1. This straight line has an area above the line and an area below the line. To determine the appropriate area satisfying the inequality, 3 x + 5 y < 15,
Let us consider the origin ( x = 0, y = 0) as a reference point. Left hand side for the reference point is 3.0 + 5.0 = 0.
The value '0' of the left hand side is clearly less than 15 satisfying the constraint and therefore the origin whose co-ordinates are (0, 0) is a point to be included in the feasible area. The origin is below the straight line and the area A 1 should also contain the trial point namely the origin. Hence the feasible area satisfying the constraint 3 x
Fig. 2
Next consider the inequality 3 x + 5 y > 15
To find the feasible area satisfying the above inequality, we take once again the origin as a trial point and see whether this has to be included in the area. Let x = 0 and y = 0, then we get the value of the left hand side is 0 and the right hand side is 15 and hence the area satisfying this space inequality 3 x + 5 y > 15, should not contain the origin and hence the feasible solution space is as indicated by A 2 in figure 3.
The constraints are linear in a linear programming problem, which can be plotted on a graph. The ingenuity of graphical solution to a linear programming problem depends on fixing the proper solution space.
Consider the following inequality 4 x - 5 y < 20
Fig 5 Fig. 6
Since the origin satisfies the inequality -4 x - 5 y = 20 it should be included in the feasible solution space. Hence the area above the straight line should be the solution space.
Procedure for Graphical Solution to LPP
Having explained how to fix the feasible solution space satisfying the constraint, we now give various steps involved in arriving at a solution to a linear programming problem.
STEP 1 : Consider all the constraints. Taking the equality relationship, plot all the straight lines in a graph and get feasible solution space satisfying the inequality. Usually we get a bounded solution space.
STEP 2 : Assign an arbitrary value for the objective function. Plot the straight line to represent the objective function, with the arbitrary value for Z.
STEP 3 : Move the objective line parallel in the appropriate direction in the solution space to maximize and in the opposite direction to minimize the objective function under consideration.
STEP 4 : In this process, the moving objective line may meet an extreme point (or corner point) beyond which we cannot proceed as this violates the constraints. Note the co-ordinates of this extreme point, which will give maximum or minimum value of the objective function.
The above steps are explained in the following example.
Example
Maximize Z = 4 x + 7 y
Subject to x < 40, y < 30, x + y < 60, x, y > 0
In the above example, we have three constraints and all of them are 'less than inequalities'. First step in the graphical method of solution to the linear programming problem is to represent the constraints graphically. Consider the first constraint x < 40
This indicates that x can take a value 40 or less than 40, for all values of y. The equation x = 40 is a straight line parallel to the y axis as in the figure 2.7 and the area to the left of this straight line is the solution space satisfying the constraint x < 40.
Fig. 7 Fig. 8
Consider the second constraint y < 30. This demands that y can take a value of 30 or less than 30 for all the values of x. The equation y = 30 is a line parallel to x -axis and is represented in figure 8.
Similarly consider the third constraint x + y < 60. To plot the straight line let x = 0, then y = 60 and let y = 0, then x = 60. Therefore the two points (0, 60) and (60, 0) represented in figure 9 will be connected, to get the straight line x + y = 60. To get the solution space satisfying x + y < 60, let x = 0 and y = 0, then the left hand side reduces to 0 which is clearly less than 60. Therefore the area below the line including (0, 0) represented by the shaded portion in figure 9 represents the solution space satisfying the constraint x + y = 60.
Fig 10 Fig 11
We get the co-ordinates of C as x = 30, y = 30. Similarly the co-ordinates of D are determined by solving equations:
x = 40 x + y = 60
The co-ordinates of D are x = 40, y = 20 The co-ordinates of E are x = 40, y = 0.
The next step is to examine the value of the objective function at these points. This is done in the table below:
Extreme point or corner point
Co-ordinates Value of Z = 4 x + 7 y A (0, 0) 0 B (0, 30) 210 C (30, 30) 330* D (40, 20) 300 E (40, 0) 160
From the above table we see that the objective function has a maximum value of 330 at C (30, 30). So, the optimum Z denoted by Z* is given by Z* = 330 for x = 30 and y = 30.