Skip to main content
FRAMES NO FRAMES

IloVarIndex

public IloIntVarEval IloVarIndex(IloEnv env, IloIntVarArray x, IloInt defaultEval=-1)
Definition file: ilcp/cp.h
Returns a variable evaluator which gives the index of a variable in its array.

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

See Also: