Class for assigning random value. More...
#include <branch.hh>
Public Member Functions | |
AssignValRnd (void) | |
Default constructor. | |
AssignValRnd (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
![]() | |
ValRnd (void) | |
Default constructor. | |
ValRnd (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
int | val (Space &home, Viewx) |
Return minimum value of view x. | |
ModEvent | tell (Space &home, unsigned int a, Viewx, int n) |
Tell ![]() ![]() | |
Choice | choice (Space &home) |
Return choice. | |
Choice | choice (const Space &home, Archive &e) |
Return choice. | |
void | commit (Space &home, const Choice &c, unsigned a) |
Commit to choice. | |
void | update (Space &home, bool share, ValRnd &vs) |
Updating during cloning. | |
void | dispose (Space &home) |
Delete value selection. |
Static Public Attributes | |
static const unsigned int | alternatives = 1 |
Number of alternatives. | |
![]() |
Additional Inherited Members | |
![]() | |
typedef View | View |
View type. | |
typedef int | Val |
Value type. | |
typedef ArchivedRandomGenerator | Choice |
Choice type. | |
![]() | |
ArchivedRandomGenerator | r |
The random number generator. |
Class for assigning random value.
|
inline |
Default constructor.
Definition at line 210 of file select-val.hpp.
|
inline |
Constructor for initialization.
Definition at line 213 of file select-val.hpp.
|
static |
Number of alternatives.
Reimplemented from Gecode::Int::Branch::ValRnd< View >.