![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
The model "singleton" random engine used in the solver.
In test, we usually set use_absl_random() so that the sequence is changed at each invocation. This way, clients do not really on the wrong assumption that a particular optimal solution will be returned if they are many equivalent ones.
#include <util.h>
Public Member Functions | |
ModelRandomGenerator (const SatParameters ¶ms) | |
ModelRandomGenerator (const absl::BitGenRef &bit_gen_ref) | |
ModelRandomGenerator (Model *model) | |
void | LogSalt () const |
|
inlineexplicit |
We seed the strategy at creation only. This should be enough for our use case since the SatParameters is set first before the solver is created. We also never really need to change the seed afterwards, it is just used to diversify solves with identical parameters on different Model objects.
|
inlineexplicit |
|
inlineexplicit |
|
inline |