A VRPLib parser for Rust.
Loads VRPLib-formatted files and constructs VRPInstance values.
let instance = vrp_parser::read_from_vrplib("example.vrp")?;vrp_parser = "0.1"This is an early release (v0.1.0).
Currently supported VRPLib sections:
- NAME
- TYPE (CVRP only)
- COMMENT
- DIMENSION
- EDGE_WEIGHT_TYPE (EXPLICIT and EUC_2D only)
- EDGE_WEIGHT_FORMAT (LOWER_ROW only)
- EDGE_WEIGHT_SECTION
- NODE_COORD_TYPE (TWOD_COORDS only)
- NODE_COORD_SECTION
- CAPACITY
- DEMAND_SECTION
- DEPOT_SECTION
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless stated otherwise, contributions are dual licensed under the same terms.