Example: Golf tournament
More...
List of all members.
Detailed Description
Example: Golf tournament
Schedule a golf tournament. This is problem 010 from csplib.
Definition at line 77 of file golf.cpp.
Member Enumeration Documentation
Model variants.
- Enumerator:
MODEL_PLAIN |
A simple model.
|
MODEL_SYMMETRY |
Model with symmetry breaking.
|
Definition at line 80 of file golf.cpp.
- Enumerator:
PROP_PLAIN |
Propagation using intersection propagators.
|
PROP_DECOMPOSE |
Propagation using union and complement propagators.
|
Definition at line 84 of file golf.cpp.
Constructor & Destructor Documentation
Golf::Golf |
( |
bool |
share, |
|
|
Golf & |
s | |
|
) |
| | [inline] |
Constructor for copying s.
Definition at line 258 of file golf.cpp.
Member Function Documentation
SetVar& Golf::group |
( |
int |
w, |
|
|
int |
g | |
|
) |
| | [inline] |
Return group number g in week w.
Definition at line 97 of file golf.cpp.
const SetVar& Golf::group |
( |
int |
w, |
|
|
int |
g | |
|
) |
| | const [inline] |
Return group number g in week w.
Definition at line 101 of file golf.cpp.
virtual void Golf::print |
( |
std::ostream & |
os |
) |
const [inline, virtual] |
virtual Space* Golf::copy |
( |
bool |
share |
) |
[inline, virtual] |
Copy during cloning.
Definition at line 265 of file golf.cpp.
Friends And Related Function Documentation
Initial value:
{ {8,4,9},
{5,3,7},
{4,3,2}
}
Tournaments.
Definition at line 60 of file golf.cpp.
Number of tournaments.
Definition at line 66 of file golf.cpp.
Member Data Documentation
Number of groups in a week.
Definition at line 88 of file golf.cpp.
Number of players in a group.
Definition at line 89 of file golf.cpp.
Number of weeks.
Definition at line 90 of file golf.cpp.
Overall number of players.
Definition at line 91 of file golf.cpp.
The sets representing the groups.
Definition at line 94 of file golf.cpp.
The documentation for this class was generated from the following file: