tour not created by xTour

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
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

tour not created by xTour

Post by puissancei »

Hello,

I need to send to xTour one tour not created by xtour with some transport order.
So I need to create an object kind of inputPlan to send to xTour.

Can you tell me the best way ?

Thank you
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: tour not created by xTour

Post by Bernd Welter »

Hello Michel,

I need more details to give a proper description. Do you simply want to evaluate whether the given tour violates constraints? Or do you need to improve the quality of the tour?

Of course it is important to separate those usecases from each other because you have to choose the proper planning params class (check http://xserver.ptvgroup.com/forum/viewt ... ?f=6&t=489).

But I really recommend that you describe the users story (without mentioning the xServers) and then Clement or I can tell you what you have to do.

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:
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: tour not created by xTour

Post by puissancei »

Hello,

The scenario is very simple : I need to use an existing tour to create an optimization.

- I add the tour (not created by xTour).
- I add some independant order.
- The initially added tour can be modified (order, duratin, add order....).

- I ask to xTour to organize this.

I saw the topic but if you can give me your experience return...

Thank you
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: tour not created by xTour

Post by Bernd Welter »

Hello Michel,

sounds like you have to provide
  • a set of orders, scheduled ones and unscheduled ones. Let's call the scheduled ones SO1, SO2, SO3, ... and the unscheduled ones UO1, UO2, UO3, ... So the total array of orders is {SO1, SO2, SO3, ..., UO1, UO2, UO3, ...}
  • then you need the input plan including the tour based on the scheduled orders: plan.chains[0].tours[0].tourPoints[..] = {SO1,SO2, SO3...}
  • the planning class you'd like to use, e.g. StandardParams
that's it.
michel.request.xml
Request based on the orders 1000, 1001, ...1005. The input tour is based on a previous call and contains Depot-1003-1000-1001-1002-Depot. So the orders 1004 and 1005 are unscheduled before the call.
(31.05 KiB) Downloaded 464 times
Input tour
Input tour
michel.response.xml
The result plan is then DEPOT-1003-1000-1001-1002-1004-1005-DEPOT
(18.8 KiB) Downloaded 453 times
Output tour
Output tour
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:
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: tour not created by xTour

Post by puissancei »

Thank you Bernd.

Another question about this.

In my test the new order are well added but the why the initial plan is not modified to reorder the tour points if it's better.

see xtour log attachement
Attachments
xtour-server.log.xml
(155.71 KiB) Downloaded 453 times
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: tour not created by xTour

Post by Bernd Welter »

Hello Michel,
from what I see in your request you deactivated all the sequencing and the improvement steps which might lead to further improvements.
then green and the bronze block are part of input and output without an change in the internal sequence.
then green and the bronze block are part of input and output without an change in the internal sequence.
Activate those steps and you get even better results.

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:
puissancei
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: tour not created by xTour

Post by puissancei »

YES.... of course !!!!!!!!

Thank you
Post Reply