Finite Math

Linear Programming Solver (2 variables)

Enter a linear objective z in x and y, choose maximise or minimise, and list the constraints (each row like x + 2y ≤ 14, separated by semicolons). The calculator finds every pairwise intersection of the boundary lines, keeps those that satisfy all constraints, evaluates z at each, and plots the feasible region with the optimum marked.

Linear Programming Solver (2 variables)

Graphical method — feasible region, corner-point evaluation and the optimum.

Try:
Answermax z = 46 at (6, 4)
0123456701234567(2, 6)(6, 4)(0, 0)(2, 0)max = 46xy
  1. Objectivemax z = 5x + 4y
  2. Constraintsx + 2y <= 14; 3x - y >= 0; x - y <= 2; x >= 0; y >= 0
  3. MethodFind intersections of every pair of boundary lines, keep the feasible ones, evaluate z at each vertex.
  4. Feasible verticesV1 = (2, 6), z = 34; V2 = (6, 4), z = 46; V3 = (0, 0), z = 0; V4 = (2, 0), z = 10
  5. Optimum (max)(6, 4), z = 46

Worked examples

Frequently asked questions

Why does the optimum always sit at a corner?

The objective is linear, so it cannot have interior extrema. On a bounded polygonal region it must be optimised at one of the vertices — the fundamental theorem of linear programming.

What if the feasible region is empty?

The calculator reports that no vertex satisfies every constraint. Re-check that the constraints are consistent — they should describe a non-empty polygon.

What relations are supported?

≤, ≥ and = (or <=, >=, =). Strict inequalities are not used in LP because the optimum sits on the boundary anyway.