Partition Class Reference
[Scripts for problems]
Example: partition numbers into two groups
More...
Public Member Functions | |
| Partition (const SizeOptions &opt) | |
| Actual model. | |
| Partition (bool share, Partition &s) | |
| Constructor used during cloning s. | |
| virtual Space * | copy (bool share) |
| 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 groupsDefinition at line 49 of file partition.cpp.
Constructor & Destructor Documentation
| Partition::Partition | ( | const SizeOptions & | opt | ) | [inline] |
| Partition::Partition | ( | bool | share, | |
| Partition & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual Space* Partition::copy | ( | bool | share | ) | [inline, virtual] |
| virtual void Partition::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Space >.
Definition at line 108 of file partition.cpp.
Member Data Documentation
IntVarArray Partition::x [protected] |
IntVarArray Partition::y [protected] |
The documentation for this class was generated from the following file:
- examples/partition.cpp (Revision: 8649)
