This commit is contained in:
UmbertoJr 2019-11-04 09:30:20 +01:00
parent 0428a63b38
commit 9cc05b01a2

View file

@ -10,7 +10,7 @@ class Solver_TSP:
def __init__(self, method):
self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn,
"best_nn": self.best_nn}
"best_nn": self.best_nn, "multi_fragment": lambda a: a }
self.method = method
self.solved = False
assert method in self.available_methods, f"the {method} method is not available currently."