| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

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:
IloIntVarEval, IloVarSelector, IloSelectSmallest, IloSelectSmallest, IloSelectSmallest
| Method Summary | |
|---|---|
public virtual IloNum | eval(IloCPEngine, IloIntVar) |
public | IloIntVarEvalI(IloEnv env) |
public | ~IloIntVarEvalI() |
| Method Detail |
|---|
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.
As this class is abstract, a virtual destructor is provided.
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.