The OplModel type exposes the following members.

Properties

  Name Description
Public property CP
Returns the CP optimization engine associated with this OPL model instance.

Return Value

An IloCP for CP engine associated this OPL model.

Public property Cplex
Returns the CPLEX optimization engine associated with this OPL model instance.

Return Value

An [!:ICplex] for CPLEX engine associated this OPL model.

Public property HasCP
Returns IloTrue, if this model has a CP engine associated.
Public property HasCplex
Returns IloTrue, if this model has a CPLEX engine associated.
Public property ModelDefinition
Returns the model definition.

Return Value

The IloModelDefinition for this OPL model instance.

Public property Name
Returns the name of an OPL model.

Return Value

The name of this OPL model.

Public property Objective
Returns a Concert objective for the objective. If the model has no objective, an empty handle will be returned.

Return Value

An [!:IObjective] for the objective of the implementation object.

Public property Settings
Returns the settings object.

Return Value

The OplSettings used by this OPL model instance.

Public property SourceName
Returns the name of a model definition's source.

Return Value

The source name of this OPL model.

See Also