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

General Question : Is it possible to have some of the routes span multiple days in periodic VRP ? #40

Closed
sumi1234 opened this issue Jun 26, 2020 · 8 comments
Assignees

Comments

@sumi1234
Copy link

Thanks again for developing this library and the prompt responses to all of the issues. It is a great alternative to ORTools for VRP problems and much easier to use !!

Is it possible to have some of the routes span multiple days in periodic VRP ? e.g. I am planning routes over a month and some customers are very far away, requiring a round trip spanning multiple days. Something like below -

Day 1, Route 1 -> Source -> Customer 1
Day 2, Route 1 -> Customer 1 -> Sink ( Back to Depot ) -> Customer 2 -> Sink

Any direction or links where you have seen this implemented would also be great. I understand that multiple trips may or may not fit into the existing code-base easily.

@Kuifje02
Copy link
Owner

Kuifje02 commented Jun 26, 2020

Thanks again for developing this library and the prompt responses to all of the issues. It is a great alternative to ORTools for VRP problems and much easier to use !!

Thanks for your kind words. Having feedback like yours is what make such librairies possible !

Is it possible to have some of the routes span multiple days in periodic VRP ? e.g. I am planning routes over a month and some customers are very far away, requiring a round trip spanning multiple days.

There are two features in your request :

  1. Multiple trips. Right now, multiple trips are not featured in vrpy. But, it is definitely something to add on the TO DO list, which is bigger and bigger every day! In the mean time, you could solve the problem and then merge compatible routes yourself. Merging may imply to change start times, but I think this would not be too hard. I may need more information to fully understand your problem. May I contact you privately by mail (r.montagne@hotmail.fr)?

  2. Routes spanning multiple days. I don't think this is a problem either, but probably I am missing some of the tricky stuff.

If you have a toy data set, perhaps we could look into this more attentively.

@sumi1234
Copy link
Author

sumi1234 commented Jun 26, 2020

Multiple trips. Right now, multiple trips are not featured in vrpy. But, it is definitely something to add on the TO DO list, which is bigger and bigger every day! In the mean time, you could solve the problem and then merge compatible routes yourself. Merging may imply to change start times, but I think this would not be too hard. I may need more information to fully understand your problem. May I contact you privately by mail ?

@Kuifje02 really appreciate the support ! Have sent you an email with the toy dataset and code I am using

@Kuifje02 Kuifje02 self-assigned this Jun 30, 2020
@Kuifje02
Copy link
Owner

Kuifje02 commented Sep 3, 2020

closing for now

@Kuifje02 Kuifje02 closed this as completed Sep 3, 2020
@guifcoelho
Copy link

Hello! I know that this issue is closed but I have a use case very similar to this one. I have routes with very distant delivery points, where the entire round trip could take up to 2 to 3 days.

Do you have plans to include this feature on a new release?

@Kuifje02
Copy link
Owner

Kuifje02 commented Jan 3, 2021

Actually, I am not sure why the current version could not handle this. What happens if you try solving it as is ?

@guifcoelho
Copy link

guifcoelho commented Jan 3, 2021

Sorry, I've just realized I may have missed the topic. I don't have a periodic problem. I have a vrp with time windows. However, my routes as long, and so the time windows must be repeated over different days.

For example:

  • If a delivery point is served on the first day of a route, it must be served within windows W1 e W2.
  • But, if the same delivery point is served on the 2nd day (on a different scenario run), it must respect windows W1+24 and W2+24.
  • This should go on for day 3, 4, etc.., repecting the max duration parameter.

Another option would be to provide multiple time windows as input.

Do you have any idea if I can run something like this with VRPY?

@Kuifje02
Copy link
Owner

Kuifje02 commented Jan 4, 2021

This is indeed a different topic, and I have opened an issue dedicated to multiple time windows. Currently, this is not supported unfortunately.

@guifcoelho
Copy link

Hello! Thank you for the response. I will keep track of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants