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. More... | |
virtual bool | operator() (void) const |
Test whether all assignments have been iterated. More... | |
virtual void | operator++ (void) |
Move to next assignment. More... | |
virtual int | operator[] (int i) const |
Return value for variable i. More... | |
virtual | ~LoadBinAssignment (void) |
Destructor. More... | |
![]() | |
Assignment (int n0, const Gecode::IntSet &d0) | |
Initialize assignments for n0 variables and values d0. More... | |
int | size (void) const |
Return number of variables. More... | |
virtual | ~Assignment (void) |
Destructor. More... | |
Protected Attributes | |
int | n_bins |
Number of bins. More... | |
int | n_items |
Number of items. More... | |
Gecode::IntSet | d_load |
Domain for load variables. More... | |
Gecode::IntSet | d_bin |
Domain for bin variables. More... | |
int | load |
Load to generate (unless -1) More... | |
Gecode::IntSetValues * | dsv |
Iterator for each variable. More... | |
![]() | |
int | n |
Number of variables. More... | |
Gecode::IntSet | d |
Domain for each variable. More... | |
Generate load and bin assignments.
Definition at line 54 of file bin-packing.cpp.
|
inline |
Initialize assignments for load and bin variables.
Definition at line 70 of file bin-packing.cpp.
|
inlinevirtual |
Destructor.
Definition at line 123 of file bin-packing.cpp.
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Int::Assignment.
Definition at line 82 of file bin-packing.cpp.
|
inlinevirtual |
Move to next assignment.
Implements Test::Int::Assignment.
Definition at line 86 of file bin-packing.cpp.
|
inlinevirtual |
Return value for variable i.
Implements Test::Int::Assignment.
Definition at line 118 of file bin-packing.cpp.
|
protected |
Number of bins.
Definition at line 57 of file bin-packing.cpp.
|
protected |
Number of items.
Definition at line 59 of file bin-packing.cpp.
|
protected |
Domain for load variables.
Definition at line 61 of file bin-packing.cpp.
|
protected |
Domain for bin variables.
Definition at line 63 of file bin-packing.cpp.
|
protected |
Load to generate (unless -1)
Definition at line 65 of file bin-packing.cpp.
|
protected |
Iterator for each variable.
Definition at line 67 of file bin-packing.cpp.