User Tools

Site Tools


gams:gams_and_the_mps_format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gams:gams_and_the_mps_format [2009/10/28 13:42]
support
gams:gams_and_the_mps_format [2019/01/16 15:28] (current)
Michael Bussieck
Line 3: Line 3:
 GAMS can import and export model instance formated as a [[http://​en.wikipedia.org/​wiki/​MPS_%28format%29|MPS-File]]:​ GAMS can import and export model instance formated as a [[http://​en.wikipedia.org/​wiki/​MPS_%28format%29|MPS-File]]:​
   * **Export from GAMS**: ​   * **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. ​+    * 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''​).     * 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.+  * **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. \\ \\ If you are a licensed academic user or hold a license to GAMS/SCIP you can use GAMS/SCIP to read MPS and LP files and convert them to scalar GAMS model files via the ''​gams/​interactive''​ option in scip.opt: ''​gams/​interactive = "read somemodel.lp write genprob somemodel.gms quit"''​.
  
  
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/gams_and_the_mps_format.txt ยท Last modified: 2019/01/16 15:28 by Michael Bussieck