An LP matrix generator for GMPL. Compiles GMPL models to MPS format and solves them with HiGHS.
brew tap carderne/mosox-tap brew install mosox
tar xzf mosox-0.6.0-aarch64-apple-darwin.tar.gz sudo mv mosox /usr/local/bin/
tar xzf mosox-0.6.0-x86_64-unknown-linux-gnu.tar.gz mv mosox ~/.local/bin/
cargo install mosox
Compile a model to MPS:
mosox compile model.mod -o output.mps
Compile with a data file:
mosox compile model.mod data.dat -o output.mps
Solve a model:
mosox solve model.mod
Solve with CSV output:
mosox solve model.mod --format csv -o results.csv
Solve with text output:
mosox solve model.mod -o results.txt