constructive algorithms

This commit is contained in:
UmbertoJr 2019-11-18 07:03:34 +01:00
parent d69cc63677
commit f39fb0aa0b
3 changed files with 4 additions and 1 deletions

View File

@ -2,8 +2,11 @@ import os
if 'AI' in os.getcwd():
from src.utils import *
from src.constructive_algorithms import *
from src.local_search import *
from src.TSP_solver import *
from src.io_tsp import *
else:
from AI2019.src.utils import *
from AI2019.src.TSP_solver import *

View File

@ -1,4 +1,5 @@
import os
import numpy as np
if 'AI' in os.getcwd():
from src.utils import *
else:

View File

@ -1,4 +1,3 @@
import numpy as np
def compute_lenght(solution, dist_matrix):
total_length = 0