The OplModel type exposes the following members.

Methods

  Name Description
Public method AddDataSource
Adds a data source to this OPL model.
Public method addSettings
Adds a settings configuration to this OPL model.
Public method 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");
Public method Clear
Public method ConvertAllIntVars
Relaxes all integer decision variables. This method adds an [!:IConversion] object for each [!:IIntVar] in the model.
Public method cppHasCP
Returns IloTrue, if this model has a CP engine associated.
Public method Dispose
Public method End
Clears the memory used by this object
Public method endCpp
Clears the memory used by this object
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method evaluateConstraintLeft
Public method evaluateConstraintMid
Public method evaluateConstraintRight
Protected method Finalize (Overrides Object..::..Finalize()()()().)
Public method 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.
Public method Generate(OplLabelCallback)
Public method GetConflictIterator
Returns the default conflict iterator. The invoking model is handling the creation/deletion of this iterator, you must not end it.

Return Value

An OplConflictIterator for the default conflict iterator.

Public method getConstraintElementItem
The implementation inside the [!:IConstraint] object can be null.
Public method GetElement
Returns a named model element.

Return Value

An OplElement for the named model element.

Public method 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 Value

An OplElementIterator for the model elements.

Public method 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 Value

An OplElementIterator for the model elements.

Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method getProgressListener
Public method GetRelaxationIterator
Returns the default relaxation iterator. The invoking model is handling the creation/deletion of this iterator, you must not end it.

Return Value

An OplRelaxationIterator for the default conflict iterator.

Public method getSolutionGetter
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Public method hasElement
Returns IloTrue, if this model currently has a value for a named element.

Return Value

IloTrue, if this model currently has a value for a named element.

Public method hasPublishers
Public method internalSolve
Public method isGenerated
Public method isUsingCP
This member function tells you whether this model requires a CP engine.

Return Value

IloTrue if a CP engine is required.

Public method isUsingCplex
This member function tells you whether this model requires a CPLEX engine.

Return Value

IloTrue if a CPLEX engine is required.

Public method loadDataOnly
Public method Main
Executes flow control scripting defined in the model.

Return Value

The 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.

Public method 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 Value

An OplDataElements for the model elements.

Public method makeScriptExpression
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method 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.
Public method PrintCalculatedData Obsolete.
Public method PrintConflict
Public method PrintData Obsolete.
Public method PrintExternalData
Public method PrintInternalData
Public method PrintRelaxation
Public method PrintSolution
Public method processDecisionExpr
Public method processDecisionExprSolution
Public method registerDisposeListener
Public method registerPostProcessListener
Public method registerRunseedProgressListener
Public method removeProgressListener
Public method 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 Value

The absolute file path for the named object.

Public method ResolveStream
Resolves a resource name as stream. Relative paths are resolved relative to this OPL model. The caller takes ownership of the result.

Return Value

A stream for the named object.

Public method runSeed
Public method saveResultsInText
Public method setOwnHandle
Public method SetPoolSolution
Public method setProgressListener
Public method solveAlgorithm
Public method ToString (Overrides Object..::..ToString()()()().)
Public method UnconvertAllIntVars
Undoes the effects of [!:#convertAllIntVars()].
Public method unregisterCustomDataHandler
Public method unregisterDisposeListener
Public method unregisterPostProcessListener
Public method unregisterRunseedProgressListener
Public method warnNeverUsedElements
For ODM, which might process elements after post processing.

See Also