Repeating job at same address served by same vehicle #105
-
As the title states, I was looking for an option / constraint to serve jobs at the same address / coordinates always by the same vehicle. In other words: I don't want two or more different jobs to be served by the same vehicle. We sometimes have requests from clients who have keys (in fact one key only) that they can hand out in the beginning of a tour but they cannot pass them around. I tried searching the docs with key words and even semantically (export the docs as pdf, copy all text to SemanticFinder, search with a query) but I couldn't find anything related. Is this already possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi, You can use a
https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/jobs.html |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the quick answer! This group constraint seems to be exactly what I was looking for, e.g. one could use a hash from the coordinates/address/address-ID as group name right? Or even go further and use e.g. raster cell IDs or hexagon IDs, to come a little closer to "spatial coherence" that many clients require for facilitated planning. It would be very interesting to run some experiments with this or even add a "spatial coherence" factor through automatic gridding. What exactly do you mean by
Do you mean if the jobs on one address have e.g. different timewindows etc.? That's expected, or did you mean something else? By the way I am still totally mind-blown how many hyper-complex scenarios you can tackle with VRP, definitely awesome work! We don't have a testing environment yet, but as soon as we created it, I'll make sure to update you on our benchmarks etc.. |
Beta Was this translation helpful? Give feedback.
-
As a short follow-up-question: Or could I use the clustering algorithm here in some way? It's for this scenario: #118 |
Beta Was this translation helpful? Give feedback.
Hi,
ideally, such jobs should be scheduled to the same vehicle and the same stop as it leads to more optimal solution in most of the cases, but it is not guaranteed (e.g. search quality or constraint violation).
You can use a
group
constraint on the job, which will force assignment to the same vehicle, but still it might be different stops:https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/jobs.html