Three Constraints Meet at One Corner, and That Corner Is the Answer
Published 12/1/2026 · 3 min read · Developer tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 2 sources
The problem is: maximise 3x + 5y subject to x + y ≤ 10, 2x + y ≤ 16, x + 3y ≤ 18 and both variables non-negative. The solver returns x = 6, y = 4, objective 38. Check the constraints and all three hold with equality — 6 + 4 = 10, 12 + 4 = 16, 6 + 12 = 18 — so three lines pass through the same corner. The optimum of a linear objective over a polygon is always at a corner, and this one happens to be where three edges meet rather than the usual two.
Maximising 3x + 5y under three limits lands on x = 6, y = 4 for a value of 38 — a point where all three constraints are tight at once.
Only the binding constraints are worth paying to relax
A constraint with slack is not costing anything: raising its limit changes nothing about the answer. A binding one has a shadow price — the amount the objective would improve per unit of extra capacity — and that number is what tells a manager which machine to add or which supplier to renegotiate with. When three constraints bind at once, as here, the geometry is degenerate and the shadow prices are not unique, which is a warning that the model has more limits than it has room for.
Integers change the problem completely
This answer happens to be whole numbers, which is luck rather than design. Add the requirement that x and y be integers and the problem stops being solvable by walking corners: the optimum may sit inside the polygon at a lattice point that no edge passes through, and finding it is a genuinely harder class of problem. Rounding a fractional answer is not a fix — it can be infeasible, and even when feasible it can be far from best.
| Constraint | At (6, 4) | Slack |
|---|---|---|
| x + y ≤ 10 | 10 | 0 — binding |
| 2x + y ≤ 16 | 16 | 0 — binding |
| x + 3y ≤ 18 | 18 | 0 — binding |
| Objective 3x + 5y | 38 | the maximum |
Frequently asked questions
- What if the region has no upper bound?
- Then the objective can be unbounded, and the solver says so rather than returning a number. That outcome almost always means a constraint was left out of the model rather than that infinite profit is available: capacity, budget, hours in a day. The mirror case is infeasibility, where the constraints contradict each other and no point satisfies them all — also a modelling result rather than an arithmetic failure.
- How large can these problems get?
- Very. Airline crew scheduling, refinery blending and electricity dispatch routinely solve models with hundreds of thousands of variables, and they solve in minutes because the simplex method walks corners rather than examining the interior, and because interior-point methods handle the cases where it does not. The limit in practice is rarely the solver; it is the quality of the numbers fed to it and whether anyone can explain the answer to the people who have to follow it.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?