Linear programming is a powerful technique used in optimization, where the goal is to maximize or minimize a linear objective function, subject to a set of linear constraints. One of the simplest methods of solving linear programming problems is the Graphical Method. This method is particularly effective when dealing with two variable problems, as it allows us to visualize the solution and better understand the relationship between constraints.
Linear programming (LP) is a mathematical technique for optimization. It involves finding the best possible outcome (such as maximum profit or minimum cost) in a mathematical model whose requirements are represented by linear relationships. These relationships are typically expressed through an objective function (which we aim to optimize) and constraints (which define the limits or restrictions).
For example, a company may want to maximize its profit by deciding how much of two products to produce, subject to constraints such as limited resources, time, or production capacity.
The Graphical Method is used to solve linear programming problems with two variables. It involves plotting the constraints on a graph, identifying the feasible region, and then determining the optimal point that maximizes or minimizes the objective function.
Key Elements of a Graphical Method:
Step 1: Formulate the Linear Programming Problem
Start by defining the objective function and the constraints for the problem.
For example, consider the following problem:
Constraints:
Step 2: Graph the Constraints
Each constraint is a linear equation that can be plotted on a graph. To graph the constraint, first convert the inequality into an equation by replacing the inequality sign with an equal sign.
For example, for the constraint , graph the line . This line divides the plane into two regions. The feasible region will be one side of the line, depending on whether the inequality is ≤ or ≥.
Repeat this process for each constraint, plotting them on the same graph.
Step 3: Identify the Feasible Region
The feasible region is the area that satisfies all the constraints. It is typically a polygon (or sometimes unbounded) where all the constraint lines intersect. This region represents all possible solutions that meet the problem's requirements.
Step 4: Locate the Corner Points
The optimal solution to a linear programming problem in the graphical method will always occur at one of the corner points (also called vertices) of the feasible region. These points can be found by identifying where the constraint lines intersect.
Step 5: Evaluate the Objective Function
Now that we have the corner points, evaluate the objective function at each of these points. Substitute the values of and into the objective function and calculate the corresponding values of Z.
Step 6: Choose the Optimal Solution
The solution that gives the highest (for maximization problems) or lowest (for minimization problems) value of the objective function is the optimal solution. If there are multiple corner points with the same value, there may be multiple optimal solutions.
Problem: Maximize
Subject to:
Example 2: 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?
Solution:
Let x tickets of first class and y tickets of economy class be sold to maximize the profit. Then,
,
and
The profit function is given by Z = 400x + 300y.
So, for a maximum profit first class ticket should be 40 and economy class should be 160.
Example 3: A firm manufactures two types of products, A and B, and sells them at a profit of Rs 5 per unit of type A and Rs 3 per unit of type B. Each product is processed on two machines, M1 and M2. One unit of type A requires one minute of processing time on M1 and two minutes of processing time on M2; whereas one unit of type B requires one minute of processing time on M1 and one minute on M2. Machines M1 and M2 are respectively available for at most 5 hours and 6 hours in a day. Find out how many units of each type of product should the firm produce a day in order to maximize the profit. Solve the problem graphically.
Solution:
Let x units of A and y units of B be produced in order to have a maximum profit.
Then, clearly x ≥ 0 and y ≥ 0.
x units of A and y units of B will take (x + y) minutes on M1.
∴ x + y ≤ 300.
x units of A and y units of B will take (2x + y) minutes on M2.
∴ 2x + y ≤ 360.
Let Z be the profit function. Then, Z = 5x + 3y.
We have to maximize Z= 5x + 3y ,
Subject to the constraints
x + y ≤ 300
2x + y ≤ 360
x ≥ 0
y ≥ 0.
So, for maximum profit x = 60 and y = 240.
(Session 2025 - 26)