Generate random selection of assignments. More...
#include <int.hh>
Public Member Functions | |
RandomMixAssignment (int n0, const Gecode::IntSet &d0, int n1, const Gecode::IntSet &d1, int a0) | |
Initialize for a assignments for n0 variables and values d0. 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 | ~RandomMixAssignment (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 Member Functions | |
int | randval (const Gecode::IntSet &d) |
Protected Attributes | |
int * | vals |
The current values for the variables. More... | |
int | a |
How many assigments still to be generated. More... | |
int | _n1 |
How many variables in the second set. More... | |
Gecode::IntSet | _d1 |
Domain for second set of variables Generate new value according to domain d. More... | |
![]() | |
int | n |
Number of variables. More... | |
Gecode::IntSet | d |
Domain for each variable. More... | |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Int::Assignment.
|
virtual |
|
inlinevirtual |
Return value for variable i.
Implements Test::Int::Assignment.
|
protected |
|
protected |
|
protected |
|
protected |