Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicle-dependent travel times #394

Closed
K-Leon opened this issue Sep 23, 2020 · 3 comments · Fixed by #450
Closed

Vehicle-dependent travel times #394

K-Leon opened this issue Sep 23, 2020 · 3 comments · Fixed by #450
Assignees
Milestone

Comments

@K-Leon
Copy link

K-Leon commented Sep 23, 2020

First of thanks for this great project 👍

One point I was thinking about is how to handle optimization of vehicles with different speed profiles. (Truck and Car and so on)

Is there already a possibility?

Thanks already!!

@jcoupey
Copy link
Collaborator

jcoupey commented Sep 23, 2020

This is not possible currently because we only store a single matrix for travel time costs so those need to be constant across vehicles. I agree this would be a great new feature for the project. The high-level tasks would be:

  1. Fire several concurrent matrix requests to different routing instances based on vehicle profiles and store access to the relevant matrix from a vehicle perspective.
  2. Replace all travel time lookups with their vehicle-dependant counterpart. This means many changes scattered all over the codebase, touching all critical components: heuristics, local search moves etc.
  3. Adjust the solving approach to account for the fact that vehicles will have different reach (think foot vs bike or car) and are then "expected" to serve different subsets of the tasks.

1 and 2 are pure technical tasks, 2 being more tricky because of the intricate use of travel times throughout solving. I expect 3 would require changes and tuning on the heuristic approaches because some of the current features (e.g. specific route seeding or using regret costs) could lead to poor choices with heterogeneous travel times.

@jcoupey jcoupey changed the title Different Way Time/Cost per vehicle Vehicle-dependent travel times Sep 23, 2020
@K-Leon
Copy link
Author

K-Leon commented Sep 23, 2020

Thanks for considering this as a feature! I‘m not that fluent with C++, but I can offer you any help with testing at a larger scale!

@jcoupey
Copy link
Collaborator

jcoupey commented Jan 27, 2021

Also some of the local search operators currently implicitly rely on travel times being equal across vehicles, so:

  1. Adjust local search operators to account for different travel times between pairs of vehicles.

@jcoupey jcoupey added this to the v1.10.0 milestone Feb 3, 2021
@jcoupey jcoupey self-assigned this Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants