FRAMES NO FRAMES

IloEqUnion

public IloConstraint IloEqUnion(const IloEnv env, const IloIntSetVar var1, const IloIntSetVar var2, const IloIntToIntFunction f)
public IloConstraint IloEqUnion(const IloEnv env, const IloIntSetVar var1, const IloIntSetVar var2, const IloIntToIntVarFunction f)
public IloConstraint IloEqUnion(const IloEnv env, const IloIntSetVar var1, const IloIntSetVar var2, const IloIntToIntSetVarFunction f)
Definition file: ilconcert/iloset.h
For IBM® ILOG® Solver: a constraint forcing the union of two sets to be the elements of a third set.

This function creates and returns a constraint (an instance of IloConstraint) for use in a model. The constraint forces the union of the values returned by the function f when it operates on var1 to be precisely the elements of the set var2.

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.


IloEqUnion

public IloConstraint IloEqUnion(const IloEnv env, const IloAnySetVar var1, const IloAnySetVar var2, const IloAnySetVar var3)
public IloConstraint IloEqUnion(const IloEnv env, const IloAnySetVar var, const IloAnySetVarArray vars)
public IloConstraint IloEqUnion(const IloEnv env, const IloIntSetVar var1, const IloIntSetVar var2, const IloIntSetVar var3)
public IloConstraint IloEqUnion(const IloEnv, const IloIntSetVar var, const IloIntSetVarArray vars)
Definition file: ilconcert/iloanyset.h
For IBM® ILOG® Solver : a constraint forcing the union of two sets to be the elements of a third set.

This function creates and returns a constraint (an instance of IloConstraint) for use in a model. When its arguments are two sets of variables, such as var2 and var3, the constraint forces the union of the sets var2 and var3 to be precisely the elements of the set unionSet. Likewise, when its arguments include an array of set variables, such as vars, the constraint forces the union of the elements of that array to be unionSet.

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.