
Example: Schur's lemma More...
Public Member Functions | |
| Schur (const SchurOptions &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
| Schur (Schur &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| 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. | |
Protected Attributes | |
| IntVarArray | box |
| Array of box per ball. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| int | main (int argc, char *argv[]) |
| Main-function. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
| Choose output stream according to sn. | |
| template<class Script , template< class > class Engine, class Options > | |
| static void | run (const Options &opt, Script *s=NULL) |
Example: Schur's lemma
Put 




This problem has a solution for 

See also problem 15 at http://www.csplib.org/.
Definition at line 83 of file schurs-lemma.cpp.
|
inline |
Actual model.
Definition at line 89 of file schurs-lemma.cpp.
|
inline |
Constructor for cloning s.
Definition at line 110 of file schurs-lemma.cpp.
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 105 of file schurs-lemma.cpp.
Copy during cloning.
Definition at line 115 of file schurs-lemma.cpp.
Main-function.
Definition at line 124 of file schurs-lemma.cpp.
|
protected |
Array of box per ball.
Definition at line 86 of file schurs-lemma.cpp.