Prefer visiting tsp nodes while leaving the depot vs. returning to the depot. #2497
Replies: 2 comments 1 reply
-
I suppose the issue is that when you're travelling through a location and returning through it in exactly the same way, it doesn't matter whether you complete it on the way there or on the way back. In the image below, you could do Is there a way to cause the vehicle to prefer visiting nodes on the way out instead of on the way back? |
Beta Was this translation helpful? Give feedback.
-
IIRC it is a side effect of the heuristic, since when adding node one by one |
Beta Was this translation helpful? Give feedback.
-
I'm running the start_ends example with the data model as below. I haven't changed any other code. The data has 4 repeated locations: 1, 2, 3, 6. The solution that I receive is
0 -> 6 -> 9 -> 7 -> 8 -> 1 -> 2 -> 3 -> 5 -> 4 -> 10
. I don't quite understand why the repeated locations wouldn't occur sequentially (6 is visited separately from 1, 2, 3).Beta Was this translation helpful? Give feedback.
All reactions