78 switch (
opt.propagation()) {
94 s.
update(*
this, share, e.s);
103 void print(std::ostream& os)
const {
105 for (
int i = 0;
i<
n;
i++) {
108 os << std::endl <<
"\t";
128 Script::run<MagicSequence,DFS,SizeOptions>(
opt);
static IntArgs create(int n, int start, int inc=1)
Allocate array with n elements such that for all .
Options for scripts with additional size parameter
IntVarBranch INT_VAR_NONE(void)
Select first unassigned variable.
void branch(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatValBranch vals, FloatBranchFilter bf, FloatVarValPrint vvp)
Branch over x with variable selection vars and value selection vals.
void propagation(int v)
Set default propagation value.
void count(Home home, const IntVarArgs &x, int n, IntRelType irt, int m, IntPropLevel)
Post propagator for .
void linear(Home home, const FloatVarArgs &x, FloatRelType frt, FloatVal c)
Post propagator for .
Parametric base-class for scripts.
void iterations(unsigned int i)
Set default number of iterations.
MagicSequence(bool share, MagicSequence &e)
Constructor for cloning e.
void update(Space &, bool share, VarArray< Var > &a)
Update array to be a clone of array a.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
virtual Space * copy(bool share)
Copy during cloning.
unsigned int size(I &i)
Size of all ranges of range iterator i.
Use single global cardinality constraint.
virtual void print(std::ostream &os) const
Print sequence.
void parse(int &argc, char *argv[])
Parse options from arguments argv (number is argc)
IntValBranch INT_VAL_MAX(void)
Select largest value.
int main(int argc, char *argv[])
Main-function.
void solutions(unsigned int n)
Set default number of solutions to search for.
Gecode toplevel namespace
MagicSequence(const SizeOptions &opt)
The actual model.