Hi!
I am learning to use jsprit and I get a solution that I don’t understand.
Here is the entire java code with a distance matrix provided.
When I submit the same problem to the editor/API, it solves it correctly.
What is the problem with my code? I have attached pictures of how it should solve it and it solves it.
It goes to 1, which is correct because of TW, then it goes to 2 and then to 3 which results in more time and distance. (“is” screen)
The editor/API does it correctly: it goes to 1, then 2, then 3. (“should” screen)
Removal of the TW makes it solve the problem correctly, as it should. (nearest stop from vehicle location, then next nearest, then next nearest)