-
Notifications
You must be signed in to change notification settings - Fork 55
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
TW.CLOSE or OPEN Issue #14
Comments
Also I was thinking, what if you have timewindows, for the individual nodes, but also an overall time window? So you both have L and tws? Because right now it only runs L if not tws. So that tws are met within a given timecontraint L. |
Okay so I think I solved my forst issue, another thing you still have a TODO comment in your code? can you tell me more about what that part is about (what's missing) :) thank you so much Regards Line |
Additionally I thought about the fact that to seems like if demand for a single node is greater than C, it will take it as one route, but it would actually need to be split into two routes :) |
Hi Line, great to hear you were able to resolve some of the issues. The Regarding the TODOs. Only the parallel savings in the
The placeholder for the VRPTW savings code is here. Was the TODO you referred to related to implementation of the savings function? Feel free to implement a savings criteria with similar call signature as |
Unfortunately VeRyPy does not support this variant of VRP (that is VRP with split deliveries, for which sometimes the abbreviation of SDVRP is used). I'm not too knowledgeable on the heuristics that are used to tackle this problem, but perhaps you can tailor the code to add that support. In addition, with an impact to solution quality, you can split too large deliveries in a preprocessing step. |
Are you referring to line 192 in the vrptw_savings branch? The TW constraints have been checked just before this branch. The condition in the L constraint check branch on TWs is there just to avoid updating If you referred some other part of the code, could you post a permalink to the file and line, thanks. |
Also, if you would like to have a short chat e.g. in Teams on the current state of VRPTW support in VeRyPy, do not hesitate to drop an invitation to my email (can be found form my github profile). ;) |
Closed as answered question on incomplete feature (VRPTW support). |
Hi, I have tried to run your code for the vrptw and its is working perfectly for the arp, but I have an issue when timewondows are applied,
The following line is causing the issue: "wait_times = [max(0, ctrs['TWs'][i][TW.OPEN]-D[0,i]) for i in range(0,N)]".
Python gives me an error that "'int' object is not subscriptable", which I found out lies in the ctrs['TWs'][i][TW.OPEN] part of it.
Do you also have this issue or does it work with you?
Thank you so much on beforehand.
Regards
Line
The text was updated successfully, but these errors were encountered: