Corner Point Calculator

Find corner points of a feasible region from a system of linear inequalities, evaluate an objective function at each vertex, and identify the optimal solution for linear programming problems.

Format: 2x+y<=20, x>=0, y<=5, etc.

e.g. 5x+4y
Corner Points Found
4
Number of feasible vertices of the region
Constraints Parsed
4
Number of linear inequalities successfully parsed
Optimal Value (maximize)
58.400000
Best value of the objective function at a corner point
Optimal Point
(7.2000, 5.6000)
Corner point where the optimum occurs
Optimal x
7.200000
x-coordinate of the optimal vertex
Optimal y
5.600000
y-coordinate of the optimal vertex

Corner Point Evaluation Table

#xyIntersection Off(x,y)Optimal?
10.00000.0000x>=0 ∩ y>=00.0000
20.00008.0000x>=0 ∩ x+3y<=2432.0000
310.00000.0000y>=0 ∩ 2x+y<=2050.0000
47.20005.60002x+y<=20 ∩ x+3y<=2458.4000✓ Yes

Feasible Region Visualization

(0.0,0.0)(0.0,8.0)(10.0,0.0)(7.2,5.6)

Objective Value Comparison

(0.0, 0.0)
0.00
(0.0, 8.0)
32.00
(10.0, 0.0)
50.00
(7.2, 5.6)
58.40
Planning notes, formulas, and examples

About the Corner Point Calculator

The corner-point method (also called the vertex method) is the foundational technique for solving two-variable linear programming problems. The key insight behind it is the Fundamental Theorem of Linear Programming: if a linear objective function has an optimal value on a bounded feasible region, that optimum occurs at one of the region's corner points — the vertices where constraint boundary lines intersect.

This page automates the full graphical workflow. You enter a system of linear inequalities (one per line, using familiar notation like 2x+y<=20 or x>=0), and it parses each constraint into a boundary line. It then computes every pairwise intersection of those lines, checks which intersections satisfy all constraints (i.e., lie inside the feasible region), and lists the feasible corner points in a detailed evaluation table.

Next, you specify a linear objective function such as 5x+4y and choose whether to maximize or minimize. The calculator evaluates the objective at every corner point and highlights the optimal vertex. A polygon visualization draws the feasible region with labeled corners, and a bar chart compares the objective values side by side.

Whether you are a student working through homework on LP, a teacher preparing examples, or an analyst prototyping a resource-allocation model, the output keeps the feasible region, candidate vertices, and objective values in one structured view. Five built-in presets — a simple triangle, a classic four-constraint LP, a minimization problem, a square, and a diamond — let you load standard cases quickly.

When This Page Helps

Use this page when you want the corner-point method laid out cleanly: feasible intersections, rejected intersections, objective values, and the final optimum. It is useful for classroom LP problems, teaching the graphical method, and checking two-variable models before moving to larger optimization methods.

How to Use the Inputs

  1. Enter your system of linear inequalities in the text area, one constraint per line.
  2. Use format like x>=0, y>=0, 2x+y<=20, x+3y<=24.
  3. Enter the objective function (e.g. 5x+4y) in the input field.
  4. Choose whether to maximize or minimize the objective.
  5. Read the number of corner points found and the optimal solution.
  6. Review the evaluation table showing each corner point and its objective value.
  7. See the feasible region polygon and the highlighted optimal vertex.
  8. Use preset buttons to load common textbook examples.
Formula used
For lines a₁x + b₁y = c₁ and a₂x + b₂y = c₂: x = (c₁b₂ − c₂b₁) / (a₁b₂ − a₂b₁) y = (a₁c₂ − a₂c₁) / (a₁b₂ − a₂b₁) A point is feasible if aᵢx + bᵢy ≤ cᵢ for all constraints. Objective: f(x,y) = cx·x + cy·y evaluated at each feasible vertex.

Example Calculation

Result: Maximum of 52 at (8, 3)

Corner points: (0,0), (10,0), (8, ≈5.33), (0,8). Evaluating 5x+4y: 0, 50, 52, 32. Maximum is 52 at intersection of 2x+y=20 and x+3y=24.

Tips & Best Practices

  • Always include non-negativity constraints (x >= 0, y >= 0) unless the problem explicitly allows negative values.
  • If no corner points are found, your constraints may be inconsistent (empty feasible region).
  • The corner-point method only works for linear objectives; for non-linear objectives, the optimum may be in the interior.
  • For minimization, you can also negate the objective and maximize, then negate the result.
  • If two corner points share the same optimal value, every point on the line segment between them is also optimal.

The Fundamental Theorem of Linear Programming

The theorem states that if a linear objective function has an optimal value on a bounded convex feasible region, that optimum is attained at one (or more) vertices. The proof relies on the convexity of the feasible region: any interior point can be written as a convex combination of vertices, and because the objective is linear, its value at that interior point is a weighted average of its values at the vertices — which can never exceed the maximum vertex value. This is why checking only the corners is sufficient: you are guaranteed not to miss a better solution hiding in the interior.

Solving an LP Graphically: Step by Step

For two-variable problems, the graphical method is both intuitive and rigorous. First, graph each constraint as a boundary line and shade the halfplane that satisfies the inequality. The feasible region is the intersection of all shaded halfplanes. Next, identify every corner point by solving pairs of boundary-line equations simultaneously. Discard any intersection that violates another constraint. Finally, evaluate the objective function at each remaining vertex and pick the best value. This calculator automates all three steps, but understanding the geometry helps you catch errors and build intuition for larger problems.

From Two Variables to the Simplex Method

Real-world LPs often involve hundreds or thousands of variables and constraints, far beyond what graphical methods can handle. The Simplex method (developed by George Dantzig in 1947) generalises the corner-point idea to higher dimensions: it moves along edges of the feasible polytope from vertex to adjacent vertex, always improving the objective, until it reaches the optimum. Interior-point methods offer an alternative by traversing the interior of the polytope. Both approaches rely on the same theorem — the optimum is at a vertex — making the two-variable graphical method a perfect conceptual entry point for understanding industrial-strength optimisation.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A corner point (vertex) is a point where two or more constraint boundary lines intersect and the point satisfies all constraints — it lies inside or on the boundary of the feasible region.