CVRPD Visit Node Constraints #2483
Unanswered
burbot48
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment 1 reply
-
|
Don't get it, sorry, did you try to play with PD policy ? (FIFO in your case aka First In First Out) or do you mean you have
solver = routing.solver()
cond = routing.VehicleVar(1) == routing.VehicleVar(3)
non_cond = routing.VehicleVar(1) != routing.VehicleVar(3)
expr_1 = time_dimension.CumulVar(four) <= time_dimension.CumulVar(three)
expr_2 = time_dimension.CumulVar(six) <= time_dimension.CumulVar(one)
solver.Add(solver.Sum[non_cond, cond * expr_1, cond * expr_2] == 1) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
We developed a CVRPD with TW model in python platform and we would like to put a constraint on a model about visiting rule of nodes. The rule is that the vehicle should not visit another specific pick-up point, unless it delivers a demands of a specific pickup point where the vehicle has already visited before.
Let me try to explain with an example :
This constrain does not seem manageable by time matrix due that there are two possibilities. Of course this constraint will be valid incase that these two nodes (point1 and Point2 ) are assigned to the same vehicle.
Could you give me an advise to manage this constraint.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions