Inherits
Example.
List of all members.
Detailed Description
Example:
Golf tournament
Schedule a golf tournament. This is problem 010 from csplib.
Definition at line 74 of file golf.cc.
Member Enumeration Documentation
Model variants.
- Enumerator:
-
MODEL_PLAIN |
A simple model. |
MODEL_SYMMETRY |
Model with symmetry breaking. |
Definition at line 77 of file golf.cc.
Constructor & Destructor Documentation
Actual model.
Definition at line 95 of file golf.cc.
Golf::Golf |
( |
bool |
share, |
|
|
Golf & |
s | |
|
) |
| | [inline] |
Constructor for copying s.
Definition at line 232 of file golf.cc.
Member Function Documentation
SetVar& Golf::group |
( |
int |
w, |
|
|
int |
g | |
|
) |
| | [inline] |
Return group number g in week w.
Definition at line 90 of file golf.cc.
virtual void Golf::print |
( |
std::ostream & |
os |
) |
[inline, virtual] |
virtual Space* Golf::copy |
( |
bool |
share |
) |
[inline, virtual] |
Make variables available for visualisation.
Reimplemented from Gecode::Space.
Definition at line 245 of file golf.cc.
Friends And Related Function Documentation
Initial value:
{ {8,4,9},
{5,3,7},
{4,3,2}
}
Tournaments.
Definition at line 57 of file golf.cc.
Number of tournaments.
Definition at line 63 of file golf.cc.
Member Data Documentation
Number of groups in a week.
Definition at line 81 of file golf.cc.
Number of players in a group.
Definition at line 82 of file golf.cc.
Number of weeks.
Definition at line 83 of file golf.cc.
Overall number of players.
Definition at line 84 of file golf.cc.
The sets representing the groups.
Definition at line 87 of file golf.cc.
The documentation for this class was generated from the following file: