Reading Files

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:

Purpose

Java API

C++ API

C API

Reads and copies a problem in LP, MPS, or SAV format

IloCplex.importModel

IloCplex::importModel
then IloModel::add for any SOSs

CPXreadcopyprob

Reads and copies a SOL format solution file

IloCplex.readSolution

IloCplex::readSolution

CPXreadcopysol

Reads and copies a BAS format basis file

IloCplex.readBasis

IloCplex::readBasis

CPXreadcopybase

Reads and copies an ORD priority order file

----

----

CPXreadcopyorder

Reads and copies a MIP start value file

IloCplex.readMIPStart

IloCplex::readMIPStart

CPXreadcopymipstart

Reads comma-separated values from a CSV file

----

IloCsvReader

----

Reads CPLEX parameter settings from a file in PRM format and sets current model accordingly

IloCplex.readParam

IloCplex::readParam

CPXreadcopyparam