Topic 5 · Lesson 2 of 5
Graphical solution
Drawing the feasible region
Draw each constraint as a line (find two points, for example where it crosses the axes) and decide which side is allowed by testing a point such as the origin. The feasible region is the set of points that satisfy every constraint. Exam questions often ask you to shade the regions that are not wanted, leaving the feasible region R clear and labelled (in the figure below, R itself is shaded instead); always follow what the question says.
The objective line method
For the objective , every line has the same gradient, . Draw one such line, for example , through and . Then slide a ruler parallel to it, away from the origin to maximise. The last point of R that the line touches is the optimal point. To minimise, slide towards the origin instead and find the first point touched.
The optimum is always at a vertex of R (or along an edge, if the objective line is parallel to it, when every point on that edge is optimal).
The vertex method
Find the coordinates of every vertex, by solving the equations of the lines that meet there, and evaluate the objective at each. Choose the best.
Worked example
Graphical solution
For the problem in the figure, the vertices of R are , , , and .
Show solutionHide solution
- is where meets : subtracting gives , then .
- is where meets : subtracting gives .
- at the vertices: , , , , .
- The maximum is at , .
How the optimal point depends on the objective
At a vertex where two constraint lines meet, the vertex is optimal while the gradient of the objective line lies between the gradients of those two lines. At the lines have gradients and , so for an objective , is optimal when .
Integer solutions
If the variables must be whole numbers and the optimal vertex is not, test the integer points in R near the vertex (check each one satisfies every constraint) and choose the best. Simply rounding the vertex can give a point outside R, or not the best integer point. A useful trick is to draw the objective line through the vertex and move it back towards the origin until it first meets an integer point in R.
Minimisation
For a cost to be minimised, the feasible region is often unbounded, away from the origin. The minimum is at the vertex the objective line meets first as it moves away from the origin. Such a problem has no maximum.
Practise this topic
Both are part of Premium.