Open AndreasSaelinger opened 5 years ago
I confirm the bug, two_opt
is defined only for class TSP_problem
in search.ipynb; while PeakFindingProblem
is defined in search.py. I guess that the hill_climbing
function should use only Problem class API.
The problem is that hill_climbing
function is redefined in the notebook, shadowing the original one in search.py.
In short:
AttributeError: 'PeakFindingProblem' object has no attribute 'two_opt'
Calling:
results in this: