
Example: Alpha puzzle More...
Public Types | |
| enum | { BRANCH_NONE, BRANCH_INVERSE, BRANCH_SIZE } |
| Branching to use for model. More... | |
Public Member Functions | |
| Alpha (const Options &opt) | |
| Actual model. | |
| Alpha (bool share, Alpha &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (bool share) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
Protected Attributes | |
| IntVarArray | le |
| Array for letters. | |
Static Protected Attributes | |
| static const int | n = 26 |
| Alphabet has 26 letters. | |
Example: Alpha puzzle
Well-known cryptoarithmetic puzzle of unknown origin.
| anonymous enum |
| Alpha::Alpha | ( | bool | share, |
| Alpha & | s | ||
| ) | [inline] |
| virtual Space* Alpha::copy | ( | bool | share | ) | [inline, virtual] |
| virtual void Alpha::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
const int Alpha::n = 26 [static, protected] |
IntVarArray Alpha::le [protected] |