Writes the active model to the file specified by filename.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual void ExportModel( string name ) |
| Visual Basic |
|---|
Public Overridable Sub ExportModel ( _ name As String _ ) |
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:
- .sav
- .mps
- .Lp
- .sav.Gz
- .mps.Gz
- .Lp.Gz
- .Bz2
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 it writes 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.