Linear Programming (LP) is a technique used to determine the best possible solution (maximum profit or minimum cost) for a problem involving limited resources and linear constraints.
- The term "linear" means that the objective function and constraints are represented by linear equations or inequalities.
- The term "programming" refers to planning or determining the optimal course of action.
- Linear Programming is used to optimize the use of limited resources.
- The objective is to obtain the maximum or minimum value of a linear function while satisfying all given constraints.
Some of its key applications are:
General Mathematical Form of a LPP
A linear programming problem consists of,
1) Decision variables are the variables x and y, which decide the output of the linear programming problem and represent the final solution.
2) The objective function, generally represented by Z, is the linear function that needs to be optimized according to the given condition to get the final solution.
3) The restrictions imposed on decision variables that limit their values are called constraints.
Now, the general formula of a linear programming problem is,
- Objective Function: Z = ax + by
- Constraints: cx + dy ≥ e, px + qy ≤ r
4) Non-Negative restrictions:x ≥ 0, y ≥ 0
In the above condition, x. and y are the decision variables.
Example: Suppose a deliveryman has to deliver 8 packets in a day to the different locations of a city. He has to pick all the packets from A and has to deliver them to points P, Q, R, S, T, U, V, and W. The distance between them is indicated using the lines as shown in the image below.

Terminology
Several important terms are frequently used in linear programming.
- Feasible Region: The common region that satisfies all the given constraints is called the feasible region. Every point inside this region represents a possible solution to the problem.
- Feasible Solution: Any point that satisfies all constraints and non-negativity conditions is called a feasible solution.
- Optimal Solution: A feasible solution that gives the maximum or minimum value of the objective function is called the optimal solution.
- Corner Point (Extreme Point): The vertices of the feasible region are called corner points or extreme points. In the graphical method, the optimal solution occurs at one or more corner points.
- Bounded Solution: If the objective function attains a finite maximum or minimum value within the feasible region, the solution is called a bounded solution.
- Unbounded Solution: If the value of the objective function can increase or decrease indefinitely without violating any constraints, the solution is called an unbounded solution.
- Infeasible Solution: If no common region satisfies all the constraints simultaneously, the problem has no feasible solution and is called infeasible.
- Redundant Constraint: A constraint that does not affect the feasible region is known as a redundant constraint.
Solving Linear Programming Problems
The steps for solving linear programming problems are,
Step 1: Mark the decision variables in the problem.
Let x = number of product A, y = number of product B.Step 2: Build the objective function of the problem and check if the function needs to be minimized or maximized.
Maximize Z = 5x + 7yStep 3: Write down all the constraints of the linear problems.
2x + y ≤ 100 ((resource constraint)Step 4: Ensure non-negative restrictions of the decision variables.
x, y ≥0(non-negativity)
Step 5: Now solve the linear programming problem using any method generally we use either the simplex or graphical method.
LP Methods
1. Graphical Method
The graphical method is used when a linear programming problem contains two decision variables. It involves plotting all constraints on a coordinate plane and identifying the feasible region.
Steps
- Convert each inequality into an equation.
- Plot the corresponding lines on the coordinate plane.
- Determine the feasible region satisfying all constraints.
- Find the corner points of the feasible region.
- Evaluate the objective function at each corner point.
- Select the point that gives the maximum or minimum value of the objective function.
2. Simplex Method
The simplex method is an algebraic technique used for solving linear programming problems involving multiple variables and constraints. The method systematically moves from one feasible solution to another until the optimal solution is obtained.
Steps
- Formulate the linear programming problem.
- Convert inequalities into equations using slack, surplus, or artificial variables.
- Construct the initial simplex table.
- Identify the pivot column and pivot row.
- Perform row operations to obtain a new table.
- Repeat the process until all entries in the objective row satisfy the optimality condition.
- Read the optimal solution from the final simplex table.
Types of Linear Programming Problems
- Manufacturing Problems are the problem that deals with the number of units that should be produced or sold to maximize profits when each product requires fixed manpower, machine hours, and raw materials.
- Diet Problems is used to calculate the number of different kinds of constituents to be included in the diet to get the minimum cost, subject to the availability of food and their prices.
- Transportation Problems is used to determine the transportation schedule to find the cheapest way of transporting a product from plants /factories situated at different locations to different markets.
Applications
Here are some modern applications:
- Supply Chain Optimization: It's used for determining the most cost-effective transportation routes, warehouse operations, and inventory management strategies.
- Telecommunications Network Design: It helps in allocating bandwidth, designing network layouts, and optimizing the flow of data to ensure high-speed communication at lower costs.
- Financial Planning: Businesses and financial analysts use linear programming for portfolio optimization, risk management, and capital budgeting.
- Healthcare Logistics: In healthcare, linear programming is applied to optimize the allocation of resources, such as hospital beds, medical staff, and equipment.
- Airline Crew Scheduling: Airlines employ linear programming to schedule crews efficiently, ensuring that flights are staffed in compliance with regulations and minimizing operational costs.