
Example: Golf tournament More...
Public Types | |
| enum | { MODEL_PLAIN , MODEL_SYMMETRY } |
| Model variants. More... | |
| enum | { PROP_SET , PROP_INT , PROP_MIXED } |
| Propagation. More... | |
Public Member Functions | |
| Golf (const GolfOptions &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
| Golf (Golf &s) | |
| Constructor for copying s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
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. | |
| 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. | |
Public Attributes | |
| int | g |
| Number of groups in a week. | |
| int | s |
| Number of players in a group. | |
| int | w |
| Number of weeks. | |
| SetVarArray | groups |
| The sets representing the groups. | |
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< 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) |
| 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: Golf tournament
Schedule a golf tournament. This is problem 010 from csplib.
Note that "Modeling and Programming with Gecode" uses this example as a case study.
| anonymous enum |
| anonymous enum |
|
inline |
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > >.
|
inlinevirtual |
| SetVarArray Golf::groups |