Opt_HC_CG.hill.neighbors¶
-
neighbors
(matrix, solution)[source]¶ - create neighbors of a propose solution
- input:
matrix[array]: distance between points solution[list]: contains a propose random solution
- output:
best_neighbor[list]: contains the best neighbor of he current solution best_path[float]: distance cover by the best_neighbor route