solver
This commit is contained in:
parent
5342e4423b
commit
617c4ec55f
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Reference in a new issue