How to construct REMAINING_PERIODS for realtime planning

This forum deals with any kind of trip optimization based on xTour1, xTour2 and the Developer APIs "RouteOptimization" and "SequenceOptimization". No matter whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Post Reply
GuenterWestphal
Posts: 5
Joined: Thu Jul 28, 2016 11:52 am

How to construct REMAINING_PERIODS for realtime planning

Post by GuenterWestphal »

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
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to construct REMAINING_PERIODS for realtime planning

Post by Bernd Welter »

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
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... :twisted:
nikersch
Posts: 4
Joined: Mon May 08, 2017 6:38 am

Re: How to construct REMAINING_PERIODS for realtime planning

Post by nikersch »

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!
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to construct REMAINING_PERIODS for realtime planning

Post by Bernd Welter »

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 as part of the output of a previous calculateAdvancedTour
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
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... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to construct REMAINING_PERIODS for realtime planning

Post by Bernd Welter »

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
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... :twisted:
nr-tis
Posts: 7
Joined: Mon Feb 13, 2017 1:18 pm

Re: How to construct REMAINING_PERIODS for realtime planning

Post by nr-tis »

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
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to construct REMAINING_PERIODS for realtime planning

Post by Bernd Welter »

Hi there,

nothing you can test so far but work is in progress.
Here's a little experimental teaser
Upcoming... ExecutionState...
Upcoming... ExecutionState...
Let's see wether 2.14 will already offer this.

Best regards,
Bernd
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... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to construct REMAINING_PERIODS for realtime planning

Post by Bernd Welter »

just found this post. In the meantime we added a lot more flexibility to the topic "break- and rest rules"...

Drivers work logbook, flexible rules, configurable working hours and more

Check the API doc!

Best regards,
Bernd
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... :twisted:
Post Reply