Interior-point method

Also known as: barrier method

On this page 7

An interior-point method is a family of algorithms for constrained optimization that approaches the optimum by moving through the interior of the feasible region rather than along its boundary. In Optimization for artificial intelligence and operations research, it is the standard engine behind modern solvers for linear programming, quadratic programming and broader convex optimization, and it is also known as the barrier method in one of its classical forms.

The core idea is to replace hard inequality constraints with a logarithmic barrier term that grows without bound near the boundary, then solve a sequence of smooth problems with Newton’s method while the barrier weight shrinks toward zero. The resulting iterates trace the central path, and practical solvers reach high accuracy in a few dozen iterations almost regardless of problem size.

How the central path leads to the optimum

An interior-point method converts a constrained problem into a series of unconstrained or equality-constrained subproblems. For a problem that minimizes f(x) subject to g_i(x) ≤ 0, the barrier version minimizes f(x) − μ Σ log(−g_i(x)), where μ is the barrier parameter. A large μ keeps the solution deep inside the feasible set; as μ decreases, the minimizer slides toward the true constrained optimum.

The set of minimizers for all positive values of μ forms the central path. Each point on it satisfies a perturbed version of the Karush-Kuhn-Tucker conditions, in which complementary slackness s_i λ_i = 0 is relaxed to s_i λ_i = μ. Following this path approximately, rather than exactly, is what makes the method efficient: the solver takes one or a few Newton steps per value of μ and then reduces μ by a fixed factor.

The table below lists the main ingredients of a typical primal-dual implementation and the role each one plays.

ComponentRoleTypical choice
Barrier functionKeeps iterates strictly feasibleLogarithmic barrier
Barrier parameter μControls distance from the boundaryReduced by a factor of 0.1 to 0.5
Newton systemComputes the search directionSparse Cholesky or LDL factorization
Step length rulePrevents leaving the interiorFraction to boundary, about 0.99
Stopping testDeclares convergenceDuality gap and residuals below 1e-8
Core components of a primal-dual interior-point solver

Main variants of interior-point methods

Several variants share the same principle but differ in which variables they update and how they measure progress. The primal-dual path-following method dominates practice because it updates primal variables, dual variables and slacks together, which gives robust behavior on degenerate problems.

VariantKey ideaTypical use
Primal barrier methodMinimize objective plus barrier in x onlyTeaching, small smooth problems
Primal-dual path-followingNewton steps on perturbed KKT systemCommercial LP and QP solvers
Mehrotra predictor-correctorAffine step, then centering correctionDefault in most LP codes
Homogeneous self-dual embeddingDetects infeasibility within one frameworkConic solvers for SOCP and SDP
Potential reductionDecrease a merit potential each stepHistorical and theoretical work
Families of interior-point methods and where they are used

Karmarkar’s 1984 projective algorithm started the modern era by proving a polynomial bound for linear programming with a practical method. Later analysis established that path-following schemes need O(√n log(1/ε)) iterations in the worst case, while real solvers typically converge in 20 to 60 iterations.

Interior-point method versus the simplex algorithm

The simplex algorithm and interior-point methods solve the same linear programs by very different routes. Simplex walks from vertex to vertex along the edges of the feasible polytope, while an interior-point method cuts through the middle and only approaches a vertex at the end.

AspectInterior-point methodSimplex algorithm
Path through the regionThrough the interiorAlong edges between vertices
Worst-case complexityPolynomialExponential in theory
Iteration countLow, nearly size independentGrows with problem size
Cost per iterationHigh, one large factorizationLow, rank-one updates
Warm startingWeakStrong after small changes
Solution typeNear-optimal interior pointExact basic vertex
Comparison of interior-point and simplex approaches

Because an interior-point method returns a point near the optimal face rather than a vertex, solvers often run a crossover step that converts it into a basic solution. This matters when a basic optimal solution is required, for example in mixed-integer linear programming, where branch and bound relies on vertex solutions and fast simplex warm starts between nodes.

Role in machine learning and AI workloads

In machine learning, interior-point methods appear wherever a model is trained or deployed through a convex program with constraints. Classic examples include training a support vector machine through its dual quadratic program, solving sparse regression as a linear or second-order cone program, and computing optimal transport plans for small and medium problem sizes.

They are also embedded inside larger AI systems. Model predictive control in robotics solves a quadratic program at every control step, often with a tailored interior-point solver. Differentiable optimization layers use the KKT system of an interior-point solution to backpropagate gradients through a constrained problem inside a neural network.

The following decision table summarizes when an interior-point method is the better choice and when another algorithm fits more naturally.

SituationRecommended methodReason
Large sparse LP solved onceInterior-point methodFew iterations, good sparse factorizations
Sequence of slightly changed LPsDual simplexEfficient warm starts
Medium convex QP or SOCPInterior-point methodHigh accuracy and reliable convergence
Huge problem, low accuracy neededFirst-order method such as ADMMCheap iterations, no factorization
Nonconvex smooth problemInterior-point NLP solverFinds a local optimum with constraints
Choosing an algorithm for a constrained problem

Limitations and common pitfalls

The main cost of an interior-point method is the linear system solved at every iteration. For dense problems with millions of variables, the memory and time for factorization become prohibitive, which is why first-order methods dominate deep learning training even though they need far more iterations.

  • Ill-conditioning near the optimum: as μ approaches zero, the Newton matrix becomes nearly singular, so solvers rely on careful regularization and scaling.
  • Poor warm-start behavior: starting close to the boundary slows progress, so reusing a previous solution helps far less than with simplex.
  • Nonconvex problems: barrier solvers such as IPOPT still work, but they guarantee only a local optimum and may stall at saddle points.
  • Infeasible or unbounded models: without a self-dual embedding or infeasibility detection, the solver may iterate without a clear certificate.

A frequent mistake is to request an extremely tight tolerance. Accuracy beyond about 1e-8 relative duality gap rarely improves decisions, yet it amplifies numerical instability and can trigger spurious failure messages.

A non-technical view

Imagine you must find the lowest spot in a fenced field. You may not touch the fence. One way is to walk along the fence and check every corner. An interior-point method does something different. It stays well inside the field and heads toward the low spot through the middle.

At first, an invisible force pushes it away from the fence. Step by step, that push gets weaker. The walker then moves closer to the edge, exactly where the best spot lies. The key takeaway is simple: by staying inside and relaxing the push slowly, the method finds the best answer in a small number of confident steps.

A concrete example

A logistics planning team builds a linear program to assign shipments from 40 warehouses to 2,000 stores each week. The model has about 80,000 variables and 2,040 capacity and demand constraints, plus a cost objective that combines distance and fuel price. The team runs the model in a commercial solver with the interior-point method selected as the primary algorithm.

The solver converges in 34 iterations and about 6 seconds, then performs a crossover step to return a clean vertex solution that the planning system can turn into whole truckloads. When the team tested dual simplex on the same instance, it needed more than 50,000 pivots and about four times longer. The interior-point method became the default for the weekly run, while dual simplex is kept for quick re-solves after small demand changes during the week.