Abstract
In this work, we consider the problem of finding a set of tours to a traveling salesperson problem (TSP) instance maximizing diversity, while satisfying a given cost constraint. This study aims to investigate the effectiveness of applying niching to maximize diversity rather than simply maintaining it. To this end, we introduce a 2-stage approach where a simple niching memetic algorithm (NMA), derived from a state-of-the-art for multi-solution TSP, is combined with a baseline diversifying algorithm. The most notable feature of the proposed NMA is the use of randomized improvement-first local search instead of 2-opt. Our experiment on TSPLIB instances shows that while the populations evolved by our NMA tend to contain clusters at tight quality constraints, they frequently occupy distant basins of attraction rather than close-by regions, improving on the baseline diversification in terms of sum-sum diversity. Compared to the original NMA, ours, despite its simplicity, finds more distant solutions of higher quality within less running time, by a large margin.
Introduction
Traditional optimization typically focuses on finding a single global optimum. However, in practical scenarios like logistics or urban planning, having a set of diverse, high-quality alternatives is often more valuable. If a primary route is unavailable due to unforeseen circumstances, a structurally distinct alternative with similar cost is essential. This challenge falls under Evolutionary Diversity Optimization (EDO).
For the Traveling Salesperson Problem (TSP), the search landscape is complex and multimodal, with high-quality solutions residing in disconnected "basins of attraction." Standard algorithms often converge to a single basin, producing solutions that are mere variations of one another. This paper proposes a method to bridge this gap by forcing exploration across multiple distant regions of the solution space.
Methodology: The Two-Stage Approach
The authors propose a hybrid framework that combines niching with a diversification scheme to ensure both high quality and broad coverage of the search space.
Stage 1: Niching Memetic Algorithm (NMA)
The first stage focuses on finding a "seed" population of solutions that meet a specific quality threshold (e.g., within 5% of the known optimum) while being spread across different regions.
- Niching: The population is divided into groups (species). Competition happens within groups, but the algorithm encourages different groups to explore different areas.
- Randomized Improvement-First Local Search: Instead of using the standard "greedy" 2-opt, they use a version that takes the first improvement it finds and stops as soon as the quality threshold is reached. This "good enough" principle prevents over-optimization that would otherwise collapse diversity.
- Migration: To prevent stagnation, duplicates of group leaders are periodically swapped with random members of other groups.
Stage 2: Diversification ($(\mu+1)$-EA)
Once a high-quality, diverse base is established, this stage further polishes the population to maximize specific diversity metrics using a $(\mu+1)$ Evolutionary Algorithm.
Experimental Results
The study evaluated the algorithm using 10 instances from TSPLIB, testing different "quality gaps" ($\alpha \in \{0.05, 0.1, 0.2\}$), representing how much more expensive a tour can be compared to the optimum. Diversity was measured using "edge distance," which counts unique edges between tours.
As shown in the results table, the NMA-based approaches (NMA-ED and NMA-PD) consistently achieved higher "sum-sum" diversity ($D_1$) than the baseline $(\mu+1)$-EA, particularly when quality constraints were tight ($\alpha = 0.05$). While solutions within a basin might cluster (leading to lower "sum-min" diversity, $D_2$), the overall coverage of the search space was much broader.
Furthermore, the modified NMA found more distant solutions of higher quality in significantly less running time compared to the original NMA it was derived from. On the pcb442 instance, the NMA used about 62% of the evaluation budget to find its initial set, showing that while it is more complex, it remains viable for moderately sized problems.
Key Insights and Future Work
A striking insight from this research is that reaching the global optimum can actually be detrimental to diversity. By stopping the local search as soon as a solution is "good enough," the algorithm preserves the unique structural features of that basin. Additionally, using a randomized order for local search neighbors helps eliminate positional biases, ensuring that even similar starting points might converge to different local optima.
Limitations and Scaling
The authors acknowledge a scaling issue: as the number of cities ($n$) increases, the NMA requires a much larger portion of the computational budget to find the initial diverse set. Future research directions include developing more powerful crossover and mutation operators to handle larger instances and exploring other niching techniques that might create a more "end-to-end" diversity optimizer.
Summary updated