Obvious bad solutions #4453
Unanswered
mabilinab
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment
-
but how does that impact the tour? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I've a got a little issue with my current setup: my code keeps returning obviously bad solutions despiting trying many different setups (PATH_CHEAPEST_ARC+GUIDED_LOCAL_SEARCH or PARALLEL_CHEAPEST_INSERTION+SIMULATED_ANNEALING etc..).
You can find a code to test this, but you can take a look at the recommended optimized route – the algorithm suggests following the order 23,19.
While it could have recommended
Here's the recommended order:
Optimized route: [0, 18, 11, 9, 24, 13, 17, 23, 19, 4, 27, 2, 21, 5, 15, 6, 3, 12, 20, 26, 16, 10, 14, 8, 1, 7, 22, 25]FYI: this is a asymmetric TSP
Here's the full Python code:
To investigate the matrix, you can use a code beautifier to simplify looking at the matrix.
Beta Was this translation helpful? Give feedback.
All reactions