CPLEX file-reading routines and methods are used to read problems from system files. CPLEX can read problem files stored in a variety of formats. For more information about the file formats, see the reference manual ILOG CPLEX File Formats.
Note: Names of classes, methods, and symbolic constants in the .NET API correspond very closely to those in the Java API with these systematic exceptions:
Ilo
, whereas in .NET they do not.
addCols
,
whereas in the .NET API, the names of methods conventionally
begin with an uppercase (that is, capital) letter, for example,
AddCols
according to Microsoft practice.
Purpose |
Java API |
C++ API |
C API |
---|---|---|---|
Reads and copies a problem in LP, MPS, or SAV format |
IloCplex.importModel |
IloCplex::importModel
|
|
Reads and copies a SOL format solution file |
IloCplex.readSolution |
IloCplex::readSolution |
|
Reads and copies a BAS format basis file |
IloCplex.readBasis |
IloCplex::readBasis |
|
Reads and copies an ORD priority order file |
---- |
---- |
|
Reads and copies a MIP start value file |
IloCplex.readMIPStart |
IloCplex::readMIPStart |
|
Reads comma-separated values from a CSV file |
---- |
---- |
|
Reads CPLEX parameter settings from a file in PRM format and sets current model accordingly |
IloCplex.readParam |
IloCplex::readParam |