update
This commit is contained in:
parent
e6090d2a29
commit
9acede718b
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ class Solver_TSP:
|
|||
self.solved = False
|
||||
assert method in self.available_methods, f"the {method} method is not available currently."
|
||||
|
||||
def __call__(self, instance_, verbose=True):
|
||||
def __call__(self, instance_, verbose=True, return_value=True):
|
||||
self.instance = instance_
|
||||
if verbose:
|
||||
print("### solving ####")
|
||||
|
@ -23,6 +23,7 @@ class Solver_TSP:
|
|||
if verbose:
|
||||
print("### solution found ####")
|
||||
self._gap()
|
||||
if return_value:
|
||||
return self.solution
|
||||
|
||||
def random_method(self, instance_):
|
||||
|
|
Reference in a new issue