How to set differnt max driving distance for different types of vehicle?
e.g. If I have large, medium, and small vehicles, I want to set max of 180km for small vehicle, 210km for medium vehicle, and 250 for large vehicle.
previously, the max driving distance limit is set all the same via below function:
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/6c6c774c-7967-446e-9583-4011259c8552n%40googlegroups.com.
On Aug 21, 2021, at 04:02, Mr.Pickle <westli...@gmail.com> wrote:
Please note my question is not about define different vehicle capacity, but the max distance limit for different vehicle. Do you mean in above code, I should change routing.AddDimension to routing. AddDimensionWithVehicleCapacity?
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/30cbf13c-cbee-4439-b1e7-5efe7b6ad857n%40googlegroups.com.