Overview | Group | Tree | Graph | Index | Concepts |
In some instances, the illegality of a solution delta can be determined
before the delta is applied to the solution in question, if knowledge of the
problem is available. This handle class can be used to perform such
“pre-filtering”, which can considerably improve the performance
of local search procedures. IloMetaHeuristic::getDeltaCheck
returns such a delta checker.
This is the most common use of the class.
See Also:
IloMetaHeuristic, IloScanNHood, IloSolutionDeltaCheckI
Constructor Summary | |
---|---|
public | IloSolutionDeltaCheck() |
public | IloSolutionDeltaCheck(IloSolutionDeltaCheckI * ck) |
Method Summary | |
---|---|
public IloEnv | getEnv() const |
public IloSolutionDeltaCheckI * | getImpl() const |
public IloBool | ok(IloSolver solver, IloSolution delta) |
public void | operator=(const IloSolutionDeltaCheck & check) |
Constructor Detail |
---|
This constructor creates a delta checker whose implementation pointer is 0 (zero). The handle must be assigned before its methods can be used.
This constructor creates a handle object (an instance of the class
IloSolutionDeltaCheck
from a pointer to an implementation
object (an instance of the class IloSolutionDeltaCheckI
).
Method Detail |
---|
This member function returns the environment specified when the implementation object of the invoking object was constructed.
This member function returns a pointer to the implementation object corresponding to the invoking delta checker.
This member function is called with the delta to be checked. If
delta
is determined to be illegal, this member function
returns IloFalse
. Otherwise, it returns
IloTrue
.
This operator assigns an address to the handle pointer of the invoking
delta checker. That address is the location of the implementation object
of check
. After the execution of this operator, the
invoking delta checker and check
both point to the same
implementation object.