ILOG CPLEX 11.0 File Formats > > ILOG CPLEX File Formats > MPS File Format: Industry Standard > Integer Variables in MPS Files |
Integer Variables in MPS Files |
INDEX PREVIOUS NEXT |
If you use the ILOG CPLEX mixed integer optimizer, then you may restrict any or all variables to integer values. ILOG CPLEX accepts two commonly used ways of extending the MPS file format to include integer variables: in the COLUMNS
section or in the BOUNDS
section.
In the first way, integer variables are identified within the COLUMNS
section of the MPS file by marker lines. A marker line is placed at the beginning and end of a range of integer variables. Multiple sets of marker lines are allowed. Integer marker lines have a field format consisting of Fields 2 through 4.
'INTORG'
and 'INTEND'
to mark beginning and end respectively (including the single quotation marks)
The marker name must differ from the preceding and succeeding column names.
If no bounds are specified for the variables within markers, bounds of 0 (zero) and 1 (one) are assumed.
In the following example, column x4 is an integer variable and looks like this in the COLUMNS
section of an MPS file, according to this first way of treating integer variables:
In the second way of treating integer variables, integer variables are declared in the BOUNDS
section with special bound types in Field 1. The acceptable special bound types appear in Table 4.
To specify general integers with no upper bounds, use LI
with the value 0.0.
For example, column x4 is an integer variable declared in the BOUNDS
section of an MPS file, according to this second way of treating integer variables:
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |