Bounds consistent absolute value 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, View x0, View x1) |
Post bounds consistent propagator ![]() | |
Protected Member Functions | |
AbsBnd (Space &home, bool share, AbsBnd &p) | |
Constructor for cloning p. | |
AbsBnd (Home home, View x0, View x1) | |
Constructor for posting. |
Bounds consistent absolute value propagator.
Requires
#include <gecode/int/arithmetic.hh>
Definition at line 62 of file arithmetic.hh.
Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd | ( | Space & | home, |
bool | share, | ||
AbsBnd< View > & | p | ||
) | [inline, protected] |
Gecode::Int::Arithmetic::AbsBnd< View >::AbsBnd | ( | Home | home, |
View | x0, | ||
View | x1 | ||
) | [inline, protected] |
Actor * Gecode::Int::Arithmetic::AbsBnd< View >::copy | ( | Space & | home, |
bool | share | ||
) | [virtual] |
PropCost Gecode::Int::Arithmetic::AbsBnd< View >::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function.
If a view has been assigned, the cost is low unary. Otherwise it is low binary.
Reimplemented from Gecode::BinaryPropagator< View, PC_INT_BND >.
ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::propagate | ( | Space & | home, |
const ModEventDelta & | med | ||
) | [virtual] |
ExecStatus Gecode::Int::Arithmetic::AbsBnd< View >::post | ( | Home | home, |
View | x0, | ||
View | x1 | ||
) | [static] |