ILOG CPLEX extends the MPS standard by allowing two additional sections: OBJSEN
and OBJNAME
. They may be specified after the NAME
section. OBJSEN
sets the objective function sense, and OBJNAME
selects an objective function from among the free rows within the file. If neither of these sections appears in the MPS file, ILOG CPLEX assumes that the problem is a minimization and that the objective function is the first free row encountered in the ROWS
section. If these options are used, they must appear in order and as the first and second sections after the NAME
section. The values for OBJSENSE
can be MAX
or MIN
.
Here is an example of these optional sections:
NAME example.mps
OBJSENSE
MAX
OBJNAME
rowname
|