From 98cc9401a117e165b7d2fd88d5a23d3b12de7d04 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 2 Dec 2019 09:24:08 +0100 Subject: [PATCH] solver --- src/TSP_solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TSP_solver.py b/src/TSP_solver.py index 05b76e6..530cac3 100644 --- a/src/TSP_solver.py +++ b/src/TSP_solver.py @@ -43,7 +43,7 @@ class Solver_TSP: def pop(self): self.methods.pop() - self.name_method = self.name_method[::-1][self.name_method[::-1].find("improved"[::-1]) + len("improved") + 1:][ + self.name_method = self.name_method[::-1][self.name_method[::-1].find("improved"[::-1]) + len("improved") + 2:][ ::-1] def __call__(self, instance_, verbose=True, return_value=True):