
Domain consistent global cardinality propagator. More...
#include <gcc.hh>
Public Member Functions | |
| virtual Actor * | copy (Space &home) |
| Copy propagator during cloning. | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Cost function. | |
| virtual void | reschedule (Space &home) |
| Schedule function. | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| Perform propagation. | |
| virtual size_t | dispose (Space &home) |
| Destructor. | |
Public Member Functions inherited from Gecode::Propagator | |
| ModEventDelta | modeventdelta (void) const |
| Return the modification event delta. | |
| virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
| Advise function. | |
| virtual void | advise (Space &home, Advisor &a) |
| Run advisor a to be run on failure in failed space. | |
| double | afc (void) const |
| Return the accumlated failure count. | |
| unsigned int | id (void) const |
| Return propagator id. | |
| PropagatorGroup | group (void) const |
| Return group propagator belongs to. | |
| void | group (PropagatorGroup g) |
| Add propagator to group g. | |
| bool | disabled (void) const |
| Whether propagator is currently disabled. | |
Public Member Functions inherited from Gecode::Actor | |
| virtual | ~Actor (void) |
| To avoid warnings. | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, ViewArray< IntView > &x, ViewArray< Card > &k) |
| Post propagator for views x and cardinalities k. | |
Static Public Member Functions inherited from Gecode::Actor | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. | |
| static void * | operator new (size_t s) |
| Not used. | |
| static void | operator delete (void *p) |
| Not used. | |
Protected Member Functions | |
| Dom (Space &home, Dom< Card > &p) | |
| Constructor for cloning p. | |
| Dom (Home home, ViewArray< IntView > &, ViewArray< Card > &, bool) | |
| Constructor for posting. | |
Protected Member Functions inherited from Gecode::Propagator | |
| Propagator (Home home) | |
| Constructor for posting. | |
| Propagator (Space &home, Propagator &p) | |
| Constructor for cloning p. | |
| Propagator * | fwd (void) const |
| Return forwarding pointer during copying. | |
| Kernel::GPI::Info & | gpi (void) |
| Provide access to global propagator information. | |
Protected Attributes | |
| ViewArray< IntView > | x |
| Views on which to perform domain-propagation. | |
| ViewArray< IntView > | y |
Views used to channel information between x and k ( ![]() | |
| ViewArray< Card > | k |
| Array containing either fixed cardinalities or CardViews. | |
| VarValGraph< Card > * | vvg |
| Propagation is performed on a variable-value graph (used as cache) | |
| bool | card_fixed |
| Stores whether cardinalities are all assigned. | |
Domain consistent global cardinality propagator.
The algorithm is taken from: Claude-Guy Quimper, Peter van Beek, Alejandro López-Ortiz, and Alexander Golynski. Improved Algorithms for the Global Cardinality Constraint, CP 2004, pages 542-556.
Requires
|
inlineprotected |
|
inlineprotected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |