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
successor of maxDistanceBetweenTransportPoints
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
successor of maxDistanceBetweenTransportPoints
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...
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...
Re: successor of maxDistanceBetweenTransportPoints
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.
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: successor of maxDistanceBetweenTransportPoints
And here's an example:
Though the geographic situations are getting better the number of trips increases from 3 to 4 by requesting "AVOID_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...
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...