Partition Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: partition numbers into two groups
Definition at line 29 of file partition.cc.
Public Member Functions | |
| Partition (const Options &opt) | |
| Actual model. | |
| Partition (bool share, Partition &s) | |
| Constructor used during cloning s. | |
| virtual Space * | copy (bool share) |
| Copying during cloning. | |
| virtual void | print (void) |
| Print solution. | |
Protected Attributes | |
| IntVarArray | x |
| First group of numbers. | |
| IntVarArray | y |
| Second group of numbers. | |
Constructor & Destructor Documentation
|
|
Actual model.
Definition at line 37 of file partition.cc. |
|
||||||||||||
|
Constructor used during cloning s.
Definition at line 79 of file partition.cc. |
Member Function Documentation
|
|
Copying during cloning.
Implements Gecode::Space. Definition at line 85 of file partition.cc. |
|
|
Print solution.
Reimplemented from Example. Definition at line 90 of file partition.cc. |
Member Data Documentation
|
|
First group of numbers.
Definition at line 32 of file partition.cc. |
|
|
Second group of numbers.
Definition at line 34 of file partition.cc. |
The documentation for this class was generated from the following file:
- examples/partition.cc (Revision: 3517)
