User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
Line format: ax + by = c
Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

About

In linear programming, the optimal value of an objective function occurs at a corner point (vertex) of the feasible region. A corner point is defined as the intersection of exactly two boundary lines from a system of linear inequalities. Misidentifying these vertices leads to incorrect optimal solutions and flawed resource allocation decisions. This calculator solves all pairwise intersections of your linear equations using Cramer's rule, computes the determinant D = a1b2 โˆ’ a2b1, and reports each vertex coordinate with configurable decimal precision.

The tool detects parallel lines (determinant = 0) and coincident lines automatically. Note: this calculator finds geometric intersection points of lines. It does not evaluate inequality feasibility. You must verify that each corner point satisfies all constraints in your system. For systems with n lines, there are at most n(n โˆ’ 1)2 possible intersection points.

corner point calculator linear programming line intersection feasible region vertices calculator cramer rule system of equations

Formulas

Given two lines in standard form:

a1x + b1y = c1
a2x + b2y = c2

The system determinant (Cramer's rule):

D = a1b2 โˆ’ a2b1

If D โ‰  0, the unique intersection point is:

x = c1b2 โˆ’ c2b1D
y = a1c2 โˆ’ a2c1D

If D = 0, the lines are parallel (no intersection) or coincident (infinite intersections). The total number of pairwise intersections for n lines:

C(n, 2) = n!2!(n โˆ’ 2)!

Where a1, b1, c1 are coefficients of the first line, a2, b2, c2 are coefficients of the second line, D is the system determinant, and x, y are the coordinates of the intersection (corner) point.

Reference Data

Number of LinesMax Corner PointsPairwise CombinationsTypical Application
211Single constraint intersection
333Triangle feasible region
466Quadrilateral LP region
51010Pentagon feasible region
61515Complex multi-constraint LP
72121Production scheduling
82828Portfolio optimization
93636Transportation problems
104545Network flow models
126666Multi-resource allocation
15105105Large-scale LP
20190190Industrial optimization
nn(n โˆ’ 1)2C(n, 2)General formula

Frequently Asked Questions

When the determinant D = aโ‚bโ‚‚ โˆ’ aโ‚‚bโ‚ equals 0, the two lines are either parallel (no intersection) or coincident (infinitely many points in common). The calculator detects this condition and reports the pair as having no valid corner point. In linear programming, parallel constraints simply reduce the feasible region without contributing a vertex.
IEEE 754 double-precision arithmetic carries approximately 15-17 significant decimal digits. For most LP problems with coefficients under 10โถ, precision loss is negligible. However, near-parallel lines (determinant D close to 0 but not exactly 0) can produce intersection coordinates with large magnitudes and reduced accuracy. The calculator flags pairs where |D| < 10โปยนโฐ as effectively parallel. You can adjust the decimal precision from 0 to 10 places for display rounding.
This calculator computes geometric intersections of lines (equalities), not inequality feasibility. After obtaining all corner points, you must substitute each point back into every inequality constraint to verify feasibility. A corner point is feasible only if it satisfies all constraints simultaneously. This two-step process - find vertices, then filter - is the standard Corner Point Method in linear programming.
Rearrange y = mx + b to โˆ’mx + y = b, giving a = โˆ’m, b = 1, c = b. For example, y = 3x + 2 becomes โˆ’3x + y = 2 (or equivalently 3x โˆ’ y = โˆ’2). The calculator accepts direct standard form coefficients a, b, and c for each line. If your line passes through two points (xโ‚, yโ‚) and (xโ‚‚, yโ‚‚), compute a = yโ‚‚ โˆ’ yโ‚, b = xโ‚ โˆ’ xโ‚‚, and c = aยทxโ‚ + bยทyโ‚.
The calculator supports up to 20 lines, yielding a maximum of C(20, 2) = 190 pairwise intersection points. For n lines, the computation involves n(nโˆ’1)/2 determinant evaluations, each in O(1) time, so the total complexity is O(nยฒ). Even at 20 lines, this completes in under 1 millisecond on modern hardware.
After finding all feasible corner points, substitute each (x, y) coordinate into your objective function Z = px + qy, where p and q are the objective coefficients. The corner point yielding the largest Z is the maximum; the smallest Z is the minimum. This works because linear functions on convex polytopes always attain their extrema at vertices (Fundamental Theorem of Linear Programming).