Gecode::Int::Rel::Lex< View > Class Template Reference
[Integer propagators]
#include <rel.hh>
Inherits Gecode::Propagator.
Detailed Description
template<class View>
class Gecode::Int::Rel::Lex< View >
Lexical ordering propagator.
The propagator uses the algorithm (and also the automaton) from: Mats Carlsson, Nicolas Beldiceanu, Revisiting the Lexicographic Ordering Constraint. SICS Technical Report T2002:17, SICS, Sweden, 2002.
It deviates in the following two main aspects:
- Assigned variables are eagerly eliminated This yields the same incremental behaviour with respect to states 1 and 2 of the automaton. With respect to the values of q and r in the report:
- q is always 0 after elimination
- r is always 1 after elimination
- It is not incremental with respect to states 3 and 4 as no propagation event information is available
Requires
#include "gecode/int/rel.hh"
Definition at line 584 of file rel.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function (defined as dynamic PC_LINEAR_LO). | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Specification for this propagator. | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post propagator according to specification. | |
static Support::Symbol | ati (void) |
Mangled propagator name. | |
static ExecStatus | post (Space *home, ViewArray< View > &x, ViewArray< View > &y, bool strict) |
Post propagator for lexical order between x and y. | |
Protected Member Functions | |
Lex (Space *home, bool share, Lex &p) | |
Constructor for cloning p. | |
Lex (Space *home, ViewArray< View > &x, ViewArray< View > &y, bool strict) | |
Constructor for posting. | |
Protected Attributes | |
ViewArray< View > | x |
View arrays. | |
ViewArray< View > | y |
bool | strict |
Determines whether propagator is strict or not. |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Rel::Lex< View >::Lex | ( | Space * | home, | |
bool | share, | |||
Lex< View > & | p | |||
) | [inline, protected] |
template<class View>
Gecode::Int::Rel::Lex< View >::Lex | ( | Space * | home, | |
ViewArray< View > & | x, | |||
ViewArray< View > & | y, | |||
bool | strict | |||
) | [inline, protected] |
Member Function Documentation
template<class View>
Actor * Gecode::Int::Rel::Lex< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
template<class View>
PropCost Gecode::Int::Rel::Lex< View >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
template<class View>
ExecStatus Gecode::Int::Rel::Lex< View >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class View>
Reflection::ActorSpec Gecode::Int::Rel::Lex< View >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
template<class View>
void Gecode::Int::Rel::Lex< View >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class View>
Support::Symbol Gecode::Int::Rel::Lex< View >::ati | ( | void | ) | [inline, static] |
template<class View>
ExecStatus Gecode::Int::Rel::Lex< View >::post | ( | Space * | home, | |
ViewArray< View > & | x, | |||
ViewArray< View > & | y, | |||
bool | strict | |||
) | [inline, static] |
template<class View>
size_t Gecode::Int::Rel::Lex< View >::dispose | ( | Space * | home | ) | [inline, virtual] |
Member Data Documentation
template<class View>
ViewArray<View> Gecode::Int::Rel::Lex< View >::x [protected] |
template<class View>
ViewArray<View> Gecode::Int::Rel::Lex< View >::y [protected] |
template<class View>
bool Gecode::Int::Rel::Lex< View >::strict [protected] |
The documentation for this class was generated from the following files:
- gecode/int/rel.hh (Revision: 7290)
- gecode/int/rel/lex.icc (Revision: 7290)