Skip to main content
FRAMES NO FRAMES

Class IloIntVarEvalI

Definition file: ilcp/cp.h
Map of IloIntVarEvalIIloIntVarEvalIIloIntVarEvalI
The implementation class for a variable evaluator in a search strategy.

An evaluator of integer variables is an object that is used by selectors (IloVarSelector) of variables to define instantiation strategies. An evaluator of integer variables is defined by implementing the pure virtual member function IloNum IloIntVarEvalI::eval(IloCPEngine cp, IloIntVar x) that returns a floating-point evaluation of the integer variable x.

See Also:

Method Summary
public virtual IloNumeval(IloCPEngine, IloIntVar)
public IloIntVarEvalI(IloEnv env)
public ~IloIntVarEvalI()
Method Detail

IloIntVarEvalI

public IloIntVarEvalI(IloEnv env)

This constructor creates an evaluator of integer variables. It should not be called directly because this is an abstract class but it must be called in the constructor of a sub-class.


~IloIntVarEvalI

public ~IloIntVarEvalI()

As this class is abstract, a virtual destructor is provided.


eval

public virtual IloNum eval(IloCPEngine, IloIntVar)

This pure virtual member function should be defined to return an evaluation of the integer variable x. In order to carry out the evaluation, the cp object can be used to determine the current domains of the variables.