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:
Try it out using the following command line;
git clone https://github.com/dandxy89/lp_parser_rs.git &&
cargo run -- {{PATH_TO_FILE}}
- 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)
serde
: AddsSerde
annotations to each of the model Structs and Enums.diff
: Adds capability to diff two Structs
Test data has been copied from other similar or related projects:
This crate utilized insta
for snapshot testing.
cargo insta test --all-features # Run all tests
cargo insta review # Review any changes to the snapshots