hschneid / xfvrp

Fast and easy solver for a lot of Vehicle Routing constraints
MIT License
8 stars 4 forks source link

Unnecessary waiting time when considering time windows #43

Open larsupb opened 2 years ago

larsupb commented 2 years ago

Using xfvrp with time windows currently leads to the follow situation:

Xfvrp schedules a vehicle in the way, that it arrives the first customer on its earliest possible opening time. Let's say, the customer opens at 200, then the vehicle will arive on 200. However, there may be more customers on the route which also have time windows. For example, if the second customer on the route has an opening time of 300, the vehicle would arrive on 250 (50 minutes for service time at first customer and travelling time towards second customer). So there is a waiting of 50 minutes, which isn't necessary at all. The vehicle could have startet its tour 50 minutes later.

Is it possible to minimize waiting time?

HolgerSchneider commented 2 years ago

I see, that we already can give a max waiting time to vehicle.

So, you request is valid, and I need to change the evaluation routine, so that it can detect the latest departure with min waiting time.

What do you think? Did I miss something?

larsupb commented 2 years ago

Looks good to me. Should give it a try.

hschneid commented 2 years ago

After some thinking, I have something more to discuss:

What do you think?