311. TSP

The Traveling Salesman Problem: visit cities exactly once and return to start, minimizing total distance.

Famous for being easy to state, hard to solve: NP-hard, no known polynomial-time exact algorithm. But also one of the most-studied problems in combinatorial optimization.

311.1. Formulation (DFJ — Dantzig-Fulkerson-Johnson, 1954)

Decision variable : if the tour uses edge , else .

s.t.:

The subtour-elimination constraints are exponential in number ( subsets). In practice, add them lazily as cutting planes when violated.

311.2. Alternative formulation (MTZ — Miller-Tucker-Zemlin)

Polynomially many constraints using node potentials :

Forces a single tour without exponentially many cuts. LP relaxation is weaker than DFJ, so fewer cuts needed but worse bounds.

311.3. Computational reality

311.4. Lower bounds (for branch-and-bound)

311.5. Heuristics

311.6. Variants

311.7. See also