75 long long int cx_min = (
static_cast<long long int>(
c[
i]) +
76 static_cast<long long int>(
x[
i].
min()));
77 long long int cx_max = (
static_cast<long long int>(
c[
i]) +
78 static_cast<long long int>(
x[
i].
max()));
102 if (
b.size() !=
x.size())
110 for (
int i=0;
i<
n;
i++)
130 for (
int i=0;
i<
n;
i++)
133 }
else if (
b[
i].none()) {
136 (home,
b[
i],
x[
i], start+j,
y[j])));
165 for (
int i=0;
i<
n;
i++)
185 for (
int i=0;
i<
n;
i++)
191 (home,
x[
i],
y[j],
c, start+j));
struct Gecode::@602::NNF::@65::@66 b
For binary nodes (and, or, eqv)
int n
Number of negative literals for node type.
Node * x
Pointer to corresponding Boolean expression node.
Passing Boolean variables.
FloatNum size(void) const
Return size of float value (distance between maximum and minimum)
Home class for posting propagators
Passing integer arguments.
Passing integer variables.
Exception: Arguments contain same variable multiply
Exception: Arguments are of different size
If-then-else domain-consistent propagator.
Bounds consistent distinct propagator.
Domain consistent distinct propagator.
static ExecStatus post(Home home, IntView x0, IntView x1, int c0, int c1)
Post if-then-else propagator.
Naive value distinct propagator.
Exception: Value out of limits
void distinct(Home home, const IntVarArgs &x, IntPropLevel ipl)
Post propagator for for all .
Post propagator for SetVar SetOpType SetVar y
#define GECODE_POST
Check for failure in a constraint post function.
#define GECODE_ES_FAIL(es)
Check whether execution status es is failed, and fail space home.
IntPropLevel
Propagation levels for integer propagators.
@ IPL_DOM
Domain propagation Options: basic versus advanced propagation.
@ IPL_BND
Bounds propagation.
IntPropLevel vbd(IntPropLevel ipl)
Extract value, bounds, or domain propagation from propagation level.
bool same(VarArgArray< Var > x, VarArgArray< Var > y)
const FloatNum max
Largest allowed float value.
const FloatNum min
Smallest allowed float value.
void check(int n, const char *l)
Check whether n is in range, otherwise throw out of limits with information l.
const int min
Smallest allowed integer value.
const int max
Largest allowed integer value.
bool assigned(View x, int v)
Whether x is assigned to value v.
Gecode::FloatVal c(-8, 8)
bool one(const Gecode::FloatValArgs &a)
Check whether has only one coefficients.
Gecode::IntArgs i({1, 2, 3, 4})