Skip to main content
FRAMES NO FRAMES

Class IloIntValueEvalI

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

A evaluator of integer values is an object that is used by value selectors (IloValueSelector) to define instantiation strategies. An evaluator of integer variable value assignments is defined by implementing the pure virtual member function IloNum IloIntValueEvalI::eval(IloCPEngine cp, IloIntVar x, IloInt value) that returns an evaluation of the instantiation of x to value.

Method Summary
public virtual IloNumeval(IloCPEngine cp, IloIntVar x, IloInt value)
public IloIntValueEvalI(IloEnv env)
public ~IloIntValueEvalI()
Method Detail

IloIntValueEvalI

public IloIntValueEvalI(IloEnv env)

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


~IloIntValueEvalI

public ~IloIntValueEvalI()

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


eval

public virtual IloNum eval(IloCPEngine cp, IloIntVar x, IloInt value)

This pure virtual member function should be define to return an evaluation of the instantiation of x to value.