
Example: Orthogonal latin squares More...
Public Member Functions | |
| IntVar & | y1 (int i, int j) |
| Access field at position i and j in first square. More... | |
| const IntVar & | y1 (int i, int j) const |
| Access field at position i and j in first square. More... | |
| IntVar & | y2 (int i, int j) |
| Access field at position i and j in second square. More... | |
| const IntVar & | y2 (int i, int j) const |
| Access field at position i and j in second square. More... | |
| OrthoLatinSquare (const SizeOptions &opt) | |
| Actual model. More... | |
| OrthoLatinSquare (bool share, OrthoLatinSquare &s) | |
| Constructor for cloning s. More... | |
| virtual Space * | copy (bool share) |
| Copy during cloning. More... | |
| virtual void | print (std::ostream &os) const |
| Print solution. More... | |
Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| ScriptBase (const Options &opt) | |
| Constructor. More... | |
| ScriptBase (bool share, ScriptBase &e) | |
| Constructor used for cloning. More... | |
| virtual void | compare (const Space &home, std::ostream &os) const |
| Compare with s. More... | |
Protected Attributes | |
| const int | n |
| Size of squares. More... | |
| IntVarArray | x1 |
| Fields of first square. More... | |
| IntVarArray | x2 |
| Fields of second square. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| int | main (int argc, char *argv[]) |
| Main function. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| static std::ostream & | select_ostream (const char *name, std::ofstream &ofs) |
| Choose output stream according to name. More... | |
| template<class Script , template< class > class Engine, class Options > | |
| static void | run (const Options &opt, Script *s=NULL) |
Example: Orthogonal latin squares
Definition at line 48 of file ortho-latin.cpp.
|
inline |
Actual model.
Definition at line 76 of file ortho-latin.cpp.
|
inline |
Constructor for cloning s.
Definition at line 133 of file ortho-latin.cpp.
|
inline |
Access field at position i and j in first square.
Definition at line 59 of file ortho-latin.cpp.
|
inline |
Access field at position i and j in first square.
Definition at line 63 of file ortho-latin.cpp.
|
inline |
Access field at position i and j in second square.
Definition at line 67 of file ortho-latin.cpp.
|
inline |
Access field at position i and j in second square.
Definition at line 71 of file ortho-latin.cpp.
|
inlinevirtual |
Copy during cloning.
Definition at line 141 of file ortho-latin.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 146 of file ortho-latin.cpp.
|
related |
Main function.
Definition at line 174 of file ortho-latin.cpp.
|
protected |
Size of squares.
Definition at line 51 of file ortho-latin.cpp.
|
protected |
Fields of first square.
Definition at line 53 of file ortho-latin.cpp.
|
protected |
Fields of second square.
Definition at line 55 of file ortho-latin.cpp.