-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError in TSP notebook #27
Comments
Hey @siljuovix, thanks for opening an issue! I can sadly not reproduce the problem locally. From what I can tell from your tracebacks, in your notebook Can you check for me what |
@N-Wouda Thank you for the fast reply!
Then after
node_coords passes as a list of tuples like: Also worth mentioning that I get a deprecation warning when using problem_load:
And this line: is also giving the following error:
|
I had a look at the recent changes to tsplib, @siljuovix. These turn out to have been substantial, and warrant changes on my end. I could reproduce the issue after upgrading my tsplib package to Please have a look at the latest notebook, here! |
Thank you very much!
…On Fri, Apr 24, 2020 at 3:50 PM Niels Wouda ***@***.***> wrote:
I have a look at the recent changes to tsplib, @siljuovix
<https://github.com/siljuovix>. These turn out to have been substantial,
and warrant changes on my end. I could reproduce the issue after upgrading
my tsplib package to 0.7.0, and resolved the issues in #28
<#28>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALT6O6ASZYVH54EK5JHQY4LROGKJPANCNFSM4MPE7WAA>
.
--
Silvia Oviedo Castillo
|
I am reproducing the TSP example in a Jupyter Notebook and in the following line:
initial_solution = greedy_repair(state, random_state)
I get the following error:
I fixed the previous with the following in line 15:
node = next(node for node in nodes if node not in current.edges.values())
But the type error keeps propagating:
because visited is a set. If I transform the set into a list so the previous works I will have the same type of error in the next line. It would help me to have an input on the intended behavior.
Thank you in advance!
The text was updated successfully, but these errors were encountered: