int-post.cpp
Go to the documentation of this file.
Propagator for domain consistent n-ary linear equality
Definition linear.hh:609
static ExecStatus post(Home home, ViewArray< View > &x, ViewArray< View > &y, Val c)
Post propagator for .
Definition int-dom.hpp:362
Propagator for bounds consistent binary linear equality
Definition linear.hh:134
Propagator for bounds consistent ternary linear equality
Definition linear.hh:384
static ExecStatus post(Home home, ViewArray< P > &x, ViewArray< N > &y, Val c)
Post propagator for .
Definition int-nary.hpp:280
Propagator for bounds consistent binary linear less or equal
Definition linear.hh:237
Propagator for bounds consistent ternary linear less or equal
Definition linear.hh:454
static ExecStatus post(Home home, ViewArray< P > &x, ViewArray< N > &y, Val c)
Post propagator for .
Definition int-nary.hpp:631
Propagator for bounds consistent binary linear disequality
Definition linear.hh:201
Propagator for bounds consistent ternary linear disquality
Definition linear.hh:419
static ExecStatus post(Home home, ViewArray< P > &x, ViewArray< N > &y, Val c)
Post propagator for .
Definition int-nary.hpp:482
Propagator for reified bounds consistent binary linear equality
Definition linear.hh:168
Propagator for reified bounds consistent n-ary linear equality
Definition linear.hh:649
Propagator for reified bounds consistent binary linear less or equal
Definition linear.hh:305
Propagator for reified bounds consistent n-ary linear less or equal
Definition linear.hh:749
static ExecStatus post(Home home, View0 x0, View1 x1)
Post domain consistent propagator .
Definition eq.hpp:176
Reified bounds consistent equality with integer propagator.
Definition rel.hh:425
Reified domain consistent equality with integer propagator.
Definition rel.hh:398
ModEvent gq(Space &home, Val n)
Restrict domain values to be greater or equal than n.
Definition scale.hpp:159
ModEvent nq(Space &home, Val n)
Restrict domain values to be different from n.
Definition scale.hpp:172
ModEvent lq(Space &home, Val n)
Restrict domain values to be less or equal than n.
Definition scale.hpp:145
Exception: Unknown relation passed as argument
Definition exception.hpp:87
virtual Val val(const Space &home, View x, int i)=0
Return value of view x at position i.
void post(Home home, Term< IntView > *t, int n, IntRelType irt, int c, IntPropLevel ipl=IPL_DEF)
Post propagator for linear constraint over integers.
Definition int-post.cpp:219
ScaleView< long long int, unsigned long long int > LLongScaleView
Long long-precision integer scale view.
Definition view.hpp:810
ScaleView< int, unsigned int > IntScaleView
Integer-precision integer scale view.
Definition view.hpp:804
#define GECODE_ES_FAIL(es)
Check whether execution status es is failed, and fail space home.
Definition macros.hpp:103
#define GECODE_ME_FAIL(me)
Check whether modification event me is failed, and fail space home.
Definition macros.hpp:77
#define GECODE_INT_PL_TER(CLASS)
Macro for posting ternary special cases for linear constraints.
Definition int-post.cpp:194
#define GECODE_INT_PL_BIN(CLASS)
Macro for posting binary special cases for linear constraints.
Definition int-post.cpp:176
void check(int n, const char *l)
Check whether n is in range, otherwise throw out of limits with information l.
Definition limits.hpp:46
bool overflow_sub(int n, int m)
Check whether subtracting m from n would overflow.
Definition limits.hpp:93
Linear propagators
void eliminate(Term< BoolView > *t, int &n, long long int &d)
Eliminate assigned views.
Definition bool-post.cpp:43
bool precision(Term< IntView > *t_p, int n_p, Term< IntView > *t_n, int n_n, long long int d)
Decide the required precision and check for overflow.
Definition int-post.cpp:79
void posteqint(Home home, IntView &x, int c, CtrlView b, ReifyMode rm, IntPropLevel ipl)
Definition int-post.cpp:480
void rewrite(IntRelType &r, long long int &d)
Rewrite non-strict relations.
Definition bool-post.cpp:55
bool normalize(Term< View > *t, int &n, Term< View > *&t_p, int &n_p, Term< View > *&t_n, int &n_n, int &g)
Normalize linear integer constraints.
Definition post.hpp:126
void post_nary(Home home, ViewArray< View > &x, ViewArray< View > &y, IntRelType irt, Val c)
Posting n-ary propagators.
Definition int-post.cpp:158
Gecode toplevel namespace
IntPropLevel vbd(IntPropLevel ipl)
Extract value, bounds, or domain propagation from propagation level.
Definition ipl.hpp:37
