Example: Multi-dimensional bin packing More...
Public Types |
Public Member Functions | |
MultiBinPacking (const InstanceOptions &opt) | |
Actual model. More... | |
MultiBinPacking (bool share, MultiBinPacking &s) | |
Constructor for cloning s. More... | |
virtual Space * | copy (bool share) |
Perform copying during cloning. More... | |
virtual void | print (std::ostream &os) const |
Print solution. More... | |
![]() | |
ScriptBase (const Options &opt) | |
Constructor. More... | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. More... | |
virtual void | compare (const Space &home, std::ostream &os) const |
Compare with s. More... | |
Protected Attributes | |
const Spec | spec |
Specification. More... | |
IntVarArray | bin |
Bin for each item. More... | |
IntVarArray | load |
Load for each bin. More... | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. More... | |
Additional Inherited Members | |
![]() | |
static std::ostream & | select_ostream (const char *name, std::ofstream &ofs) |
Choose output stream according to name. More... | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt, Script *s=NULL) |
Example: Multi-dimensional bin packing
Definition at line 109 of file multi-bin-packing.cpp.
anonymous enum |
Model variants.
Enumerator | |
---|---|
MODEL_SINGLE |
Use single-dimensional bin-packing constraints. |
MODEL_MULTI |
Use multi-dimensional bin-packing constraint. |
Definition at line 119 of file multi-bin-packing.cpp.
anonymous enum |
Branching to use for the model.
Enumerator | |
---|---|
BRANCH_DEGREE |
Use degree for branching. |
BRANCH_AFC |
Use AFC for branching. |
Definition at line 124 of file multi-bin-packing.cpp.
anonymous enum |
Symmetry breaking to use for the model.
Enumerator | |
---|---|
SYMMETRY_NONE |
Do not use symmetry breaking. |
SYMMETRY_MAX_CONFLICT |
Use a maximal conflict set of items. |
Definition at line 129 of file multi-bin-packing.cpp.
|
inline |
Actual model.
Definition at line 134 of file multi-bin-packing.cpp.
|
inline |
Constructor for cloning s.
Definition at line 201 of file multi-bin-packing.cpp.
|
inlinevirtual |
Perform copying during cloning.
Definition at line 207 of file multi-bin-packing.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 212 of file multi-bin-packing.cpp.
|
related |
Main-function.
Definition at line 236 of file multi-bin-packing.cpp.
|
protected |
Specification.
Definition at line 112 of file multi-bin-packing.cpp.
|
protected |
Bin for each item.
Definition at line 114 of file multi-bin-packing.cpp.
|
protected |
Load for each bin.
Definition at line 116 of file multi-bin-packing.cpp.