XTour2 : how to approach breaks / rules / presets

This forum deals with any kind of trip optimization based on xTour1, xTour2 and the Developer APIs "RouteOptimization" and "SequenceOptimization". No matter whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

XTour2 : how to approach breaks / rules / presets

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply