Simplex Method

Decision Sciences
Introduced by
George Dantzig
Year
1947
Type
algorithm
Family
Optimization

What does it do?

The simplex method, developed by George Dantzig, is an algorithm for linear programming: maximizing or minimizing a linear objective function subject to linear constraints.

It moves from vertex to vertex of the feasible region, improving the objective at each step, and stops at a vertex where no adjacent vertex is better.

The intuition behind the method

A linear program's optimal value is attained at a vertex of its feasible region, so the search can be confined to vertices. The method starts at one vertex and moves along edges to neighbouring vertices with a better objective value. It stops at a vertex where no neighbouring vertex improves the objective, which for a linear program is a global optimum. Whether an edge move improves the objective is read from the reduced costs of the nonbasic variables.

History

The method is associated with George Dantzig. The 1963 book by Dantzig cited on this page describes the simplex method together with the theory and applications of linear programming. Klee and Minty (1972) showed exponential worst-case behaviour for a family of linear programs, although the method remained fast in practice. Interior point methods were developed as alternatives in later decades, but the simplex method stayed widely used because of mature implementations.

When to use it

Choose the simplex method for linear programs: a linear objective, linear constraints, and continuous decision variables. The model should satisfy the standard linear programming assumptions: proportionality (each variable's contribution to the objective and constraints is proportional to its level), additivity (contributions from different variables add), divisibility (variables may take any fractional value within their bounds), and certainty (coefficients are known and fixed). Where these assumptions fail, for example under uncertain coefficients, a stochastic model is more appropriate. Integer restrictions on variables call for different approaches built on linear programming relaxations. Do not use it for problems with nonlinear objectives or constraints, which need other methods. Interior point methods are an alternative for very large, sparse problems; which performs better depends on problem structure and implementation, and this entry gives no general ranking. Unboundedness and infeasibility do not rule the method out, since it detects both, but a model that is unbounded usually signals a formulation error to be checked.

Limitations and considerations

  • Its worst-case running time is exponential in problem size. A classical family of examples (Klee and Minty, 1972) shows this for a particular pivoting rule, although typical behaviour is much better than the worst case.
  • Degenerate vertices, where a basic variable is zero, can produce steps that do not change the objective, so efficiency drops on highly degenerate problems.
  • On very large-scale problems it can be less competitive than interior point methods, depending on structure.
  • Inequalities and unrestricted variables must first be converted to standard form, which adds slack, surplus and artificial variables and enlarges the tableau.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • For linear programs with a finite optimum, the method terminates at an optimal vertex provided cycling is prevented, for example by Bland's rule.
  • The final tableau provides dual values and reduced costs, which support sensitivity analysis of the optimal solution.
  • After phase one, every iteration keeps the solution feasible, so intermediate vertices are usable feasible plans.

Applications

  • Production planning: optimizing production quantities to minimize costs while meeting demand constraints
  • Transportation and logistics: determining optimal shipping routes and quantities between warehouses and distribution centers
  • Portfolio optimization: allocating capital across assets subject to linear budget constraints and linear risk measures, such as a linearized absolute-deviation or scenario-based risk limit; mean-variance models are quadratic and need other methods
  • Resource allocation: distributing limited resources like labor and materials to maximize organizational output
  • Blending problems: mixing raw materials in optimal proportions to meet quality specifications and minimize cost
  • Workforce scheduling: assigning workers to shifts to minimize labor costs while meeting demand

How it works

How it works

1

Rewrite the linear program in standard form by adding slack variables, and where needed surplus and artificial variables, so that all constraints are equalities. Choose an initial basic feasible solution. When all right-hand-side values are non-negative and the slack variables form the initial basis, the origin of the original decision variables is a basic feasible solution.

2

Choose an entering variable whose reduced cost signals an improving move under the sign convention in use; for maximization with reduced costs defined as c_j minus z_j, a positive value marks a candidate. Apply the minimum ratio test to the constraint rows to choose the leaving variable, which keeps the solution feasible: the leaving row r minimizes b_i / a_ij over rows i with a_ij > 0, and the pivotal row determines the leaving variable. Update the tableau so the entering variable replaces the leaving variable in the basis.

3

Recompute the reduced costs for the new basis. If no nonbasic variable signals an improving move under the same convention (for maximization, c_j minus z_j is at most zero for every nonbasic variable j), the current basic solution is optimal. If the ratio test finds no leaving variable, that is, the entering column has no positive entry, the problem is unbounded. Otherwise return to the pivot step.

Common pitfalls

  • Failing to prevent cycling at degenerate vertices; without a rule such as Bland's rule or perturbation, the iterations may repeat indefinitely.
  • Mixing sign conventions for reduced costs between the entering-variable rule and the optimality test, which can stop at a non-optimal vertex or cycle.
  • Skipping phase one or leaving artificial variables in the basis at a nonzero level, which reports an infeasible solution as feasible.
  • Treating an empty ratio test as optimality rather than as a sign of unboundedness.
  • Numerical instability from very small pivot elements in the ratio test and from rounding that accumulates through repeated tableau updates.

Frequently asked questions

Why is the simplex method called 'simplex'?

The name is commonly linked to the simplex, a simple polytope. The algorithm moves along edges between vertices of the polytope defined by the constraints.

What is the difference between the simplex method and the interior point method?

The simplex method moves between vertices along the boundary of the feasible region. Interior point methods move through the interior of the region toward an optimal point. Which is faster depends on problem size, sparsity and implementation, and no general ranking is given here.

How do you handle infeasibility or unboundedness?

Use the two-phase simplex method. Phase one introduces artificial variables and solves an auxiliary problem; if the artificial variables cannot be driven to zero, the original problem is infeasible. Phase two applies the simplex method to the original objective. Unboundedness appears in phase two when the ratio test finds no leaving variable.

What is degeneracy and why does it matter?

Degeneracy occurs when a basic feasible solution has a basic variable at zero, so several bases can describe the same vertex. Pivots may then leave the objective unchanged, which can cause cycling. Bland's rule (choosing variables by index order) or perturbation methods prevent cycling.

Related methods

Sources

  1. Dantzig, G. B. (1963). Linear Programming and Extensions. Princeton University Press.

    Open DOI reference
  2. Vanderbei, R. J. (2014). Linear Programming: Foundations and Extensions (4th ed.). Springer.

    Open DOI reference