69 ::
post(home,xv,off)));
72 ::
post(home,xv,off)));
91 if ((
y.size() !=
n) || (
c.size() !=
n*
n))
96 for (
int i=0;
i<offset;
i++)
98 for (
int i=
n;
i--; ) {
99 for (
int j=0; j<
n; j++)
100 cx[offset+j] =
c[
i*
n+j];
148 ::
post(home,xv,no)));
151 ::
post(home,xv,no)));
156 for (
int i=offset;
i--; )
159 ox[offset +
i] =
x[
i];
165 ::
post(home,xv,off)));
168 ::
post(home,xv,off)));
175 path(home,0,
x,s,e,ipl);
189 if ((
y.size() !=
n) || (
c.size() !=
n*
n))
192 path(home, offset,
x, s, e, ipl);
194 for (
int i=0;
i<offset;
i++)
197 for (
int i=
n;
i--; ) {
198 for (
int j=0; j<
n; j++)
199 cx[offset+j] =
c[
i*
n+j];
218 path(home,
c, offset,
x, s, e,
y,
z, ipl);
IntPropLevel vbd(IntPropLevel ipl)
Extract value, bounds, or domain propagation from propagation level.
Converter without offsets.
Exception: Too few arguments available in argument array
void path(Home home, int offset, const IntVarArgs &x, IntVar s, IntVar e, IntPropLevel ipl)
Post propagator such that x forms a Hamiltonian path.
void linear(Home home, const FloatVarArgs &x, FloatRelType frt, FloatVal c)
Post propagator for .
void nonnegative(int n, const char *l)
Check whether n is in range and nonnegative, otherwise throw out of limits with information l.
void circuit(Home home, int offset, const IntVarArgs &x, IntPropLevel ipl)
Post propagator such that x forms a circuit.
const int max
Largest allowed integer value.
const int min
Smallest allowed integer value.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
Post propagator for SetVar SetOpType SetVar SetRelType SetVar z
"Value-consistent" circuit propagator
Passing integer variables.
Passing integer arguments.
Converter with fixed offset.
IntPropLevel
Propagation levels for integer propagators.
Integer view for integer variables.
Post propagator for SetVar SetOpType SetVar y
bool same(const VarImpVar< VarImp > &y) const
Test whether variable is the same as y.
Exception: Arguments contain same variable multiply
Domain propagation Preferences: prefer speed or memory.
Post propagator for SetVar x
Gecode toplevel namespace
#define GECODE_POST
Check for failure in a constraint post function.
Home class for posting propagators
Exception: Arguments are of different size
#define GECODE_ES_FAIL(es)
Check whether execution status es is failed, and fail space home.
"Domain consistent" circuit propagator
void element(Home home, IntSharedArray c, IntVar x0, IntVar x1, IntPropLevel)
Post domain consistent propagator for .
TFE post(PropagatorGroup g)
Only post functions (but not propagators) from g are considered.