vrp_parser 0.1.0

A library for parsing VRPLib-formatted files.
Documentation
  • Coverage
  • 90%
    9 out of 10 items documented2 out of 2 items with examples
  • Size
  • Source code size: 624.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 719.67 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s 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

let instance = vrp_parser::read_from_vrplib("example.vrp")?;

Installation

vrp_parser = "0.1"

Status

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

License

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.