Example: partition numbers into two groups More...
Public Member Functions | |
Partition (const SizeOptions &opt) | |
Actual model. More... | |
Partition (bool share, Partition &s) | |
Constructor used during cloning s. More... | |
virtual Space * | copy (bool share) |
Copying during cloning. More... | |
virtual void | print (std::ostream &os) const |
Print solution. More... | |
![]() | |
ScriptBase (void) | |
Default constructor. More... | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. More... | |
virtual void | compare (const Space &, std::ostream &os) const |
Compare with s. More... | |
Protected Attributes | |
IntVarArray | x |
First group of numbers. More... | |
IntVarArray | y |
Second group of numbers. More... | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-functiona. More... | |
Additional Inherited Members | |
![]() | |
static std::ostream & | select_ostream (const char *name, std::ofstream &ofs) |
Choose output stream according to name. More... | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt, Script *s=NULL) |
Example: partition numbers into two groups
Definition at line 49 of file partition.cpp.
|
inline |
Actual model.
Definition at line 57 of file partition.cpp.
|
inline |
Constructor used during cloning s.
Definition at line 99 of file partition.cpp.
|
inlinevirtual |
Copying during cloning.
Definition at line 105 of file partition.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 110 of file partition.cpp.
|
related |
Main-functiona.
Definition at line 135 of file partition.cpp.
|
protected |
First group of numbers.
Definition at line 52 of file partition.cpp.
|
protected |
Second group of numbers.
Definition at line 54 of file partition.cpp.