25 #ifndef PAGMO_PROBLEM_ROBUST_H
26 #define PAGMO_PROBLEM_ROBUST_H
29 #include <boost/functional/hash.hpp>
30 #include <boost/random/normal_distribution.hpp>
31 #include <boost/random/uniform_real_distribution.hpp>
33 #include "../serialization.h"
36 #include "base_stochastic.h"
38 namespace pagmo{
namespace problem {
57 unsigned int trials = 1,
58 const double param_rho = 0.1,
59 unsigned int seed = 0u);
64 std::string get_name()
const;
67 double get_rho()
const;
70 std::string human_readable_extra()
const;
77 friend class boost::serialization::access;
78 template <
class Archive>
79 void serialize(Archive &ar,
const unsigned int)
81 ar & boost::serialization::base_object<base_stochastic>(*this);
82 ar & m_original_problem;
90 mutable boost::normal_distribution<double> m_normal_dist;
91 mutable boost::random::uniform_real_distribution<double> m_uniform_dist;
92 unsigned int m_trials;
100 #endif // PAGMO_PROBLEM_ROBUST_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.
Base Stochastic Optimization Problem.