Page 1 of 1

XTour2 : how to approach breaks / rules / presets

Posted: Tue May 09, 2023 4:13 pm
by Bernd Welter
Cheers,
How do we deal with driver breaks:
Can we set manual preset breaks in conjunction with break parameters for PTV to consider both?
Well, as you may know we offer different alternative mechanisms to activate the handling of breaks / rests:
  • Standard Rules : com.ptvgroup.xserver.tourplanning.WorkingHours (Defines the rules regarding drivers' working hours. Drivers' working hours are only active if this member is set.)
  • Break Periods within given time intervals : com.ptvgroup.xserver.xtour.BreakInterval (List of intervals within which the driver wants or needs to take a break. Intervals must be pairwise disjoint. The list must be empty if working hours are set. If any break interval contains a GDF time domain, a planning horizon is required.)
  • Custom rules com.ptvgroup.xserver.tourplanning.ConfigurableWorkingHours (Defines configurable rules regarding drivers' working hours. This value may only be set if working hours, maximum travel time per tour, maximum driving time per tour are not set.)
  • Typical presets for “custom rules” : com.ptvgroup.xserver.tourplanning.ConfigurableWorkingHoursPreset (For the user's convenience, a preset can be chosen for the configurable working hours. Every preset stands for a pre-defined parameterization of the included rules and total time limits. Using a preset means that conversely, the configurable working hours must not be set additionally.)
And here's how they match with each other:

:!: If you deal with Custom Rules you do not need StandardRules or Presets.
:!: Within a single request you can not activate more than one of those parameters. Which also means that you can't combine Custom Rules with Break Periods.

Thanks to Christian for the summary!

Bernd