You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
I am using Capacitated Vehicle Routing Problem with Time Windows model. In our case drivers (vehicles) are working with shifts, so I need to set vehicle availability time. Is there a way to do this?
Thanks!
The text was updated successfully, but these errors were encountered:
I set the vehicle end time using Set Range method-
long index = routing.End(vehicle_id);
time_dimension.CumulVar(index).SetRange(start, end);
But it was taking approximately 2 hr to give the results.Then I followed the above approach using dimension to set the vehicle end time -
routing.AddDimension(timeEvaluator, 0, maxTime, True, "MAXTIME")
and performance improved a lot .From 2 hr, it give me results in 15 min.
I just want to know the difference between the two .Why there is such huge difference in both approaches.
Hi guys,
I am using Capacitated Vehicle Routing Problem with Time Windows model. In our case drivers (vehicles) are working with shifts, so I need to set vehicle availability time. Is there a way to do this?
Thanks!
The text was updated successfully, but these errors were encountered: