Linear Programming
Optimization Technique
Applications of Linear Programming Problems
• Problems from different fields can be solved by LPP.
Product Mix, Media Mix, Diet mix, Land allocation, Production
scheduling, Portfolio selection problems, etc.
• Can be solved with easy techniques-Simplex Algorithm (MSExcel, R)
• Sensitivity Analysis is available. What if analysis is available.
Graphical Method
Steps for solving LPP through Graphical Method
• Step 1. Formulate the LPP problems and develop objective function along with all the
constraints function.
• Step 2. Graph the feasible region and find the corner points. The coordinates of the corner
points can be obtained by either inspection or by solving the two equations of the lines
intersecting at that point.
• Step 3. Make a table listing the value of the objective function at each corner point.
• Step 4. Determine the optimal solution from the table in step 3. If the problem is of
maximization (minimization) type, the solution corresponding to the largest (smallest)
value of the objective function is the optimal solution of the LPP.
Graphical Method
• First Constraint: 2X1 + 3X2 = 60
• If X1 = 0 then X2 = 20. So the point would be (0, 20)
• If X2 = 0 then X1 = 30. So the point would be (30, 0)
• Second Constraint: 4X1 + 3X2 = 96
• If X1 = 0 then X2 = 32. So the point would be (0, 32)
• If X2 = 0 then X1 = 24. So the point would be (24, 0)
The graphical method of solving a linear programming problem can be used when there are only two decision variables.
If the problem has three or more variables, the graphical method is not suitable. In that case we use the
SIMPLEXMETHOD which will be discussed separately in the next PPT or in Classroom.
Find solution using Graphical Method
Maximize Z = 2 x +5x
subject to the conditions
x + 4x ≤ 24
3x + x ≤ 21
x1+ x ≤ 9 and x , x ≥ 0
1
1
2
2
1
2
2
1
2
Maximum value of Z occurs at C.
⸫ the solution is x1 =4, x2 = 5, Z max = 33
Formulate LPP and Find solution using
Graphical Method
• An aeroplane of an airline can carry a maximum of 200 passengers. A
profit of Rs 400 is made on each first-class ticket and a profit of Rs
300 is made on each economy-class ticket. The airline reserves at least
20 seats for first class. However, at least 4 times as many passengers
prefer to travel by economy class than by first class. Determine how
many of each type of tickets must be sold in order to maximize the
profit for the airline. What is the maximum profit?
Let x tickets of first class and y tickets of economy class be sold to
maximize the profit.
Profit Function
Z = 400 x + 300 y
s.t. x ≥ 20 ;
y≥4x;
x + y ≤ 200
Points
Corner points
Corresponding
Value Z
A
(20, 80)
Rs 32000
B
(40, 160)
Rs 64000 →
Maximise
C
(20, 180)
Rs 62000
Find solution using Graphical Method
• Maximize Z = 3x1 + 4x2
subject to x1 – x2 < –1;
–x1+x2 < 0 and
x1, x2 ≥ 0
There is no common region(feasible region)
satisfying all the given conditions.
Hence the given LPP has no solution.
Find solution using graphical method
MAX z = 5 x1 + 10 x2
subject to x1 + 2 x2 <= 120
x1 + x2 >= 60
x1 - 2 x2 >= 0
x1, x2 >= 0
• Problem has multiple optimal solutions
Points
Corner points
Corresponding
Value Z
A
(60, 0)
300
B
(120, 0)
600 → Maximise
C
(60, 30)
600 → Maximise
D
(40, 20)
400
Find solution using graphical method
MAX z = 10 x1 + 6 x2
subject to 5 x1 + 3 x2 <= 30
x1 + 2 x2 <= 18
x1, x2 >= 0
• Problem has multiple optimal solutions
Consider the geometric region shown in the graph.
A. What are the inequalities
that define this function?
LPP with mixed constraints
B. If the objective function is
P =3x+2y, what is the
maximum value of P?
C. If the objective function is
P= 3x+2y, what is the
minimum value of P