Linear Programming Is The Simplest Way of Optimizing A Problem
Linear Programming Is The Simplest Way of Optimizing A Problem
(0, 0) 0
(0, 40) 40
(30, 0) 240
0 20 20
20 10 30
25 0 25
Clearly, Z is maximum at co-ordinate (20, 10). So the maximum number of cakes that can be
baked is Z = 20 + 10 = 30.
Iso-Cost Methods
The term iso-cost or iso-profit method provides the combination of points that produces the
same cost/profit as any other combination on the same line. This is done by plotting lines
parallel to the slope of the equation.
To solve the problem using Iso-cost method you need to follow the following steps:
Step 1: Create mathematical formulation from the given problem. If not given.
Step 2: Now plot the graph using the given constraints and find the feasible region.
Step 3: Now find the coordinates of the feasible region that we get from step 2.
Step 4: Find the convenient value of Z(objective function) and draw the line of this objective
function.
Step 5: If the objective function is maximum type then draw a line which is parallel to the
objective function line and this line is farthest from the origin and only has one common point
to the feasible region. Or if the objective function is minimum type then draw a line which is
parallel to the objective function line and this line is nearest from the origin and has at least
one common point to the feasible region.
Step 6: Now get the coordinates of the common point that we find in step 5. Now, this point is
used to find the optimal solution and the value of the objective function.
Read More,
Linear Programming
Graphical Solution of Linear Inequalities
Solved Examples of Graphical Solution of LPP
Example 1: Solve the given linear programming problems graphically:
Maximize: Z = 50x + 15y
Constraints are,
5x + y ≤ 100
x + y ≤ 50
x ≥ 0, y ≥ 0
Solution:
Given,
5x + y ≤ 100
x + y ≤ 50
x ≥ 0, y ≥ 0
Step 1: Finding points
We can also write as
5x + y = 100….(i)
x + y = 50….(ii)
Now we find the points
so we take eq(i), now in this equation
When x = 0, y = 100
When y = 0, x = 20
So, points are (0, 100) and (20, 0)
Similarly, in eq(ii)
When x = 0, y = 50
When y = 0, x = 50
So, points are (0, 50) and (50, 0)
Step 2: Now plot these points in the graph and find the feasible region.
Step 3: Now we find the convenient value of Z(objective function)
So, to find the convenient value of Z, we have to take the lcm of coefficient of 50x + 15y, i.e.,
150. So, the value of Z is the multiple of 150, i.e., 300. Hence,
50x + 15y = 300
Now we find the points
Put x = 0, y = 20
Put y = 0, x = 6
draw the line of this objective function on the graph:
Step 4: As we know that the objective function is maximum type then we draw a line which is
parallel to the objective function line and farthest from the origin and only has one common
point to the feasible region.
Step 5: We have a common point that is (12.5, 37.5) with the feasible region. So, now we find
the optimal solution of the objective function:
Z = 50x + 15y
Z = 50(12.5) + 15(37.5)
Z = 625 + 562.5
Z = 1187
Thus, maximum value of Z with given constraint is, 1187
Example 2: Solve the given linear programming problems graphically:
Minimize: Z = 20x + 10y
Constraints are,
x + 2y ≤ 40
3x + y ≥ 30
4x + 3y ≥ 60
x ≥ 0, y ≥ 0
Solution:
Given,
x + 2y ≤ 40
3x + y ≥ 30
4x + 3y ≥ 60
x ≥ 0, y ≥ 0
Step 1: Finding points
We can also write as
l1 = x + 2y = 40 ….(i)
l2 = 3x + y = 30 ….(ii)
l3 = 4x + 3y = 60 ….(iii)
Now we find the points
So we take eq(i), now in this equation
When x = 0, y = 20
When y = 0, x = 40
So, points are (0, 20) and (40, 0)
Similarly, in eq(ii)
When x = 0, y = 30
When y = 0, x = 10
So, points are (0, 30) and (10, 0)
Similarly, in eq(iii)
When x = 0, y = 20
When y = 0, x = 15
So, points are (0, 20) and (15, 0)
Step 2: Now plot these points in the graph and find the feasible region.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving
tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality
content at affordable prices, all geared towards accelerating your growth in a time-bound
manner. Join the millions we've already empowered,