Writes the active model to the file specified by filename.

Namespace: ILOG.OPL
Assembly: oplall (in oplall.dll)

Syntax

C#
public virtual void ExportModel(
	string name
)

Parameters

name
Type: System..::..String
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:
  • .sav
  • .mps
  • .Lp
  • .sav.Gz
  • .mps.Gz
  • .Lp.Gz
  • .Bz2
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