Propagator for channelling between variable-value-dual models More...
#include <int.hh>
Public Member Functions | |
virtual Actor * | copy (Space &home, bool) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) 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, const ModEventDelta &med) |
Perform propagation. | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Advise function. | |
double | afc (void) const |
Return the accumlated failure count. |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< Gecode::Int::CachedView< Gecode::Int::IntView > > &x, ViewArray< CachedView< View > > &y) |
Post propagator for ![]() |
Protected Member Functions | |
ChannelInt (Space &home, bool share, ChannelInt &p) | |
Constructor for cloning p. | |
ChannelInt (Home home, ViewArray< Gecode::Int::CachedView< Gecode::Int::IntView > > &, ViewArray< CachedView< View > > &) | |
Constructor for posting. | |
![]() | |
Propagator (Home home) | |
Constructor for posting. | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. |
Protected Attributes | |
ViewArray < Gecode::Int::CachedView < Gecode::Int::IntView > > | xs |
IntViews, ![]() ![]() | |
ViewArray< CachedView< View > > | ys |
SetViews that are constrained to be disjoint. |
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
|
inlineprotected |
Constructor for cloning p.
Definition at line 63 of file channel-int.hpp.
|
inlineprotected |
Constructor for posting.
Definition at line 48 of file channel-int.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 112 of file channel-int.hpp.
|
virtual |
Cost function (defined as PC_QUADRATIC_LO)
Implements Gecode::Propagator.
Definition at line 97 of file channel-int.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 103 of file channel-int.hpp.
|
virtual |
|
inlinestatic |
Post propagator for .
Definition at line 71 of file channel-int.hpp.
|
protected |
|
protected |