sasoptpy.Model.export_mps

Model.export_mps(self, filename=None, fetch=False, **kwargs)[source]

Exports model in MPS format

Examples

  • Writing a linear optimization or mixed integer linear optimization model into MPS file

    >>> m.export_mps('my_problem.mps')
    
  • Returning the MPS string as a Python variable

    >>> m.export_mps(fetch=True)