Abstract
The Traveling Thief Problem (TTP) is a complex combinatorial optimization challenge that combines the Traveling Salesperson Problem (TSP) and the Knapsack Problem (KP). Because these components interact dynamically, no single algorithm consistently outperforms others across all problem instances. This paper investigates the application of Algorithm Selection (AS) to TTP. By leveraging machine learning to map instance features to specific solvers, we demonstrate that a portfolio-based approach can close the performance gap between the best single algorithm and a theoretical "Oracle" solver by 90%. Notably, we find that near-optimal selection can be achieved using only five basic features, enabling real-time application.
1. Introduction
In combinatorial optimization, problems are often studied in isolation. The Traveling Salesperson Problem (TSP) focuses on routing efficiency, while the Knapsack Problem (KP) focuses on item selection under capacity constraints. However, real-world logistics frequently involve interdependent sub-problems. The Traveling Thief Problem (TTP) was introduced to bridge this gap, creating a scenario where the thief’s travel speed decreases as the knapsack weight increases. This interdependence means that the optimal route depends on the items collected, and the optimal items depend on the route's duration.
Given the complexity of TTP, the research community has produced a diverse array of heuristics. However, the "No Free Lunch" theorem suggests that no single algorithm is likely to be optimal for every possible instance. This study addresses the Algorithm Selection Problem: how to automatically choose the most effective algorithm for a given TTP instance.
2. Methodology
The researchers employed an automated Algorithm Selection (AS) framework, which involves three primary components: a portfolio of solvers, a set of instance features, and a selection model.
2.1 Portfolio Construction
The study utilized a portfolio of 21 existing TTP algorithms. These included:
- Simple hill-climbers and local search heuristics.
- Complex memetic algorithms.
- Swarm-intelligence approaches.
- Specialized heuristics like S5, a restart-based approach.
2.2 Feature Extraction and Selection
To characterize TTP instances, the authors initially defined 55 numerical features:
- 47 TSP-related features: Including edge cost statistics, cluster patterns, and distance metrics.
- 8 TTP-specific features: Including knapsack capacity, the "renting ratio" (the cost of time), and item-to-city distributions.
A critical discovery in this study was the efficiency of feature sets. While calculating all 55 features for large-scale instances could take over 20 hours, the authors identified that five basic features—readily available in the problem file headers—provided 99% of the predictive power of the full set. These features include the number of cities, the number of items, the knapsack capacity, the minimum/maximum speed, and the renting ratio.
2.3 Automated Selection Models
The researchers used state-of-the-art AS frameworks, including SATzilla and AutoFolio. These systems use machine learning (specifically Random Forests) to predict the performance of each solver based on the extracted features and select the one with the highest predicted utility.
3. Experimental Results
The approach was tested on a benchmark set of 9,720 instances, ranging from 51 to 85,900 cities.
3.1 Performance Gains
The single best-performing algorithm in the portfolio (S5) achieved a scaled performance score of 0.959. By using the SATzilla-based selection model, the performance increased to 0.993. This improvement represents a 90% reduction in the gap between the best single solver and the theoretical "Oracle" (a perfect selector that always chooses the best possible algorithm for every instance).
3.2 The "Underdog" and Marginal Contribution
Using Shapley value analysis from cooperative game theory, the researchers quantified the unique contribution of each algorithm. A surprising finding was the role of CS2SA. While its average performance was poor and it occasionally crashed, it possessed the highest marginal contribution. CS2SA was the only algorithm capable of solving specific, highly difficult instances that all other solvers failed to handle. This highlights the importance of diversity in algorithm portfolios.
3.3 Complexity and Scaling
The selection model revealed a clear hierarchy based on problem size:
- Small instances: Swarm intelligence and memetic heuristics dominated.
- Large instances (up to 80,000+ cities): The S5 restart heuristic proved most robust.
4. Discussion and Conclusion
The study demonstrates that algorithm selection is highly effective for hybrid optimization problems like TTP. The transition from a single-solver approach to an automated portfolio significantly enhances performance across diverse problem scales.
Furthermore, the discovery that near-optimal selection can be performed in constant time using header-only features makes this approach highly practical for industrial applications. Future work will focus on refining the portfolio by fixing technical bugs in high-performing heuristics and developing more nuanced TTP-specific features to further close the gap to the Oracle.
Summary updated