Skip to main content
FRAMES NO FRAMES

IloExplicitValueEval

public IloIntValueEval IloExplicitValueEval(IloEnv env, IloIntArray valueArray, IloIntArray evalArray, IloNum defaultEval=0)
Definition file: ilcp/cp.h
Returns a value evaluator giving an explicit evaluation to each domain value.

This function returns a value evaluator. The evaluations of elements of valueArray are explicitly defined in the array of integer values evalArray; that is, the evaluation of valueArray[i] is evalArray[i]. The arrays valueArray and evalArray must have the same size.

The evaluation of a value that does not appear in valueArray is given by defaultEval.

See Also:


IloExplicitValueEval

public IloIntValueEval IloExplicitValueEval(IloEnv env, IloIntArray valueArray, IloNumArray evalArray, IloNum defaultValue=0)
Definition file: ilcp/cp.h
Returns a value evaluator giving an explicit evaluation to each domain value.

This function returns a value evaluator. The evaluations of elements of valueArray are explicitly defined in the array of floating-point values evalArray; that is, the evaluation of valueArray[i] is evalArray[i]. The arrays valueArray and evalArray must have the same size.

The evaluation of a value that does not appear in valueArray is given by defaultEval.

See Also: