Linear Programming Solver

Optimize your objective function using the graphical simplex method for two variables.

1. Objective Function
Z = X + Y
2. Constraints
X + Y

* Non-negativity constraints (X, Y ≥ 0) are applied automatically.

What is a Linear Programming Solver?

A Linear Programming (LP) Solver is a mathematical tool designed to find the optimal value (either maximum or minimum) of a linear objective function, subject to a set of linear constraints. This technique is widely used in operations research, economics, and engineering to solve complex resource allocation problems.

The primary goal of linear programming is to achieve the best outcome in a mathematical model whose requirements are represented by linear relationships. This specific tool focuses on two-variable problems (X and Y), which are common in academic exercises and simplified business scenarios where production outputs or investment allocations need optimization.

How to Use This Solver

Using our Linear Programming Solver is straightforward and requires three main steps:

  • Define the Objective: Choose whether you want to Maximize or Minimize your function. Enter the coefficients for X and Y in the Objective Function section (e.g., Profit = 5X + 3Y).
  • Set Constraints: Input the resource limitations or requirements. Each constraint represents a line on a graph that restricts the "feasible region." For example, 2X + 1Y ≤ 10 might represent labor hours available.
  • Calculate: Click "Solve System." The tool calculates all intersection points of the constraint lines, identifies the feasible region, and applies the Fundamental Theorem of Linear Programming to find the vertex that yields the optimal result.

Key Concepts and FAQs

What is the Feasible Region?

The feasible region is the set of all possible points (X, Y) that satisfy every constraint simultaneously. In a graphical solver, this is typically a convex polygon. If no such region exists, the problem is considered "infeasible."

Can I have negative values?

In standard business and engineering LP problems, variables typically represent physical quantities (like units of product). Therefore, this solver automatically assumes non-negativity constraints, meaning X ≥ 0 and Y ≥ 0.

When is a solution "Unbounded"?

A solution is unbounded if the feasible region extends infinitely in a direction that allows the objective function to increase (or decrease) without limit. This usually indicates a missing constraint in the model.