MyVIPWebTools logo

Linear Programming Solver — Maximize or Minimize a 2-Variable Objective

Our Linear Programming Solver maximizes or minimizes a linear objective c₁x + c₂y subject to linear constraints and x, y ≥ 0, using the exact corner-point method: intersect every pair of constraint boundary lines, keep the intersections that satisfy every constraint (the vertices of the feasible region), and evaluate the objective at each to find the optimum.

Quick Answer

Enter an objective and linear constraints to instantly find the optimal (x, y) solution using the exact corner-point method.

Each line means a·x + b·y {op} c, where op is <=, >=, or =, e.g. 1,0,<=,4.

How to Use the Linear Programming Solver — 2-Variable Corner-Point Method Online

  1. 1

    Choose maximize or minimize, and enter the objective coefficients c1 (for x) and c2 (for y).

  2. 2

    Enter constraints one per line as a,b,op,c (meaning a·x + b·y {op} c), e.g. 1,0,<=,4.

  3. 3

    Click 'Calculate' to find every feasible corner point and the optimal solution.

Why Use Linear Programming Solver — 2-Variable Corner-Point Method Online?

In a 2-variable linear program, the feasible region (the set of points satisfying every constraint plus x ≥ 0, y ≥ 0) is always a polygon, and a fundamental theorem of linear programming guarantees the optimal solution always occurs at one of that polygon's corners (vertices) — never strictly inside an edge or the interior. This calculator exploits that directly: it intersects every pair of boundary lines (each constraint plus the x = 0 and y = 0 axes), discards any intersection that violates another constraint, and evaluates the objective at each surviving vertex to find the maximum or minimum. This corner-point method is exact and simple for two variables, avoiding the need to implement a general-dimension simplex method.

Frequently Asked Questions

Related Tools

Linear Programming Solver — 2-Variable Corner-Point Method Online | MyVIPWebTools