Linear Programming
Easy Overview
Imagine you're running a small factory. You have limited raw materials, limited machine hours, and limited labour. You make two products, each with different profit margins. How many of each should you produce to maximise your profit? That's a Linear Programming Problem (LPP), and it's one of the most practical applications of mathematics in the business world. Linear programming is used by companies to optimise supply chains, by airlines to schedule flights, by investment firms to balance portfolios, and even by sports teams to allocate training resources. It's all about making the best possible decision given a set of constraints. The word 'linear' means everything is a straight line — no curves, no squares, no complicated functions. Just nice, simple linear relationships. An LPP has three essential components: decision variables (what you can control — like how many units to produce), an objective function (what you want to maximise or minimise — like profit or cost), and constraints (the limits you have to work within — like time, money, or materials). Plus, there are always non-negativity constraints: you can't produce negative quantities. The standard form of an LPP is: optimise Z = c₁x₁ + c₂x₂ + ... subject to a₁₁x₁ + a₁₂x₂ ≤ b₁, a₂₁x₁ + a₂₂x₂ ≤ b₂, ..., and x₁, x₂ ≥ 0. All constraints are linear inequalities. The first step in solving any LPP is formulating it — translating a word problem into mathematical expressions. This means identifying the decision variables, writing the objective function, and listing all constraints. This is often the hardest part for students, but it's just pattern recognition. Look for keywords: 'maximise' or 'minimise', 'at least' (≥), 'at most' (≤), 'not more than' (≤), 'not less than' (≥). Once you have the mathematical formulation, you solve it using the graphical method. The graphical method works when you have two decision variables (x and y) because we can draw the constraints on a 2D graph. Each constraint is a straight line, and the inequality tells you which side of the line is valid. The region where ALL constraints are satisfied simultaneously is called the feasible region — it's usually a polygon (convex polygon, to be exact). The key theorem of linear programming states that the optimal solution (maximum or minimum of Z) lies at one of the vertices (corner points) of the feasible region. So you don't need to check every point inside — just the corners. The corner point method: (1) find all corner points of the feasible region, (2) evaluate the objective function Z at each corner, (3) pick the corner with the largest Z (for maximisation) or smallest Z (for minimisation). That corner gives the optimal values of x and y, and the corresponding Z is the optimal value. Sometimes, the optimal solution isn't unique. If the objective function line is parallel to one of the constraint boundaries, then every point on that entire edge is optimal — giving multiple optimal solutions. Sometimes the feasible region is unbounded (goes on forever in some direction). In that case, a maximum might not exist (Z keeps increasing), but a minimum usually does. And sometimes the constraints contradict each other, giving an empty feasible region — in which case no solution exists (infeasible problem). By the end of this chapter, you'll be able to take any real-world optimisation problem with two variables, formulate it mathematically, graph the constraints, and find the optimal solution. Linear programming is one of those rare maths topics where what you learn in class directly applies to real business and engineering decisions.
What Is Linear Programming?
Linear Programming is a mathematical method for determining the best possible outcome (maximum profit, minimum cost) under given constraints. 'Linear' means all relationships are straight-line equations/inequalities. 'Programming' refers to planning, not computer programming — though it's used extensively in software optimisation today. An LPP always involves optimising a linear objective function subject to linear equality or inequality constraints.
Components of an LPP
Every LPP has: (1) Decision variables — the quantities we can control (usually x, y). (2) Objective function — the linear function Z = c₁x + c₂y that we want to maximise or minimise. (3) Constraints — linear inequalities that limit the decision variables (like x + 2y ≤ 100). (4) Non-negativity constraints — x ≥ 0, y ≥ 0 (negative quantities don't make sense in most real problems). These four components define any LPP.
Formulating an LPP from a Word Problem
This is the translation step. Step 1: Identify the decision variables. Look for what the problem asks 'how many' of. Step 2: Write the objective function. Look for 'maximise profit' or 'minimise cost'. Step 3: Identify all constraints. Look for resource limits — 'not more than', 'at most', 'limited to', 'at least'. Step 4: Add x ≥ 0, y ≥ 0. Practice is the only way to get good at this — there's no shortcut.
Types of Constraints — ≤, ≥, and =
Constraints come as inequalities. ≤ means 'at most', 'not exceeding', 'cannot exceed', 'maximum'. ≥ means 'at least', 'minimum required', 'not less than'. = means 'exactly equal to'. Most business problems use ≤ constraints (resource limits) and ≥ constraints (minimum requirements). A mix is common. In the graphical method, each constraint is drawn as a line, and the inequality determines which half-plane is feasible.
Feasible Region and Feasible Solutions
The feasible region is the set of all points (x, y) that satisfy ALL constraints simultaneously. It's the intersection of all half-planes defined by the constraints. The feasible region is always a convex polygon (or possibly unbounded). Any point in this region is a feasible solution — it satisfies all constraints but may not be optimal. Points outside are infeasible — they violate at least one constraint.
Convexity of the Feasible Region
The feasible region of an LPP is always convex. Convex means: if you take any two points in the region, the entire line segment joining them also lies in the region. This property is why the optimal solution always occurs at a vertex (corner point). Non-convex regions would allow optimal solutions inside, but linear constraints always produce convex regions — that's the beauty of linear programming.
The Corner Point Theorem
This is the most important theorem in linear programming: if an LPP has an optimal solution, it occurs at one of the vertices (corner points) of the feasible region. Why? Because the objective function Z = c₁x + c₂y is a plane in 3D, and its maximum/minimum over a convex polygon always occurs at an edge or vertex. Since the function is linear, it can't have an interior peak — the peak is always on the boundary.
Corner Point Method — Step by Step
Step 1: Graph all constraints and identify the feasible region. Step 2: Find all corner (vertex) points of the feasible region. Corners are where two constraint lines intersect. Step 3: Calculate Z = c₁x + c₂y at each corner point. Step 4: For maximisation, pick the corner with the largest Z. For minimisation, pick the smallest Z. The coordinates of that corner are the optimal decision variable values, and Z is the optimal objective value.
Finding Corner Points Algebraically
Corner points are intersections of constraint lines. Solve pairs of equations simultaneously. For each pair of constraint equations, solve for x and y, then check if the solution satisfies ALL other constraints. If it does, it's a corner point. Don't forget to include intersections with the axes (x = 0 or y = 0) as potential corners. The origin (0,0) is often a corner if x ≥ 0 and y ≥ 0 are constraints.
Graphical Method — Shading the Feasible Region
For each constraint, draw the corresponding line (replace inequality with equality). Use the 'test point method' to determine which side: pick a test point (like (0,0) if it's not on the line), plug into the inequality. If true, shade that side. If false, shade the other side. The feasible region is where ALL shadings overlap. This overlapping region is usually easy to spot — it's the area that's shaded by every constraint.
Unique Optimal Solution
When the objective function line (Z = c₁x + c₂y) touches the feasible region at exactly one corner point, we have a unique optimal solution. This is the most common case. The corner with the maximum (or minimum) Z value is clearly the winner. No other point in the feasible region gives the same Z value. Graphically, the Z-line is the only line of that slope that touches the feasible region at that specific corner.
Multiple Optimal Solutions
If the objective function line is parallel to one of the edges of the feasible region, and that edge gives the optimal Z value, then every point on that edge is optimal. This means infinitely many optimal solutions. The two corners of that edge are both optimal, and so is any point in between. This occurs when c₁/c₂ equals the slope of a constraint boundary that coincides with the optimal Z-line.
Unbounded Feasible Region
Sometimes the feasible region is unbounded — it extends infinitely in some direction. This happens when constraints don't close off the region. For a maximisation problem, this might mean Z can increase without bound (no finite maximum). But a minimum usually exists even in an unbounded region. For minimisation problems, an unbounded region still has a finite minimum at a corner point — unless the region extends infinitely in the direction of decreasing Z.
Infeasible Problem — No Solution
If the constraints contradict each other, there is no point that satisfies all constraints simultaneously. The feasible region is empty. For example, x + y ≤ 5 and x + y ≥ 10 have no common solution. In this case, the LPP has no feasible solution. This means the problem as stated is impossible — you'd need to relax some constraints to make it solvable.
Unbounded Solution
An unbounded solution occurs when the feasible region is unbounded AND the objective function can increase (for max) or decrease (for min) without bound. For maximisation, if the feasible region extends infinitely in the direction that makes Z larger, no maximum Z exists. For minimisation, if it extends infinitely in the direction of decreasing Z, no minimum exists. In such cases, we say the LPP has an unbounded solution.
Application — Diet Problem
A classic LPP example: you need to plan a diet that meets minimum nutritional requirements at minimum cost. Decision variables: quantities of each food. Objective: minimise total cost. Constraints: minimum required amounts of nutrients (protein, vitamins, etc.). Each food contributes a known amount of each nutrient per unit. This is a minimisation problem with ≥ constraints. The graphical method works for two foods.
Application — Production Problem
Another classic: a factory makes two products using limited resources. Decision variables: number of each product. Objective: maximise total profit. Constraints: available machine hours, labour hours, raw materials. Each product uses known amounts of each resource. This is a maximisation problem with ≤ constraints. This is the most common type of LPP in textbooks because it's intuitive — you want to maximise profit with limited resources.
Key Points
- •LPP = optimise (max/min) a linear objective function subject to linear constraints
- •Decision variables: what you can control (usually x, y)
- •Objective function: Z = c₁x + c₂y — what you want to optimise
- •Constraints: linear inequalities (≤, ≥, or =) that limit the variables
- •Non-negativity: x ≥ 0, y ≥ 0 — always included
- •Feasible region = intersection of all half-planes satisfying constraints
- •Feasible region is always CONVEX — the line segment between any two feasible points is also feasible
- •Corner Point Theorem: optimal solution occurs at a vertex of the feasible region
- •Corner point method: find all vertices → evaluate Z → pick best
- •Unique optimal solution: one corner gives the best Z
- •Multiple optimal solutions: objective line is parallel to a constraint edge — entire edge is optimal
- •Unbounded region: feasible region extends infinitely — may or may not have finite optimum
- •Infeasible problem: no point satisfies all constraints — feasible region is empty
- •Unbounded solution: Z can increase/decrease without limit — no finite optimum
- •Formulation steps: identify variables → write objective → list constraints → add non-negativity
- •Graph each constraint by drawing the line, then shade the half-plane that satisfies the inequality
- •Check corner points at intersections of constraint lines AND intersections with axes
- •Always verify that found corner points satisfy ALL constraints
Practice Questions
- A factory produces two types of toys: A and B. Profit per unit is ₹50 for A and ₹60 for B. Each requires 2 hours on Machine P and 1 hour on Machine Q. Machine P runs at most 80 hours, Machine Q at most 60 hours. Formulate the LPP and solve graphically.
- Minimise Z = 4x + 3y subject to x + y ≥ 8, 3x + y ≥ 12, 2x + y ≥ 10, x ≥ 0, y ≥ 0.
- Maximise Z = 6x + 8y subject to 2x + 3y ≤ 24, x + 2y ≤ 16, x ≥ 0, y ≥ 0. Find the optimal solution and the maximum value of Z.
- Explain with a diagram the case of multiple optimal solutions in an LPP.
- A dietician wants to prepare a diet using two foods A and B. Each unit of A costs ₹50 and contains 2 units of protein and 4 units of carbohydrates. Each unit of B costs ₹30 and contains 3 units of protein and 2 units of carbohydrates. The diet must contain at least 12 units of protein and 12 units of carbohydrates. Formulate LPP and solve graphically to minimise cost.
- Show graphically that the LPP — Maximise Z = 3x + 2y subject to x + y ≤ 3, 2x + y ≥ 8, x, y ≥ 0 — has no feasible solution.
- Solve graphically: Maximise Z = 5x + 3y subject to 3x + 5y ≤ 15, 5x + 2y ≤ 10, x ≥ 0, y ≥ 0.
- What is an unbounded solution? Give an example of an LPP that has an unbounded feasible region but a finite minimum.