Hi, I’m new to jsprit and I’m not quite sure whether the problem I have is a feature or a bug. Here’s the explanation.
When I add a series of jobs and then search for the best solution, the best solution seems to change depending on the order of insertion of the jobs.
So if I insert a,b,c, and the optimal route is a->b->c sometimes the best suggestion is the optimal route. But when I change the order to something like say… b->a->c often it’s the case that the best solution doesn’t match the real-world optimal solution.
val delivery: Service =
Service.Builder.newInstance(item.deliveryId).addSizeDimension(WEIGHT_INDEX, 1)
.setLocation(Location.newInstance(item.lat, item.lon)).build()
Driver location was set to 0.0 0.0
and the jobs 1.0 0.0 ; 2.0 0.0 and 3.0 0.0