Generated on Sat Aug 25 2012 15:53:11 for Gecode by doxygen 1.7.5
Gecode::Int::Arithmetic::AbsDom Class Reference

Domain consistent absolute value propagator. More...

#include <arithmetic.hh>

List of all members.

Public Member Functions

virtual Actorcopy (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 domain consistent propagator $ |x_0|=x_1$.

Protected Member Functions

 AbsDom (Space &home, bool share, AbsDom &p)
 Constructor for cloning p.
 AbsDom (Home home, View x0, View x1)
 Constructor for posting.

Detailed Description

Domain consistent absolute value propagator.

Requires


Constructor & Destructor Documentation

Gecode::Int::Arithmetic::AbsDom::AbsDom ( Space home,
bool  share,
AbsDom p 
) [protected]

Constructor for cloning p.

Gecode::Int::Arithmetic::AbsDom::AbsDom ( Home  home,
View  x0,
View  x1 
) [inline, protected]

Constructor for posting.

Definition at line 137 of file abs.hpp.


Member Function Documentation

Actor * Gecode::Int::Arithmetic::AbsDom::copy ( Space home,
bool  share 
) [virtual]

Copy propagator during cloning.

Definition at line 169 of file abs.hpp.

PropCost Gecode::Int::Arithmetic::AbsDom::cost ( const Space home,
const ModEventDelta med 
) const [virtual]

Cost function.

If a view has been assigned, the cost is low binary. If in stage for bounds propagation, the cost is low binary. Otherwise it is high binary.

Reimplemented from Gecode::BinaryPropagator< View, PC_INT_DOM >.

Definition at line 175 of file abs.hpp.

ExecStatus Gecode::Int::Arithmetic::AbsDom::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

Definition at line 185 of file abs.hpp.

ExecStatus Gecode::Int::Arithmetic::AbsDom::post ( Home  home,
View  x0,
View  x1 
) [static]

Post domain consistent propagator $ |x_0|=x_1$.

Definition at line 142 of file abs.hpp.


The documentation for this class was generated from the following files: