Domain consistent positive square propagator. More...
#include <arithmetic.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, VA x0, VB x1) |
Post propagator ![]() | |
Protected Member Functions | |
SqrPlusDom (Home home, VA x0, VB x1) | |
Constructor for posting. | |
SqrPlusDom (Space &home, bool share, SqrPlusDom< VA, VB > &p) | |
Constructor for cloning p. |
Domain consistent positive square propagator.
This propagator provides multiplication for positive views only.
Gecode::Int::Arithmetic::SqrPlusDom::SqrPlusDom | ( | Home | home, |
VA | x0, | ||
VB | x1 | ||
) | [inline, protected] |
Gecode::Int::Arithmetic::SqrPlusDom::SqrPlusDom | ( | Space & | home, |
bool | share, | ||
SqrPlusDom< VA, VB > & | p | ||
) | [inline, protected] |
ExecStatus Gecode::Int::Arithmetic::SqrPlusDom::post | ( | Home | home, |
VA | x0, | ||
VB | x1 | ||
) | [inline, static] |
PropCost Gecode::Int::Arithmetic::SqrPlusDom::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< VA, PC_INT_DOM, VB, PC_INT_DOM >.
ExecStatus Gecode::Int::Arithmetic::SqrPlusDom::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |