mosox 0.0.1

LP matrix generator for GMPL
Documentation

MPTK (MathProg Translation Kit)

Quickstart

Install:

cargo install mosox

Usage overview:

> mosox help

MathProg Translation Kit

Usage: mosox <COMMAND>

Commands:
  check     Check for errors and quit
  generate  Load and output to MPS
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Generate MPS for a model and data file pair:

mosox generate model.mod data.dat > output_file.mps

Development

Please install cargo-make:

cargo install cargo-make

The most useful dev commands are listed in Makefile.toml.

You can view available commands by running cargo make.

Run fmt, lint, check, test:

cargo make ci

Run against the full Osemosys model and Atlantic data:

cargo make run

Docs

  • Grammar - GMPL grammar specification and coverage