User Tools

Site Tools


gams:gams_and_the_mps_format

GAMS and the MPS format

GAMS can import and export model instance formated as a MPS-File:

  • Export from GAMS:
    • The solver Convert (with option CplexMPS or fixed) writes an MPS file with trivial names (x1,x2,…,e1,e2,…), but it can also write a mapping file (use the Convert option dict) that allows you to map the trivial names to your name space.
    • Most LP/MIP solver have an option to write out an MPS file. Some of them even support to write the GAMS names to the MPS file, e.g.: CPLEX (options names yes, writemps mpsfile) or COINCBC options (names 1, writemps mpsfile).
  • Import to GAMS: the command line tool mps2gms creates an almost generic gms file and a gdx file with the matrix data. mps2gms is part of any current GAMS distribution, please enter mps2gms at a command line prompt to get more information about it.
gams/gams_and_the_mps_format.txt · Last modified: 2009/10/28 12:42 by support