Generated on Thu Apr 11 13:59:39 2019 for Gecode by doxygen 1.6.3

Money Class Reference
[Example scripts (models)]

Example: SEND+MORE=MONEY puzzle More...

List of all members.

Public Types


Model variants.


Public Member Functions

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

Protected Attributes

IntVarArray le
 Array of letters.

Static Protected Attributes

static const int nl = 8
 Number of letters.

Detailed Description

Example: SEND+MORE=MONEY puzzle

Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.

Definition at line 49 of file money.cpp.

Member Enumeration Documentation

anonymous enum

Model variants.


Use single linear equation.


Use carries.

Definition at line 57 of file money.cpp.

Constructor & Destructor Documentation

Money::Money ( const Options opt  )  [inline]

Actual model.

Definition at line 62 of file money.cpp.

Money::Money ( Money s  )  [inline]

Constructor for cloning s.

Definition at line 115 of file money.cpp.

Member Function Documentation

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

Print solution.

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

Definition at line 110 of file money.cpp.

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

Copy during cloning.

Definition at line 120 of file money.cpp.

Member Data Documentation

const int Money::nl = 8 [static, protected]

Number of letters.

Definition at line 52 of file money.cpp.

IntVarArray Money::le [protected]

Array of letters.

Definition at line 54 of file money.cpp.

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