mosox — LP matrix generator for GMPL

# mosox

An LP matrix generator for GMPL. Compiles GMPL models to MPS format and solves them with HiGHS.

github.com/carderne/mosox

## Download v__VERSION__

Windows macOS (Apple Silicon) Linux

## Install

1. Download the latest version using the link above
2. Unzip it to a useful location
3. Run commands below from the same location as the extracted mosox.exe

    brew tap carderne/mosox-tap
    brew install mosox

1. Download the latest version using the link above
2. Extract it and move it to a useful location using the instructions below

    tar xzf mosox-__VERSION__-aarch64-apple-darwin.tar.gz
    sudo mv mosox /usr/local/bin/

1. Download the latest version using the link above
2. Extract it and move it to a useful location using the instructions below

    tar xzf mosox-__VERSION__-x86_64-unknown-linux-gnu.tar.gz
    mv mosox ~/.local/bin/

    cargo install mosox

## Usage

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