Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quadratic Traveling Salesperson Problem

Updated 8 May 2026
  • QTSP is a combinatorial optimization problem that extends the classic TSP by incorporating quadratic cost terms from ordered triples of consecutive nodes.
  • Four modeling approaches—MIQP, MILP, CP, and DIDP—offer different trade-offs in scalability, memory usage, and optimality proofs.
  • Empirical studies indicate MILP performs best on small instances while DIDP remains robust for large-scale problems, guiding effective model selection.

The Quadratic Traveling Salesperson Problem (QTSP) is a generalization of the classical Traveling Salesperson Problem (TSP) in which the travel cost is determined not only by pairs of consecutive sites but by all ordered triples of consecutive sites along the tour. This triple-dependent cost structure introduces a quadratic term in the objective and reflects more complex operational or geometric constraints, such as those that penalize sharp turns (AngleTSP) or combined distance-angle terms (AngleDistanceTSP). Recent research provides a systematic comparison of four compact optimization models for QTSP: Mixed-Integer Quadratic Programming (MIQP), Mixed-Integer Linear Programming (MILP), Constraint Programming (CP), and Domain-Independent Dynamic Programming (DIDP). Theoretical formulations, empirical scalability, and solution quality of these models distinguish them in the landscape of combinatorial optimization (Chen et al., 2024).

1. Formal Definition of the QTSP

Let N={0,1,,n1}N = \{0, 1, \dots, n-1\} denote the set of customers (nodes), with tours rooted at customer $0$. A tour is a permutation σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N such that σ(0)=0\sigma(0)=0, visits all customers exactly once, and cyclically returns to $0$. By extending σ\sigma cyclically, i.e., σ(1)=σ(n1)\sigma(-1)=\sigma(n-1) and σ(n)=σ(0)\sigma(n)=\sigma(0), the total tour cost is defined as: t=0n1cσ(t1),σ(t),σ(t+1)\sum_{t=0}^{n-1} c_{\sigma(t-1),\,\sigma(t),\,\sigma(t+1)} where cijkc_{ijk} are cost coefficients for each ordered triple of consecutive nodes $0$0. The QTSP seeks a tour minimizing this cost.

2. Optimization Models for QTSP

Four optimization paradigms are proposed, each modeling the triple-interaction with different formulations and variable encodings.

2.1 MIQP Formulation

  • Variables: $0$1 (edge $0$2 selected), $0$3 (MTZ indexing for subtour elimination).
  • Objective: Quadratic, with bilinear terms $0$4 activating $0$5 if $0$6 are consecutive:

$0$7

  • Constraints: Degree constraints ensuring valid tours, and subtour-elimination via MTZ formulation.

2.2 MILP Formulation

  • Variables: $0$8 as above, plus $0$9 indicating whether σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N0 form a consecutive triple.
  • Objective: Linearized, since triple costs act directly on σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N1:

σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N2

  • Constraints: Degree and MTZ constraints (as in MIQP), plus linking constraints between σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N3 and σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N4 to model consecutive triples.

2.3 CP Formulation

  • Variables: σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N5 give the tour order (integers in σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N6).
  • Constraints: All-different constraint over the tour sequence, symmetry breaking (fix σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N7), with the objective directly accumulating σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N8 over the tour.
  • Objective:

σ:{0,,n1}N\sigma : \{0,\dots,n-1\} \to N9

2.4 DIDP Formulation

  • State: σ(0)=0\sigma(0)=00, with σ(0)=0\sigma(0)=01 unvisited, σ(0)=0\sigma(0)=02 predecessor, σ(0)=0\sigma(0)=03 current node, σ(0)=0\sigma(0)=04 first after σ(0)=0\sigma(0)=05.
  • Value Function: σ(0)=0\sigma(0)=06 gives the min-cost from this state, with recursive transitions modeling next-tour-step expansions and direct handling of triple costs.
  • Initialization: σ(0)=0\sigma(0)=07 solves the entire QTSP.
  • Complexity: State-space size is σ(0)=0\sigma(0)=08 in the worst case.

3. Computational Study and Benchmarks

Empirical evaluation employed benchmark instances from Staněk et al. (2019) with σ(0)=0\sigma(0)=09, generating 400 instances across two QTSP types (AngleTSP, AngleDistanceTSP). Test settings imposed 1800s and 8 GB RAM per instance on single-core hardware.

  • Solvers: MIQP/MILP (Gurobi 11.0.3), CP (IBM CP-Optimizer 22.1.1), DIDP (DIDPPy 0.8.0).
  • Metrics: Memory-out count, optimality gap, primal gap, primal integral (gap vs. time).

Performance Table

Model Feasibility (large $0$0) Optimality (small $0$1)
MILP Memory-out $0$2100 Best optimality proofs ($0$3)
MIQP Memory-out $0$4100 Fewer optima proved
CP Not viable $0$5 Fewer optima proved
DIDP No memory-out (except tiny cases) Slightly fewer optima ($0$6), best large-scale
  • MILP is preferred for $0$7.
  • For $0$8, only DIDP yields feasible tours and meaningful optimality gaps.
  • MILP excels in optimality and quality for $0$9 where memory allows, but for σ\sigma0, only DIDP provides nontrivial bound guarantees.

4. Scalability and Empirical Model Comparison

The scalability profiles differ markedly:

  • MILP/MIQP: Strong dual bounds for small σ\sigma1 but exponential memory blowup for σ\sigma2.
  • CP: Prone to memory and branching blowup beyond σ\sigma3.
  • DIDP: Graceful scaling in memory, with feasibility even as σ\sigma4—dual-bound tightness is the main bottleneck to optimality proof.

For large-scale problems, DIDP not only avoids memory exhaustion but also produces the best feasible tours and the lowest primal integrals, indicating rapidly convergent high-quality solutions (Chen et al., 2024).

5. Recommendations for Model Selection

The computational study leads to clear model selection guidance:

  • Use MILP for instances where σ\sigma5, or up to σ\sigma6 if memory is sufficient, to achieve the best optimality proofs and high-quality tours.
  • For σ\sigma7, only the domain-independent dynamic programming (DIDP) approach is practical and effective.
  • A plausible implication is that hybrid schemes utilizing DIDP for lower bounds or warm-starting MILP may further enhance performance, but these extensions remain prospective.

6. Open Challenges and Directions

Advancing the scalability and optimality of QTSP solvers centers on:

  • Strengthening DIDP dual bounds, including problem-specific relaxations, to improve proofs of optimality on large instances.
  • Designing hybrid frameworks to combine the optimality proof capabilities of MILP with the feasibility and memory scaling of DIDP.
  • Integrating cutting-plane techniques into MILP to defer memory-out at higher σ\sigma8.
  • Extending formulations to accommodate more complex cost structures, such as higher-order arc costs or additional routing constraints (e.g., time-windows).

Chen et al. provide the first systematic, off-the-shelf comparative analysis of compact QTSP solvers and demonstrate that domain-independent DP models can, under suitable algorithmic enhancements, match or surpass traditional MILP/MIQP/CP techniques for large-scale quadratic routing problems (Chen et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to MCAT.