NO FRAMES

IloTableConstraint

public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVarArray vars, const IloIntTupleSet set, IloBool compatible)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVar var1, const IloIntVar var2, const IloIntTupleSet set, IloBool compatible)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVar var1, const IloIntVar var2, const IloIntVar var3, const IloIntTupleSet set, IloBool compatible)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVarArray vars, const IloIntTernaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVar var1, const IloIntVar var2, const IloIntVar var3, const IloIntTernaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVarArray vars, const IloIntBinaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVar var1, const IloIntVar var2, const IloIntBinaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloIntVar y, const IloIntArray a, const IloNumVar x)
public IloConstraint IloTableConstraint(const IloEnv env, const IloAnyVarArray vars, const IloAnyTupleSet set, IloBool compatible)
public IloConstraint IloTableConstraint(const IloEnv env, const IloAnyVarArray vars, const IloAnyTernaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloAnyVarArray vars, const IloAnyBinaryPredicate pred)
public IloConstraint IloTableConstraint(const IloEnv env, const IloAnyVar y, const IloAnyArray a, const IloNumVar x)
Definition file: ilconcert/ilotupleset.h

This function can be used to define simple constraints that are not predefined. It creates and returns a constraint for use in an ILOG Concert Technology model. That constraint is defined for all the constrained variables in the array vars or for the single constrained variable y.

This kind of constraint is sometimes known as an element constraint.

The semantics of that generic constraint can be indicated in either one of several ways:

The order of the constrained variables in the array vars is important because the same order is respected in the predicate pred or the set. That is, IloTableConstraint passes an array of values to the member function isTrue for a predicate or to the member function isIn for a set, where the first such value is a value of vars[0], the second is a value of vars[1], and in general, the ith value is a value of the constrained variable vars[i].

To avoid exceptions, you must observe the following conditions: