py2opt icon indicating copy to clipboard operation
py2opt copied to clipboard

Cycle versus no cycle?

Open turian opened this issue 4 years ago • 1 comments

Can you document whether the default is to include the cost of the cycle, i.e. returning to the initial node, or not?

Also, can you document how to obtain the alternate behavior?

For example python-tsp says:

'If you with for an open TSP version (it is not required to go back to the origin), just set all elements of the first column of the distance matrix to zero'

Is this the right approach with your library?

turian avatar Feb 07 '22 01:02 turian

Related to #5 PR

turian avatar Feb 07 '22 01:02 turian