Domain consistent square root propagator. More...
#include <arithmetic.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool share) |
Copy propagator during cloning. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, View x0, View x1) |
Post propagator ![]() | |
Protected Member Functions | |
SqrtDom (Space &home, bool share, SqrtDom< View > &p) | |
Constructor for cloning p. | |
SqrtDom (Home home, View x0, View x1) | |
Constructor for posting. |
Gecode::Int::Arithmetic::SqrtDom::SqrtDom | ( | Home | home, |
View | x0, | ||
View | x1 | ||
) | [inline, protected] |
ExecStatus Gecode::Int::Arithmetic::SqrtDom::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
PropCost Gecode::Int::Arithmetic::SqrtDom::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::BinaryPropagator< View, PC_INT_DOM >.
ExecStatus Gecode::Int::Arithmetic::SqrtDom::post | ( | Home | home, |
View | x0, | ||
View | x1 | ||
) | [inline, static] |