Packing Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: packing squares into a rectangle
Definition at line 81 of file packing.cc.
Public Member Functions | |
Packing (const Options &opt) | |
Actual model. | |
Packing (bool share, Packing &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | print (void) |
Print solution. | |
Protected Attributes | |
const PackingSpec & | s |
Specification used. | |
IntVarArray | x |
Array of x-coordinates of squares. | |
IntVarArray | y |
Array of y-coordinates of squares. |
Constructor & Destructor Documentation
|
Actual model.
Definition at line 91 of file packing.cc. |
|
Constructor for cloning s.
Definition at line 173 of file packing.cc. |
Member Function Documentation
|
Copy during cloning.
Implements Gecode::Space. Definition at line 179 of file packing.cc. |
|
Print solution.
Reimplemented from Example. Definition at line 184 of file packing.cc. |
Member Data Documentation
|
Specification used.
Definition at line 84 of file packing.cc. |
|
Array of x-coordinates of squares.
Definition at line 86 of file packing.cc. |
|
Array of y-coordinates of squares.
Definition at line 88 of file packing.cc. |
The documentation for this class was generated from the following file:
- examples/packing.cc (Revision: 3517)