25 #ifndef PAGMO_ALGORITHM_DE_H
26 #define PAGMO_ALGORITHM_DE_H
30 #include "../config.h"
31 #include "../population.h"
32 #include "../serialization.h"
35 namespace pagmo {
namespace algorithm {
70 class __PAGMO_VISIBLE
de:
public base
73 de(
int = 100,
double = 0.8,
double = 0.9,
int = 2,
double = 1e-6,
double = 1e-6);
76 std::string get_name()
const;
77 void set_cr(
double cr);
78 double get_cr()
const;
79 void set_f(
double cr);
82 std::string human_readable_extra()
const;
84 friend class boost::serialization::access;
85 template <
class Archive>
86 void serialize(Archive &ar,
const unsigned int)
88 ar & boost::serialization::base_object<base>(*this);
89 ar &
const_cast<int &
>(m_gen);
90 ar &
const_cast<double &
>(m_f);
91 ar &
const_cast<double &
>(m_cr);
92 ar &
const_cast<double &
>(m_ftol);
93 ar &
const_cast<double &
>(m_xtol);
94 ar &
const_cast<int &
>(m_strategy);
103 const int m_strategy;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
Differential Evolution Algorithm.