65 ::
post(home,xv,off)));
68 ::
post(home,xv,off)));
92 for (
int i=0;
i<offset;
i++)
94 for (
int i=0;
i<
n;
i++) {
95 for (
int j=0; j<
n; j++)
96 cx[offset+j] = c[
i*n+j];
114 circuit(home, c, offset, x,
y, z, ipl);
134 for (
int i=0;
i<
n;
i++)
144 ::
post(home,xv,no)));
147 ::
post(home,xv,no)));
152 for (
int i=0; i<offset; i++)
154 for (
int i=0; i<
n; i++)
155 ox[offset + i] = x[i];
156 element(home, ox, e, offset+n);
161 ::
post(home,xv,off)));
164 ::
post(home,xv,off)));
171 path(home,0,x,s,e,ipl);
188 path(home, offset, x, s, e, ipl);
190 for (
int i=0;
i<offset;
i++)
193 for (
int i=0;
i<
n;
i++) {
194 for (
int j=0; j<
n; j++)
195 cx[offset+j] = c[
i*n+j];
205 path(home,c,0,x,s,e,y,z,ipl);
214 path(home, c, offset, x, s, e,
y, z, ipl);
220 path(home,c,0,x,s,e,z,ipl);
IntPropLevel vbd(IntPropLevel ipl)
Extract value, bounds, or domain propagation from propagation level.
int size(void) const
Return size of array (number of elements)
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.
int n
Number of negative literals for node type.
Gecode::IntArgs i({1, 2, 3, 4})
Post propagator for SetVar SetOpType SetVar SetRelType SetVar z
"Value-consistent" circuit propagator
Passing integer variables.
Passing integer arguments.
bool same(VarArgArray< Var > x, VarArgArray< Var > y)
Converter with fixed offset.
IntPropLevel
Propagation levels for integer propagators.
Integer view for integer variables.
Post propagator for SetVar SetOpType SetVar y
Exception: Arguments contain same variable multiply
Domain propagation Options: basic versus advanced propagation.
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.