Functions¶
Hill Climbing and Conjugate Gradient module¶
|
calculate the distance among each suggest solution point |
|
returns the distance associated with a solution |
|
create neighbors of a propose solution |
|
finds an optimal solution for the TSP problem using hill climbing algorithm |
|
input: |
|
ckecks if a matrix is symmetric inputs: matrix: a cuadratic matix outputs: True ir our matrix is simetric, false otherwise |
ckecks if a matrix is define positive input: param x: matrix to check if it is define positive return: True if the matix is define positive and False otherwise output: |