successor of maxDistanceBetweenTransportPoints

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: 2664
Joined: Mon Apr 14, 2014 10:28 am
Contact:

successor of maxDistanceBetweenTransportPoints

Post by Bernd Welter »

Hi there,

One of my customers uses com.ptvag.xserver.xtour.TourRestrictions.maxDistanceBetweenTransportPoints within xTour1 to control the "compactness" of tours.

Is there something similar in xTour2?

What other approaches can we use within xTour2 to push geographic shapes of tours?

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:
User avatar
kleffa
Posts: 3
Joined: Thu Aug 24, 2017 11:27 am

Re: successor of maxDistanceBetweenTransportPoints

Post by kleffa »

There is no direct successor. If "compactness" is the intended objective, one can set planToursOptions.tweaksToObjective.avoidIntersections to true:
If this parameter is set to true, the focus is to avoid intersections of edges, where an edge is a straight line drawn between two consecutive stops in a trip. The number of tours may be higher compared to the result when this parameter is set to false. If the calculation mode is set to avoid intersections, this must be set, otherwise an exception is thrown.
User avatar
Bernd Welter
Site Admin
Posts: 2664
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: successor of maxDistanceBetweenTransportPoints

Post by Bernd Welter »

And here's an example:
AvoidIntersections == FALSE , some intersections occur.
AvoidIntersections == FALSE , some intersections occur.
AvoidIntersections == TRUE , no intersections
AvoidIntersections == TRUE , no intersections
Though the geographic situations are getting better the number of trips increases from 3 to 4 by requesting "AVOID_INTERSECTIONS"
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