Student Guide 4
Student Guide 4
Student Guide 4
LECTURE 4
Graphical Method of
Linear Programming
1
Graphical method in linear programming
The graphical method is a fundamental
technique used in linear programming to
visually analyze and solve optimization
problems with linear constraints. It provides a
geometric approach to finding the optimal
solution for problems involving resource
allocation, production planning, and other
decision-making scenarios where limited
resources must be allocated among
competing alternatives to maximize or
minimize an objective function.
3. Constraints: These are the limitations or restrictions that define the feasible region within
which the optimal solution must lie. Constraints are represented as inequalities on the graph
1. Formulate the Problem: Write down the objective function to be maximized or minimized, along
with the linear inequalities representing the constraints.
2. Graph the Constraints: Plot each constraint on a graph, typically using two dimensions (for two
variables). The feasible region is the area where all regulations intersect and overlap.
3. Identify Vertices: Locate the vertices (corners) of the feasible region. These vertices are the
possible solutions for the linear programming problem.
4. Calculate Objective Function Values: Calculate the value of the objective function at each
vertex.
5. Determine Optimal Solution: Compare the objective function values at the vertices and identify
the vertex that yields the optimal value of the objective function (either maximum or minimum,
depending on the problem).
2
6. Interpret the Solution: Translate the optimal solution back into the context of the original
problem to make practical decisions.
Note: The Graphical Method is most effective for problems with only two decision variables, as it
can be graphed on a two-dimensional plane. For problems with more than two variables, other
techniques such as the Simplex method or interior-point methods are typically used.
While the Graphical method provides a visual and intuitive approach to solving linear programming
problems, it has limitations, such as its inability to handle problems with a large number of variables
or constraints. In such cases, more efficient algorithmic methods are preferred.
Cartesian Plane
A Cartesian plane, also known as a coordinate
plane or Cartesian coordinate system, is a
two-dimensional geometric system that
allows points to be located using numerical
coordinates. It serves as a fundamental tool in
mathematics and is used to graphically
represent and analyze various mathematical
relationships, equations, and functions.
3
Numerical Example
Question 1:
Maximize Z= 3x1 +5x2 (Subject to constraints)
Solution:
Step 1: Convert the inequalities into equalities and find the divisible of the equalities.
Equation x1 x2
x2=600 - 0
Step 2:
Fix up the graphic scale.
Maximum points = 2000
Minimum points = 600
2 cms = 500 points
Step 3:
Graph the data
CornerPoints x1 x2
O 0 0
A 1500 0
B 1000 500
C 800 600
D 0 600
4
Put x2 = 500 in eq. (1),
Therefore x1 = 800
Step 5:
Substitute the coordinates of corner points into the objective function.
Maximize ‘Z’ = 3x1 + 5x2
At ‘O’, Z = 0+0=0
At ‘A’, Z = 3 (1,500) + 5 (0) = 4500
At ‘B’, Z = 3 (1,000) + 5 (500) = 5500
At ‘C’, Z = 3 (800) + 5 (600) = 5400
At ‘C’, Z = 3 (0) + 5 (600) = 3000
Question 2:
Use the graphical method to solve the following LP problem.
Maximize 'Z'= 2x1 +x2
(Subject to constraints)
5
Solution
Plot on a graph each constraint by first treating it as a linear equation. Then use the inequality
condition of each constraint to mark the feasible region by the shaded area.
O (0,0) 2(0)+0 = 0
B (3,1) 2(3) + 1 = 7
C (4,2) 2(4) + 2 = 10
D (2,4) 2(2) + 4 = 8
E (0,5) 2(0) + 5 =5
The maximum value of the objective function Z = 10 occurs at the extreme point (4, 2). Hence, the
optimal solution to the given LP problem is x1 = 4, x2 = 2, and Max Z = 10.
6
In other words, the constraint should be an active constraint. The constraint is said to be active
(binding or tight), if, at the point of optimality, the left-hand side of a constraint equals the right-
hand side. In other words, an equality constraint is always active, and an inequality constraint may
or may not be active.
Geometrically, an active constraint is one that passes through one of the extreme points of the
feasible solution space
Question1:
Use the graphical method to solve the following LP problem
Solution:
The constraints are plotted on a graph by first
treating these as equations and then their
inequality signs are used to identify the
feasible region (shaded area) as shown in Fig.
The extreme points of the region are
O, A, B, and C.
Since the objective function (iso-profit line) is parallel to the line BC (first constraint: 5x1 + 3x2 =
30,), which also falls on the boundary of the feasible region. Thus, as the iso-profit line moves away
from the origin, it coincides with the line BC of the constraint equation line that falls on the
boundary of the feasible region. This implies that an optimal solution of the LP problem can be
obtained at any point between B and C including extreme points B and C on the same line.
Therefore, several combinations of values of x1 and x2 give the same value of the objective
function. The value of variables x1 and x2 obtained at extreme points B and C should only be
considered to establish that the solution to an LP problem will always lie at an extreme point of the
feasible region. The value of the objective function at each of the extreme points is shown in Table
O (0,0) 10(0)+6(0) = 0
7
Since value (maximum) of objective function, Z = 60 at two different extreme points B and C is same,
therefore two alternative solutions exist x1 = 6/7, x2 = 60/7 and x2= 6, x2 = 0.
Infeasible Solution
An infeasible solution to an LP problem arises when there is no solution that satisfies all the
constraints simultaneously. This happens when there is no unique (single) feasible region. This
situation arises when an LP model has conflicting constraints. Any point lying outside the feasible
region violates one or more of the given constraints.
1. Limited to Two Dimensions: The graphical method is primarily applicable to problems with only
two decision variables, as it becomes impractical to visualize and represent the feasible region
graphically in higher dimensions.
2. Infeasibility and Unboundedness: In some cases, the feasible region may be empty (infeasible)
or unbounded, making it challenging to accurately interpret the solution graphically.
8
3. Precision and Accuracy: The graphical method relies on manual plotting and reading of points,
which can lead to errors and reduced accuracy, especially when dealing with fine adjustments or
small changes in the objective function.
4. Complex Constraints: When constraints are nonlinear or have complex shapes, accurately
representing them graphically can be difficult or impossible, limiting the method's applicability.
5. Non-Integer Solutions: The graphical method may not handle problems with integer or binary
solution requirements efficiently, as it does not directly address discrete decision variables.
While the graphical method is a valuable tool for introducing the concepts of Linear Programming
and providing insights into simple problems, its limitations become more apparent in more
intricate and multidimensional scenarios. In such cases, more advanced techniques such as the
Simplex algorithm or interior point methods are often preferred for accurate and efficient
solutions.
References:
§ Hillier, F. S., & Lieberman, G. J. (2013). Introduction to operations research. New York, NY: McGraw-Hill.
§ Winston, W. L. (2014). Operations research: Applications and algorithms. Boston, MA: Cengage Learning.
§ Taha, H. A. (2016). Operations research: An introduction. Upper Saddle River, NJ: Pearson.