Page 1 of 1
successor of maxDistanceBetweenTransportPoints
Posted: Wed Sep 04, 2024 12:59 pm
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
Re: successor of maxDistanceBetweenTransportPoints
Posted: Fri Sep 13, 2024 11:58 am
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.
Re: successor of maxDistanceBetweenTransportPoints
Posted: Mon Sep 16, 2024 7:56 am
by Bernd Welter
And here's an example:
- AvoidIntersections == FALSE , some intersections occur.
- AvoidIntersections == TRUE , no intersections
Though the geographic situations are getting better the number of trips increases from 3 to 4 by requesting "AVOID_INTERSECTIONS"