Selection constraints
[Using finite integer sets]
Collaboration diagram for Selection constraints:
![]() |
Detailed Description
A selection constraint selects zero, one or more elements out of a sequence. We write
![$ [y] $](form_341.png)
Set selection constraints are closely related to the element constraint on finite domain variables.
Functions | |
void | Gecode::selectUnion (Space *home, const SetVarArgs &x, SetVar y, SetVar z) |
Post propagator for ![]() | |
void | Gecode::selectInter (Space *home, const SetVarArgs &x, SetVar y, SetVar z) |
void | Gecode::selectInterIn (Space *home, const SetVarArgs &x, SetVar y, SetVar z, const IntSet &universe) |
void | Gecode::selectDisjoint (Space *home, const SetVarArgs &x, SetVar y) |
Post propagator for ![]() | |
void | Gecode::selectSet (Space *home, const SetVarArgs &x, IntVar y, SetVar z) |
Post propagator for ![]() |
Function Documentation
|
Post propagator for
|
|
Post propagator for
If y is empty, z will be constrained to be the universe |
|
Post propagator for If y is empty, z will be constrained to be the given universe u (as an empty intersection is the universe). |
|
Post propagator for
|
|
Post propagator for
|