
Binary domain consistent equality propagator. More...
#include <rel.hh>
Public Member Functions | |
| EqDom (Home home, View0 x0, View1 x1) | |
| Constructor for posting. | |
| EqDom (Space &home, bool share, Propagator &p, View0 x0, View1 x1) | |
| Constructor for rewriting p during cloning. | |
| virtual Actor * | copy (Space &home, bool share) |
| Copy propagator during cloning. | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Cost function. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| Perform propagation. | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, View0 x0, View1 x1) |
Post domain consistent propagator . | |
Protected Member Functions | |
| EqDom (Space &home, bool share, EqDom< View0, View1 > &p) | |
| Constructor for cloning p. | |
Binary domain consistent equality propagator.
Uses staging by first performing bounds propagation and only then domain propagation.
Requires
#include <gecode/int/rel.hh>
| Gecode::Int::Rel::EqDom< View0, View1 >::EqDom | ( | Space & | home, |
| bool | share, | ||
| EqDom< View0, View1 > & | p | ||
| ) | [inline, protected] |
| Gecode::Int::Rel::EqDom< View0, View1 >::EqDom | ( | Home | home, |
| View0 | x0, | ||
| View1 | x1 | ||
| ) | [inline] |
| Gecode::Int::Rel::EqDom< View0, View1 >::EqDom | ( | Space & | home, |
| bool | share, | ||
| Propagator & | p, | ||
| View0 | x0, | ||
| View1 | x1 | ||
| ) | [inline] |
| Actor * Gecode::Int::Rel::EqDom< View0, View1 >::copy | ( | Space & | home, |
| bool | share | ||
| ) | [virtual] |
| PropCost Gecode::Int::Rel::EqDom< View0, View1 >::cost | ( | const Space & | home, |
| const ModEventDelta & | med | ||
| ) | const [virtual] |
Cost function.
If a view has been assigned, the cost is low unary. If in stage for bounds propagation, the cost is low binary. Otherwise it is high binary.
Reimplemented from Gecode::MixBinaryPropagator< View0, PC_INT_DOM, View1, PC_INT_DOM >.
| ExecStatus Gecode::Int::Rel::EqDom< View0, View1 >::propagate | ( | Space & | home, |
| const ModEventDelta & | med | ||
| ) | [virtual] |
| ExecStatus Gecode::Int::Rel::EqDom< View0, View1 >::post | ( | Home | home, |
| View0 | x0, | ||
| View1 | x1 | ||
| ) | [static] |