The OplModel type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
AddDataSource |
Adds a data source to this OPL model.
|
|
|
addSettings |
Adds a settings configuration to this OPL model.
|
|
|
applyOpsSettings |
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");
|
|
|
Clear | |
|
|
ConvertAllIntVars |
Relaxes all integer decision variables. This method adds an [!:IConversion] object for each [!:IIntVar] in the model.
|
|
|
cppHasCP |
Returns IloTrue, if this model has a CP engine associated.
|
|
|
Dispose | |
|
|
End |
Clears the memory used by this object
|
|
|
endCpp |
Clears the memory used by this object
|
|
|
Equals |
Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
|
evaluateConstraintLeft |
|
|
|
evaluateConstraintMid |
|
|
|
evaluateConstraintRight |
|
|
|
Finalize | (Overrides Object..::..Finalize()()()().) |
|
|
Generate()()()() |
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 [!:IModel] object to represent the resulting problem. The problem is then extracted using the associated engine.
|
|
|
Generate(OplLabelCallback) |
|
|
|
GetConflictIterator |
Returns the default conflict iterator. The invoking model is handling the creation/deletion of this iterator, you must not end it.
Return ValueAn OplConflictIterator for the default conflict iterator. |
|
|
getConstraintElementItem |
The implementation inside the [!:IConstraint] object can be null.
|
|
|
GetElement |
Returns a named model element.
Return ValueAn OplElement for the named model element. |
|
|
GetElementEnumerator()()()() |
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.
Return ValueAn OplElementIterator for the model elements. |
|
|
GetElementEnumerator(Boolean) |
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.
Return ValueAn OplElementIterator for the model elements. |
|
|
GetHashCode |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
|
getProgressListener |
|
|
|
GetRelaxationIterator |
Returns the default relaxation iterator. The invoking model is handling the creation/deletion of this iterator, you must not end it.
Return ValueAn OplRelaxationIterator for the default conflict iterator. |
|
|
getSolutionGetter |
|
|
|
GetType |
Gets the type of the current instance. (Inherited from Object.) |
|
|
hasElement |
Returns IloTrue, if this model currently has a value for a named element.
Return ValueIloTrue, if this model currently has a value for a named element. |
|
|
hasPublishers |
|
|
|
internalSolve |
|
|
|
isGenerated |
|
|
|
isUsingCP |
This member function tells you whether this model requires a CP engine.
Return ValueIloTrue if a CP engine is required. |
|
|
isUsingCplex |
This member function tells you whether this model requires a CPLEX engine.
Return ValueIloTrue if a CPLEX engine is required. |
|
|
loadDataOnly |
|
|
|
Main |
Executes flow control scripting defined in the model.
Return ValueThe integer value of the last expression in the main block. If that last expression does not evaluate to an integer, 0 is returned. If scripting errors occur, a negative value is returned. |
|
|
MakeDataElements |
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.
Return ValueAn OplDataElements for the model elements. |
|
|
makeScriptExpression |
|
|
|
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
|
PostProcess |
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.
|
|
|
PrintCalculatedData | Obsolete. |
|
|
PrintConflict | |
|
|
PrintData | Obsolete. |
|
|
PrintExternalData | |
|
|
PrintInternalData | |
|
|
PrintRelaxation | |
|
|
PrintSolution | |
|
|
processDecisionExpr |
|
|
|
processDecisionExprSolution |
|
|
|
registerDisposeListener |
|
|
|
registerPostProcessListener |
|
|
|
registerRunseedProgressListener |
|
|
|
removeProgressListener |
|
|
|
ResolvePath |
Resolves a resource name as file path. Relative paths are resolved relative to this OPL model. Refer also to the Interfaces User's Manual.
Return ValueThe absolute file path for the named object. |
|
|
ResolveStream |
Resolves a resource name as stream. Relative paths are resolved relative to this OPL model. The caller takes ownership of the result.
Return ValueA stream for the named object. |
|
|
runSeed | |
|
|
saveResultsInText |
|
|
|
setOwnHandle | |
|
|
SetPoolSolution | |
|
|
setProgressListener |
|
|
|
solveAlgorithm |
|
|
|
ToString | (Overrides Object..::..ToString()()()().) |
|
|
UnconvertAllIntVars |
Undoes the effects of [!:#convertAllIntVars()].
|
|
|
unregisterCustomDataHandler |
|
|
|
unregisterDisposeListener |
|
|
|
unregisterPostProcessListener |
|
|
|
unregisterRunseedProgressListener |
|
|
|
warnNeverUsedElements |
For ODM, which might process elements after post processing.
|