mptk

Crates.iomptk
lib.rsmptk
version0.1.3
created_at2025-11-06 11:40:14.251671+00
updated_at2025-11-06 13:06:31.969798+00
descriptionMathProg Translation Kit
homepage
repositoryhttps://github.com/carderne/mptk
max_upload_size
id1919493
size235,536
Chris Arderne (carderne)

documentation

README

MPTK (MathProg Translation Kit)

Objectives:

  • A grammar capable of parsing GMPL .mod and .dat files
  • Complete internal representation (IR) of parsed models and data
  • Collate model and data sections
  • Interpret functions, domains etc in the model
  • Output to MPS

Quickstart

Install

cargo install mptk

Usage

mptk osemosys.mod atlantis.dat

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
Commit count: 0

cargo fmt