| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

Instances of this class represent an OPL model. This class associates a model definition with data sources and an optimization engine.
You find a whole variety of services useful when using OPL models with Concert in this class. Refer also to the Interfaces User's Manual.
See Also:
IloOplModelDefinition, IloOplModelSource
| Method Detail |
|---|
Constructs a model instance based on a definition. Refer also to the Interfaces User's Manual.
| definition |
The model definition for this OPL model instance.
|
| cplex |
The CPLEX optimization engine associated with this OPL model instance.
|
Constructs a model instance based on an environment and a definition. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| definition |
The model definition for this OPL model instance.
|
| cplex |
The CPLEX optimization engine associated with this OPL model instance.
|
Constructs a model instance based on a definition, with shared settings. Refer also to the Interfaces User's Manual.
| settings |
The settings to use.
|
| definition |
The model definition for this OPL model instance.
|
| cplex |
The CPLEX optimization engine associated with this OPL model instance.
|
Constructs a model instance based on an environment and a definition, with shared settings. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| settings |
The settings to use.
|
| definition |
The model definition for this OPL model instance.
|
| cplex |
The CPLEX optimization engine associated with this OPL model instance.
|
Constructs a model instance based on a definition. Refer also to the Interfaces User's Manual.
| definition |
The model definition for this OPL model instance.
|
| cp |
The CP optimization engine associated with this OPL model instance.
|
Constructs a model instance based on an environment and a definition. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| definition |
The model definition for this OPL model instance.
|
| cp |
The CP optimization engine associated with this OPL model instance.
|
Constructs a model instance based on a definition with shared settings. Refer also to the Interfaces User's Manual.
| settings |
The settings to use.
|
| definition |
The model definition for this OPL model instance.
|
| cp |
The CP optimization engine associated with this OPL model instance.
|
Constructs a model instance based on an environment and a definition with shared settings. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| settings |
The settings to use.
|
| definition |
The model definition for this OPL model instance.
|
| cp |
The CP optimization engine associated with this OPL model instance.
|
Adds a data source to this OPL model.
| source |
The data source object to be added to the model.
|
Adds a settings configuration to this OPL model.
| settings |
The settings to be added to the model.
|
Apply the settings to OPL and the needed engine.
For example: oplModel.applyOpsSettings(0, "c:/temp/mytrans.ops");
Or: oplModel.applyOpsSettings("c:/temp/", "mytrans.ops");
0param opsFile OPS file name of OPS full path| baseDir |
Base directory or null
0param opsFile OPS file name of OPS full path
|
Relaxes all integer decision variables.
This method adds an IloConversion object for each IloIntVar in the model.
Clears the memory used by this object
Generates the problem and uses the optimization engine to extract it.
This is the main purpose of an OPL model instance.
It reads data, performs preprocessing, and creates the Concert
IloModel object to represent the resulting problem.
The problem is then extracted using the associated engine.
Returns the default conflict iterator.
The invoking model is handling the creation/deletion of this iterator, you must not end it.IloOplConflictIterator for the default conflict iterator. Returns the CP optimization engine associated with this OPL model instance.
IloCP for CP engine associated this OPL model. Returns the CPLEX optimization engine associated with this OPL model instance.
IloCplex for CPLEX engine associated this OPL model. Returns a named model element.
| name |
The name of the element to return.
|
IloOplElement for the named model element. Returns the model definition.
IloModelDefinition for this OPL model instance. Returns the name of an OPL model.
Returns a Concert objective for the objective.
If the model has no objective, an empty handle will be returned.
IloObjective for the objective of the implementation object. Returns the default relaxation iterator.
The invoking model is handling the creation/deletion of this iterator, you must not end it.IloOplRelaxationIterator for the default conflict iterator. Returns the settings object.
IloOplSettings used by this OPL model instance. Returns the name of a model definition's source.
Returns IloTrue, if this model has a CP engine associated.
Returns IloTrue, if this model has a CPLEX engine associated.
This member function tells you whether this model requires a CP engine.
IloTrue if a CP engine is required. This member function tells you whether this model requires a CPLEX engine.
IloTrue if a CPLEX engine is required. Executes flow control scripting defined in the model.
main block. If that last expression does not evaluate to an integer, 0 is returned. If scripting errors occur, a negative value is returned. This service routine returns all elements used in this OPL model instance. The returned object can be used as a data source for other OPL model instances.
IloOplDataElements for the model elements. Returns a new iterator for the elements in this model. The caller is responsible for ending the iterator.
If the element iterator owns its elements, only the current element is valid, previous ones cannot be used.
If the element iterator does not own its elements, previously iterated elements can be used. The caller is responsible for ending those elements.
| ownElements |
If this parameter is set to IloFalse, the iterator does not own the elements it iterates.
|
IloOplElementIterator for the model elements. Returns a new iterator for the elements in this model. The caller is responsible for ending the iterator.
This element iterator owns all the elements on which it iterates. Only the current element is valid, previous ones cannot be used.
IloOplElementIterator for the model elements. Used to perform postprocessing.
After a solution is found, the postprocessing part of the model can be executed.
The solving is controlled outside OPL, therefore this service routine has to be invoked manually whenever a new solution is available.
Reports conflicting constraints on the given stream and returns the number of conflicts found.
| os |
The name of the stream that contains the model.
|
This service routine serializes external data elements taken from data sources. Adds a title and time stamp header.
This service routine serializes external data elements taken from data sources.
This service routine serializes internal data elements. Adds a title and time stamp header.
This service routine serializes internal data elements.
Reports the relaxations needed to obtain a feasible model on the given stream, returns the number of relaxations found, and changes the state of the invoking object to relaxation mode.
| os |
The name of the stream that contains the model.
|
This service routine serializes the current solution.
Resolves a resource name as file path.
Relative paths are resolved relative to this OPL model. Refer also to the Interfaces User's Manual.
| name |
The name of the resource for which you want a file path.
|
Resolves a resource name as stream.
Relative paths are resolved relative to this OPL model.
The caller takes ownership of the result.
| name |
The name of the resource that you want to resolve as a stream.
|
Sets the invoking model in the state of the solution indexed by solId.
IloFalse
if the id is negative, the model is returned to the default solution state.
| solId |
the id of the solution to be used, or -1 to return to original default state.
|
Replaces the settings object.
Undoes the effects of convertAllIntVars().