Propagator for channelling between set variable and its characteristic function More...
#include <channel.hh>
Classes | |
class | IndexAdvisor |
Advisor storing a single index More... | |
Public Member Functions | |
virtual Actor * | copy (Space &home) |
Copy propagator during cloning. | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as PC_QUADRATIC_LO) | |
virtual void | reschedule (Space &home) |
Schedule function. | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Give advice to propagator. | |
![]() | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. | |
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. | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< Gecode::Int::BoolView > &x, View y) |
Post propagator for ![]() | |
![]() | |
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 Types | |
typedef MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE > | Super |
Protected Member Functions | |
ChannelBool (Space &home, ChannelBool &p) | |
Constructor for cloning p. | |
ChannelBool (Home home, ViewArray< Gecode::Int::BoolView > &, View) | |
Constructor for posting. | |
![]() | |
MixNaryOnePropagator (Space &home, MixNaryOnePropagator &p) | |
Constructor for cloning p. | |
MixNaryOnePropagator (Home home, ViewArray< Gecode::Int::BoolView > &x, View y) | |
Constructor for creation. | |
MixNaryOnePropagator (Space &home, Propagator &p, ViewArray< Gecode::Int::BoolView > &x, View y) | |
Constructor for rewriting p during cloning. | |
![]() | |
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 | |
Council< IndexAdvisor > | co |
Council for managing advisors. | |
SetDelta | delta |
Accumulated delta information. | |
GLBndSet | zeros |
Accumulated zero Booleans. | |
GLBndSet | ones |
Accumulated one Booleans. | |
bool | running |
Flag whether propagation is currently running. | |
![]() | |
ViewArray< Gecode::Int::BoolView > | x |
Array of views. | |
View | y |
Single view. | |
Propagator for channelling between set variable and its characteristic function
Implements channelling constraints between BoolVar and a SetVar. For BoolVars
Requires
Definition at line 148 of file channel.hh.
|
protected |
Definition at line 155 of file channel.hh.
|
inlineprotected |
|
inlineprotected |
|
virtual |
|
virtual |
Cost function (defined as PC_QUADRATIC_LO)
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
|
virtual |
Schedule function.
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
|
virtual |
|
virtual |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
|
inlinestatic |
|
protected |
Council for managing advisors.
Definition at line 185 of file channel.hh.
|
protected |
Accumulated delta information.
Definition at line 187 of file channel.hh.
|
protected |
Accumulated zero Booleans.
Definition at line 189 of file channel.hh.
|
protected |
Accumulated one Booleans.
Definition at line 191 of file channel.hh.
|
protected |
Flag whether propagation is currently running.
Definition at line 193 of file channel.hh.