Class 12 Maths Chapter 12: Linear Programming – Notes and Questions
Introduction to Linear Programming
Linear programming is a mathematical method for finding the best possible value of a quantity when there are limited resources and several restrictions. A business may want to maximise profit while working within limits on labour, raw materials or machine time. A student may see similar problems involving minimum cost or maximum production. In Class 12 Mathematics, these situations are represented using linear inequalities and solved graphically by identifying a feasible region and testing its corner points.
1. What is a linear programming problem?
A linear programming problem (LPP) consists of a linear objective function that must be maximised or minimised, subject to a set of linear constraints and usually non-negativity restrictions on the variables. The variables represent the decisions to be made. The constraints express the available resources or conditions, and the objective function measures the quantity to optimise.
A general two-variable objective function is Z = ax + by, where a and b are constants. Constraints may be of the form a₁x + b₁y ≤ c₁, a₂x + b₂y ≥ c₂, or equalities, together with x ≥ 0 and y ≥ 0 when the variables represent non-negative quantities.
2. Important terms
- Decision variables: the unknown quantities represented by x and y.
- Objective function: the linear expression Z that is to be maximised or minimised.
- Constraints: the linear inequalities or equations that restrict the decision variables.
- Non-negativity restrictions: conditions such as x ≥ 0 and y ≥ 0.
- Feasible solution: any pair (x, y) that satisfies every constraint, including non-negativity restrictions.
- Feasible region: the common region containing all feasible solutions.
- Optimal solution: a feasible solution that gives the required maximum or minimum value of the objective function.
3. Mathematical formulation of an LPP
To formulate an LPP from a word problem, first define the decision variables clearly. Next translate each limitation into a linear inequality. Write the quantity to be optimised as the objective function, and include non-negativity conditions if appropriate. Finally, check that each inequality matches the wording: “at most” generally indicates ≤, “at least” indicates ≥, and “exactly” indicates an equality.
Solved example 1: Form an LPP
A workshop makes products A and B. Each unit of A uses 2 hours of machine time and each unit of B uses 1 hour. At most 100 machine hours are available. The workshop can make at most 40 units of A. If the profit per unit is ₹30 for A and ₹20 for B, formulate the LPP to maximise profit.
Let x and y be the numbers of units of A and B. The machine-time condition is 2x + y ≤ 100. The production condition is x ≤ 40. Also x ≥ 0 and y ≥ 0. The profit is Z = 30x + 20y. Thus maximise Z subject to these constraints.
4. Graphical representation of constraints
For a linear inequality in two variables, first draw its boundary line by replacing the inequality sign with an equality sign. To draw the line, find two points that satisfy the equation, often by setting x = 0 and y = 0 in turn. The line divides the plane into two half-planes. Test a convenient point, usually (0, 0) if it is not on the boundary, to decide which half-plane satisfies the inequality. A boundary line is included for ≤ or ≥, so it is drawn as a solid line.
For example, x + y ≤ 6 has boundary x + y = 6, which passes through (6, 0) and (0, 6). The origin satisfies 0 + 0 ≤ 6, so the half-plane containing the origin is the required region.
Solved example 2: Identify the half-plane
Determine the region represented by 2x + y ≥ 4.
The boundary line is 2x + y = 4, passing through (2, 0) and (0, 4). Testing the origin gives 0 ≥ 4, which is false. Therefore choose the half-plane on the side of the line that does not contain the origin. The boundary itself is included.
5. Feasible region
The feasible region is the intersection of the half-planes represented by all constraints. When x ≥ 0 and y ≥ 0 are included, the feasible region lies in the first quadrant. It may be bounded, unbounded or empty. A point in the region satisfies every inequality simultaneously, not merely one of them.
To find the feasible region, graph every boundary line, shade or identify the correct side of each line, and retain only the common portion. Mark the corner points, where boundary lines intersect or meet the axes. These vertices are candidates for the optimal solution.
Solved example 3: Feasible region and corner points
Consider x ≥ 0, y ≥ 0, x + y ≤ 6 and x + 2y ≤ 8. Find the corner points of the feasible region.
The axes and inequalities restrict the region to the first quadrant below both lines. On the x-axis, y = 0 gives x ≤ 6, so one vertex is (6, 0). On the y-axis, x = 0 gives y ≤ 4, so another vertex is (0, 4). The axes meet at (0, 0). The two lines intersect where x + y = 6 and x + 2y = 8. Subtracting gives y = 2 and x = 4. The remaining vertex is (4, 2). The feasible polygon has vertices (0, 0), (6, 0), (4, 2) and (0, 4).
6. Corner point method
The graphical method for solving a two-variable LPP uses the corner point principle: if an optimal value exists in a non-empty bounded feasible region, at least one optimal solution occurs at a corner point. Calculate the objective function at every vertex of the feasible region. The largest value gives the maximum and the smallest gives the minimum. If the same optimal value occurs at more than one adjacent corner, every point on the line segment joining those corners is also optimal.
Always test only feasible corner points. An intersection of two boundary lines that lies outside another constraint is not a feasible vertex.
Solved example 4: Maximise an objective function
Maximise Z = 3x + 2y subject to x ≥ 0, y ≥ 0, x + y ≤ 6 and x + 2y ≤ 8.
From the previous example, the vertices are (0, 0), (6, 0), (4, 2) and (0, 4). Evaluate Z: at (0, 0), Z = 0; at (6, 0), Z = 18; at (4, 2), Z = 16; and at (0, 4), Z = 8. The maximum value is 18 at (6, 0). Therefore the optimal solution is x = 6, y = 0 and Zmax = 18.
Solved example 5: Minimise an objective function
Minimise Z = 2x + 5y subject to x + y ≥ 4, x + 3y ≥ 6, x ≥ 0 and y ≥ 0. Find the relevant corner points.
The boundary lines x + y = 4 and x + 3y = 6 intersect at y = 1 and x = 3. On the axes, feasibility requires x ≥ 6 when y = 0 and y ≥ 4 when x = 0. The lower boundary vertices are (6, 0), (3, 1) and (0, 4). Evaluate Z: at (6, 0), Z = 12; at (3, 1), Z = 11; at (0, 4), Z = 20. Hence the minimum is 11 at (3, 1).
7. Multiple optimal solutions
An LPP may have more than one optimal solution. If the objective function line is parallel to a boundary edge of the feasible region and takes the same optimum value at the two endpoints of that edge, every point on the segment between them is optimal. This is called an alternative or multiple optimal solution. State the entire segment, not only one endpoint, when the question asks for all optimal solutions.
Solved example 6: Multiple optima
Maximise Z = x + y subject to x ≥ 0, y ≥ 0 and x + y ≤ 5.
The feasible triangle has vertices (0, 0), (5, 0) and (0, 5). The objective values are 0, 5 and 5. Since Z = 5 along the entire boundary segment x + y = 5 in the first quadrant, every point on that segment is optimal.
8. Unbounded feasible regions
A feasible region is unbounded if it extends indefinitely in at least one direction. An unbounded feasible region does not automatically mean that an LPP has no optimum. Depending on the objective function, a finite maximum or minimum may still exist. However, if the objective value can increase or decrease without limit while remaining feasible, the corresponding optimum is unbounded and no finite optimal value exists.
Solved example 7: An unbounded maximum
Maximise Z = x + y subject to x ≥ 0 and y ≥ 0.
The feasible region is the entire first quadrant and is unbounded. Increasing x or y makes Z larger without violating any constraint. Therefore there is no finite maximum value.
9. Infeasible problems
An LPP is infeasible when no point satisfies all constraints simultaneously. Graphically, the required half-planes have no common region. For example, x + y ≤ 2 and x + y ≥ 5 cannot both hold for the same x and y, so their common feasible region is empty.
10. Practical interpretation of the result
After solving the mathematical model, interpret x and y in the language of the original problem. If they represent quantities of products, a fractional value may not be practical when only whole units can be made. The standard graphical LPP model treats variables as continuous unless integer restrictions are explicitly included; do not silently round an answer and claim it is still optimal. Also state the units and the maximum profit, minimum cost or other objective value clearly.
11. Common mistakes to avoid
- Choosing the wrong inequality sign when translating “at most” or “at least”.
- Forgetting non-negativity restrictions when the variables represent non-negative quantities.
- Shading the wrong side of a boundary line without testing a point.
- Using a boundary intersection that does not satisfy every constraint.
- Evaluating the objective function at only some of the feasible corner points.
- Confusing a bounded feasible region with an unbounded one.
- Assuming an unbounded feasible region always has no optimum.
- Reporting only one point when an entire edge gives multiple optimal solutions.
- Rounding fractional quantities without checking whether integer restrictions are part of the problem.
12. Practice questions with answers
- What is the objective function in an LPP? Answer: The linear expression to be maximised or minimised.
- Translate “the total of x and y is at most 12”. Answer: x + y ≤ 12.
- Translate “at least 5 units of x are required”. Answer: x ≥ 5.
- Which point can be tested to identify a half-plane when it is not on the boundary? Answer: The origin (0, 0) is often convenient.
- What is a feasible solution? Answer: A point satisfying all constraints, including non-negativity conditions.
- What is the corner point method? Answer: Evaluate the objective function at each feasible vertex and compare the values.
- Can an unbounded feasible region have a finite minimum? Answer: Yes. Unboundedness alone does not decide whether an optimum exists.
- What does an empty feasible region mean? Answer: The LPP is infeasible; no point satisfies all constraints.
- When do multiple optimal solutions occur in a graphical LPP? Answer: When the objective function has the same optimum value along a feasible boundary segment.
- Why are x and y often restricted to be non-negative? Answer: They commonly represent quantities such as production levels that cannot be negative.
13. Board-exam preparation strategy
For a word problem, define variables before writing equations. Translate every condition carefully and label each boundary line on the graph. Use a test point to determine the correct half-plane, then identify the common feasible region and list all its vertices. Make a small table of objective-function values at those vertices. Clearly state the optimal point and value, and interpret them in context. In questions about multiple optima, unboundedness or infeasibility, explain the geometry rather than relying only on a numerical answer.
Frequently asked questions
What is the feasible region in linear programming?
It is the common region containing all points that satisfy every constraint of the LPP.
Why do we check corner points?
For a linear objective function over a non-empty bounded polygonal feasible region, an optimum is attained at at least one vertex. Comparing the vertices therefore identifies the optimum.
Does an unbounded region mean there is no optimal solution?
No. A finite optimum may exist even in an unbounded region. Check how the objective function changes over the feasible region.
What is an infeasible LPP?
It is a problem whose constraints have no common solution, so the feasible region is empty.
Can a linear programming problem have more than one optimal solution?
Yes. If the objective function is constant along a feasible edge at its optimal value, every point on that edge is optimal.
Chapter summary
Linear programming models optimisation under linear constraints. Define decision variables, write the objective function and translate the restrictions into inequalities. Graph the constraints to obtain the feasible region, identify its corner points and evaluate the objective function at each one. Interpret the result and check for special cases such as multiple optima, unboundedness and infeasibility. Accurate formulation and a correctly drawn feasible region are the foundations of a correct solution.
