How to prohibit parallel visits (overlapping visits) when delivering split demands? #3950
Unanswered
FernandoDeAlmeidaAc
asked this question in
Routing (and legacy CP) questions
Replies: 2 comments 1 reply
-
Did you find a solution to this? I am trying to solve the same problem... |
Beta Was this translation helpful? Give feedback.
1 reply
-
You should model a ressource constraint: https://developers.google.com/optimization/routing/cvrptw_resources |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
Problem description:
I have a VRP where some demands are greater than the vehicles' capacity.
What I tried:
I split the big demands in multiples nodes to deliver them separately. However, these nodes that represent the same location are receiving visits from multiple vehicles at the same time, which the problem does not allow.
To avoid parallel visits, I implemented the following constraint:
What I cannot solve:
I used the "MakeDisjunctiveConstraint" function to prohibit overlapping visits, but it doesn't work. I never used this function before, so maybe I'm doing something wrong. Is there a way to use this function differently or use another function to avoid parallel visits?
I'm implementing in c++.
Beta Was this translation helpful? Give feedback.
All reactions