Skip to main content
FRAMES NO FRAMES

IloExplicitVarEval

public IloIntVarEval IloExplicitVarEval(IloEnv env, IloIntVarArray x, IloIntArray evalArray, IloNum defaultEval=0)
Definition file: ilcp/cp.h
Returns a variable evaluator whose evaluation depends on its index in an array.

This function returns a variable evaluator. The evaluations of variables in the array x are explicitly defined in the array of integer values evalArray; that is, the evaluation of x[i] is evalArray[i].

The arrays x and evalArray must have the same size. The evaluation of a variable that does not appear in the array is given by defaultEval.

See Also:


IloExplicitVarEval

public IloIntVarEval IloExplicitVarEval(IloEnv env, IloIntVarArray x, IloNumArray evalArray, IloNum defaultEval=0)
Definition file: ilcp/cp.h
Returns a variable evaluator giving an explicit evaluation to each variable.

This function returns a variable evaluator. The evaluation of variables from the array x are explicitly defined in the array of floating-point values evalArray; that is, the evaluation of x[i] is evalArray[i].

The arrays x and evalArray must have the same size. The evaluation of a variable that does not appear in the array is given by defaultEval.

See Also: