Class RandomTSPMatrix

java.lang.Object
org.cicirello.search.problems.tsp.BaseTSP
org.cicirello.search.problems.tsp.RandomTSPMatrix
All Implemented Interfaces:
Problem<Permutation>
Direct Known Subclasses:
RandomTSPMatrix.Double, RandomTSPMatrix.Integer

public abstract class RandomTSPMatrix extends BaseTSP
This class and its nested classes implement the Traveling Salesperson Problem (TSP), and its variant, the Asymmetric Traveling Salesperson Problem (ATSP), by generating a random distance matrix. The RandomTSPMatrix class provides two inner classes, one for edge costs that are floating-point valued (class RandomTSPMatrix.Double), and one for integer cost edges (class RandomTSPMatrix.Integer). Both nested classes support both the TSP and ATSP, and both also provide the option to control whether or not the distance matrix satisfies the triangle inequality.