This repository provides a minimal example of using the HiGHS solver from Rust, for which we use
the highs crate. The program settings are read from a TOML file, which references CSV files
containing variable definitions and constraints (see example).
We recommend that developers use rustup to install the Rust toolchain. Follow the instructions on
the rustup website.
Once you have done so, select the stable toolchain (used by this project) as your default with:
rustup default stableTo build the project, run:
cargo buildTo run the code with the example input files, you can run:
cargo run example/settings.tomlTests can be run with:
cargo testMore information is available in the official cargo book.
Copyright © 2024 Imperial College London