FRAMES NO FRAMES

Class IloSolutionDeltaCheckI

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 abstract implementation class can be used to perform such specialized “pre-filtering”, which can improve the performance of local search procedures considerably.

The method IloMetaHeuristic::getDeltaCheck returns a delta checker which uses the method IloMetaHeuristicI::isFeasible to perform such checks. Therefore, it is not necessary to subclass IloSolutionDeltaCheck to perform delta checks for metaheuristics.

See Also:

Constructor and Destructor Summary
public IloSolutionDeltaCheckI(IloEnv env)
public ~IloSolutionDeltaCheckI()
Method Summary
public IloEnvgetEnv() const
public virtual IloBoolok(IloSolver solver, IloSolution delta) const
Constructor and Destructor Detail

IloSolutionDeltaCheckI

public IloSolutionDeltaCheckI(IloEnv env)

This constructor creates an instance of the IloSolutionDeltaCheckI class.


~IloSolutionDeltaCheckI

public ~IloSolutionDeltaCheckI()

Since IloSolutionDeltaCheckI is an abstract class, a virtual destructor is provided.


Method Detail

getEnv

public IloEnv getEnv() const

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


ok

public virtual IloBool ok(IloSolver solver, IloSolution delta) const

This member function is called with the delta to be checked. If delta is determined to be illegal, this member should return IloFalse. Otherwise, it returns IloTrue.