Custom Constraint: Visit one of the two nodes only #2596
Unanswered
mertbakir
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment
-
|
did you try to use |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add a custom constraint to CVRPTW. Let's say I have 2 nodes and I want only one of them to be visited.
So, whichever of them is visited, other must be dropped without cost.
One step further, let's say we have n(5) nodes and I want at_least k (3) of them to be visited.
I couldn't figure out how to implement such constraints. Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions