25 #include "base_stochastic.h"
26 #include "../serialization.h"
28 namespace pagmo {
namespace problem {
53 base_stochastic::base_stochastic(
int n,
int ni,
int nf,
int nc,
int nic,
const double &c_tol,
unsigned int seed):
base((int)n, ni, nf, nc, nic, c_tol), m_drng(seed), m_urng(seed), m_seed(seed)
67 base_stochastic::base_stochastic(
int n,
int ni,
int nf,
int nc,
int nic,
const std::vector<double> &c_tol,
unsigned int seed):
base((int)n, ni, nf, nc, nic, c_tol), m_drng(seed), m_urng(seed), m_seed(seed)
unsigned int get_seed() const
Gets the pseudo random generator seed.
unsigned int m_seed
Seed of the random number generator.
void set_seed(unsigned int) const
Sets the pseudo random generator seed.
void reset_caches() const
Reset internal caches.
base_stochastic(int, unsigned int=0u)
Constructor from global dimension and random seed.