Skip to content

Conversation

@abhosekar
Copy link
Contributor

subtour identification in tsp4.py before adding cuts is improved using nx.strongly_connected_components(). This simplifies the implementation and makes it significantly more efficient. Previous version of this implementation was taking over 3 minutes to execute on my computer which is now down to a few seconds. The final print results and the objective are identical.

@mabdullahsoyturk mabdullahsoyturk merged commit 3e32c29 into GAMS-dev:master Jul 18, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants