-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partial deliveries in the middle of the route #1158
Comments
I think you're only accounting for the first delivery step here while there are several deliveries in a row at the same place:
If you look at the load at each step, you'll see that after the first round of deliveries the vehicle is empty before starting over for two other pickups. |
Oh wow, I'm blind sorry about that. I had cut out a bit of information from my original problem file thinking it wouldn't impact it as it had our farm numbers and such in it. It seems to be doing it when I have all the vehicles we have in the problem file. Here is the example.
Problem Solution |
Thanks for the update, I can reproduce the problem. What happens here is that the "expected" solution with everything delivered before starting a new round of pickups has exactly the same cost than the one your get, since all deliveries happen at the same place. Internally we currently have no way to hint toward the more sensible solution. This is similar to the problem described in #560, though here the solution is not strictly suboptimal (in the sense of our internal cost evaluation), just inconvenient. Fixing #560 would solve your problem as well. |
That makes sense, I did look at that issue and wondering if I was having that same related problem. I was wondering whether you think this solution would influence the cost enough to provide the expected solution. I was thinking of creating a custom matrix that calculated the current volume on the truck per pickup, but I feel like VROOM is already taking this into account and it will be the same cost as you mentioned. My other thought was when parsing the solution when every I see a delivery in the route I would just assume that it is dropping off the whole load and ignore the delivery quantity. I have tried this change but have found that is still does it in some scenarios unless I didn't compile it or apply is correct. Which is possible as I'm not much of a C programmer and mostly deal with web related tech.
|
This is not a suboptimal result per say (see above comment), still flagging as "too suboptimal" to keep track as it would be nice to improve on the current behavior. |
Hi VROOM team,
I've currently got my problem modelled with shipments and a delivery assigned to each pickup which I have calculated before hand.
But I'm having an issue where I'm having partial deliveries happening in the middle of my route steps (for context we are transporting milk off farms and transporting them to a depot).
That fact that it is doing a deliveries in the middle of the route isn't an issue, but it only delivers 2,221 of the current 18,795 volume is kind of confusing to me as it makes more sense to drop off the full load since you wouldn't be caring around more weight if you continue.
I would assume what it is doing is dropping off two of my shipments off but not the rest.
Is there a better way to model this problem or any work around to either it deliver the full load or deliver only at the end of the route.
Here is the problem and solution files for context, I'm using Valhalla for the routing
Problem
problem.json
Solution
solution.json
Any help with this would be greatly appreciated, and I really appreciate this open source tool and all the work you guys have put into it.
If you need anymore information let me know :)
The text was updated successfully, but these errors were encountered: