Linear programming (WACE Year 12 Mathematics Applications)
“Formulate linear programming problems, graph feasible regions, and locate the optimal solution at a vertex of the feasible region.”
Linear programming finds the best decision subject to linear constraints. Define variables, write an objective function 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
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 be the number of chairs and the number of tables".
- Objective function: the quantity to optimise, (profit, cost, time).
- Constraints: linear inequalities from each limited resource, plus the non-negativity constraints , .
- Feasible region: the set of points satisfying every constraint at once.
Each "no more than" limit gives a inequality; each "at least" requirement gives a 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.
For each inequality, substitute a test point such as the origin . 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.
- Find the coordinates of every vertex of the feasible region (intersections of boundary lines and the axes).
- Substitute each vertex into the objective function.
- 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.
Minimising cost subject to constraints
A farmer mixes two feeds. Feed X costs /kg and supplies units of protein and unit of fibre per kg; Feed Y costs /kg and supplies unit of protein and unit of fibre per kg. The mix needs at least units of protein and at least units of fibre. Minimise cost.
Step 1: Define variables and objective
Naming the decision variables first makes every subsequent expression unambiguous. Let be kg of Feed X and kg of Feed Y. Minimise .
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: . Fibre: . Plus , .
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 (on the axis where protein binds), (on the axis where fibre binds), and the intersection of and . Subtracting: , so ; the intersection is .
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. . . .
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 kg of Feed X and kg of Feed Y, costing .
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.
- Reversing an inequality
- "At least" is and "no more than" is ; mixing these inverts the feasible region.
- Forgetting non-negativity
- Real quantities cannot be negative, so include and .
- 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 marksA workshop makes chairs and tables. Each chair needs hours of cutting and hour of finishing; each table needs hour of cutting and hours of finishing. There are cutting hours and finishing hours available. Profit is per chair and 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: (cutting), (finishing), , . Objective: maximise . (3 marks)
(b) Vertices of the feasible region: , , , and the intersection of the two lines. Solving and : from the first, ; substitute, , so , , , . Profits: , , . Maximum profit is at chairs and tables. (5 marks)
Markers reward both resource inequalities, finding the intersection vertex, and testing every corner to identify the maximum.
WACE 2024-style4 marksExplain 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 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.