Generated on Tue May 22 09:40:50 2018 for Gecode by doxygen 1.6.3

Schur Class Reference
[Example scripts (models)]

Example: Schur's lemma More...

List of all members.

Public Member Functions

 Schur (const SchurOptions &opt)
 Actual model.
virtual void print (std::ostream &os) const
 Print solution.
 Schur (Schur &s)
 Constructor for cloning s.
virtual Spacecopy (void)
 Copy during cloning.

Protected Attributes

IntVarArray box
 Array of box per ball.

Detailed Description

Example: Schur's lemma

Put $n$ balls labeled ${1,\ldots,n}$ into $c$ boxes such that for any triple of balls $\langle x, y, z\rangle$ with $x+y = z$, not all are in the same box.

This problem has a solution for $c=3$ if $n < 14$.

See also problem 15 at

Definition at line 83 of file schurs-lemma.cpp.

Constructor & Destructor Documentation

Schur::Schur ( const SchurOptions opt  )  [inline]

Actual model.

Definition at line 89 of file schurs-lemma.cpp.

Schur::Schur ( Schur s  )  [inline]

Constructor for cloning s.

Definition at line 117 of file schurs-lemma.cpp.

Member Function Documentation

virtual void Schur::print ( std::ostream &  os  )  const [inline, virtual]

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 112 of file schurs-lemma.cpp.

virtual Space* Schur::copy ( void   )  [inline, virtual]

Copy during cloning.

Definition at line 122 of file schurs-lemma.cpp.

Member Data Documentation

IntVarArray Schur::box [protected]

Array of box per ball.

Definition at line 86 of file schurs-lemma.cpp.

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