AL7–AL11 - Graphical solution of linear programs
Use feasible regions and objective lines to solve continuous and integer problems. Explore changed constraints, recognise special cases, interpret a supplied three-dimensional region and reduce an equality-constrained problem to two variables.
Drawing the feasible region
If a continuous LP recommends of one product and of another, is rounding both down the best whole-number plan?
Not necessarily. A picture lets you check the actual feasible integer points, rather than hoping a rounding rule preserves feasibility and profit.
You already know
Define the variables, objective and domains before solving. Each linear inequality describes one side of its boundary line; equality belongs to the region for a non-strict inequality.
Draw each boundary accurately, use a test point to choose its allowed side, then find their common intersection. Any shading convention is acceptable if the feasible region is unmistakable.
Feasible region and infeasibility
The feasible region is the set of points satisfying every constraint, including non-negativity. A problem is infeasible if this set is empty. A point on an allowed boundary can be feasible.
The first region will be reused to isolate the effect of changing the objective.
[DIAGRAM: asset_name: The common region of five bounds; asset_slug: lp_feasible_pentagon; caption: All five restrictions contribute to checking feasibility; description: Axes x and y show the region x at least zero, y at least zero, x at most 3, y at most 3, x plus y at most 4. The feasible pentagon is pale sage with vertices (0,0), (3,0), (3,1), (1,3), (0,3) labelled. Boundaries x equals 3, y equals 3 and x plus y equals 4 are labelled clear of their intersections. A blue point (1,1) is feasible and a clay point (3,2) lies outside the sloping boundary.]

Worked example 1: intersecting half-planes
Question. Identify the feasible region for
Plan. Start with the first-quadrant square and retain the side of containing the origin.
Why this step? The common region must satisfy both individual caps and the total cap, not whichever one looks most restrictive in isolation.
Answer. The feasible pentagon has vertices , including its edges.
Check. satisfies all bounds. meets the individual caps but fails .
Change only the model by adding one lower bound.
Worked example 2: contradictory bounds
Question. Add to Example 1. Identify the resulting feasible region.
Plan. Compare the new bound with the existing total upper bound.
Why this step? No real number can satisfy both bounds, regardless of the individual caps.
Answer. The feasible region is empty, so the LP is infeasible.
Check. Even the original region's largest possible total fails the new lower bound.
Check every inequality before evaluating the objective. A large profit at an infeasible point is not a candidate solution.
Watch out
Wrong: omit the axes or a transformed non-negativity constraint from the diagram. Right: show the common feasible region with all its boundaries.
Make the added bound just attainable.
Objective lines and vertex checking
For a non-empty bounded polygon, a linear objective has an optimum at at least one vertex. Other optimal points may exist too.
Objective lines
For , with , a fixed objective value gives
The objective lines are parallel. Move them in the direction of increasing for maximisation, or evaluate the objective at every feasible vertex.
Not in the formula booklet: learn it.
A graphical solution needs both a feasible optimal point and its objective value. Listing a number without identifying its point leaves the decision unfinished.
Worked example 3: maximising one profit function
Question. For the pentagon of Example 1, maximise .
Plan. Evaluate all five vertices, or slide lines of gradient to the last feasible contact.
| Vertex | |
|---|---|
Why this step? A sloping resource boundary can make a mixed plan beat either axis intercept.
Answer. The maximum is , at .
Check. This point satisfies and both individual caps; no listed feasible vertex gives a larger value.
Change only the objective coefficients.
Worked example 4: the same region, a different objective
Question. Keep the same feasible pentagon, but maximise .
Plan. Retain the vertices and recalculate their objective values.
| Vertex | |
|---|---|
Why this step? A change to profit affects which feasible point is best, even when no resource limit changes.
Answer. The maximum is , now at .
Check. Exchanging the two coefficients exchanges the preferred coordinate in this symmetric region.
Use enumeration when a sketch's objective-line position is difficult to distinguish; use the sketch to ensure your list contains every vertex.
Watch out
Wrong: test only the intercepts on the axes. Right: include intersections of constraint boundaries inside the first quadrant.
Change the objective again.
Changed models and special outcomes
Changing a constraint changes the feasible set; changing the objective changes how points in that set are compared.
Relaxing a constraint cannot lower an attained maximum when the objective is unchanged, because the old feasible plans remain available. Tightening it cannot raise that maximum. A change may have no effect.
Worked example 5: relaxing a cap
Question. Maximise under , , . Compare the cases and .
Plan. Identify the new right-hand vertex and compare objective values.
For the relaxed region, the other vertices give .
Why this step? Relaxing a binding cap can expose a better point. Reusing the old optimum without checking the new boundary would miss it.
Answer. The maximum rises from at to at .
Check. The old point remains feasible, so the new maximum cannot be less than .
Retain the relaxed region and change only the objective.
Worked example 6: more than one optimal point
Question. For , , , , maximise .
Plan. Compare the objective with the total constraint and identify all feasible points attaining its bound.
Why this step? The objective line is parallel to, and at the optimum coincides with, a feasible boundary edge.
Answer. The maximum is , attained at every point of the segment from to .
Check. Both endpoints give , as does their midpoint .
A redundant constraint adds no restriction to the feasible set: adding to the region above does nothing. Multiple optimal points concern equal objective values at different feasible points, rather than a redundant constraint.
An unbounded objective can improve without limit. With only , maximising is unbounded. An unbounded region need not imply that outcome: on the same region, maximising has maximum at the origin.
Watch out
Wrong: conclude that every unbounded region has no optimum, or that an unchanged optimum makes every added constraint redundant. Check the feasible set and objective separately.
Tighten the cap and retain the first objective.
Integer solutions and the limits of rounding
An integer solution must be a feasible lattice point, with integer coordinates. Solve the continuous relaxation for guidance, then check the actual integer candidates.
Continuous relaxation
The continuous relaxation drops an LP's integer requirement but retains its other constraints. For a maximisation problem, its optimal value is an upper bound on the integer optimum, because it permits at least all the integer plans.
Rounding can violate a constraint, and rounding down can discard a better feasible plan. The opening puzzle is an example.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account