solvers
This commit is contained in:
parent
0428a63b38
commit
9cc05b01a2
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Reference in a new issue