Generated on Sat Nov 11 01:12:18 2006 for Gecode by doxygen 1.5.1

Golf Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Golf tournament

Schedule 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

SetVargroup (int w, int g)
IntVargroupInv (int w, int p)
 Golf (const Options &o)
 Golf (bool share, Golf &s)
virtual Spacecopy (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

Golf::Golf ( const Options o  )  [inline]

Definition at line 77 of file golf.cc.

Golf::Golf ( bool  share,
Golf s 
) [inline]

Definition at line 191 of file golf.cc.


Member Function Documentation

SetVar& Golf::group ( int  w,
int  g 
) [inline]

Definition at line 70 of file golf.cc.

IntVar& Golf::groupInv ( int  w,
int  p 
) [inline]

Definition at line 73 of file golf.cc.

virtual Space* Golf::copy ( bool  share  )  [inline, virtual]

Copying member function.

Must create a new object using the constructor for cloning.

Implements Gecode::Space.

Definition at line 198 of file golf.cc.

virtual void Golf::print ( void   )  [inline, virtual]

Reimplemented from Example.

Definition at line 203 of file golf.cc.


Friends And Related Function Documentation

const Tournament t[] [related]

Initial value:

  { {8,4,9},
    {5,3,7},
    {4,3,2}
  }
Tournaments.

Definition at line 43 of file golf.cc.

const unsigned int n_examples = sizeof(t) / sizeof(Tournament) [related]

Number of tournaments.

Definition at line 49 of file golf.cc.


Member Data Documentation

Definition at line 62 of file golf.cc.

Definition at line 63 of file golf.cc.

Definition at line 64 of file golf.cc.

Definition at line 65 of file golf.cc.

Definition at line 67 of file golf.cc.

Definition at line 68 of file golf.cc.


The documentation for this class was generated from the following file: