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

VRPLIB v2 #114

Open
13 tasks
leonlan opened this issue Mar 1, 2024 · 1 comment
Open
13 tasks

VRPLIB v2 #114

leonlan opened this issue Mar 1, 2024 · 1 comment

Comments

@leonlan
Copy link
Member

leonlan commented Mar 1, 2024

This issue keeps track of plans for a new major release of VRPLIB. This is a long-term goal and will be developed in parallel with the needs of PyVRP.

vrplib (v1) was originally designed to support any kind of free-form VRPLIB instance, mainly because the VRPLIB format was not well defined. Its main use cases were reading the instances for the CVRP X-instances, the VRPTW EURO-NeurIPS instances and some of the LKH-3 instances.

PyVRP is continuously adding support for new VRP variants and we are extending the VRPLIB format to support this. At some point, we will have a large collection of VRPLIB instances and a better well-defined format.


In view of these developments, I propose the following todos for the next major release:

  • A well-defined VRPLIB format for many VRP variants. Basically https://pyvrp.org/dev/supported_vrplib_fields.html combined with the current README.
    • Supersede TSPLIB #94. We should probably not supersede TSPLIB95, because it contains a lot of specifications that are just not relevant. But we should definitely take inspiration from TSPLIB95.
    • Parse non-tabular section data #108. I don't know yet if we should support non-tabular data sections.
    • Handle rounding conventions #111. A common annoyance in benchmarking is how to deal with rounding conventions. This should be better defined.
    • This VRPLIB format definition can be version-controlled and could evolve together with the vrplib package.
  • Reading instances and solutions should return a Instance or Solution object with well-defined VRPLIB attributes.
    • It would be nice to keep a flexible way of reading VRPLIB instances with undefined specifications/sections, so that we can easily extend the VRPLIB format.
    • Validate instance and solution data #99. If we have a well-defined format, we can also validate if an instance is VRPLIB-style or not.
    • We can switch over to a parsing grammar like lark or pyparsing.
  • Maintain a library of VRPLIB instances
    • We already do this in PyVRP/Instances, but we only keep selected instances for benchmarking. There are many more VRPLIB instances that I have created that we don't have a place for anywhere. It would be nice to have these stored somewhere as well for others to use.
  • Drop support for downloading instances. This is a legacy feature that originated from when this package was called cvrplib.
  • Read/write should be a no-op, meaning that when you read an instance and then write the instance, then this give precisely the same instance again.
  • Drop support for Solomon instances.
@N-Wouda
Copy link
Member

N-Wouda commented Mar 17, 2024

[ ] Read/write should be a no-op, meaning that when you read an instance and then write the instance, then this give precisely the same instance again.

I was going to write this out into a separate issue, but since it's already tracked here I won't have to :). It'll be good to have this in because it makes adapting instances to VRPLIB much easier.

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

No branches or pull requests

2 participants