LangfordNumber Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Langford's number problemSee problem 24 at http://www.csplib.org/.
Definition at line 81 of file langford-number.cc.
Public Types | |
enum | { PROP_REIFIED, PROP_EXTENSIONAL, PROP_EXTENSIONAL_CHANNEL } |
Propagation to use for model. More... | |
Public Member Functions | |
LangfordNumber (const LangfordNumberOptions &opt) | |
Construct model. | |
virtual void | print (std::ostream &os) |
Print solution. | |
LangfordNumber (bool share, LangfordNumber &l) | |
Constructor for cloning l. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
Protected Attributes | |
int | k |
int | n |
Problem parameters. | |
IntVarArray | y |
Sequence variables. |
Member Enumeration Documentation
anonymous enum |
Propagation to use for model.
- Enumerator:
-
PROP_REIFIED Use reified constraints. PROP_EXTENSIONAL Use extensional constraints. PROP_EXTENSIONAL_CHANNEL Use extensional and channel constraints.
Definition at line 88 of file langford-number.cc.
Constructor & Destructor Documentation
LangfordNumber::LangfordNumber | ( | const LangfordNumberOptions & | opt | ) | [inline] |
LangfordNumber::LangfordNumber | ( | bool | share, | |
LangfordNumber & | l | |||
) | [inline] |
Member Function Documentation
virtual void LangfordNumber::print | ( | std::ostream & | os | ) | [inline, virtual] |
virtual Space* LangfordNumber::copy | ( | bool | share | ) | [inline, virtual] |
Member Data Documentation
int LangfordNumber::k [protected] |
Definition at line 83 of file langford-number.cc.
int LangfordNumber::n [protected] |
IntVarArray LangfordNumber::y [protected] |
The documentation for this class was generated from the following file:
- examples/langford-number.cc (Revision: 7474)