Skip to main content

Linear programming (WACE Year 12 Mathematics Applications)

Syllabus dot point

“Formulate linear programming problems, graph feasible regions, and locate the optimal solution at a vertex of the feasible region.”

8 min read

Quick answer

Linear programming finds the best decision subject to linear constraints. Define variables, write an objective function P=ax+byP = ax + by to maximise or minimise, and write the limits as linear inequalities. Graph the inequalities to find the feasible region, then test the coordinates of every corner (vertex) in the objective function. The optimum always sits at a vertex.

Jump to a section
  1. What this dot point is asking
  2. Formulating the problem
  3. Graphing the feasible region
  4. The corner-point method
  5. Interpreting the answer
  6. Exam-style questions

What this dot point is asking

You must formulate a worded problem into an objective and constraints, graph the feasible region, and test corner points to optimise.

Formulating the problem

Start by defining the decision variables clearly, for example "let xx be the number of chairs and yy the number of tables".

The three parts of a linear program
  1. Objective function: the quantity to optimise, P=ax+byP = ax + by (profit, cost, time).
  2. Constraints: linear inequalities from each limited resource, plus the non-negativity constraints x≥0x \ge 0, y≥0y \ge 0.
  3. Feasible region: the set of points satisfying every constraint at once.

Each "no more than" limit gives a ≤\le inequality; each "at least" requirement gives a ≥\ge inequality. Reading these correctly from the wording is where most marks are won or lost.

Graphing the feasible region

For each constraint, graph its boundary line (replace the inequality with equals), then shade the side that satisfies the inequality. The feasible region is the area satisfying all constraints simultaneously, usually a shaded polygon bounded by the axes and the constraint lines.

Test a point to choose the side

For each inequality, substitute a test point such as the origin (0,0)(0,0). If it satisfies the inequality, shade the side containing the origin; if not, shade the other side. The feasible region is the overlap of all the shaded sides.

The corner-point method

Because the objective is linear, its value increases steadily across the region, so the maximum or minimum is reached at a corner of the feasible region.

The corner-point method
  1. Find the coordinates of every vertex of the feasible region (intersections of boundary lines and the axes).
  2. Substitute each vertex into the objective function.
  3. The largest value gives the maximum; the smallest gives the minimum.

Intersections are found by solving the two boundary equations simultaneously, usually by substitution or elimination.

Worked example

Minimising cost subject to constraints

A farmer mixes two feeds. Feed X costs $4\$4/kg and supplies 22 units of protein and 11 unit of fibre per kg; Feed Y costs $3\$3/kg and supplies 11 unit of protein and 11 unit of fibre per kg. The mix needs at least 88 units of protein and at least 66 units of fibre. Minimise cost.

Step 1: Define variables and objective

Naming the decision variables first makes every subsequent expression unambiguous. Let xx be kg of Feed X and yy kg of Feed Y. Minimise C=4x+3yC = 4x + 3y.

Step 2: Write the constraints

Each nutritional requirement becomes a "greater than or equal to" inequality because the farmer needs at least the stated amount. Protein: 2x+y≥82x + y \ge 8. Fibre: x+y≥6x + y \ge 6. Plus x≥0x \ge 0, y≥0y \ge 0.

Step 3: Find the vertices of the feasible region

The feasible region is the set of points satisfying every constraint, so its corners are found where the boundary lines cross the axes or each other. The region is unbounded above, with corners at (0,8)(0,8) (on the yy axis where protein binds), (6,0)(6,0) (on the xx axis where fibre binds), and the intersection of 2x+y=82x + y = 8 and x+y=6x + y = 6. Subtracting: x=2x = 2, so y=4y = 4; the intersection is (2,4)(2,4).

Step 4: Test the corners in the objective function

Because the objective is linear, its minimum must occur at one of the corner points, so substituting each one identifies the optimum. C(0,8)=3(8)=24C(0,8) = 3(8) = 24. C(6,0)=4(6)=24C(6,0) = 4(6) = 24. C(2,4)=4(2)+3(4)=8+12=20C(2,4) = 4(2) + 3(4) = 8 + 12 = 20.

Step 5: State the answer in context

The smallest cost value identifies the optimal mix; always express the answer using the original units and variables. The cheapest mix is 22 kg of Feed X and 44 kg of Feed Y, costing $20\$20.

Interpreting the answer

Always state the solution in context: which quantities, and the optimal objective value. If the variables must be whole numbers (you cannot make half a chair), check whether the optimal vertex has integer coordinates and, if not, test the nearest feasible integer points.

A sliding-line (or "objective-line") method is an alternative to testing every corner: draw the objective function for one value, then slide it parallel across the feasible region. For a maximum, the optimum is the last vertex the line touches as it slides outward; for a minimum, the first it touches. This confirms the corner-point result and is handy when there are many vertices, but you still read the optimum off a vertex.

Common errors
Reversing an inequality
"At least" is ≥\ge and "no more than" is ≤\le; mixing these inverts the feasible region.
Forgetting non-negativity
Real quantities cannot be negative, so include x≥0x \ge 0 and y≥0y \ge 0.
Testing only some corners
The optimum can be at any vertex; substitute every one into the objective.
Misreading the intersection
Solve the boundary equations carefully; an arithmetic slip in the vertex coordinates changes the optimal value.

Exam-style questions

Questions in the style of SCSA 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.

WACE 2022-style8 marks
A workshop makes xx chairs and yy tables. Each chair needs 22 hours of cutting and 11 hour of finishing; each table needs 11 hour of cutting and 33 hours of finishing. There are 4040 cutting hours and 4545 finishing hours available. Profit is $30\$30 per chair and $50\$50 per table. (a) Write the constraints. (b) Find the production that maximises profit.
Show worked answer →

Translate each resource limit into an inequality, then test the corner points.

(a) Constraints: 2x+y≤402x + y \le 40 (cutting), x+3y≤45x + 3y \le 45 (finishing), x≥0x \ge 0, y≥0y \ge 0. Objective: maximise P=30x+50yP = 30x + 50y. (3 marks)

(b) Vertices of the feasible region: (0,0)(0,0), (20,0)(20,0), (0,15)(0,15), and the intersection of the two lines. Solving 2x+y=402x + y = 40 and x+3y=45x + 3y = 45: from the first, y=40−2xy = 40 - 2x; substitute, x+3(40−2x)=45x + 3(40 - 2x) = 45, so x+120−6x=45x + 120 - 6x = 45, −5x=−75-5x = -75, x=15x = 15, y=10y = 10. Profits: (20,0)→600(20,0)\to 600, (0,15)→750(0,15)\to 750, (15,10)→30(15)+50(10)=450+500=950(15,10)\to 30(15)+50(10)=450+500=950. Maximum profit is $950\$950 at 1515 chairs and 1010 tables. (5 marks)

Markers reward both resource inequalities, finding the intersection vertex, and testing every corner to identify the maximum.

WACE 2024-style4 marks
Explain why the optimal solution of a linear programming problem always occurs at a vertex of the feasible region, and describe how you would find it once the region is graphed.
Show worked answer →

The objective is linear, so its value changes steadily across the region.

The objective function P=ax+byP = ax + by has straight, parallel level lines. As the objective increases, these lines sweep across the feasible region, and the last point they touch before leaving the region is always a corner (vertex), so the optimum lies at a vertex. (2 marks)

To find it, identify the coordinates of every vertex (intersections of constraint boundaries and the axes), substitute each into the objective function, and choose the vertex giving the largest value for a maximum (or smallest for a minimum). (2 marks)

Markers reward the parallel-level-lines argument and the corner-point testing method.

Practise this

Sources & how we know this

ExamExplained