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 stable
To build the project, run:
cargo build
To run the code with the example input files, you can run:
cargo run example/settings.toml
Tests can be run with:
cargo test
More information is available in the official cargo
book.
Copyright © 2024 Imperial College London