By LearnAllStudents Editorial Team. Source check dates are listed below.
Define the variables before drawing
In this fictional production exercise, let x be the number of small kits and y the number of large kits. Suppose x ≥ 0, y ≥ 0, x + y ≤ 8 and x + 2y ≤ 12. The inequalities are invented exercise conditions, not business data. They describe all allowed combinations, not just points on each boundary line.
Test the vertices
Maximise P = 3x + 4y. The feasible vertices are (0,0), (8,0), (4,4) and (0,6). Their P values are 0, 24, 28 and 24 respectively. The largest is 28 at (4,4). Find the intersection by subtracting x + y = 8 from x + 2y = 12, giving y = 4 and x = 4.
Try it yourself
- Check whether (5,3) satisfies both upper constraints.
- Evaluate P at (5,3).
- If x and y count indivisible objects, what extra restriction is needed?
Answers: 5 + 3 = 8 and 5 + 2×3 = 11, so it is feasible; P = 27; require integer values. A continuous optimum may need further checking when only whole objects are allowed.
Check whether an optimum exists
Do not assume every problem has a single best point. Constraints can give an empty feasible region or allow the objective to increase without bound. An objective parallel to an active edge can share an optimum along that edge. Always report the variable values and what the objective means, rather than only a number.
How a tutor would approach this
Bring the objective, constraints and your shaded region. Ask whether every vertex you tested is actually feasible.
Frequently asked questions
What is the feasible region?
The set of variable values satisfying all the constraints.
Do I test every point?
For a bounded polygonal two-variable problem with a linear objective, compare the relevant vertices; check special cases.
Does programming mean coding here?
No. It means planning an optimum under constraints.
Does a graph guarantee integer solutions?
No. Add and check integer restrictions when the variables require whole values.
Continue in the Maths library
Choose another explanation and check your reasoning with its practice answers.
Official sources
- OpenStax: linear programming (checked 2026-11-23)
Related pages
Try a free 30-minute demo
Work through a question with a tutor. No payment needed.
Request a free 30-minute demo