Writing Files

CPLEX file-writing routines and methods write a problem object or, after the problem has been optimized, the optimal basis or solution report to a file.

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

Writes a problem file in any format

IloCplex.exportModel

IloCplex::exportModel

CPXwriteprob

Writes a BAS basis file

IloCplex.writeBasis

IloCplex::writeBasis

CPXmbasewrite

Writes a solution file

IloCplex.writeSolution

IloCplex::writeSolution

CPXsolwrite

Writes an ORD priority order file

IloCplex.writeOrder

IloCplex::writeOrder

CPXordwrite

Writes a MIP start values file

IloCplex.writeMIPStart

IloCplex::writeMIPStart

CPXmstwrite

Writes a file for a MIP start from the solution pool

IloCplex.writeMIPStart

IloCplex::writeMIPStart

CPXmstwritesolnpool

and

CPXmstwritesolnpoolall

Writes an embedded network in MPS format

----

----

CPXembwrite

Writes the primal-perturbed version of the problem

----

----

CPXpperwrite

Writes the dual-perturbed version of the problem

----

----

CPXdperwrite

Writes the presolved problem in binary format

----

----

CPXpreslvwrite

Writes the dual problem in MPS format

----

----

CPXdualwrite

Writes nondefault CPLEX parameter settings to a file in PRM format for reuse later

IloCplex.writeParam

IloCplex::writeParam

CPXwriteparam

Writes a conflict in LP format

IloCplex.writeConflict

IloCplex::writeConflict

CPXclpwrite

Writes an FLT formatted file of filters for the solution pool

IloCplex.writeFilters

IloCplex::writeFilters

CPXfltwrite

Writes a solution from the solution pool to a file formatted in XML

IloCplex.writeSolution

IloCplex::writeSolution

CPXsolwritesolnpool

Writes all solutions from the solution pool to a file formatted in XML

IloCplex.writeSolutions

IloCplex::writeSolutions

CPXsolwritesolnpoolall