A two-stage algorithm based on greedy ant colony optimization for travelling thief problem

Zheng Zhang, Xiao-Yun Xia, Zijia Wang, Youzhen Jin, Weizhi Liao, Jun ZhangComplex 2025

Introduction

The Travelling Thief Problem (TTP) is a complex optimization challenge that merges two classic NP-hard problems: the Traveling Salesman Problem (TSP) and the Knapsack Problem (KP). In TTP, a salesman must navigate a set of cities to collect items of varying weights and values. Crucially, the weight of the items in the knapsack reduces the salesman's travel speed, thereby increasing the "rental cost" of the journey. To maximize total profit, the salesman must simultaneously optimize the travel route and the item selection strategy.

Traditional approaches often treat these sub-problems in isolation, typically solving for the shortest route first (using heuristics like Lin-Kernighan) and then deciding which items to pack. However, this ignores the dynamic interaction where early heavy pickups penalize the entire remaining trip. This paper introduces a novel two-stage algorithm, GACO-GISS, designed to bridge this gap.

Methodology: The Two-Stage Approach

The proposed solution decomposes the TTP into two distinct but interconnected stages: route planning and item selection.

The two-stage algorithm flowchart, illustrating the progression from initial item classification and GACO-based routing to the final GISS-based item selection.

Stage 1: Route Planning via GACO

The first stage focuses on generating a travel route that anticipates the item selection process. It begins with an Item Classification Algorithm (ICA), which identifies high-value, low-weight item clusters. These clusters serve as targets for the Greedy Ant Colony Optimization (GACO).

Unlike standard ACO, which minimizes distance, GACO uses a modified selection matrix to intentionally place cities containing these "first-category" items toward the end of the route. By delaying the acquisition of weight, the salesman maintains a higher average speed for the majority of the journey, reducing overall travel costs even if the total distance is slightly longer than a pure TSP solution.

Stage 2: Item Selection via GISS

Once the route is established, the Genetic Item Search Strategy (GISS) optimizes the packing plan. Traditional methods often rely on rigid, hand-crafted scoring rules that can easily become trapped in local optima. GISS instead employs a Genetic Algorithm (GA) to perform a global search. By encoding item selections as binary chromosomes and applying evolutionary operators—selection, crossover, and mutation—GISS identifies the most profitable combination of items for the specific route generated in Stage 1.

Experimental Evaluation

The GACO-GISS framework was tested against the standard TTP benchmark dataset (Polyakovskiy et al., 2014), which includes diverse item distributions: Bounded-strongly-correlated (BSC), Uncorrelated-with-similar-weights (USW), and Uncorrelated (UCO).

Key Findings

  • Routing Synergy: GACO-generated routes consistently outperformed those based on the Lin-Kernighan (LK) heuristic. While LK routes are shorter, GACO routes are more "profitable" because they facilitate high-speed travel for a longer duration.
  • Global Search Efficacy: GISS outperformed traditional heuristic selection strategies (such as S1, S2, C1, C2) and the SAVI algorithm. Its ability to conduct a global search proved superior to the local search limitations of rule-based heuristics.
  • Performance Ranking: The integrated GACO-GISS approach achieved a higher average ranking (1.43) compared to the baseline LK-GISS (1.57), demonstrating the value of linking routing decisions to item attributes.

Conclusion

The GACO-GISS algorithm effectively addresses the interdependencies of the Travelling Thief Problem. By using item classification to inform route planning and genetic algorithms for global item search, the framework avoids the pitfalls of isolated sub-problem optimization. Future work will focus on improving the computational efficiency of the GACO phase to better handle large-scale instances and adapting the model for dynamic real-world logistics where cargo weight impacts vehicle performance.

Summary updated

BibTeX
@inproceedings{zhang2025two,
  author = {Zheng Zhang and Xiao-Yun Xia and Zijia Wang and Youzhen Jin and Weizhi Liao and Jun Zhang},
  title = {{A two-stage algorithm based on greedy ant colony optimization for travelling thief problem}},
  booktitle = {Complex},
  year = {2025},
  doi = {10.1007/s40747-025-01865-1},
}
Figure