Combination of working hours and time dependent dima?

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
KGaarmann
Posts: 1
Joined: Fri Jul 17, 2020 1:28 pm

Combination of working hours and time dependent dima?

Post by KGaarmann »

Hi Bernd,

We want to perform a tour optimization based on a time dependent distance matrix which also considers the drivers working hours / break- and rest rules. Our request fails with the following error message:
ParameterConflictFault: /PlanToursRequest/planToursOptions/restrictions/workingHours/@workingTimeDirective:EU_2002_15_EC with /PlanToursRequest/distanceMode/@id:created without MultipleTravelTimesConsideration
In the documentation we read that we need a Multiple Travel Times Distance Matrix Which requires xDima and then the distance mode “ExistingDistanceMatrix” (initially we used DirectDistance).
How do we have to change our request to be successful? Is this possible with the current version of the API?

Thanks,
Kevin
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Combination of working hors and time dependent dima?

Post by Bernd Welter »

Hello Kevin,

first of all the xTour should be able to consider a MultipleTravelTimesDima (DistanceMode) under some specific circumstances: if no Break- and rest rule is applied:
DistanceMode : Contains settings that specify how distances are retrieved for tour planning. These settings apply to all vehicles in the request. When using direct distance the driven distances are estimated with a detour factor of 1.38 and for the duration a speed of 60 km/h is assumed. Time dependent and non time dependent distance matrices must not be used together in a request. If time dependent distance matrices are used, no driving time regulation must be set.
So at least the first part of your requirement is possible but requires the following steps:
  • compute a distance matrix through xDima.createDistanceMatrix and retrieve the DimaID
  • set DistanceMode in the planToursRequest to "ExistingDistanceMatrix" and use the DimaID from above
Maybe you can send your request to me via email (bernd.welter@ptvgroup.com) for an analysis?

Best regards,
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