public static void main(String args[]) throws IOException {
   TSP tsp = new TSP();
   tsp.readCities("texas_cities_with_coordinates.txt");
   Annealing annealing = new Annealing(tsp.totalCities, tsp.idToCity);
   int[] sol = annealing.annealing(10000);
   annealing.printCities(sol);
   System.out.println("Final Tour Length: " + annealing.getTourLength(sol));
 }
Example #2
0
 @Override
 public State solve() {
   return annealing.run(new State());
 }