ommx.mps

Functions

load_file(→ ommx.v1.Instance)

write_file(instance, path)

Outputs the instance as an MPS file.

Module Contents

ommx.mps.load_file(path: str) ommx.v1.Instance
ommx.mps.write_file(instance: ommx.v1.Instance, path: str)

Outputs the instance as an MPS file.

  • The outputted file is compressed by gzip.

  • Only linear problems are supported.

  • Various forms of metadata, like problem description and variable/constraint names, are not preserved.