25 #ifndef PAGMO_ALGORITHM_IHS_H
26 #define PAGMO_ALGORITHM_IHS_H
32 #include "../config.h"
33 #include "../population.h"
34 #include "../serialization.h"
38 namespace pagmo {
namespace algorithm {
65 ihs(
int gen = 1,
const double &phmcr = 0.85,
const double &ppar_min = 0.35,
const double &ppar_max = 0.99,
66 const double &bw_min = 1E-5,
const double &bw_max = 1);
69 std::string get_name()
const;
71 std::string human_readable_extra()
const;
73 friend class boost::serialization::access;
74 template <
class Archive>
75 void serialize(Archive &ar,
const unsigned int)
77 ar & boost::serialization::base_object<base>(*this);
78 ar &
const_cast<std::size_t &
>(m_gen);
79 ar &
const_cast<double &
>(m_phmcr);
80 ar &
const_cast<double &
>(m_ppar_min);
81 ar &
const_cast<double &
>(m_ppar_max);
82 ar &
const_cast<double &
>(m_bw_min);
83 ar &
const_cast<double &
>(m_bw_max);
86 const std::size_t m_gen;
90 const double m_ppar_min;
92 const double m_ppar_max;
94 const double m_bw_min;
96 const double m_bw_max;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
Improved harmony search algorithm.