ExamSaathi learning library · School · CBSE Class 12 Mathematics 2026-27; teacher review pending · Mathematics

Linear programming for Class 12: constraints, feasible regions and corner points

Turn a word problem into a linear programming problem, draw the feasible region of its constraints, and find the best value of a linear objective function by checking the corner points, including unbounded regions and problems with no feasible point.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Recap in one line: Class 11 lessons solved linear inequalities in one variable and drew straight lines from their equations; here the two ideas meet in two variables. A shopkeeper, a farmer or a workshop owner often has to choose amounts, such as how many of two items to make, so that profit is as large as possible or cost as small as possible, while staying within limits of money, material, time or space. When the objective (the quantity to be made best) and all the limits are linear, the task is a linear programming problem, and with two unknowns it can be solved on a graph. In this lesson the two unknowns are called p and q, because x means multiply; p is measured along the horizontal axis and q along the vertical axis. A linear inequality in two variables, such as 2p + 3q <= 12, holds for a whole region of the plane, not just for points on a line. Draw the boundary line 2p + 3q = 12, solid because equality is allowed, then test a point that is not on it, usually the origin: 2(0) + 3(0) = 0 <= 12 is true, so the half-plane that contains the origin is the solution region. If the test fails, take the other side. The conditions p >= 0 and q >= 0 together keep you in the first quadrant, axes included.

The parts of a linear programming problem

A linear programming problem has three parts. The decision variables are the amounts you are free to choose, here p and q. The objective function is the linear expression to be maximised or minimised, for example a profit Z = 30p + 40q in rupees. The constraints are the linear inequalities that every choice must obey, and the non-negativity restrictions p >= 0 and q >= 0 say that nobody can make a negative number of anything. To formulate a word problem: name the variables with their units; write Z in terms of them; turn each limit into an inequality, with 'at most' written as <= and 'at least' as >=; and add p >= 0 and q >= 0. The region common to all the constraints, non-negativity included, is the feasible region. Every point in it is a feasible solution, and every point outside it is an infeasible solution. A feasible solution that gives Z its best value is an optimal feasible solution, or simply an optimal solution. The problems in this lesson have at most three constraints besides p >= 0 and q >= 0.

Corner points and the corner point method

Each value of Z = 30p + 40q gives a line, and all these lines are parallel. Moving the line parallel to itself in the direction in which Z increases raises Z; for this Z, with both coefficients positive, that is away from the origin. If a best value exists, the line in its best position still touches the feasible region, at a corner point or along a whole edge whose ends are corner points. Two results follow. If the feasible region is bounded, so that a circle can enclose it, Z has both a maximum and a minimum value on it, and each occurs at a corner point. If the region is unbounded, a maximum or minimum may not exist, but if one does exist it occurs at a corner point. The corner point method therefore has four steps: draw the feasible region; find every corner point, reading it from the axes or solving the two boundary equations that meet there; work out Z at each corner; and pick the largest value for a maximum or the smallest for a minimum. There is no need to test points inside the region, because none can beat the best corner. If two neighbouring corners give the same best value, every point of the edge joining them is optimal too, so the problem has infinitely many optimal solutions.

Unbounded regions and problems with no solution

On an unbounded feasible region, the largest corner value M is not automatically the maximum. Draw the line Z = M dashed and look at the open half-plane Z > M. If it shares no point with the feasible region, M is the maximum; if it shares some, Z can be made as large as you like and there is no maximum. For a minimum, take the smallest corner value m and look at the open half-plane Z < m in the same way. A feed or diet problem with 'at least' constraints usually has a region that runs away from the origin without end: it has a cheapest mix but no dearest one. Sometimes the constraints cannot all hold at once, as with p + q <= 2 and p + q >= 5. Then the feasible region is empty, the problem has no feasible solution, and Z has no optimal value at all. So check that a feasible region exists before you calculate any corner values.

Common mistakes

1. Forgetting p >= 0 and q >= 0, which lets the region spill into negative amounts. 2. Shading the wrong side of a boundary line; always try a test point such as the origin. 3. Guessing a corner from the sketch where two slanted lines cross, instead of solving their equations. 4. Checking only some of the corners, or checking points inside the region instead of the corners. 5. Calling the largest corner value the maximum on an unbounded region without the open half-plane test. 6. Writing 'at least' as <=, or mixing units such as paise with rupees or grams with kilograms. 7. Giving only the value of Z; a full answer also says which amounts produce it.

A short routine

1. Name the variables with their units and write the objective function Z. 2. Turn every limit into a linear inequality and add the non-negativity restrictions. 3. Draw each boundary line and keep the side that satisfies its inequality, using a test point. 4. Mark the feasible region; if it is empty, stop, because there is no feasible solution. 5. List every corner point, solving the equations where two slanted lines cross. 6. Work out Z at each corner and choose the best value. 7. If the region is unbounded, confirm the answer with the open half-plane test. 8. Give the answer in the words of the problem, for example how many of each item to make and the best profit in rupees.

Worked examples

  1. A small workshop in Ludhiana makes wooden stools and tables. A stool needs 1 hour of cutting and 2 hours of finishing; a table needs 3 hours of cutting and 2 hours of finishing. Each week at most 15 hours of cutting and 18 hours of finishing are available. The profit is Rs. 150 on a stool and Rs. 250 on a table. How many of each should be made in a week for the greatest profit?

    1. Step 1: Let p be the number of stools and q the number of tables. Maximise Z = 150p + 250q.
    2. Step 2: Cutting: p + 3q <= 15. Finishing: 2p + 2q <= 18, that is p + q <= 9. Also p >= 0 and q >= 0.
    3. Step 3: The feasible region is bounded, with corners (0, 0), (9, 0) on p + q = 9, (0, 5) on p + 3q = 15, and the point where p + 3q = 15 meets p + q = 9.
    4. Step 4: Subtracting p + q = 9 from p + 3q = 15 gives 2q = 6, so q = 3 and p = 6: the corner (6, 3).
    5. Step 5: Z at the corners: (0, 0) gives 0; (9, 0) gives 1350; (6, 3) gives 900 + 750 = 1650; (0, 5) gives 1250.
    6. Step 6: The largest value, 1650, is at (6, 3).

    Answer: Make 6 stools and 3 tables a week, for the greatest profit of Rs. 1,650.

  2. A dairy farmer mixes two cattle feeds, F1 and F2. A kilogram of F1 gives 2 units of protein and 1 unit of fibre and costs Rs. 30; a kilogram of F2 gives 1 unit of protein and 2 units of fibre and costs Rs. 25. Each animal needs at least 8 units of protein and at least 10 units of fibre a day. Find the cheapest daily mix.

    1. Step 1: Let p kg of F1 and q kg of F2 be used. Minimise Z = 30p + 25q.
    2. Step 2: Protein: 2p + q >= 8. Fibre: p + 2q >= 10. Also p >= 0 and q >= 0.
    3. Step 3: The feasible region lies on the far side of both lines from the origin and is unbounded. Its corners are (0, 8) on 2p + q = 8, (10, 0) on p + 2q = 10, and the point where the two lines meet.
    4. Step 4: From 2p + q = 8, q = 8 - 2p; then p + 2(8 - 2p) = 10 gives -3p = -6, so p = 2 and q = 4: the corner (2, 4).
    5. Step 5: Z at the corners: (0, 8) gives 200; (2, 4) gives 60 + 100 = 160; (10, 0) gives 300. The smallest is 160.
    6. Step 6: The region is unbounded, so check the open half-plane 30p + 25q < 160. The dashed line 30p + 25q = 160 passes through (2, 4) and cuts the axes at about (5.33, 0) and (0, 6.4); the whole feasible region lies on the side away from the origin and touches this line only at (2, 4). So no feasible point gives Z < 160, and 160 is the minimum.

    Answer: Use 2 kg of F1 and 4 kg of F2 per animal a day, for the least cost of Rs. 160; the cost has no maximum on this region.

Practice checks

  1. A tailor has at most 24 metres of cloth. A kurta needs 3 m and a shirt needs 2 m, and he wants to make at least 2 kurtas. With p kurtas and q shirts, which set of constraints is correct?
  2. The feasible region for 3p + q <= 15, 3p + 4q <= 24, p >= 0 and q >= 0 has the corner points (0, 0), (5, 0), (4, 3) and (0, 6). What is the maximum of Z = 4p + 5q?
  3. On the same region (3p + q <= 15, 3p + 4q <= 24, p >= 0, q >= 0), Z = 3p + 4q is to be maximised. Which statement is true?
  4. The feasible region for p + q >= 4, p + 3q >= 6, p >= 0 and q >= 0 is unbounded, with corners (0, 4), (3, 1) and (6, 0). What is true for Z = 2p + 5q?
  5. What can you say about the problem: maximise Z = 5p + 2q subject to p + 2q <= 4, 3p + q >= 15, p >= 0 and q >= 0?

Sources checked