Golf Class Reference
[Example scripts (models)]
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 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. | |
Detailed Description
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.
Definition at line 80 of file golf.cpp.
Member Enumeration Documentation
| anonymous enum |
| anonymous enum |
Constructor & Destructor Documentation
| Golf::Golf | ( | const GolfOptions & | opt | ) | [inline] |
| Golf::Golf | ( | Golf & | s | ) | [inline] |
Member Function Documentation
| virtual void Golf::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
| virtual Space* Golf::copy | ( | void | ) | [inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file:
- examples/golf.cpp
