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

Partition Class Reference
[Example scripts (models)]

Example: partition numbers into two groups More...

List of all members.

Public Member Functions

 Partition (const SizeOptions &opt)
 Actual model.
 Partition (Partition &s)
 Constructor used during cloning s.
virtual Spacecopy (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

First group of numbers.

Definition at line 48 of file partition.cpp.

Second group of numbers.

Definition at line 50 of file partition.cpp.

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