25 #ifndef PAGMO_ALGORITHM_CS_H
26 #define PAGMO_ALGORITHM_CS_H
28 #include "../config.h"
29 #include "../problem/base.h"
30 #include "../serialization.h"
33 namespace pagmo {
namespace algorithm {
63 class __PAGMO_VISIBLE
cs:
public base
66 cs(
const int& max_eval = 1,
const double &stop_range = 0.01,
const double &start_range = 0.1,
const double &reduction_coeff = 0.5 );
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<double &
>(m_stop_range);
79 ar &
const_cast<double &
>(m_start_range);
80 ar &
const_cast<double &
>(m_reduction_coeff);
81 ar &
const_cast<double &
>(m_max_eval);
84 const double m_stop_range;
86 const double m_start_range;
88 const double m_reduction_coeff;
90 const double m_max_eval;
97 #endif // PAGMO_ALGORITHM_CS_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
The Compass Search Solver (CS)