Tours over several days?

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.

Tours over several days?

Postby couplink-dev » Wed Dec 19, 2018 2:05 pm

Hello there,

Some of our orders are so far away from the depot that we can’t reach them within a single working day without violating the maximum driving time. This causes them to remain unscheduled and even the vehicle is not used. Is it possible to parametrize the transaction in a way that a vehicle starts on a first day, delivers some of the orders, stays away from the depot over the night and continues the tour the next day incl. delivering some more orders on its way back? What are the required parameters for such a scenario?

Best regards,
Posts: 2
Joined: Wed Jun 13, 2018 2:58 pm

Re: Tours over several days?

Postby Bernd Welter » Wed Dec 19, 2018 3:02 pm

Hello Tim,

the answer depends on the interface you want to use:

xTour1 provides a vehicle property "toursMustFitIntoSingleOperatingInterval":
  • toursMustFitIntoSingleOperatingInterval=true: the vehicle has to return to the depot by the end of an interval. This is what happens if you restrict the driver to return on a single day.
    Driver has to return on each day. Therefore two tours are created
  • toursMustFitIntoSingleOperatingInterval=false: the vehicle doesn't have to return within each interval but is allowed to stay outside.
    Driver can remain away from the depot at the end of the first interval.
  • Furthermore we even offer a specific usecase or method which is called planOvernight: this special function decides on a financial base whether staying outside is better (compares distaance based savings with additional hotel based costs).
    Overnight usecase: Hotel cheap but TUESDAY belongs to family (want to be home)? Two partial tours:
    tour 1=MON morning to TUE evening.
    tour 2=WED morning to FRI evening.

Within xTour 2 the Driver has a property operatingIntervals[] which is restricted to 1 element (within 2.9, this is subject to change - please check the latest API DOC) and so an overnight stay isn't possible at the moment (Dec. 2018): ... xtour.html#com.ptvgroup.xserver.xtour.Driver

Does this answer your question?

Best regards,
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1395
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xTourServer