Skip to main content
FRAMES NO FRAMES

IlcElementEq

public IlcConstraint IlcElementEq(IlcIntVar var, const IlcIntArray array, IlcIntVar index, const char * name=0)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Returns a form of an element constraint.

This function creates and returns a constraint that forces the the variable var to be equal to the element index of the array array.


IlcElementEq

public IlcConstraint IlcElementEq(IlcInt val, const IlcIntArray array, IlcIntVar index, const char * name=0)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Returns a form of an element constraint.

This function creates and returns a constraint that forces the the value val to be equal to the element index of the array array.