Corner Point Calculator - LP Optimum at Every Vertex
Corner point calculator for 2-variable linear programs: enter P = p_x x + p_y y and up to 3 constraints to get every vertex and the optimum.
Corner Point Calculator
Results
What Is a Corner Point Calculator?
A corner point calculator is a linear programming tool that finds every corner point of a 2-variable feasible region and evaluates the objective at each one. You enter the objective P = p_x x + p_y y, choose maximize or minimize, and add up to 3 linear constraints. The page reports the optimal P, the (x, y) that achieves it, the corner point count, and a feasibility status.
- • Linear programming homework: Confirm a problem that asks you to maximize profit or minimize cost subject to 2 or 3 constraints.
- • Operations research classwork: Solve a small production-mix or diet-style problem by entering the coefficients and constraint rows.
- • Quick what-if analysis: Change one coefficient at a time and watch the optimal corner move as the feasible region changes.
- • Teaching the corner point method: Demonstrate why the optimum of a bounded LP lands at a corner point, and what an infeasible system looks like.
The corner point method is one of the two classic ways to solve a linear program, alongside the simplex method, and the easier of the two to teach and check by hand for 2-variable problems. Use this page to confirm a homework answer, sanity-check a production-mix problem, or pre-validate a corner point before charting it.
If you only need to solve a single 2x2 system - say, the intersection of two constraint lines - the System of Equations Calculator page handles that algebraic step on its own without the optimization layer.
How the Corner Point Calculator Works
The page turns each inequality into a line, solves every pair of lines as a 2x2 system, keeps only the intersections that satisfy the original constraints, then evaluates the objective at each survivor.
- p_x, p_y: Coefficients of the objective function P = p_x x + p_y y.
- a_i, b_i, c_i: Coefficients and right-hand side of constraint i in a_i x + b_i y ≤ c_i.
- sign: Inequality or equality sign: ≤, ≥, or =.
- D = a_i b_j - a_j b_i: Determinant of a pair of constraints; zero means the lines are parallel and the pair produces no corner point.
- (x, y): A candidate corner point, kept only if it satisfies every original constraint.
Each pair is solved with the 2x2 determinant formula. A zero determinant means the lines are parallel and that pair is skipped. Every surviving candidate is then checked against all constraints, including the implicit x ≥ 0 and y ≥ 0 non-negativity. If no corner point survives, the LP is reported as infeasible; otherwise the page evaluates P = p_x x + p_y y at each and picks the largest value (max) or the smallest value (min).
Worked example: maximize P = 30x + 40y
P = 30x + 40y (maximize). C1: 2x + 3y ≤ 18. C2: x + y ≤ 9. C3: x + 2y ≤ 16. Implicit non-negativity: x ≥ 0 and y ≥ 0.
Intersections to test: (9, 0), (0, 6), (0, 0). All three satisfy every constraint.
P(9, 0) = 270, P(0, 6) = 240, P(0, 0) = 0. The optimal P is 270 at (9, 0).
The vertex (9, 0) is where 2x + 3y = 18 meets x + y = 9, and that vertex is the maximum of P over the bounded region.
According to Khan Academy, a linear programming problem asks for the best value of a linear objective function over a feasible region defined by linear constraints, and the optimum always occurs at a corner point (extreme point) of that region.
If you would rather see the same 2x2 intersection solved by substitution than by the determinant, the Substitution Method Calculator page walks the algebra through both equations explicitly.
Key Concepts Behind the Corner Point Method
Four ideas show up in every linear programming problem and shape how the page reads the answer.
Feasible region
The set of (x, y) that satisfy all of the constraints at once. It is the intersection of half-planes and lines on the x-y plane.
Corner point (vertex)
A point on the boundary of the feasible region where two or more constraints meet. For any bounded feasible LP, at least one corner point holds the optimum.
Objective function
The linear expression P = p_x x + p_y y that the problem wants to maximize or minimize. The coefficients set the direction in which P grows.
Feasibility and boundedness
An LP is feasible if the feasible region is non-empty. The corner point method only returns a finite answer when the region is bounded in the direction the objective wants to grow.
A reported corner point and a 'feasible' status mean the LP has a finite optimum at that vertex. 'Infeasible' means the constraints contradict each other. An unbounded LP is a separate outcome: the feasible region extends to infinity in the direction of improvement, so the true optimum is infinite.
If you need a refresher on evaluating a single linear expression or shading a single half-plane, the Linear Inequality Calculator page handles that single step in isolation.
How to Use This Corner Point Calculator
Five short steps cover the standard workflow from a textbook LPP to a verified answer.
- 1 Enter the objective function: Type p_x and p_y in the two top fields. The defaults 30 and 40 match the textbook example P = 30x + 40y.
- 2 Choose maximize or minimize: Pick the direction that matches the problem statement. The page reports the largest P for max and the smallest P for min.
- 3 Enter the first two constraints: For each, fill in a_i, b_i, c_i, and the inequality sign. Use the sign selector to set ≤, ≥, or = as needed.
- 4 Add a third constraint or leave it as a placeholder: For an LP with only two real constraints, set a_3 = b_3 = 0 to make the third row a no-op. The page also adds implicit x ≥ 0 and y ≥ 0.
- 5 Read the optimal P, x, and y: The primary output is the optimal value of P, with the (x, y) that achieves it and the corner-point count. The status line says 'feasible', 'infeasible', or 'error'.
Try the textbook LPP: p_x = 30, p_y = 40, maximize, with (2, 3, 18, ≤), (1, 1, 9, ≤), (1, 2, 16, ≤). The page reports optimal P = 270, x = 9, y = 0, with 3 corner points and a 'feasible' status.
When you want to see the feasible region plotted on the x-y plane rather than read it from a list of corner points, the Graphing Inequalities (1D) Calculator page gives you the boundary and the shaded side.
Benefits of Using This Corner Point Calculator
These benefits matter most when the textbook answer is a number and you need a quick, auditable way to confirm it.
- • Skip the intersection arithmetic: Solving a 2x2 system by hand is easy to get wrong on a sign flip. The page does the determinant and cross-multiplication for every pair of constraints.
- • Catch infeasible problems early: If the constraints contradict each other, the page reports 'infeasible' and zero corner points, faster than drawing a shaded region that never closes up.
- • Switch between max and min in one click: Many LPPs come in matching pairs - max profit and min cost. The same form handles both without re-entering the constraint rows.
- • See the corner point count and status at a glance: The results panel reports the optimal P, the optimal (x, y), the corner-point count, and a status, so you can spot a single-corner degenerate LP as easily as a textbook one.
- • Implicit non-negativity is always on: The page adds x ≥ 0 and y ≥ 0 to the constraint list, matching the textbook convention. For LPs that need x or y free, switch to a full LP solver.
The page is most useful as a check, not a replacement for understanding the method. Use it to confirm a homework answer or pre-validate a corner point before charting it.
If a future problem in your course moves to a curved boundary, the Graphing Quadratic Inequalities Calculator page shows how the same shading logic extends to quadratic inequalities.
Factors That Affect the Corner Point Result
The algorithm is the same in every case, but a few factors change how the result should be read.
Direction of optimization
The same feasible region can give very different answers depending on whether the page is asked to maximize or minimize. Maximize P = 30x + 40y on the textbook region gives 270 at (9, 0); minimize the same objective gives 0 at (0, 0).
Parallel constraints
If two constraints are scalar multiples of each other, the determinant of the pair is zero and the page does not produce a corner from that pair.
Infeasibility and contradiction
If the constraints cannot be satisfied at the same time, the page reports 'infeasible' and the optimal P stays at 0, a quick way to catch a setup error before submitting.
Unboundedness in the direction of improvement
If the feasible region is unbounded in the direction the objective wants to grow, the true optimum is infinite and no finite corner point can equal it. The page reports a 'feasible' status with the largest finite value it found, which is not the true answer; add a missing upper-bound constraint first, or use a full LP solver that flags unbounded results.
- • The page covers the 2-variable, up-to-3-constraint case. For 3+ decision variables or 4+ user constraints, the simplex method on a full LP solver is the right next step.
- • Integers and integrality constraints are not supported. If x and y must be whole numbers, the corner point returned here is a real-number optimum and may need to be rounded.
- • Numerical tolerance is 1e-9 for the determinant and 1e-6 for corner-point deduplication.
An unbounded LP is the one outcome the page cannot fully resolve on its own. The reported 'feasible' status is correct, but the optimal P it returns is only a finite bound, not the true optimum.
According to Wolfram MathWorld, a linear program optimizes a linear objective function subject to linear equality and inequality constraints, and the fundamental theorem of linear programming states a finite optimum is attained at a vertex of the feasible polytope.
When you would rather solve the same pair of constraint lines by row reduction than by the 2x2 determinant, the Elimination Method Calculator page walks through the algebraic step on the same kind of linear system.
Frequently Asked Questions
Q: What is a corner point in linear programming?
A: A corner point is a vertex of the feasible region - a point on the boundary where two or more constraints meet. In a 2-variable LP, a corner point is the intersection of two boundary lines, and for any bounded feasible LP, at least one of these corner points contains the optimal value of the objective function.
Q: How do you find the corner points of a feasible region?
A: Turn each inequality into the line a_i x + b_i y = c_i, then solve pairs of those lines as 2x2 systems. Keep an intersection only if it satisfies every original constraint. The survivors are the corner points of the feasible region.
Q: Why does the optimal solution of an LP occur at a corner point?
A: For a bounded feasible region, the objective function is linear and its level sets are parallel lines. As you slide a level set across the feasible region, the last point of contact is always a vertex, so the optimum sits at one of the corner points. This is the finite-optimum case; an unbounded LP has no finite optimum at any corner.
Q: How does this corner point calculator handle an infeasible linear program?
A: If no candidate intersection satisfies all the constraints, the page reports zero corner points, a status of 'infeasible', and a clear error. The optimal P, x, and y stay at zero so you can see at a glance that the problem has no feasible solution.
Q: What is the difference between the corner point method and the simplex method?
A: The corner point method enumerates the vertices of a 2-variable feasible region by solving pairs of constraints. The simplex method walks the edges of the feasible polytope in higher dimensions, improving the objective at each step. Both arrive at the same optimum.
Q: Can a linear program have more than one optimal corner point?
A: Yes. When the objective function is parallel to one of the constraint boundaries, every corner point on that boundary has the same value of P. The page reports the lexicographically first corner and lists the other corner points in the count.