Class TravellingSalesmanSolver

    • Method Detail

      • solve

        public static City[] solve​(City[] cities,
                                   double neuronsPerCity,
                                   long numUpdates,
                                   int numTasks,
                                   org.apache.commons.rng.UniformRandomProvider random)
        Parameters:
        cities - List of cities to be visited.
        neuronsPerCity - Average number of neurons per city.
        numUpdates - Number of updates for training the network.
        numTasks - Number of concurrent tasks.
        random - RNG for presenting samples to the trainer.
        Returns:
        the solution (list of cities in travel order).
      • getCoordinatesList

        public List<double[]> getCoordinatesList()
        Returns:
        the list of features (coordinates) of linked neurons.