Linear programming
Optimising a linear function over a polyhedron: solved fast in practice by simplex and interior-point methods, with polynomial-time guarantees and one famous gap, strong polynomiality.
On this page16 sections
LP underlies logistics, scheduling and network flow, supplies relaxations to integer programming solvers, and is the template for approximation algorithms in combinatorial optimisation.
Finding the best choice when everything is a straight-line trade-off, like the cheapest diet meeting nutrition limits.
- 1Linear trade-offs: maximise profit or minimise cost
- 2Allowed choices form a many-sided shape
- 3Simplex hops corner to corner
- 4Hard cases exist but noise kills them
- 5Open: speed independent of number size
The problem. A linear program (LP) asks for
which says: choose the vector of unknowns to make the linear cost as small as possible, while obeying the linear inequalities in . The set of allowed is a polyhedron, a shape with flat faces, and if an optimum exists it is attained at a corner (vertex).
Simplex. Dantzig's simplex method (1947) moves from vertex to vertex along edges, improving the objective each step. Klee and Minty (1972) built examples where classical pivot rules take exponentially many steps. Yet in practice simplex is very fast. Smoothed analysis (Spielman and Teng, 2001) explains this: if every input number is perturbed by a small random Gaussian amount of size , a simplex variant takes polynomially many pivots on average, for the worst underlying input. Later work has improved the bound many times; Bach and Huiberts (2025) obtained roughly pivots for variables and constraints, together with a matching lower bound for the noise dependence of this approach.
Polynomial-time methods. The ellipsoid method (Khachiyan, 1979) was the first proven polynomial-time algorithm, polynomial in the number of bits of the input, though slow in practice. Karmarkar (1984) introduced interior-point methods, which follow a central path through the inside of the polyhedron, solving a linear system at each step. Cohen, Lee and Song (2018) showed that an LP with variables can be solved to accuracy in about operations, where is the matrix multiplication exponent. For very large problems, first-order methods (like PDLP in Google's OR-Tools) avoid matrix factorisation and scale further.
Strongly polynomial time. The known polynomial algorithms have a running time that depends on the size of the numbers in the input. A strongly polynomial algorithm would depend only on the number of variables and constraints. Whether one exists for general LP is a famous open question (one of Smale's problems). Strongly polynomial algorithms are known for special cases such as network flows.
Why it matters. LP is a workhorse for industry and a core subroutine of integer programming, approximation algorithms and many machine-learning methods. Progress on LP speed feeds directly into, and borrows from, fast matrix multiplication and graph algorithms such as maximum flow.
Go deeper
The full technical text.
The problem
A linear program asks for with . The feasible set is a polyhedron, and an optimum, if it exists, is attained at a vertex.
Simplex
Dantzig's simplex method (1947) moves from vertex to vertex along edges, improving the objective. For the classical pivot rules there are instances, starting with Klee and Minty (1972), on which it takes exponentially many steps. In practice it is nevertheless very fast. Spielman and Teng (2001) explained this through smoothed analysis: if every input number is perturbed by Gaussian noise of standard deviation , a simplex variant takes polynomially many pivots in expectation. The bound has been improved repeatedly; Bach and Huiberts (2025) obtained pivot steps and a matching lower bound on the diameter of the perturbed polyhedron, so the dependence on noise is essentially optimal for this approach.
Polynomial-time methods
The ellipsoid method (Khachiyan, 1979) gave the first polynomial algorithm in the bit-length of the input; Karmarkar's interior-point method (1984) made polynomial-time LP practical. Interior-point methods follow the central path through the interior, solving a linear system per step. Cohen, Lee and Song (2018) showed that LP with variables can be solved to accuracy in about arithmetic operations, where is the matrix multiplication exponent (with current values of and its dual exponent). For very large instances, first-order methods such as PDLP, available in Google's OR-Tools, avoid factorising matrices and scale to problems that factorisation-based solvers cannot hold in memory.
Strongly polynomial time
The algorithms above run in time polynomial in the bit-length of the data, which can depend on the sizes of the numbers. A strongly polynomial algorithm uses a number of arithmetic operations polynomial in and alone. Tardos (1986) gave an algorithm whose number of arithmetic operations depends only on the size of the constraint matrix , not on and , so it is strongly polynomial when has small integer entries (as in network flow problems). Finding one for general LP, in the real-number model of computation, is Smale's ninth problem (1998). Related facts: the Hirsch conjecture on polytope diameters was disproved by Santos (2010), though polynomial bounds on the diameter remain open; and primal-dual log-barrier interior-point methods are not strongly polynomial (Allamigeon, Benchimol, Gaubert and Joswig, 2017), a result extended to all self-concordant barrier methods by Allamigeon, Gaubert and Vandame (2022).
Recent progress
Dadush, Huiberts, Natura and Végh (STOC 2020) gave an interior-point method whose iteration count depends only on a rescaling-invariant condition measure of . Dadush, Koh, Natura, Olver and Végh (STOC 2024) gave a strongly polynomial algorithm for LPs with at most two nonzero entries per row or per column, which includes minimum-cost generalised flow, a long-standing open case.
Practice
Commercial and open-source solvers combine simplex, barrier and first-order methods with presolve. Real-world instances with millions of variables are routine. The theory leaves the worst-case question open, but there is no known practical instance class on which the algorithms in use perform badly.
Words on this page (12)
- linear program
- An optimisation problem where both the goal and the limits are straight-line (linear) relationships.
- polyhedron
- A solid shape with flat faces and straight edges; the set of allowed choices in a linear program is one.
- simplex method
- Dantzig's algorithm that moves from corner to corner of the allowed region, improving the answer each step.
- interior-point method
- An algorithm that moves through the inside of the allowed region toward the best corner instead of along edges.
- ellipsoid method
- The first provably polynomial-time method for linear programs, by shrinking an egg-shaped region around the answer.
- smoothed analysis
- Measuring an algorithm's performance when worst-case inputs are shaken by a small random noise.
- polynomial time
- Running time that grows like a fixed power of the input size.
- strongly polynomial
- Polynomial in the count of numbers in the input, regardless of how large the numbers themselves are.
- matrix multiplication exponent
- The exponent describing the best known cost of multiplying large grids of numbers.
- Klee-Minty cube
- A deformed cube on which classical simplex rules take exponentially many steps.
- pivot
- One step of the simplex method: moving from one corner of the allowed region to a neighbouring one.
- objective function
- The quantity a linear program tries to make as small (or as large) as possible, such as cost or profit.
New to this? Read first (3)
- Linear programming (Wikipedia)Gentle introduction with diet, factory and flow examples.
- Simplex algorithm (Wikipedia)A picture-based walk along the corners of the allowed region.
- Smoothed analysis (Wikipedia)Why the worst cases almost never appear in practice.
Understanding map
map of the whole wiki →What to read before Linear programming (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Step 3
- Fast matrix multiplicationAlgorithm
- Step 4
- Linear programmingYou are here
- Then
- Lattices and sphere packingTheory
- Integer programming solvers: branch-and-cut, HiGHS, SCIP, MIPLIB and VIPRLibrary
- Smoothed simplex complexity: optimal dimension dependence (now O(σ−1/2 d11/4 log7/4 n))Open problem · D38
- Deterministic O(m polylog m) maximum flow, or an m1+o(1) implementation that beats push-relabelOpen problem · D30
- Linear programming in matrix-multiplication time: O(nω log(1/ε)) with no extra termsOpen problem · D30
Open problems & questions
Progress timeline
- Nov 5, 2026Claimed matrix-multiplication-time LP solver in a restricted settingRelated to: Linear programming in matrix-multiplication time: O(nω log(1/ε)) with no extra termssource
Zhao Song posted a 124-page preprint claiming expected time for feasible bounded-box LPs with constraints and additive accuracy. Unrefereed.
- Aug 1, 2026Preprint: m^(1+o(1)) without the outer interior-point methodRelated to: Deterministic O(m polylog m) maximum flow, or an m1+o(1) implementation that beats push-relabelsource
Li and Wice report an approximate pseudo-circulation route to max flow; not yet refereed.
- Oct 24, 2025Analysis by the bookRelated to: Smoothed simplex complexity: optimal dimension dependence (now O(σ−1/2 d11/4 log7/4 n))source
Bach, Black, Huiberts and Kafer introduced a framework beyond smoothed analysis.
- Apr 5, 2025Optimal noise dependenceRelated to: Smoothed simplex complexity: optimal dimension dependence (now O(σ−1/2 d11/4 log7/4 n))source
Bach and Huiberts proved O(σ^(-1/2) d^(11/4) log^(7/4) n) with a matching lower bound in σ.
- Apr 5, 2025Optimal smoothed analysis of simplexsource
Bach and Huiberts proved an O(σ^(-1/2) d^(11/4) log(n)^(7/4)) smoothed pivot bound for a simplex method, with a matching lower bound in its dependence on the noise level σ.
- Jun 10, 2024Strongly polynomial for two nonzeros per row or columnsource
Dadush, Koh, Natura, Olver and Végh gave a strongly polynomial algorithm for generalised flow and all LPs with at most two nonzeros per row or column (STOC 2024).
- Jun 5, 2024Combinatorial algorithm for dense graphsRelated to: Deterministic O(m polylog m) maximum flow, or an m1+o(1) implementation that beats push-relabelsource
Bernstein, Blikstad, Saranurak and Tu gave an augmenting-path algorithm in n^(2+o(1)) log U time (FOCS 2024).
- Sep 28, 2023Deterministic almost-linear timeRelated to: Deterministic O(m polylog m) maximum flow, or an m1+o(1) implementation that beats push-relabelsource
Van den Brand et al. derandomised the algorithm (FOCS 2023).
- Mar 1, 2022Almost-linear-time max flowRelated to: Deterministic O(m polylog m) maximum flow, or an m1+o(1) implementation that beats push-relabelsource
Chen et al. gave an m^(1+o(1)) max-flow and min-cost flow algorithm (FOCS 2022).
- Apr 16, 2020Faster dynamic matrix inverseRelated to: Linear programming in matrix-multiplication time: O(nω log(1/ε)) with no extra termssource
Jiang, Song, Weinstein and Zhang improved the exponent from to (STOC 2021).
- Oct 25, 2019Deterministic versionRelated to: Linear programming in matrix-multiplication time: O(nω log(1/ε)) with no extra termssource
Van den Brand derandomized the Cohen–Lee–Song algorithm, obtaining a strict bound (SODA 2020).
- Oct 18, 2018LP in current matrix multiplication timeRelated to: Linear programming in matrix-multiplication time: O(nω log(1/ε)) with no extra termssource
Cohen, Lee and Song gave an interior-point algorithm with stochastic central path and a projection-matrix maintenance scheme, running in (STOC 2019).
- Oct 18, 2018LP in matrix multiplication timesource
Cohen, Lee and Song gave an interior-point algorithm running in about n^ω log(n/δ) arithmetic operations, up to lower-order terms (STOC 2019).
- Nov 14, 2017Friendly smoothed analysisRelated to: Smoothed simplex complexity: optimal dimension dependence (now O(σ−1/2 d11/4 log7/4 n))source
Dadush and Huiberts simplified and improved the analysis (arXiv 2017; STOC 2018).
- Jun 14, 2010Hirsch conjecture disprovedsource
Santos constructed a 43-dimensional polytope with 86 facets whose diameter exceeds the Hirsch bound n - d, showing that the 1957 conjecture is false; the polynomial Hirsch question remains open.
- Jul 6, 2001Smoothed analysis of simplexRelated to: Smoothed simplex complexity: optimal dimension dependence (now O(σ−1/2 d11/4 log7/4 n))source
Spielman and Teng proved polynomial smoothed complexity (STOC 2001; J. ACM 2004).