dandxy89 / lp_parser_rs

Rust LP file Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Rust LP file Parser

License:Apache License 2.0


Languages

Language:Rust 100.0%