36namespace Gecode {
namespace Int {
namespace NValues {
82 if (status & VS_ONE) {
88 }
else if (
x[i].one()) {
89 if (status & VS_ZERO) {
97 assert(status != (VS_ZERO | VS_ONE));
99 assert((status != 0) && (
y.min() >= 1));
112 if (status == (VS_ZERO | VS_ONE)) {
118 assert((status != 0) && (
y.min() >= 1));
123 if (status == VS_ZERO) {
125 status = VS_ZERO | VS_ONE;
130 if (status == VS_ONE) {
132 status = VS_ZERO | VS_ONE;
int p
Number of positive literals for node type.
int n
Number of negative literals for node type.
Base-class for both propagators and branchers.
Class to iterate over advisors of a council.
Home class for posting propagators
static ExecStatus post(Home home, ViewArray< BV > &x)
Post propagator .
Number of values propagator for Boolean views base class.
Less or equal to number of values propagator for Boolean views.
virtual Actor * copy(Space &home)
Copy propagator during cloning.
LqBool(Home home, int status, ViewArray< BoolView > &x, VY y)
Constructor for posting.
static ExecStatus post(Home home, ViewArray< BoolView > &x, VY y)
Post propagator for .
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
bool assigned(void) const
Test whether view is assigned.
Advisor storing a single view
ExecStatus ES_SUBSUMED(Propagator &p)
int ModEventDelta
Modification event deltas.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
Gecode toplevel namespace
Post propagator for SetVar SetOpType SetVar y
@ ES_OK
Execution is okay.
@ ES_FIX
Propagation has computed fixpoint.
Post propagator for SetVar x