
Generate load and bin assignments. More...
Public Member Functions | |
| LoadBinAssignment (int m, const Gecode::IntSet &d_m, int n, const Gecode::IntSet &d_n, int l) | |
| Initialize assignments for load and bin variables. | |
| virtual bool | operator() (void) const |
| Test whether all assignments have been iterated. | |
| virtual void | operator++ (void) |
| Move to next assignment. | |
| virtual int | operator[] (int i) const |
| Return value for variable i. | |
| virtual | ~LoadBinAssignment (void) |
| Destructor. | |
| Public Member Functions inherited from Test::Int::Assignment | |
| Assignment (int n0, const Gecode::IntSet &d0) | |
| Initialize assignments for n0 variables and values d0. | |
| int | size (void) const |
| Return number of variables. | |
| virtual | ~Assignment (void) |
| Destructor. | |
Protected Attributes | |
| int | n_bins |
| Number of bins. | |
| int | n_items |
| Number of items. | |
| Gecode::IntSet | d_load |
| Domain for load variables. | |
| Gecode::IntSet | d_bin |
| Domain for bin variables. | |
| int | load |
| Load to generate (unless -1) | |
| Gecode::IntSetValues * | dsv |
| Iterator for each variable. | |
| Protected Attributes inherited from Test::Int::Assignment | |
| int | n |
| Number of variables. | |
| Gecode::IntSet | d |
| Domain for each variable. | |
Generate load and bin assignments.
Definition at line 50 of file bin-packing.cpp.
|
inline |
Initialize assignments for load and bin variables.
Definition at line 66 of file bin-packing.cpp.
|
inlinevirtual |
Destructor.
Definition at line 119 of file bin-packing.cpp.
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Int::Assignment.
Definition at line 78 of file bin-packing.cpp.
|
inlinevirtual |
Move to next assignment.
Implements Test::Int::Assignment.
Definition at line 82 of file bin-packing.cpp.
|
inlinevirtual |
Return value for variable i.
Implements Test::Int::Assignment.
Definition at line 114 of file bin-packing.cpp.
|
protected |
Number of bins.
Definition at line 53 of file bin-packing.cpp.
|
protected |
Number of items.
Definition at line 55 of file bin-packing.cpp.
|
protected |
Domain for load variables.
Definition at line 57 of file bin-packing.cpp.
|
protected |
Domain for bin variables.
Definition at line 59 of file bin-packing.cpp.
|
protected |
Load to generate (unless -1)
Definition at line 61 of file bin-packing.cpp.
|
protected |
Iterator for each variable.
Definition at line 63 of file bin-packing.cpp.