跳至主内容
框架 无框架

IlcMember

publicIlcConstraint IlcMember(constIlcIntVar exp, constIlcIntArray elements)
定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
返回成员约束。

CP 优化器的这一预定义约束强制 "exp的域必须是或等于数组 "elements的子集。 When you post IlcMember, it constrains each value of exp to belong to elements. 换句话说,"exp中任何不在数组 "elements中的值都将从 "exp的域中删除。

另请参阅: