Golf Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: Golf tournamentSchedule a golf tournament. This is problem 010 from csplib.
Definition at line 60 of file golf.cc.
Parameters for golf tournaments | |
| static const Tournament | t [] |
| Tournaments. | |
| static const unsigned int | n_examples = sizeof(t) / sizeof(Tournament) |
| Number of tournaments. | |
Public Member Functions | |
| SetVar & | group (int w, int g) |
| IntVar & | groupInv (int w, int p) |
| Golf (const Options &o) | |
| Golf (bool share, Golf &s) | |
| virtual Space * | copy (bool share) |
| Copying member function. | |
| virtual void | print (void) |
Public Attributes | |
| int | groups |
| int | playersInGroup |
| int | weeks |
| int | players |
| SetVarArray | groupsS |
| IntVarArray | groupsSInv |
Constructor & Destructor Documentation
Member Function Documentation
| virtual Space* Golf::copy | ( | bool | share | ) | [inline, virtual] |
Copying member function.
Must create a new object using the constructor for cloning.
Implements Gecode::Space.
| virtual void Golf::print | ( | void | ) | [inline, virtual] |
Friends And Related Function Documentation
const Tournament t[] [related] |
const unsigned int n_examples = sizeof(t) / sizeof(Tournament) [related] |
Member Data Documentation
| int Golf::groups |
| int Golf::weeks |
| int Golf::players |
The documentation for this class was generated from the following file:
- examples/golf.cc (Revision: 3517)
