38 using namespace Gecode;
61 static const int s = 711;
63 static const int p = 711 * 100 * 100 * 100;
68 IntVar a(abcd[0]),
b(abcd[1]),
c(abcd[2]),
d(abcd[3]);
96 os <<
"\t" << abcd << std::endl;
108 Script::run<Grocery,DFS,Options>(
opt);
struct Gecode::@602::NNF::@65::@66 b
For binary nodes (and, or, eqv)
int p
Number of positive literals for node type.
struct Gecode::@602::NNF::@65::@67 a
For atomic nodes.
void parse(int &argc, char *argv[])
Parse options from arguments argv (number is argc)
Parametric base-class for scripts.
void iterations(unsigned int i)
Set default number of iterations.
void update(Space &home, VarArray< Var > &a)
Update array to be a clone of array a.
int main(int argc, char *argv[])
Main-function.
IntVarArray abcd
The price of each item.
virtual Space * copy(void)
Copy during cloning.
virtual void print(std::ostream &os) const
Print solution.
Grocery(const Options &opt)
The actual model.
Grocery(Grocery &s)
Constructor for cloning s.
void rel(Home home, FloatVar x0, FloatRelType frt, FloatVal n)
Propagates .
@ IRT_LQ
Less or equal ( )
IntValBranch INT_VAL_SPLIT_MAX(void)
Select values greater than mean of smallest and largest value.
IntVarBranch INT_VAR_NONE(void)
Select first unassigned variable.
Gecode::FloatVal c(-8, 8)