Skills as soft constraint in routing or-tools #2440
Unanswered
PranoyKumar3
asked this question in
Routing (and legacy CP) questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What language and solver does this apply to?
Python
Describe the problem you are trying to solve.
I want a particular set of vehicles to visit a particular set of nodes, and if an order cannot be assigned to a vehicle of the same type (vehicle max capacity reached) then I would want the order to be assigned to other vehicles regardless of it's type.
I know 'AddSoftSameVehicleConstraint' can group the nodes and is a soft constraint, but the function doesn't take the vehicle type into consideration.
Is there any indirect method to implement the above mentioned?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions