Gecode::Set::Int::ChannelVarVal 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 "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 | ~ChannelVarVal (void) |
Destructor. | |
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 | |
ChannelVarVal (Space *home, bool share, ChannelVarVal &p) | |
Constructor for cloning p. | |
ChannelVarVal (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 channelVarVal.icc. |
|
Constructor for posting.
Definition at line 34 of file channelVarVal.icc. |
|
Destructor.
Definition at line 43 of file channelVarVal.cc. |
Member Function Documentation
|
Copy propagator during cloning.
Implements Gecode::Actor. Definition at line 49 of file channelVarVal.cc. |
|
Cost function (defined as PC_QUADRATIC_LO).
Implements Gecode::Propagator. Definition at line 39 of file channelVarVal.cc. |
|
Perform propagation.
Implements Gecode::Propagator. Definition at line 54 of file channelVarVal.cc. |
|
Post propagator for
Definition at line 51 of file channelVarVal.icc. |
Member Data Documentation
|
IntViews,
|
|
SetViews that are constrained to be disjoint.
|
The documentation for this class was generated from the following files: