FRAMES NO FRAMES

IlcSubsetEq

public IlcConstraint IlcSubsetEq(IlcAnySetVar a, IlcAnySetVar b)
public IlcConstraint IlcSubsetEq(IlcAnySet a, IlcAnySetVar b)
public IlcConstraint IlcSubsetEq(IlcAnySetVar a, IlcAnySet b)
public IlcConstraint IlcSubsetEq(IlcIntSetVar a, IlcIntSetVar b)
public IlcConstraint IlcSubsetEq(IlcIntSet a, IlcIntSetVar b)
public IlcConstraint IlcSubsetEq(IlcIntSetVar a, IlcIntSet b)
Definition file: ilsolver/ilcset.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a constraint that a must be a subset of b. (The set a may be equal to the set b.) To set a strict subset constraint, use the following statement:

 s.add(IlcSubset(set1, set2));

Adding These Constraints

You may add these constraints only during a Solver search; that is, inside a goal (an instance of IlcGoal) or inside a constraint (an instance of IlcConstraint). If you are looking for similar functionality in a constraint to add to a model, see IloEqUnion.

See Also: