Skip to main content
FRAMES NO FRAMES

IlcElementNEq

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

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


IlcElementNEq

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

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