Skip to main content
FRAMES NO FRAMES

IlcMember

public IlcConstraint IlcMember(const IlcIntVar exp, const IlcIntArray elements)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Returns a member constraint.

This predefined CP Optimizer constraint forces the domain of exp to be a subset of or equal to the array elements. When you post IlcMember, it constrains each value of exp to belong to elements. In other words, any value of exp that is not in the array elements will be removed from the domain of exp.

See Also: