FRAMES NO FRAMES

IlcMember

public IlcConstraint IlcMember(const IlcIntExp exp, const IlcIntArray elements)
Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

This predefined Solver 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:


IlcMember

public IlcConstraint IlcMember(IlcAny element, IlcAnySetVar setVar)
public IlcConstraint IlcMember(IlcAnyExp element, IlcAnySetVar setVar)
public IlcConstraint IlcMember(IlcIntExp element, IlcIntSetVar setVar)
public IlcConstraint IlcMember(IlcInt element, IlcIntSetVar setVar)
Definition file: ilsolver/ilcset.h
Include file: <ilsolver/ilosolver.h>

This predefined Solver constraint forces a constrained set variable to contain a given element. It does so by creating a constraint that acts on the constrained set variable setVar. When you post IlcMember, it constrains the value of setVar to contain element. The following cases can arise:

See Also: