Gecode::Set::Int::Channel Class Reference
[Set propagators]
#include <int.hh>
Inherits Gecode::Propagator.
Detailed Description
Propagator for channelling between variable-value-dual models
Implements channelling constraints between IntVars and SetVars. For IntVars and SetVars
it propagates the constraint
.
Can be used to implement the "channelling constraints" for disjoint with cardinalities from "Disjoint, Partition and Intersection Constraints for Set and Multiset Variables" Christian Bessiere, Emmanuel Hebrard, Brahim Hnich, Toby Walsh CP 2004
Requires
#include "gecode/set/int.hh"
Definition at line 151 of file int.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool) |
Copy propagator during cloning. | |
virtual PropCost | cost (void) const |
Cost function (defined as PC_QUADRATIC_LO). | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< Gecode::Int::IntView > &x, ViewArray< SetView > &y) |
Post propagator for ![]() | |
Protected Member Functions | |
Channel (Space *home, bool share, Channel &p) | |
Constructor for cloning p. | |
Channel (Space *home, ViewArray< Gecode::Int::IntView > &, ViewArray< SetView > &) | |
Constructor for posting. | |
Protected Attributes | |
ViewArray< Gecode::Int::IntView > | xs |
IntViews, ![]() ![]() | |
ViewArray< SetView > | ys |
SetViews that are constrained to be disjoint. |
Constructor & Destructor Documentation
|
Constructor for cloning p.
Definition at line 43 of file channel.icc. |
|
Constructor for posting.
Definition at line 34 of file channel.icc. |
Member Function Documentation
|
Copy propagator during cloning.
Implements Gecode::Actor. Definition at line 53 of file channel.cc. |
|
Cost function (defined as PC_QUADRATIC_LO).
Implements Gecode::Propagator. Definition at line 39 of file channel.cc. |
|
Delete propagator and return its size.
Reimplemented from Gecode::Actor. Definition at line 44 of file channel.cc. |
|
Perform propagation.
Implements Gecode::Propagator. Definition at line 58 of file channel.cc. |
|
Post propagator for
Definition at line 51 of file channel.icc. |
Member Data Documentation
|
IntViews,
|
|
SetViews that are constrained to be disjoint.
|
The documentation for this class was generated from the following files:
- gecode/set/int.hh (Revision: 3246)
- gecode/set/int/channel.cc (Revision: 3246)
- gecode/set/int/channel.icc (Revision: 3188)