Page 1 of 1

xTour 1 - Dima with airlinedistance / airlinespeed

Posted: Wed Jun 23, 2021 3:28 pm
by Lauterfeld
Hi Bernd,

is it possible to instruct xTour 1 not to generate the dima with roadbased routing but to calculate the dima with airlinedistance and airlinespeed? I think the good old eTour was able to do that?

Regards,
Volker

Re: xTour 1 - Dima with airlinedistance / airlinespeed

Posted: Wed Jun 23, 2021 3:46 pm
by Bernd Welter
thats pretty easy: just don't provide a DIMA ID at the vehicle ;-)

BaseVehicle says:
dimaId Integer
The unique key to identify the distance matrix used with this vehicle (see DistanceMatrixCalculation). If the direct velocity is used, this parameter can be left empty.

Re: xTour 1 - Dima with airlinedistance / airlinespeed

Posted: Thu Jun 24, 2021 4:24 am
by Joost
You do actually have to set the directVelocity or else xTour will complain that you are not providing dima information. You can find the parameter on the PlanningParams . Common value we use is 64.

Re: xTour 1 - Dima with airlinedistance / airlinespeed

Posted: Thu Jun 24, 2021 8:20 am
by Bernd Welter
Hello Volker,

Taken from the planning params...
  • Integer directVelocity : Assumed this speed ([km/h], > 0) for calculating the distances as the crow flies. If this parameter is set, the array of distance matrices will be ignored.
  • Double directDistanceFactor : This factor is used if directVelocity is set (optional, >= 0). If set to 0.0, the default value from conf/TourOpt.ini is taken.
Bernd

Re: xTour 1 - Dima with airlinedistance / airlinespeed

Posted: Thu Jun 24, 2021 2:01 pm
by Lauterfeld
Thanks alot!!!!