vrp_parser 0.1.1

A library for parsing VRPLib-formatted files.
Documentation
  • Coverage
  • 90.91%
    10 out of 11 items documented2 out of 2 items with examples
  • Size
  • Source code size: 106.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 779.56 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • fuitt/vrp_parser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fuitt

vrp_parser

A VRPLib parser for Rust. Loads VRPLib-formatted files and constructs VRPInstance values.

Example

// Load with integer (u64) numeric values
let instance = vrp_parser::read_from_vrplib("example.vrp")?;

// Load with floating-point (f64) numeric values
let instance = vrp_parser::read_from_vrplib_f64("example.vrp")?;

Installation

vrp_parser = "0.1"

Status

This is an early release (v0.1.1).

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

License

Licensed under either of

  • Apache License, Version 2.0
  • MIT license

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.