Opt_HC_CG.hill.calculate_distance

calculate_distance(matrix, solution)[source]
returns the distance associated with a solution
input:

matrix[array]: distance between points solution[list]: contains a propose random solution

output: distance[float]: distance cover a propose solution