n-ary domain consistent equality propagator More...
#include <rel.hh>
Public Member Functions | |
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, ViewArray< View > &x) |
Post domain consistent propagator ![]() | |
Protected Member Functions | |
NaryEqDom (Space &home, bool share, NaryEqDom< View > &p) | |
Constructor for cloning p. | |
NaryEqDom (Home home, ViewArray< View > &) | |
Constructor for posting. |
n-ary domain consistent equality propagator
Uses staging by first performing bounds propagation and only then domain propagation.
Requires
#include <gecode/int/rel.hh>
PropCost Gecode::Int::Rel::NaryEqDom::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 linear. Otherwise it is high linear.
Reimplemented from Gecode::NaryPropagator< View, PC_INT_DOM >.
ExecStatus Gecode::Int::Rel::NaryEqDom::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
ExecStatus Gecode::Int::Rel::NaryEqDom::post | ( | Home | home, |
ViewArray< View > & | x | ||
) | [static] |