Reading MPS Files

ILOG CPLEX can also read industry-standard MPS formatted files. We use a problem called afiro.mps (provided in the ILOG CPLEX distribution) as an example. If you include the .mps extension in the file name, ILOG CPLEX will recognize the file as being in MPS format. If you omit the extension, you must specify that the file is of the type MPS.

  read afiro mps 

Once the file has been read, the following message appears:

Selected objective sense: MINIMIZE

Selected objective name: obj

Selected RHS name: rhs

Problem 'afiro' read.

Read time = 0.01 sec.

ILOG CPLEX reports additional information when it reads MPS formatted files. Since these files can contain multiple objective function, right-hand side, bound, and other information, ILOG CPLEX displays which of these is being used for the current problem. See the ILOG CPLEX User's Manual to learn more about special considerations for using MPS formatted files.


Previous Page: Using File Extensions   Return to Top Next Page: Reading Basis Files