-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
What language and solver does this apply to?
Python
Describe the problem you are trying to solve.
(VRPTW) Currently working in adding a cost based on total distance travelled by the vehicle --> Rounding off the travel time to the next multiple of 10.
Describe the solution you'd like
A way to modify the optimization objective as per the need. Specifically modify the travel cost of each vehicle to the nearest multiple of 10.
Describe alternatives you've considered
I tried implementing the above using AddDistanceDependentDimension, but I could not find a correct method to do so in Python. Is there any example that I can refer to.
Additional context
What I am trying to do is to optimize route cost in unit of 10.
Eg. If a vehicle travel from time 11 to 34, the usual cost should be 23 units, but since I want to do in units of 10, the cost will be from 10 to 30 which is 20 units. Can anyone please tell me the correct way to do this?
Any help would be really appreciated.