Skip to main content

Linear programming (SACE Stage 2 General Mathematics)

Syllabus dot point

“Formulate linear programming problems with constraints and an objective function, identify the feasible region, and find the optimal solution at a vertex.”

8 min read

Quick answer

Linear programming finds the best value of an objective (such as maximum profit) subject to linear constraints. You graph the constraints to find the feasible region, then test the objective at each corner (vertex). The optimum always occurs at a vertex of the feasible region.

Jump to a section
  1. What this dot point is asking
  2. Setting up the problem
  3. Graphing the feasible region
  4. Why the optimum is always at a vertex
  5. Finding the vertices
  6. Interpreting the solution
  7. Integer solutions
  8. Minimisation problems
  9. Exam-style questions

What this dot point is asking

You must translate a worded problem into inequalities and an objective function, graph the feasible region, and find the vertex that optimises the objective.

Setting up the problem

Define decision variables (often xx and yy for the number of each product). Then write:

  • Constraints: linear inequalities from limits on resources (time, material, demand), plus x≥0x \ge 0 and y≥0y \ge 0.
  • Objective function: the quantity to maximise or minimise, such as P=5x+8yP = 5x + 8y.
Feasible region

The feasible region is the set of all points (x,y)(x, y) that satisfy every constraint at once. It is the overlap of all the shaded half-planes and is usually a polygon.

Graphing the feasible region

For each inequality, graph the boundary line (replace the inequality with ==), then shade the side that satisfies it. The feasible region is where all shadings overlap.

The corner-point principle

For a linear objective function over a feasible region, the maximum and minimum each occur at a vertex (corner) of the region. You only need to test the corners, not every interior point.

Worked example

A workshop makes tables (xx) and chairs (yy). Each table needs 4 hours, each chair 2 hours, and there are 40 hours available: 4x+2y≤404x + 2y \le 40. Wood limits production to x+y≤14x + y \le 14. Profit is P=30x+20yP = 30x + 20y. With x,y≥0x, y \ge 0, find the production that maximises profit and state the maximum profit.

Step 1: Identify the feasible region vertices from the axes

The non-negativity constraints x≥0x \ge 0 and y≥0y \ge 0 confine solutions to the first quadrant. We find the axis intercepts of each constraint to locate the corners that lie on the axes.

For 4x+2y=404x + 2y = 40: when y=0y = 0, x=10x = 10, giving the vertex (10,0)(10, 0). When x=0x = 0, y=20y = 20, but we also have the wood constraint.

For x+y=14x + y = 14: when x=0x = 0, y=14y = 14, giving a candidate vertex (0,14)(0, 14).

The origin (0,0)(0, 0) is always a vertex when both variables are non-negative.

Step 2: Find the interior vertex where the two constraints intersect

The corner-point principle tells us the optimal solution occurs at a vertex, and the most important vertex is usually where the two binding constraints cross. We solve the system 4x+2y=404x + 2y = 40 and x+y=14x + y = 14 simultaneously.

From the second equation, express yy in terms of xx: y=14−xy = 14 - x. Substitute into the first:

4x+2(14−x)=40  ⟹  4x+28−2x=40  ⟹  2x=12  ⟹  x=6,  y=8.4x + 2(14 - x) = 40 \implies 4x + 28 - 2x = 40 \implies 2x = 12 \implies x = 6,\; y = 8.

The two constraints meet at (6,8)(6, 8).

Step 3: Evaluate the objective function at every vertex

Because the optimum of a linear objective over a polygon always occurs at a corner, we test P=30x+20yP = 30x + 20y at each vertex and compare:

  • (0,0)(0, 0): P=0P = 0
  • (10,0)(10, 0): P=30(10)+20(0)=300P = 30(10) + 20(0) = 300
  • (6,8)(6, 8): P=30(6)+20(8)=180+160=340P = 30(6) + 20(8) = 180 + 160 = 340
  • (0,14)(0, 14): P=30(0)+20(14)=280P = 30(0) + 20(14) = 280

Step 4: State the optimal solution in context

The largest value is P=340P = 340 at (6,8)(6, 8). This means making 6 tables and 8 chairs uses both constraints fully and generates the greatest profit.

Final answer: Maximum profit is $340\$340, achieved by making 6 tables and 8 chairs.

Why the optimum is always at a vertex

The objective function P=ax+byP = ax + by has straight, parallel level lines - one for each value of PP. Increasing PP slides this line across the plane in a fixed direction. As it sweeps over the feasible region, the last point it touches before leaving is always a corner (or, in a tie, an entire edge). This is why you never need to test interior points: the extreme value of a linear objective over a polygon is reached at a vertex. Understanding this corner-point principle, rather than just applying it, is what examiners look for when they ask you to justify your method.

Finding the vertices

Each vertex is the intersection of two boundary lines, found by solving the corresponding pair of equations simultaneously. Some vertices lie on the axes (where x=0x = 0 or y=0y = 0) and are read off directly; the crucial interior vertex is where two sloping constraints cross, which you must solve for. List every vertex of the feasible region, evaluate the objective at each, and the best value is your answer. Missing the interior intersection is the most common way to get a wrong optimum.

Interpreting the solution

The optimal vertex gives the best combination. Always state the answer in context: how many of each item and the resulting objective value. Check the solution uses whole numbers if the items are indivisible.

Read the inequality direction carefully

"At most" or "no more than" means ≤\le; "at least" means ≥\ge. A resource limit is usually ≤\le (you cannot use more than you have), while a minimum requirement is ≥\ge.

Integer solutions

Many linear-programming contexts involve indivisible items - you cannot make 6.46.4 tables. When the optimal vertex has non-integer coordinates, the true answer is the best integer point inside the feasible region near that vertex, found by testing the nearby whole-number combinations that still satisfy every constraint. SACE problems are usually designed so the optimum lands on integers, but you should always confirm the solution is feasible and sensible in context, rounding toward the interior of the region rather than blindly to the nearest integer, which might violate a constraint.

Minimisation problems

Not every objective is a profit to maximise; some are costs to minimise. The method is identical - graph the feasible region and test the vertices - but you choose the corner giving the smallest objective value rather than the largest. For minimisation the feasible region is often unbounded above (for example, "use at least this much of each ingredient"), and the optimum sits at the lowest-cost corner of the bounded part. Reading whether the question asks to maximise or minimise, and selecting the corresponding vertex, is essential.

Common mistake

Do not test only the obvious axis intercepts. The optimum is frequently at the interior vertex where two constraint lines cross, like (6,8)(6, 8) above. You must find that intersection by solving simultaneously and test it too, or you may miss the true maximum.

Exam-style questions

Questions in the style of SACE Board exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

Practice5 marks
Calculator-assumed. A workshop makes tables (xx) and chairs (yy). Each table needs 4 hours and each chair 2 hours, with 40 hours available, so 4x+2y≤404x + 2y \le 40. Wood limits total items to x+y≤14x + y \le 14. Profit is P=30x+20yP = 30x + 20y dollars. With x,y≥0x, y \ge 0, find the production that maximises profit and state the maximum profit.
Show worked answer →

Find the feasible-region vertices. The constraint lines 4x+2y=404x + 2y = 40 and x+y=14x + y = 14 meet where, substituting y=14−xy = 14 - x, 4x+2(14−x)=404x + 2(14 - x) = 40, giving 2x=122x = 12, so x=6x = 6, y=8y = 8.

The vertices are (0,0)(0, 0), (10,0)(10, 0), (6,8)(6, 8) and (0,14)(0, 14). Test P=30x+20yP = 30x + 20y:
(0,0):0(0,0): 0; (10,0):300(10,0): 300; (6,8):340(6,8): 340; (0,14):280(0,14): 280.

The maximum profit is 340 dollars, making 6 tables and 8 chairs.

Marks: one for both constraints, two for the vertices including the intersection, one for testing the corners, one for the optimal answer in context.

Practice4 marks
Calculator-assumed. A grower plants apple trees (xx) and pear trees (yy). Land allows x+y≤100x + y \le 100 and labour allows 2x+y≤1602x + y \le 160. Each apple tree yields 50 dollars profit and each pear tree 40 dollars, so P=50x+40yP = 50x + 40y. Find the planting that maximises profit, with x,y≥0x, y \ge 0.
Show worked answer →

The lines x+y=100x + y = 100 and 2x+y=1602x + y = 160 meet where subtracting gives x=60x = 60, then y=40y = 40.

Vertices: (0,0)(0, 0), (80,0)(80, 0), (60,40)(60, 40), (0,100)(0, 100). Test P=50x+40yP = 50x + 40y:
(0,0):0(0,0): 0; (80,0):4000(80,0): 4000; (60,40):3000+1600=4600(60,40): 3000 + 1600 = 4600; (0,100):4000(0,100): 4000.

The maximum profit is 4600 dollars, planting 60 apple trees and 40 pear trees.

Marks: one for the constraints, one for the intersection vertex, one for testing corners, one for the answer.

Practise this

Sources & how we know this

ExamExplained