Skip to content
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

TSP needs more usage info #82

Open
JoelPasvolsky opened this issue Dec 13, 2018 · 2 comments
Open

TSP needs more usage info #82

JoelPasvolsky opened this issue Dec 13, 2018 · 2 comments

Comments

@JoelPasvolsky
Copy link
Contributor

JoelPasvolsky commented Dec 13, 2018

Description
Most TSP problems I try fail to produce a minimal route. The parameters and working range of solvable problems should be outlined.

To Reproduce
The following alternative weights to the 5-node problem, EdgeView([(0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (2, 3)]), all fail:

  • [{'weight': 22.36}, {'weight': 10.0}, {'weight': 14.14}, {'weight': 20.0}, {'weight': 22.36}, {'weight': 22.36}]
    produces route: [3, 1, 0] (non-Hamiltonian route)
  • [{'weight': 2.24}, {'weight': 1.0}, {'weight': 1.41}, {'weight': 2.0}, {'weight': 2.24}, {'weight': 2.24}]
    produces route: [1, 0, 3, 2] (a better answer is [1 2 0 3])
  • [{'weight': 2}, {'weight': 4}, {'weight': 1}, {'weight': 2}, {'weight': 4}, {'weight': 3}]
    produces route: [3, 2, 1, 0] (a better answer is [2 1 0 3])

Expected behavior
More info on range of problem inputs, how to set lagrange, etc

Environment:

  • OS: Windows
  • Python version: 2.7

Additional context
@vgoliber

@vgoliber
Copy link
Member

Choosing a value for a Lagrange parameter is a topic that is relevant for all of our algorithm tools (not just TSP). I think it would be more appropriate to provide higher level guidance and/or references on this subject as a whole rather than guidance specific to each algorithm.

@JoelPasvolsky
Copy link
Contributor Author

Agree, @vgoliber, you mentioned having references and some guidance. Please add that here for that general update. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants