product.hpp
Go to the documentation of this file.
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Definition core.hpp:3373
static ExecStatus post(Home home, IntView x0, IntView x1, IntView x2)
Post propagator .
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition product.hpp:345
Product(Home home, ViewArray< IntView > &x, IntView y, bool neg)
Constructor for posting.
Definition product.hpp:284
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function.
Definition product.hpp:333
static ExecStatus post(Home home, ViewArray< IntView > &x, IntView y, bool neg=false)
Post propagator.
Definition product.hpp:290
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition product.hpp:594
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function.
Definition product.hpp:580
static ExecStatus post(Home home, ViewArray< IntView > &x, IntView y, BoolView b)
Post propagator.
Definition product.hpp:553
ReProduct(Home home, ViewArray< IntView > &x, IntView y, BoolView b)
Constructor for posting.
Definition product.hpp:542
ModEvent lq(Space &home, int n)
Restrict domain values to be less or equal than n.
Definition int.hpp:121
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition int.hpp:139
static ExecStatus post(Home home, View0 x0, View1 x1)
Post bounds consistent propagator .
Definition eq.hpp:108
static ExecStatus post(Home home, View x0, View x1, CtrlView b)
Post bounds consistent propagator .
Definition eq.hpp:568
static ExecStatus post(Home home, View x, int c, CtrlView b)
Post domain consistent propagator .
Definition eq.hpp:644
NaryOnePropagator(Space &home, NaryOnePropagator &p)
static PropCost linear(PropCost::Mod m, unsigned int n)
Linear complexity for modifier pcm and size measure n.
Definition core.hpp:5080
T * alloc(long unsigned int n)
Allocate block of n objects of type T from region.
Definition region.hpp:386
void update(Space &home, VarImpView< Var > &y)
Update this view to be a clone of view y.
Definition view.hpp:567
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 move_lst(int i)
Move view from position size()-1 to position i (truncate array by one).
Definition array.hpp:1245
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_REWRITE(prop, post)
Rewrite propagator by executing post function.
Definition macros.hpp:116
bool me_modified(ModEvent me)
Check whether modification event me describes variable modification.
Definition modevent.hpp:59
Numerical (arithmetic) propagators.
bool product_power_le(int x, int n, int limit)
Definition product.hpp:99
int product_ceil_root(int x, int n)
Definition product.hpp:122
RelTest product_status(const ViewArray< IntView > &x, const IntView &y)
Determine the relation when bounds or assignments prove it.
Definition product.hpp:258
ProductInterval product_root_interval(ProductInterval x, int n, ProductInterval d)
Invert integer power bounds; min greater than max denotes no support.
Definition product.hpp:189
ProductInterval product_interval_mul(ProductInterval a, int bmin, int bmax)
Multiply two representable intervals, clipping out-of-range endpoints.
Definition product.hpp:45
int product_floor_root(int x, int n)
Floor and ceiling of a nonnegative integer root.
Definition product.hpp:111
ProductInterval product_interval(const ViewArray< IntView > &x, int omit=-1)
Compute product bounds, optionally omitting one factor.
Definition product.hpp:222
ProductInterval product_quotient_hull(ProductInterval y, ProductInterval q)
Hull of quotients by the nonzero parts of a cofactor interval.
Definition product.hpp:171
int product_power_abs(int x, int n)
Compute a nonnegative power, saturating at the integer limit.
Definition product.hpp:70
ProductWideInterval product_quotient_bounds(long long int ymin, long long int ymax, int qmin, int qmax)
Quotient bounds for a zero-free divisor, before clipping the endpoints.
Definition product.hpp:135
ProductInterval product_quotient_interval(int ymin, int ymax, int qmin, int qmax)
Compute a saturated hull of quotients by a zero-free interval.
Definition product.hpp:157
ProductInterval product_power_interval(IntView x, int n)
Bounds for a repeated occurrence viewed as an integer power.
Definition product.hpp:83
bool product_value(const int *v, int n, int &p)
Evaluate a tuple without overflowing internal arithmetic.
Definition product.hpp:238
bool overflow_mul(int n, int m)
Check whether multiplying n and m would overflow.
Definition limits.hpp:107
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:99
const Gecode::PropCond PC_BOOL_VAL
Propagate when a view becomes assigned (single value).
Definition var-type.hpp:134
const Gecode::ModEvent ME_INT_NONE
Domain operation has not changed domain.
Definition var-type.hpp:62
Gecode toplevel namespace
void roots(Home home, const IntVarArgs &x, SetVar y, SetVar z)
Post constraint .
Definition aliases.hpp:163
A representable, conservative interval for an exact product.
Definition product.hpp:38
An interval whose endpoints have not been restricted to integer limits.
Definition product.hpp:128
