74 switch (
opt.propagation()) {
99 void print(std::ostream& os)
const {
101 for (
int i = 0;
i<
n;
i++) {
104 os << std::endl <<
"\t";
124 Script::run<MagicSequence,DFS,SizeOptions>(
opt);
int n
Number of negative literals for node type.
Parametric base-class for scripts.
Options for scripts with additional size parameter
void update(Space &home, VarArray< Var > &a)
Update array to be a clone of array a.
int main(int argc, char *argv[])
Main-function.
@ PROP_COUNT
Use count constraints.
@ PROP_GCC
Use single global cardinality constraint.
virtual Space * copy(void)
Copy during cloning.
virtual void print(std::ostream &os) const
Print sequence.
MagicSequence(MagicSequence &e)
Constructor for cloning e.
MagicSequence(const SizeOptions &opt)
The actual model.
void parse(int argc, char *argv[])
Parse commandline arguments.
void linear(Home home, const FloatVarArgs &x, FloatRelType frt, FloatVal c)
Post propagator for .
void branch(Home home, const IntVarArgs &x, const BoolVarArgs &y, IntBoolVarBranch vars, IntValBranch vals)
Branch function for integer and Boolean variables.
unsigned int size(I &i)
Size of all ranges of range iterator i.
Gecode toplevel namespace
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel ipl=IPL_DEF)
Post propagator for .
IntVarBranch INT_VAR_NONE(void)
Select first unassigned variable.
IntValBranch INT_VAL_MAX(void)
Select largest value.
Gecode::IntArgs i({1, 2, 3, 4})