Skip to content

[WIP] Add support for starting node#42

Open
fillipe-gsm wants to merge 10 commits intomasterfrom
fillipe/21-custom-origin-point
Open

[WIP] Add support for starting node#42
fillipe-gsm wants to merge 10 commits intomasterfrom
fillipe/21-custom-origin-point

Conversation

@fillipe-gsm
Copy link
Owner

Description

The available solvers provide solutions that always start at 0, with the exception of heuristic solvers solve_tsp_local_search and solve_tsp_simulated_annealing in case the user provides an initial solution x0, in which case it will respect the initial point of x0.

Adding support for any starting node seems to be a typical desired functionality as per the discussion in #21 and in #32.

Work to be done

  • Raise exception if starting node is larger than the number of nodes
  • Check for mismatches between starting node and x0 if provided.
  • [-] Add support for exact solvers
  • [-] Add support for heuristic solvers.

Support for @luanleonardo's solvers will much likely require his help.

@fillipe-gsm fillipe-gsm changed the title Add support for starting node [WIP] Add support for starting node Sep 26, 2023
Add support for creating random solutions respecting starting and ending
nodes, if provided.
Ensure `x0` and either `starting_node` or `ending_node` can be provided
as long as they match the first or last node of `x0`.
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.

1 participant