ILOG CPLEX .NET Reference Manual

Cplex.ImportModel Method 

Reads a model from the file indicated by name into the active model.

public virtual void ImportModel(
   string name
);

Parameters

name
The name of the file from which the model is read. The extension of the filename determines the format in which to read the model file.

Remarks

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

Microsoft Windows does not support reading from gzipped files. When CPLEX reads a file, the existing active model is first cleaned out and then new modeling objects, as required by the input file, are added to it. In particular, one IObjective object and one ILPMatrix object are always added to the active model. The ILPMatrix object will contain all the constraints of the imported model. ISOS1 and ISOS2 objects are added as needed.

See Also

Cplex Class | ILOG.CPLEX Namespace