From 1004af177bea7051774cfa26fdcebe4e355f1ab9 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 18 Nov 2019 08:16:45 +0100 Subject: [PATCH] run --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index d5c528b..83487d7 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,6 @@ from src import * import pandas as pd -from time import time as t + def run(show_plots=False, verbose=False): @@ -23,6 +23,7 @@ def run(show_plots=False, verbose=False): solver = Solver_TSP(init) for improve in improvements: solver.bind(improve) + end - start solver(instance, return_value=False, verbose=verbose) if verbose: @@ -48,4 +49,4 @@ def run(show_plots=False, verbose=False): if __name__ == '__main__': - run(show_plots=True, verbose=True).to_csv("./results.csv") + run(show_plots=False, verbose=True).to_csv("./results.csv")