FRAMES NO FRAMES

IloMember

public IloConstraint IloMember(const IloEnv env, const IloAnyVar element, const IloAnySetVar setVar)
Definition file: ilconcert/iloanyset.h
show solver

IloMember

public IloConstraint IloMember(const IloEnv, const IloNumExprArg expr, const IloNumArray elements)
public IloConstraint IloMember(const IloEnv, const IloIntExprArg expr, const IloIntArray elements)
public IloConstraint IloMember(const IloEnv, const IloIntVar var1, const IloIntSetVar var2)
public IloConstraint IloMember(const IloEnv, IloInt var1, const IloIntSetVar var2)
Definition file: ilconcert/ilomodel.h
For constraint programming: creates and returns a constraint forcing element to be a member of setVar.

This function creates and returns a constraint (an instance of IloConstraint) for use in a model. The constraint forces expr to be a member of elements.

In order for the constraint to take effect, you must add it to a model with the template IloAdd or the member function IloModel::add and extract the model for an algorithm with the member function IloAlgorithm::extract.


IloMember

public IloConstraint IloMember(const IloEnv env, IloAny element, const IloAnySetVar setVar)
Definition file: ilconcert/iloanyset.h
show solver