Partition Class Reference
[Example scripts (models)]
Example: partition numbers into two groups More...
Public Member Functions | |
Partition (const SizeOptions &opt) | |
Actual model. | |
Partition (Partition &s) | |
Constructor used during cloning s. | |
virtual Space * | copy (void) |
Copying during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Protected Attributes | |
IntVarArray | x |
First group of numbers. | |
IntVarArray | y |
Second group of numbers. |
Detailed Description
Example: partition numbers into two groups
Definition at line 45 of file partition.cpp.
Constructor & Destructor Documentation
Partition::Partition | ( | const SizeOptions & | opt | ) | [inline] |
Actual model.
Definition at line 53 of file partition.cpp.
Partition::Partition | ( | Partition & | s | ) | [inline] |
Constructor used during cloning s.
Definition at line 96 of file partition.cpp.
Member Function Documentation
virtual Space* Partition::copy | ( | void | ) | [inline, virtual] |
Copying during cloning.
Definition at line 102 of file partition.cpp.
virtual void Partition::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 107 of file partition.cpp.
Member Data Documentation
IntVarArray Partition::x [protected] |
First group of numbers.
Definition at line 48 of file partition.cpp.
IntVarArray Partition::y [protected] |
Second group of numbers.
Definition at line 50 of file partition.cpp.
The documentation for this class was generated from the following file:
- examples/partition.cpp