7.06d - Solving linear programmes graphically
Use a graph to find and interpret the optimum of a linear programme in two variables. You will leave the feasible region unshaded, compare its vertices, handle whole-number solutions and recognise when a problem has several optima or no optimum.
Drawing the feasible region
Can rounding a correct graphical optimum give a feasible answer that still loses money? It can. First we need a graph that shows exactly which choices are permitted; later we will see why the nearest lattice point need not be the best one.
You already know
A linear programme has a linear objective, linear constraints and restrictions such as . The line is the boundary of ; a test point tells you which side satisfies the inequality.
Draw each boundary accurately using two points. For , the intercepts are and . A boundary is solid when equality is included. Test a point that is not on the boundary; the origin is convenient when it is available, but it cannot distinguish the sides of a line through the origin.
Feasible region
The feasible region consists of all points satisfying every constraint. Its boundary is included wherever the corresponding inequality allows equality. For an integer problem, only the lattice points in this region are permitted solutions.
Use OCR's shading convention: shade the side that does not satisfy each inequality. The points surviving every exclusion form the unshaded feasible region. Label it so that overlapping shading cannot obscure its meaning.
Worked example 1: excluding the wrong side
Question. Represent graphically in the first quadrant.
Plan. Draw the boundary, test the origin and shade the excluded side.
Why this step? A straight boundary divides the plane into two half-planes, and the inequality has the same truth value throughout either open half-plane.
Answer. Draw a solid line through and . Leave its origin side unshaded and shade above the line; also exclude negative and negative .
Check. remains, since ; is excluded, since .
The next example changes only the inequality sign. The boundary stays exactly where it was; the permitted side changes.
Worked example 2: reversing the permitted side
Question. Represent graphically in the first quadrant.
Plan. Use the same boundary but repeat the test-point decision.
Why this step? The sign, rather than the appearance of the line, decides which side is allowed.
Answer. Shade the side containing the origin and leave the side above the line unshaded, within the first quadrant.
Check. The earlier test points exchange roles: fails, while satisfies the new inequality.
For several inequalities, repeat this process on the same axes. The following region satisfies , , and . Its five vertices are where the surviving boundary segments meet.
[DIAGRAM: asset_name: Excluded half-planes leave a feasible polygon; asset_slug: h245_7_06_feasible_region; caption: The unshaded polygon satisfies all five constraints, including the minimum total x + y = 2; description: Equal-scale first-quadrant axes show solid boundaries x + y = 6, x + 2y = 8 and x + y = 2. Excluded half-planes are pale and hatched; the central feasible pentagon is white and labelled feasible. Its vertices are labelled (0,2), (2,0), (6,0), (4,2), (0,4). Labels distinguish each line without overlap]

Watch out
Wrong: shade the side satisfying each constraint. OCR asks for the reverse convention: shade each excluded side, leaving the feasible region unshaded. The inequalities still decide the answer even if several shaded regions overlap.
Use a point off the boundary to make the next decision.
Vertices and objective lines
The objective selects the best point inside the feasible region; it does not supply another constraint.
For , the equations form parallel lines of gradient . Increasing moves the line towards greater objective values. Slide a ruler parallel to this line until its final contact with the feasible region to locate a maximum; move towards smaller for a minimum.
For a non-empty bounded polygon, a linear objective has an optimum at a vertex. Here is why. Every point on an edge is a weighted average of its endpoints, so its objective is the same weighted average of their objective values: it cannot exceed both endpoints. Interior points are weighted averages of vertices, with the same conclusion. An entire edge may tie for the optimum, but at least one vertex always attains it. These graphical results are not in the formula booklet: learn them.
Worked example 3: maximising at a vertex
Question. Maximise , subject to , , and .
Plan. Draw the feasible region, find its vertices exactly and compare the objective values.
The two upper sloping boundaries meet where
The remaining vertices are the axis intersections surviving all constraints.
| Vertex | |
|---|---|
Why this step? A vertex comparison proves the best value over the whole polygon, not just over a few chosen feasible points.
Answer. The maximum is , at .
Check. At this point, the upper constraints give and , and the lower total is . A larger parallel objective line misses the region.
The next example changes only “maximise” to “minimise”. No boundary or objective gradient changes.
Worked example 4: minimising the same objective
Question. Minimise over the same feasible region.
Plan. Use the existing vertex values and select the smallest, interpreting the opposite direction of travel of the objective line.
Why this step? The origin would have objective zero, but it violates , so it cannot be considered.
Answer. The minimum is , at .
Check. The point satisfies , and ; a smaller objective line has no feasible point.
The parallel lines in the picture record both directions of optimisation.
[DIAGRAM: asset_name: Parallel objective lines locate both optima; asset_slug: h245_7_06_objective_lines; caption: The line 3x + 4y = 20 meets the feasible region last at (4,2) when maximising; the line 3x + 4y = 6 meets it first at (2,0) when minimising; description: Equal-scale axes show the same white feasible pentagon with excluded regions shaded. A blue objective line through (4,2) is labelled P = 20, and a parallel clay objective line through (2,0) is labelled P = 6. A clear arrow normal to the lines points towards increasing P. Both optimal points have separate readable labels]

Exam tip
Read a promising optimum from the graph, then solve the active boundary equations to obtain exact coordinates. Finish with the objective value and what the variables represent when the problem has a context.
The next objective has a different gradient, so do not assume the previous optimum survives.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account