25 #ifndef PAGMO_ALGORITHM_FIREFLY_H
26 #define PAGMO_ALGORITHM_FIREFLY_H
30 #include "../config.h"
31 #include "../population.h"
32 #include "../serialization.h"
35 namespace pagmo {
namespace algorithm {
63 firefly(
int gen = 1,
double alpha = 0.01,
double beta = 1.0,
double gamma = 0.8);
66 std::string get_name()
const;
68 std::string human_readable_extra()
const;
70 friend class boost::serialization::access;
71 template <
class Archive>
72 void serialize(Archive &ar,
const unsigned int)
74 ar & boost::serialization::base_object<base>(*this);
75 ar &
const_cast<int &
>(m_iter);
76 ar &
const_cast<double &
>(m_alpha);
77 ar &
const_cast<double &
>(m_beta);
78 ar &
const_cast<double &
>(m_gamma);
90 #endif // PAGMO_ALGORITHM_FIREFLY_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.