How to construct REMAINING_PERIODS for realtime planning

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

How to construct REMAINING_PERIODS for realtime planning

Postby GuenterWestphal » Fri Feb 10, 2017 1:35 pm

Hello everybody,

we want to use xtour / xroute during the execution of tours. Our telematics system provides data such as remaining driving periods of our drivers but we can’t see how to create the string that is necessary as input parameter, namely the string remainingPeriods in DriverSettings. Is there a documentation and/or, preferably, a code snippet available? Any hint will be much appreciated!

Kind Regards,

Günter Westphal
GuenterWestphal
 
Posts: 5
Joined: Thu Jul 28, 2016 11:52 am

Re: How to construct REMAINING_PERIODS for realtime planning

Postby Bernd Welter » Fri Feb 10, 2017 2:26 pm

Hi there,

I understand your usecase and forwarded it to our product management who already confirmed to put it on the priority list:

  • no guarantee for final consideration
  • but valuable input for further improvements in module xTour2

For now the parameter can only be used in combination with a previous call due to the missing documentation.
We'll see. Thanks for the recommendation,

Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: How to construct REMAINING_PERIODS for realtime planning

Postby nikersch » Mon May 22, 2017 7:15 am

Hello,

we would also like to provide the remaining driving hours for a driver to call calculateAdvancedTour(). I found an example in a public log-file on the web:
Code: Select all
"remainingPeriods":
"22 serialization::archive 9 0 2 0 0 1 3 0 3 0 0 0 0 16200 0 0 0 1 0 39600 0 288000 0 0 3 2147483647 2147483647 2147483647 0 0 0 0 0 1 0 0 0 288000 0 0 892800 0 0 288000 0 0 6 0 0 0 288000 0 0 0 0 0 0 0 0 0 3 0 0 34388 2147483647 0 34388 0 4 0 16200 900 1800 0 39600 10800 32400 32400 3 32400 36000 2 604800 86400 0 518400 201600 162000 324000 345600 0 1800 2700 21600 32400 900 28800 172800 39600 0 0 0 0 0 0 0 0 0",
but dont know how to interpret that in detail.

Given a driver regulation that says that after 4h driving there is a 1h break, I want to call the calcAdvancedTour with e.g. remaining drive time 2h. The expected behaviour then is that for the first section the driver has 2h of driving left followed by a 1h break and then again 4h driving.

Thank you!
nikersch
 
Posts: 4
Joined: Mon May 08, 2017 6:38 am

Re: How to construct REMAINING_PERIODS for realtime planning

Postby Bernd Welter » Mon May 22, 2017 7:42 am

Hi together,

the string itself is not documented and the interface is simply able to understand the remaining periods that are returned by a previous routing.
remaining periods.PNG
Remaining Periods as part of the output of a previous calculateAdvancedTour

From my current understanding, the documentation or simplification of such a parameter isn't part of future xRoute 1.X versions but a hot topic for xTour 2.

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

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

Re: How to construct REMAINING_PERIODS for realtime planning

Postby Bernd Welter » Thu Jun 28, 2018 7:54 am

Hi there,

I received a statement from DEV about "when and how will we implement the available break- and rest credits?":
  • The topic is on our roadmap for xServer2.
  • We do not have a concrete "short term" schedule for it so far
  • We do not expect this to be available in 2018.
So I do not expect this to be part of the xServer1 at all...
Bets regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: How to construct REMAINING_PERIODS for realtime planning

Postby nr-tis » Thu Jul 04, 2019 3:30 pm

Hi Bernd,

can you give us an update for this feature in xserver2? Is it already implemented and available in xserver2 internet?

Best Regards,
Norbert
nr-tis
 
Posts: 6
Joined: Mon Feb 13, 2017 1:18 pm

Re: How to construct REMAINING_PERIODS for realtime planning

Postby Bernd Welter » Thu Jul 04, 2019 3:44 pm

Hi there,

nothing you can test so far but work is in progress.
Here's a little experimental teaser
ExecutionState.PNG
Upcoming... ExecutionState...


Let's see wether 2.14 will already offer this.

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

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


Return to PTV xTourServer

cron