This commit is contained in:
UmbertoJr 2019-11-09 16:23:47 +01:00
parent 5342e4423b
commit 617c4ec55f
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ class Solver_TSP:
solution: ndarray
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):
self.available_methods = {"random": self.random_method, "nearest_neighbors": self.nn,