The MPS-Format Data Table

ROWS Section

The ROWS section contains the name and type of the rows (linear constraints or objectives). The type of each row is specified by the indicator code in field1 as follows:

  • MIN: minimization objective

  • MAX: maximization objective

  • N: objective

  • G: constraint

  • L: constraint

  • E: = constraint

  • Indicator record:

    _ID_

    Field1

    Field2

    Field3

    Field4

    Field5

    Field6

    Number

    ROWS

    Blank

    Blank

    .

    Blank

    .

  • Data record:

    _ID_

    Field1

    Field2

    Field3

    Field4

    Field5

    Field6

    Number

    Indicator code

    Row name

    Blank

    .

    Blank

    .

Notes:

  1. At least one objective row should be specified in the ROWS section. It is possible to specify multiple objective rows. However, among all the data records indicating the objective, only the first one is regarded as the objective row, and the rest are ignored. If a type-N row is used as the objective row, minimization is assumed. The value of the solver’s OBJSENSE= option supersedes the objective sense that is specified in this section.

  2. Duplicate entries of field2 in the ROWS section are not allowed. In other words, row name is unique. The variable field2 in the ROWS section cannot take a missing value.

Last updated: June 14, 2018