grb 3.0.1

A Rust API for Gurobi optimizer
Documentation
1
2
3
4
5
6
7
use grb::Model;

pub fn load_model_file_from_clarg() -> Model {
    let filepath = &std::env::args().nth(1).expect(
        "Binary requires an .lp file as argument (run one of the other examples first to obtain one)");
    Model::from_file(filepath).unwrap()
}