What Is the Simplex Method? A Complete Beginner's Guide
Публикувано на June 27, 2026 · от Simplex Method Calculator Editorial Team
The simplex method is the most widely used algorithm for solving linear programming problems. It finds the best value of a linear objective, such as maximum profit or minimum cost, subject to linear constraints such as limited time, materials or budget. It was developed by George Dantzig in 1947 and is still taught in every operations research course and used inside commercial optimization software.
This beginner’s guide explains what the simplex method does, the idea behind it, the key terms you will meet, and how it compares with other methods. To see it working on a real problem, try the simplex method calculator with steps.
Linear Programming in One Minute
A linear programming (LP) problem has three parts:
- Decision variables, such as x1 = number of chairs and x2 = number of tables.
- An objective function to maximize or minimize, such as Z = 50x1 + 40x2.
- Constraints, linear inequalities or equations such as 3x1 + 5x2 ≤ 150, plus x1, x2 ≥ 0.
The set of points that satisfy every constraint is the feasible region. For a problem with two variables it is a polygon you can draw, as in our graphical method guide. With more variables it is a higher-dimensional shape called a polytope.
The Key Idea: Corners
A basic result of linear programming says that if an LP has an optimal solution, at least one optimal solution is at a corner (vertex) of the feasible region. So the answer can always be found by searching the corners.
Checking every corner is not practical, because large problems have an enormous number of them. The simplex method is smarter:
- Start at one corner, usually the origin.
- Look at the neighbouring corners connected by an edge.
- Move to a neighbour that improves the objective.
- Stop when no neighbour is better. Because the problem is linear, that corner is optimal.
Each move is one iteration, and each iteration is recorded in a table called a simplex tableau.
Key Terms
| Term | Meaning |
|---|---|
| Slack variable | Added to a ≤ constraint to turn it into an equation; measures unused capacity |
| Surplus variable | Subtracted from a ≥ constraint; measures how far the requirement is exceeded |
| Artificial variable | Added to ≥ and = constraints to give a starting solution; must reach zero |
| Basic variable | A variable in the current solution, one per constraint row |
| Non-basic variable | A variable currently set to zero |
| Tableau | The table holding the coefficients, the current solution and the Zj and Cj − Zj rows |
| Cj − Zj | How much the objective changes if a variable enters the solution |
| Pivot | The row operation that moves the solution from one corner to the next |
| Minimum ratio test | The rule that chooses the leaving variable so the solution stays feasible |
Each of these has its own guide: slack, surplus and artificial variables, Zj and Cj − Zj, the simplex tableau and the pivot element.
How the Simplex Method Works, Step by Step
- Standard form. Convert every constraint to an equation by adding slack, surplus or artificial variables.
- Initial tableau. Write the coefficients in a table and compute the Zj and Cj − Zj rows.
- Entering variable. For maximization, choose the column with the largest positive Cj − Zj.
- Leaving variable. Divide each right-hand side by the positive entry in that column; the smallest ratio wins.
- Pivot. Use row operations so the entering column becomes 1 in the pivot row and 0 elsewhere.
- Repeat steps 3 to 5 until no Cj − Zj can improve the objective, then read the solution.
A complete worked example with every tableau is in how to solve an LPP by the simplex method, and three more are in simplex method examples.
A Short History
Linear programming grew out of planning problems in the 1940s. Leonid Kantorovich formulated linear programming models for production planning in the Soviet Union in 1939, and he and Tjalling Koopmans later shared the 1975 Nobel Memorial Prize in Economic Sciences for their work on the optimal allocation of resources. George Dantzig, working on planning problems for the US Air Force, developed the simplex method in 1947. It was the first practical general-purpose algorithm for linear programs and made them usable on early computers.
How Fast Is It?
In practice the simplex method is fast: on typical problems it needs a number of iterations that is a modest multiple of the number of constraints, not the number of corners. In theory, however, it can be slow. In 1972 Victor Klee and George Minty built examples where the standard rules visit an exponential number of corners.
That gap led to other algorithms. In 1979 Leonid Khachiyan showed that the ellipsoid method solves linear programs in polynomial time, although it is slow in practice. In 1984 Narendra Karmarkar introduced an interior-point method that is both polynomial and practical. Modern solvers include both simplex and interior-point algorithms and pick whichever suits the problem.
Variants of the Simplex Method
| Variant | When it is used |
|---|---|
| Big M method | Problems with ≥ or = constraints, solved in one phase |
| Two phase method | The same problems, without the penalty M |
| Dual simplex method | Starting solution is optimal but infeasible |
| Revised simplex method | Large problems on computers, using matrix form |
| Transportation method | Shipping problems with supply and demand tables |
Where the Simplex Method Is Used
- Production planning: how much of each product to make with limited machines and labour.
- Blending and diet problems: the cheapest mix of ingredients that meets nutritional or quality requirements.
- Transportation and logistics: the cheapest way to ship goods from factories to warehouses.
- Finance: allocating a budget across options under risk or policy limits.
- Scheduling: assigning staff or machines to meet demand at minimum cost.
Limitations
- Linear only. The objective and constraints must be linear. Curved relationships need nonlinear programming.
- Continuous variables. The simplex method may return fractions such as 2.5 units. If the answer must be a whole number, integer programming methods such as branch and bound are needed; they call the simplex method repeatedly.
- Model quality. The answer is only as good as the model. An unbounded or infeasible result usually means a constraint is missing or wrong; see special cases in the simplex method.
Try It Yourself
The best way to understand the simplex method is to watch it run. Enter any problem in the simplex method calculator to see every tableau, or use the 3-variable and 4-variable calculators for problems the graphical method cannot handle.