ILOG CPLEX .NET Reference Manual

Cplex.ExportModel Method 

Writes the active model to the file indicated by filename.

public virtual void ExportModel(
   string name
);

Parameters

name
The name of the file to which the model is written. The extension of the filename determines the format in which to write the model file.

Remarks

The file format is determined by the extension of the filename. The following extensions are recognized on most platforms:

Microsoft Windows does not support writing gzipped files. If no name has been assigned to a variable or range (that is, getName returns null for that variable or range), Cplex uses a default name when writing the model (or in the optimization log). Default names are of the form IloXj for variables and IloCi, where i and j are internal indices of Cplex.

See Also

Cplex Class | ILOG.CPLEX Namespace