The Node Weight Dependent Traveling Salesperson Problem: Approximation Algorithms and Randomized Search Heuristics

Jakob Bossek, Katrin Casel, Pascal Kerschke, Frank Neumann

Abstract

The Node Weight Dependent Traveling Salesperson Problem (W-TSP) is a variant of the classical TSP where travel costs are scaled by the cumulative weight of visited nodes. This model more accurately reflects real-world logistics where vehicle load impacts operational costs. In this paper, we establish the first constant-factor approximation for the metric W-TSP, proving a 3.59-approximation ratio through a reduction to the Minimum Latency Problem. We further investigate randomized search heuristics and adapt the Edge Assembly Crossover (EAX) algorithm for the weighted context. Our experimental results on a benchmark of 45,000 instances demonstrate that weighted-aware heuristics significantly outperform standard TSP solvers, particularly in clustered environments.

Introduction

In the classical Traveling Salesperson Problem (TSP), the objective is to find the shortest Hamiltonian cycle in a graph. While computationally challenging, the model assumes static edge costs. However, in many practical applications—such as waste collection, fuel-dependent transport, or the "Traveling Thief Problem"—the cost of traversing an edge increases as the vehicle accumulates weight.

The authors formalize this as the Node Weight Dependent Traveling Salesperson Problem (W-TSP). Each node $i$ has a weight $w_i$, and the cost of an edge $(u, v)$ is the product of its physical distance $d(u, v)$ and the total weight of all nodes visited prior to and including $u$. This formulation introduces a fundamental asymmetry: the cost of a path depends on its direction and the specific sequence of preceding nodes.

Figure 1: A 3-node graph with distances $\epsilon$ and $x$, illustrating the cost dynamics of W-TSP.

Theoretical Foundations: The MLP Connection

A key insight of this work is the mathematical relationship between W-TSP and the Minimum Latency Problem (MLP), also known as the Deliveryman Problem. The authors show that a W-TSP tour can be viewed as the sum of a classic TSP tour and a reversed latency tour.

By adapting existing approximation techniques for MLP—specifically those based on concatenating tours of $k$-Minimum Spanning Trees ($k$-MST)—the authors derive a 3.59-approximation for the metric W-TSP. For the special case where all edge distances are restricted to the set $\{1, 2\}$, they achieve a tighter 1.75-approximation. These results provide the first formal performance guarantees for this problem class.

The paper evaluates several randomized search heuristics to determine their effectiveness in the asymmetric landscape of W-TSP.

Randomized Local Search (RLS)

The authors tested RLS using three mutation operators:

  • Inversion: Reverses a segment of the tour.
  • Exchange: Swaps two nodes.
  • Jump: Relocates a single node.

Despite the problem's asymmetry, the inversion operator proved most effective. This suggests that the structural integrity of node "blocks" is a more significant factor in tour quality than the directionality penalties incurred by weights.

Weighted Edge Assembly Crossover (W-EAX)

Building on the state-of-the-art Edge Assembly Crossover (EAX) for symmetric TSP, the authors developed W-EAX. This variant uses the weighted cost function to guide the selection and recombination of edges. By maintaining the powerful structural search of EAX while accounting for weight accumulation, W-EAX provides a robust tool for large-scale instances.

Experimental Evaluation

The algorithms were benchmarked against a massive dataset of 45,000 instances, ranging from 25 to 1,000 nodes. These instances were generated using three distinct methods: Random Uniform Euclidean (rue), clustered (netgen), and evolved instances (tspgen), with weight configurations ($C_1, C_2, C_3$) ranging from uniform to random bounded integers.

  1. Performance Gap: W-EAX consistently outperformed standard EAX. On 50-node instances, standard TSP solvers produced tours up to 2.75 times more expensive than the weighted-aware version.
  2. The Role of Clustering: The advantage of weighted-aware algorithms was most pronounced in clustered (netgen) instances. In these cases, the solver must strategically decide whether to "clear" a heavy cluster early to minimize subsequent costs, a decision standard TSP solvers are unequipped to make.
  3. Optimal Crossings: A notable finding is that, unlike metric TSP, the optimal solution for W-TSP can contain self-intersecting edges. A longer edge may be justified if it allows the vehicle to reach a high-weight area sooner, thereby reducing the weight-distance product for the remainder of the tour.

Conclusion and Future Work

This research provides both a theoretical foundation and practical tools for solving the W-TSP. While the 3.59-approximation ratio establishes a baseline for future theoretical improvements, the success of W-EAX highlights the importance of weight-aware search in logistics optimization.

Future work should address the "no-crossing" bias inherent in current EAX implementations. Since crossings can be optimal in W-TSP, developing crossover operators that explicitly allow or encourage beneficial self-intersections could further improve solution quality. Additionally, the development of exact solvers is necessary to benchmark how close these heuristics come to the true mathematical optimum.

Summary updated

Abstract

Several important optimization problems in the area of vehicle routing can be seen as variants of the classical Traveling Salesperson Problem (TSP). In the area of evolutionary computation, the Traveling Thief Problem (TTP) has gained increasing interest over the last 5 years. In this paper, we investigate the effect of weights on such problems, in the sense that the cost of traveling increases with respect to the weights of nodes already visited during a tour. This provides abstractions of important TSP variants such as the Traveling Thief Problem and time dependent TSP variants, and allows to study precisely the increase in difficulty caused by weight dependence. We provide a 3.59-approximation for this weight dependent version of TSP with metric distances and bounded positive weights. Furthermore, we conduct experimental investigations for simple randomized local search with classical mutation operators and two variants of the state-of-the-art evolutionary algorithm EAX adapted to the weighted TSP. Our results show the impact of the node weights on the position of the nodes in the resulting tour.
BibTeX
@inproceedings{bossek2020node,
  author = {Jakob Bossek and Katrin Casel and Pascal Kerschke and Frank Neumann},
  title = {{The Node Weight Dependent Traveling Salesperson Problem: Approximation Algorithms and Randomized Search Heuristics}},
  booktitle = {GECCO},
  year = {2020},
  doi = {10.1145/3377930.3390243},
}
Figure