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
Gecode::Set::Int::Channel::Channel | ( | Space * | home, | |
ViewArray< Gecode::Int::IntView > & | , | |||
ViewArray< SetView > & | ||||
) | [inline, protected] |
Member Function Documentation
PropCost Gecode::Set::Int::Channel::cost | ( | void | ) | const [virtual] |
Cost function (defined as PC_QUADRATIC_LO).
Implements Gecode::Propagator.
Definition at line 39 of file channel.cc.
size_t Gecode::Set::Int::Channel::dispose | ( | Space * | home | ) | [virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Definition at line 44 of file channel.cc.
ExecStatus Gecode::Set::Int::Channel::propagate | ( | Space * | home | ) | [virtual] |
ExecStatus Gecode::Set::Int::Channel::post | ( | Space * | home, | |
ViewArray< Gecode::Int::IntView > & | x, | |||
ViewArray< SetView > & | y | |||
) | [inline, static] |
Member Data Documentation
ViewArray< Gecode::Int::IntView > Gecode::Set::Int::Channel::xs [protected] |
ViewArray< SetView > Gecode::Set::Int::Channel::ys [protected] |
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)