This commit is contained in:
UmbertoJr 2019-11-09 16:23:47 +01:00
parent 5342e4423b
commit 617c4ec55f

View file

@ -8,6 +8,8 @@ class Solver_TSP:
solution: ndarray solution: ndarray
found_length: float found_length: float
available_methods = {"random": lambda x: x, "nearest_neighbors": lambda x: x,
"best_nn": lambda x: x, "multi_fragment": lambda x: x}
def __init__(self, method): def __init__(self, method):
self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn, self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn,