Page 1 of 1

Planning Restrictions (MaxDistanceBetween . . .)

Posted: Thu May 11, 2017 8:13 am
by MISTERX
By reviewing release notes (Version 1.24) I realized that there are additional restrictions for vehicle available, dealing with the maximum allowed distances between stops.

Seems that these working quite similar to the well known TourRestrictions which enhance PlanningParams.

Is there any experience with the new VehicleRestrictions? How is the logic behind the scenes, does VehicleRestriction dominate TourRestriction?

Re: Planning Restrictions (MaxDistanceBetween . . .)

Posted: Thu May 11, 2017 8:25 am
by Bernd Welter
Hello Mr X,

you are right, we invented some more parameters / properties: since xTour 1.20.0.0 there are VehicleRestrictions which are related 1:1 to a concrete Vehicle instance, so each Vehicle can set his own values for those properties:
VehicleRestrictions<br />since 1.20: maxTransportPointCountPerTour, maxDrivingPeriodPerChain, maxTourCountPerChain<br />since 1.24: maxDistancePerTour
VehicleRestrictions
since 1.20: maxTransportPointCountPerTour, maxDrivingPeriodPerChain, maxTourCountPerChain
since 1.24: maxDistancePerTour
On the other hand there are the transaction-wide TourRestrictions that are applied with the same values for all Vehicles
TourRestricions. Unique in a planning call and refer to all Vehicles.
TourRestricions. Unique in a planning call and refer to all Vehicles.
The only overlap in these parameters is the VehicleRestrictions.maxDistancePerTour versus TourRestrictions.maxDistance.
Whether one of these restrictions dominates the other depends on your perspective:
Both values have to be considered. So if you apply both for Vehicle #666 the minimum of the two values is relevant.

Best regards Bernd