This commit is contained in:
UmbertoJr 2019-11-18 08:54:54 +01:00
parent ed270740c5
commit 57c7702f6b

View file

@ -20,7 +20,9 @@ class Solver_TSP:
} }
available_improvements = {"2-opt": TwoOpt.loop2opt, available_improvements = {"2-opt": TwoOpt.loop2opt,
"2.5-opt": TwoDotFiveOpt.loop2dot5opt} "2.5-opt": TwoDotFiveOpt.loop2dot5opt,
"simulated_annealing": Simulated_Annealing,
"iterated_local_search": Iterated_Local_Search}
def __init__(self, initializer): def __init__(self, initializer):
# self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn, # self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn,