Generated on Wed Nov 1 15:04:51 2006 for Gecode by doxygen 1.4.5

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.

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.


Member Data Documentation

int Golf::groups
 

Definition at line 62 of file golf.cc.

int Golf::playersInGroup
 

Definition at line 63 of file golf.cc.

int Golf::weeks
 

Definition at line 64 of file golf.cc.

int Golf::players
 

Definition at line 65 of file golf.cc.

SetVarArray Golf::groupsS
 

Definition at line 67 of file golf.cc.

IntVarArray Golf::groupsSInv
 

Definition at line 68 of file golf.cc.


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