OrthoLatinSquare Class Reference
Inherits Example.Detailed Description
Example: Orthogonal latin squares
Definition at line 29 of file ortho-latin.cc.
Public Member Functions | |
IntVar & | y1 (int i, int j) |
Access field at position i and j in first square. | |
IntVar & | y2 (int i, int j) |
Access field at position i and j in second square. | |
OrthoLatinSquare (const Options &opt) | |
Actual model. | |
OrthoLatinSquare (bool share, OrthoLatinSquare &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | print (void) |
Print solution. | |
Protected Attributes | |
const int | n |
Size of squares. | |
IntVarArray | x1 |
Fields of first square. | |
IntVarArray | x2 |
Fields of second square. |
Constructor & Destructor Documentation
|
Actual model.
Definition at line 49 of file ortho-latin.cc. |
|
Constructor for cloning s.
Definition at line 105 of file ortho-latin.cc. |
Member Function Documentation
|
Access field at position i and j in first square.
Definition at line 40 of file ortho-latin.cc. |
|
Access field at position i and j in second square.
Definition at line 44 of file ortho-latin.cc. |
|
Copy during cloning.
Implements Gecode::Space. Definition at line 113 of file ortho-latin.cc. |
|
Print solution.
Reimplemented from Example. Definition at line 118 of file ortho-latin.cc. |
Member Data Documentation
|
Size of squares.
Definition at line 32 of file ortho-latin.cc. |
|
Fields of first square.
Definition at line 34 of file ortho-latin.cc. |
|
Fields of second square.
Definition at line 36 of file ortho-latin.cc. |
The documentation for this class was generated from the following file:
- examples/ortho-latin.cc (Revision: 3579)