25 #ifndef PAGMO_ALGORITHM_NSGA2_H
26 #define PAGMO_ALGORITHM_NSGA2_H
28 #include "../config.h"
29 #include "../serialization.h"
33 namespace pagmo {
namespace algorithm {
52 nsga2(
int gen=100,
double cr = 0.95,
double eta_c = 10,
double m = 0.01,
double eta_m = 50);
55 std::string get_name()
const;
58 std::string human_readable_extra()
const;
65 friend class boost::serialization::access;
66 template <
class Archive>
67 void serialize(Archive &ar,
const unsigned int)
69 ar & boost::serialization::base_object<base>(*this);
70 ar &
const_cast<int &
>(m_gen);
71 ar &
const_cast<double &
>(m_cr);
72 ar &
const_cast<double &
>(m_eta_c);
73 ar &
const_cast<double &
>(m_m);
74 ar &
const_cast<double &
>(m_eta_m);
94 #endif // PAGMO_ALGORITHM_NSGA2_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
std::vector< double > decision_vector
Decision vector type.
Nondominated Sorting genetic algorithm II (NSGA-II)
container_type::size_type size_type
Population size type.