Entropy-Based Evolutionary Diversity Optimisation for the Traveling Salesperson Problem

Adel Nikfarjam, Jakob Bossek, Aneta Neumann, Frank Neumann · DOI

Abstract

Computing diverse sets of high-quality solutions has gained increasing attention among the evolutionary computation community in recent years. It allows practitioners to choose from a set of high-quality alternatives. In this paper, we employ a population diversity measure, called the high-order entropy measure, in an evolutionary algorithm to compute a diverse set of high-quality solutions for the Traveling Salesperson Problem. In contrast to previous studies, our approach allows diversifying segments of tours containing several edges based on the entropy measure. We examine the resulting evolutionary diversity optimisation approach precisely in terms of the final set of solutions and theoretical properties. Experimental results show significant improvements compared to a recently proposed edge-based diversity optimisation approach when working with a large population of solutions or long segments.

Introduction

In classical optimization, the primary objective is typically to identify a single optimal solution. However, real-world applications—such as logistics, urban planning, or robotics—often require a diverse set of high-quality alternatives. This flexibility allows decision-makers to select solutions based on secondary criteria not easily captured in a single cost function, such as avoiding specific geographic areas or prioritizing certain route characteristics.

Evolutionary Diversity Optimisation (EDO) aims to evolve a population of solutions that are both high-quality and structurally diverse. For the Traveling Salesperson Problem (TSP), defining "diversity" is non-trivial. Previous approaches often treated edges as independent entities. However, in a TSP tour, the presence of one edge is intrinsically linked to its neighbors. This paper addresses this limitation by introducing a high-order entropy measure that considers sequences of nodes, or segments, rather than isolated edges.

Methodology

The core of the proposed approach is an Evolutionary Algorithm (EA) that optimizes for diversity using a novel entropy-based metric.

High-Order Entropy Measure

Instead of simply counting edge frequencies, the algorithm evaluates the distribution of segments of length $k$ (containing $k-1$ edges) across the population. High entropy indicates that these segments are distributed evenly, signifying high structural diversity. This approach captures the "flow" of a tour more effectively than edge-based measures.

Illustration of segments of length $k$ in a TSP tour.

Biased 2-OPT Mutation

To accelerate the discovery of diverse solutions, the authors introduce a biased version of the standard 2-OPT mutation. While standard 2-OPT swaps random edges, the biased version specifically targets and breaks the most frequent segments in the current population. This directly "attacks" the lack of diversity, leading to significantly faster convergence toward high-entropy states.

Theoretical Baseline

To provide a rigorous evaluation, the authors developed a Mixed-Integer Programming (MIP) formulation to calculate the theoretical maximum entropy for small TSP instances. This serves as a "gold standard" to measure the effectiveness of the EA.

Experimental Evaluation

The algorithm was tested on standard TSPlib instances (eil51, eil76, eil101) and synthetic complete graphs. The latter allowed for "unconstrained" diversity studies where edge weights are equal, focusing purely on structural variety.

Results and Discussion

The experimental results demonstrate that the entropy-based EA consistently outperforms previous edge-based methods (such as ED and PD measures), particularly as population size ($\mu$) or segment length ($k$) increases.

Comparison of entropy values obtained by the evolutionary algorithm (ENT) and the MIP formulation (Cplex) against theoretical maximum entropy ($H_{\max}$) for various instance sizes $n$.

As shown in the table above, the EA (ENT) achieves entropy values that are nearly identical to the optimal values found by the MIP solver (Cplex) and the theoretical maximum ($H_{\max}$), validating the algorithm's ability to reach optimal diversity levels. Furthermore, the biased 2-OPT mutation was found to reach maximum entropy much faster than the classic version—for a population of 25, it required approximately 2,350 evaluations compared to 14,000 for the standard operator.

Conclusion

This research highlights the importance of considering dependencies between edges when optimizing for diversity in the TSP. By utilizing high-order entropy and a targeted mutation strategy, the proposed EA generates structurally richer sets of solutions more efficiently than previous methods. Future work includes extending this approach to asymmetric TSP instances, integrating the entropy measure into more advanced solvers like EAX, and applying these principles to other combinatorial optimization problems such as vehicle routing.

Summary updated

BibTeX
@inproceedings{nikfarjam2021entropy,
  author = {Adel Nikfarjam and Jakob Bossek and Aneta Neumann and Frank Neumann},
  title = {{Entropy-Based Evolutionary Diversity Optimisation for the Traveling Salesperson Problem}},
  booktitle = {GECCO},
  year = {2021},
  doi = {10.1145/3449639.3459384},
}
Figure