lp_parser_rs

Crates.iolp_parser_rs
lib.rslp_parser_rs
version
sourcesrc
created_at2023-11-13 22:05:48.113908
updated_at2024-10-29 20:51:43.034898
descriptionA Rust parser for the LP file format.
homepage
repositoryhttps://github.com/dandxy89/lp_parser_rs
max_upload_size
id1034105
Cargo.toml error:TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Dan (dandxy89)

documentation

README

LP File Parser

Cargo Test Crates.io Documentation

Overview

Logo

A custom Rust LP file parser - this crate leverages the PEST crate for parsing LP files. It is designed and adhering to the following specifications:

Supported LP Specifications

  • Problem Name
  • Problem Sense
  • Objectives
    • Single-Objective Case
    • Multi-Objective Case
  • Constraints
  • Bounds
  • Variable Types: Integer, Generals, Lower Bounded, Upper Bounded, Free & Upper and Lower Bounded
  • Semi-continuous
  • Special Order Sets (SOS)

Crate Features

  • serde: Adds Serde annotations to each of the model Structs and Enums.
  • diff: Adds capability to diff two Structs

Acknowledgements

Test data has been copied from other similar or related projects:

Testers and Contributors

This crate utilised insta for snapshot testing.

cargo insta test --all-features # Run all tests
cargo insta review # Review any changes to the snapshots
Commit count: 119

cargo fmt