How to Make a overnight stay depending on distance to home

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Post Reply
frank.essenberger
Posts: 12
Joined: Mon Feb 29, 2016 2:26 pm

How to Make a overnight stay depending on distance to home

Post by frank.essenberger »

Hello everybody,

in our current project we would like to model the following behavior: Depending on a critical distance to the home location, the driver should return to his home depot or make a overnight stay. Is such a thing possible?

Regards
Frank Essenberger
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to Make a overnight stay depending on distance to ho

Post by Bernd Welter »

Hello Frank,

I just saw that your requirement has already been described in an older posting:
http://xserver.ptvgroup.com/forum/viewt ... =108&p=274

There is no direct distance related parameter but of course the relation between the vehicles costs (per distance, per time) and the overnight stay (costs per hotel night) are balanced and we return the cheapest solution that matches the constraints such as
  • maximum number of overnight stays
  • overnight patterns
Does this answer the question?
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:
frank.essenberger
Posts: 12
Joined: Mon Feb 29, 2016 2:26 pm

Re: How to Make a overnight stay depending on distance to ho

Post by frank.essenberger »

Yes this answers the question. Just to put this also in the Java API context I am using. We have on the one site the car object:

Vehicle-> VehicleCosts->costsPerKm, fixedCosts...

and on the other site the planning parameters object passed to planOvernightTour method:

OvernightParams->costPerUnplannedCustomer, costPerOvernightStay

Internally, the optimal (cheapest) solution is found be comparing the costs for driving home each night or taking a hotel.
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to Make a overnight stay depending on distance to ho

Post by Bernd Welter »

Yes - we consider the various cost relevant properties of the vehicle plus the overnight params.
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