Example: partition numbers into two groups More...
Public Member Functions | |
Partition (const SizeOptions &opt) | |
Actual model. | |
Partition (Partition &s) | |
Constructor used during cloning s. | |
virtual Space * | copy (void) |
Copying during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > > | |
ScriptBase (const Options &opt) | |
Constructor. | |
ScriptBase (ScriptBase &e) | |
Constructor used for cloning. | |
virtual void | compare (const Space &home, std::ostream &os) const |
Compare with s. | |
Public Member Functions inherited from Gecode::Driver::IgnoreStepOption< BaseSpace > | |
IgnoreStepOption (const Options &) | |
Constructor. | |
IgnoreStepOption (BaseSpace &e) | |
Constructor used for cloning. |
Protected Attributes | |
IntVarArray | x |
First group of numbers. | |
IntVarArray | y |
Second group of numbers. |
Related Symbols | |
(Note that these are not member symbols.) | |
int | main (int argc, char *argv[]) |
Main-functiona. |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > > | |
static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
Choose output stream according to sn. | |
static void | run (const Options &opt, Script *s=NULL) |
Example: partition numbers into two groups
Definition at line 45 of file partition.cpp.
|
inline |
Actual model.
Definition at line 53 of file partition.cpp.
|
inline |
Constructor used during cloning s.
Definition at line 96 of file partition.cpp.
|
inlinevirtual |
Copying during cloning.
Definition at line 102 of file partition.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > >.
Definition at line 107 of file partition.cpp.
|
Main-functiona.
Definition at line 132 of file partition.cpp.
|
protected |
First group of numbers.
Definition at line 48 of file partition.cpp.
|
protected |
Second group of numbers.
Definition at line 50 of file partition.cpp.