Selection constraints
[Using finite integer sets]
Detailed Description
A selection constraint selects zero, one or more elements out of a sequence.
We write
for the sequence, and
for the selector variable.
Set selection constraints are closely related to the element constraint on finite domain variables.
Functions | |
| static synchronized void | org::gecode::Gecode.selectUnion (JavaSpace home, VarArray<?extends SetVar > x, SetVar y, SetVar z) |
Post propagator for If y is the empty set, z will also be constrained to be empty (as an empty union is empty). | |
| static synchronized void | org::gecode::Gecode.selectInter (JavaSpace home, VarArray<?extends SetVar > x, SetVar y, SetVar z) |
Post propagator for using as universe. | |
| static synchronized void | org::gecode::Gecode.selectInterIn (JavaSpace home, VarArray<?extends SetVar > x, SetVar y, SetVar z, IntSet u) |
Post propagator for using u as universe. | |
| static synchronized void | org::gecode::Gecode.selectDisjoint (JavaSpace home, VarArray<?extends SetVar > x, SetVar y) |
Post propagator for . | |
| static synchronized void | org::gecode::Gecode.selectSet (JavaSpace home, VarArray<?extends SetVar > x, IntVar y, SetVar z) |
Post propagator for . | |
Function Documentation
| static synchronized void org.gecode.Gecode.selectUnion | ( | JavaSpace | home, | |
| VarArray<?extends SetVar > | x, | |||
| SetVar | y, | |||
| SetVar | z | |||
| ) | [static, inherited] |
Post propagator for
If y is the empty set, z will also be constrained to be empty (as an empty union is empty).
Definition at line 2361 of file Gecode.java.
| static synchronized void org.gecode.Gecode.selectInter | ( | JavaSpace | home, | |
| VarArray<?extends SetVar > | x, | |||
| SetVar | y, | |||
| SetVar | z | |||
| ) | [static, inherited] |
Post propagator for
using
as universe.
If y is empty, z will be constrained to be the universe
(as an empty intersection is the universe).
Definition at line 2371 of file Gecode.java.
| static synchronized void org.gecode.Gecode.selectInterIn | ( | JavaSpace | home, | |
| VarArray<?extends SetVar > | x, | |||
| SetVar | y, | |||
| SetVar | z, | |||
| IntSet | u | |||
| ) | [static, inherited] |
Post propagator for
using u as universe.
If y is empty, z will be constrained to be the given universe u (as an empty intersection is the universe).
Definition at line 2381 of file Gecode.java.

.
.