Linear Programming & Constraints Explorer
Set up an objective function and linear constraints, then visualize the feasible region, evaluate corner points, and find the optimal solution. Supports sensitivity analysis and integer programming.
Controls
Feasible Region
Results
Corner Points
| Point | x | y | Z |
|---|---|---|---|
| ★ A | 3.00 | 1.50 | 21.00 |
| B | 4.00 | 0.00 | 20.00 |
| C | 0.00 | 3.00 | 12.00 |
| D | 0.00 | 0.00 | 0.00 |
Sensitivity Analysis
Coefficient of x can range from 7.00 to 11.00
Coefficient of y can range from 7.33 to 14.00
Step-by-Step Solution
Reference Guide
Linear Programming Setup
A linear program has an objective function to optimize and a set of linear inequality constraints that define what solutions are allowed.
Feasible Region
Each constraint defines a half-plane. The feasible region is the intersection of all half-planes, including the non-negativity constraints. It forms a convex polygon (or is empty or unbounded).
The feasible region of a linear program is always convex. If it is bounded, it is a convex polygon with a finite number of vertices.
Corner Point Theorem
If the feasible region is bounded, the optimal value of the objective function occurs at one of the corner points (vertices) of the feasible region.
- Find all corner points by intersecting constraint boundary lines
- Evaluate the objective function Z at each corner point
- Select the corner with the largest (or smallest) value of Z
Sensitivity Analysis
Sensitivity analysis asks how much the objective coefficients or constraint bounds can change before the optimal vertex shifts.
Each objective coefficient has a range over which the current optimal solution remains optimal.
The shadow price of a constraint tells you how much the optimal Z value changes per unit increase in that constraint's right-hand side. Non-binding constraints have a shadow price of zero.