Skip to main content
FRAMES NO FRAMES

IloValueIndex

public IloIntValueEval IloValueIndex(IloEnv env, IloIntArray valueArray, IloInt defaultEval=-1)
Definition file: ilcp/cp.h
Returns an evaluator which gives index of the value in its array.

This function returns a value evaluator. The evaluation of each value is the index of the value in the array valueArray. That is, the evaluation of valueArray[i] is i. If the value does not appear in the array, defaultEval is the evaluation returned.

See Also: