25 #ifndef PAGMO_PROBLEM_BASE_STOCHASTIC_H
26 #define PAGMO_PROBLEM_BASE_STOCHASTIC_H
29 #include "../serialization.h"
32 namespace pagmo{
namespace problem {
61 base_stochastic(
int,
int,
int,
int,
int,
const std::vector<double>&,
unsigned int);
63 unsigned int get_seed()
const;
64 void set_seed(
unsigned int)
const;
66 friend class boost::serialization::access;
67 template <
class Archive>
68 void serialize(Archive &ar,
const unsigned int)
70 ar & boost::serialization::base_object<base>(*this);
90 #endif // PAGMO_PROBLEM_BASE_STOCHASTIC_H
This rng returns an unsigned integer in the [0,2**32-1] range.
rng_uint32 m_urng
Random number generator for unsigned integer values.
rng_double m_drng
Random number generator for double-precision floating point values.
unsigned int m_seed
Seed of the random number generator.
Base Stochastic Optimization Problem.
This rng returns a double in the [0,1[ range.