nogoods.cpp
Go to the documentation of this file.
virtual ExecStatus prune(Space &home)=0
Propagate the negation of the no-good literal.
virtual void cancel(Space &home, Propagator &p)=0
Cancel propagator p from all views of the no-good literal.
virtual void subscribe(Space &home, Propagator &p)=0
Subscribe propagator p to all views of the no-good literal.
virtual NGL::Status status(const Space &home) const =0
Test the status of the no-good literal.
virtual void reschedule(Space &home, Propagator &p)=0
Schedule propagator p for all views of the no-good literal.
static PropCost linear(PropCost::Mod m, unsigned int n)
Linear complexity for modifier pcm and size measure n.
Definition core.hpp:5080
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition nogoods.cpp:100
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Const function (defined as low unary).
Definition nogoods.cpp:82
virtual NGL::Status status(const Space &home) const
Test the status of the no-good literal.
Definition nogoods.cpp:61
virtual ExecStatus prune(Space &home)
Propagate the negation of the no-good literal.
Definition nogoods.cpp:66
virtual void cancel(Space &home, Propagator &p)
Cancel propagator p from all views of the no-good literal.
Definition nogoods.cpp:53
virtual void reschedule(Space &home, Propagator &p)
Schedule propagator p for all views of the no-good literal.
Definition nogoods.cpp:57
virtual void subscribe(Space &home, Propagator &p)
Subscribe propagator p to all views of the no-good literal.
Definition nogoods.cpp:49
void rfree(void *p, size_t s)
Free memory previously allocated with alloc (might be reused later).
Definition core.hpp:2939
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
Definition core.hpp:4321
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
Definition macros.hpp:91
Search engines
NGL * disposenext(NGL *ngl, Space &home, Propagator &p, bool c)
Help function to cancel and dispose a no-good literal.
Definition nogoods.cpp:40
Gecode toplevel namespace
