
Propagator for channelling between set variable and its characteristic function More...
#include <int.hh>
Classes | |
| class | IndexAdvisor |
| Advisor storing a single index More... | |
Public Member Functions | |
| virtual Actor * | copy (Space &home, bool) |
| Copy propagator during cloning. More... | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Cost function (defined as PC_QUADRATIC_LO) More... | |
| virtual size_t | dispose (Space &home) |
| Delete propagator and return its size. More... | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| Perform propagation. More... | |
| virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
| Give advice to propagator. More... | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, ViewArray< Gecode::Int::BoolView > &x, View y) |
Post propagator for . More... | |
Protected Types | |
| typedef MixNaryOnePropagator < Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE > | Super |
Protected Member Functions | |
| ChannelBool (Space &home, bool share, ChannelBool &p) | |
| Constructor for cloning p. More... | |
| ChannelBool (Home home, ViewArray< Gecode::Int::BoolView > &, View) | |
| Constructor for posting. More... | |
Protected Member Functions inherited from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE > | |
| MixNaryOnePropagator (Space &home, bool share, MixNaryOnePropagator &p) | |
| Constructor for cloning p. More... | |
| MixNaryOnePropagator (Home home, ViewArray< Gecode::Int::BoolView > &x, Viewy) | |
| Constructor for creation. More... | |
| MixNaryOnePropagator (Space &home, bool share, Propagator &p, ViewArray< Gecode::Int::BoolView > &x, Viewy) | |
| Constructor for rewriting p during cloning. More... | |
Protected Member Functions inherited from Gecode::Propagator | |
| Propagator (Home home) | |
| Constructor for posting. More... | |
| Propagator (Space &home, bool share, Propagator &p) | |
| Constructor for cloning p. More... | |
Protected Attributes | |
| Council< IndexAdvisor > | co |
| Council for managing advisors. More... | |
| SetDelta | delta |
| Accumulated delta information. More... | |
| GLBndSet | zeros |
| Accumulated zero Booleans. More... | |
| GLBndSet | ones |
| Accumulated one Booleans. More... | |
| bool | running |
| Flag whether propagation is currently running. More... | |
Protected Attributes inherited from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE > | |
| ViewArray< Gecode::Int::BoolView > | x |
| Array of views. More... | |
| View | y |
| Single view. More... | |
Propagator for channelling between set variable and its characteristic function
Implements channelling constraints between BoolVar and a SetVar. For BoolVars
and SetVar
it propagates the constraint
.
Requires
|
protected |
|
inlineprotected |
Constructor for cloning p.
Definition at line 109 of file channel-bool.hpp.
|
inlineprotected |
Constructor for posting.
Definition at line 83 of file channel-bool.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 139 of file channel-bool.hpp.
|
virtual |
Cost function (defined as PC_QUADRATIC_LO)
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
Definition at line 125 of file channel-bool.hpp.
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.
Definition at line 131 of file channel-bool.hpp.
|
virtual |
Perform propagation.
Implements Gecode::Propagator.
Definition at line 145 of file channel-bool.hpp.
|
virtual |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 195 of file channel-bool.hpp.
|
inlinestatic |
Post propagator for
.
Definition at line 116 of file channel-bool.hpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |