open.hpp
Go to the documentation of this file.
Advisor(Space &home, Propagator &p, Council< A > &c)
Constructor for creation.
Definition core.hpp:4060
void update(Space &home, Council< A > &c)
Update during cloning (copies all advisors).
Definition core.hpp:4160
OpenListPropagator(Home home, OpenViewList< View > list0)
Definition open-propagator.hpp:49
void dispose_base(Space &home)
Definition open-propagator.hpp:69
Position(Space &home, Propagator &p, Council< Position > &council, int index0)
Definition open.hpp:55
void dispose(Space &home, Council< Position > &council)
Definition open.hpp:63
View ordered(int index, int size) const
Read decreasing relations in increasing order.
Definition open.hpp:94
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Propagation function.
Definition open.hpp:206
ExecStatus propagate_order(Space &home, int begin, int end, int size)
Sweep lower bounds forward and upper bounds backward from changed positions.
Definition open.hpp:153
ExecStatus propagate_equal(Space &home, int begin, int end, int size)
Accumulate the domain intersection in the first position.
Definition open.hpp:101
virtual ExecStatus advise(Space &home, Advisor &advisor, const Delta &delta)
Advise function.
Definition open.hpp:189
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition open.hpp:184
Open(Home home, OpenViewList< View > list, IntPropLevel ipl)
Definition open.hpp:75
ExecStatus propagate_different(Space &home, int begin, int end, int size)
Propagate assignments to their immediate neighbors.
Definition open.hpp:138
static void post(Home home, OpenViewList< View > list, IntPropLevel ipl)
Definition open.hpp:259
static PropCost linear(PropCost::Mod m, unsigned int n)
Linear complexity for modifier pcm and size measure n.
Definition core.hpp:5080
virtual Val val(const Space &home, View x, int i)=0
Return value of view x at position i.
ExecStatus ES_NOFIX_DISPOSE(Council< A > &c, A &a)
Advisor a must be disposed and its propagator must be run
Definition core.hpp:4121
#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
Simple relation propagators.
Gecode toplevel namespace
IntPropLevel vbd(IntPropLevel ipl)
Extract value, bounds, or domain propagation from propagation level.
Definition ipl.hpp:37
