prop.hpp
Go to the documentation of this file.
Advisor(Space &home, Propagator &p, Council< A > &c)
Constructor for creation.
Definition core.hpp:4060
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Definition core.hpp:3373
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition int.hpp:121
ModEvent minus_v(Space &home, I &i, bool depends=true)
Remove from domain the values described by i.
Definition int.hpp:206
Domain advisor for a selected position.
Definition min-distance.hh:134
XAdvisor(Space &home, Propagator &p, Council< XAdvisor > &c, int i)
Constructor for creation.
Definition prop.hpp:277
AdvisorForward(Home home, ViewArray< IntView > &x0, IntView z0, const IntDistance &d0, const IntSharedArray &r0)
Constructor for posting.
Definition prop.hpp:286
virtual ExecStatus advise(Space &, Advisor &a, const Delta &)
Record a changed selected-site domain.
Definition prop.hpp:341
static ExecStatus post(Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d, const IntSharedArray &r)
Post propagator.
Definition prop.hpp:315
virtual size_t dispose(Space &home)
Cancel subscriptions and dispose stored data.
Definition prop.hpp:407
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition prop.hpp:327
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Perform propagation.
Definition prop.hpp:347
static ExecStatus post(Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d, const IntSharedArray &r)
Post propagator.
Definition prop.hpp:236
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Perform propagation.
Definition prop.hpp:253
virtual size_t dispose(Space &home)
Cancel subscriptions and dispose shared data.
Definition prop.hpp:269
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition prop.hpp:248
Finalize(Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d0, const IntSharedArray &r0)
Constructor for posting.
Definition prop.hpp:223
virtual size_t dispose(Space &home)
Cancel subscriptions and dispose shared data.
Definition prop.hpp:509
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition prop.hpp:467
bool refuted(int *sites, int n, bool *matched, int threshold) const
Whether a greedy conflict matching refutes the threshold.
Definition prop.hpp:435
Matching(Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d0)
Constructor for posting.
Definition prop.hpp:423
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Perform propagation.
Definition prop.hpp:472
static ExecStatus post(Home home, ViewArray< IntView > &x, IntView z, const IntDistance &d)
Post propagator.
Definition prop.hpp:454
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition prop.hpp:184
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Perform propagation.
Definition prop.hpp:189
static ExecStatus post(Home home, IntView x0, IntView x1, IntView x2, const IntDistance &d, int r)
Post propagator.
Definition prop.hpp:165
virtual size_t dispose(Space &home)
Cancel subscriptions and dispose shared data.
Definition prop.hpp:214
Pair(Home home, IntView x0, IntView y0, IntView z0, const IntDistance &d0, int r0)
Constructor for posting.
Definition prop.hpp:150
MixNaryOnePropagator(Space &home, MixNaryOnePropagator &p)
Definition pattern.hpp:733
ViewArray< IntView > x
Definition pattern.hpp:275
IntView y
Definition pattern.hpp:277
IntView x0
Definition pattern.hpp:240
IntView x1
Definition pattern.hpp:242
IntView x2
Definition pattern.hpp:244
MixTernaryPropagator(Space &home, MixTernaryPropagator &p)
Definition pattern.hpp:661
static PropCost quadratic(PropCost::Mod m, unsigned int n)
Quadratic complexity for modifier m and size measure n.
Definition core.hpp:5071
static PropCost cubic(PropCost::Mod m, unsigned int n)
Cubic complexity for modifier m and size measure n.
Definition core.hpp:5062
T * alloc(long unsigned int n)
Allocate block of n objects of type T from region.
Definition region.hpp:386
T * alloc(long unsigned int n)
Allocate block of n objects of type T from space heap.
Definition core.hpp:2973
void free(T *b, long unsigned int n)
Delete n objects allocated from space heap starting at b.
Definition core.hpp:2999
void update(Space &home, VarImpView< Var > &y)
Update this view to be a clone of view y.
Definition view.hpp:567
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to view.
Definition view.hpp:527
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p with propagation condition pc.
Definition view.hpp:532
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
Definition view.hpp:521
void update(Space &home, ViewArray< View > &a)
Update array to be a clone of array a.
Definition array.hpp:1337
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to all views.
Definition array.hpp:1358
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to variable.
Definition array.hpp:1350
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
Definition core.hpp:4321
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
Definition macros.hpp:52
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
Definition macros.hpp:91
bool me_modified(ModEvent me)
Check whether modification event me describes variable modification.
Definition modevent.hpp:59
Minimum-distance propagators over indexed sites.
ExecStatus assigned(Space &home, const ViewArray< IntView > &x, IntView z, const IntDistance &d, const IntSharedArray &r)
Validate and bind a complete assignment.
Definition prop.hpp:77
ExecStatus forward(Space &home, IntView a, IntView b, int threshold, const IntDistance &d, bool &changed)
Prune the partner of an assigned endpoint.
Definition prop.hpp:45
void pair_max(IntView x, IntView y, const IntDistance &d, PairCache &c)
Recompute the maximum distance between current domains.
Definition prop.hpp:64
ExecStatus zero(Space &home, const ViewArray< IntView > &x, const IntDistance &d, const IntSharedArray &r, bool &changed, bool &realized)
Enforce an actual zero-distance witness when the objective is zero.
Definition prop.hpp:93
int requirement(const IntSharedArray &r, int n, int i, int j)
Inclusive requirement, with an empty matrix denoting all zeroes.
Definition prop.hpp:39
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:99
Gecode toplevel namespace
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
Post propagator for .
SharedArray< int > IntSharedArray
Arrays of integers that can be shared among several element constraints.
Definition int.hh:1813
void values(Home home, const IntVarArgs &x, IntSet y, IntPropLevel ipl=IPL_DEF)
Post constraint .
Definition aliases.hpp:143
