FRAMES NO FRAMES

Class IloSolutionDeltaCheck

Definition file: ilsolver/iimmeta.h
Include file: <ilsolver/iimls.h>

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:

Constructor Summary
public IloSolutionDeltaCheck()
public IloSolutionDeltaCheck(IloSolutionDeltaCheckI * ck)
Method Summary
public IloEnvgetEnv() const
public IloSolutionDeltaCheckI *getImpl() const
public IloBoolok(IloSolver solver, IloSolution delta)
public voidoperator=(const IloSolutionDeltaCheck & check)
Constructor Detail

IloSolutionDeltaCheck

public IloSolutionDeltaCheck()

This constructor creates a delta checker whose implementation pointer is 0 (zero). The handle must be assigned before its methods can be used.


IloSolutionDeltaCheck

public IloSolutionDeltaCheck(IloSolutionDeltaCheckI * ck)

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

getEnv

public IloEnv getEnv() const

This member function returns the environment specified when the implementation object of the invoking object was constructed.


getImpl

public IloSolutionDeltaCheckI * getImpl() const

This member function returns a pointer to the implementation object corresponding to the invoking delta checker.


ok

public IloBool ok(IloSolver solver, IloSolution delta)

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.


operator=

public void operator=(const IloSolutionDeltaCheck & check)

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.