25 #ifndef PAGMO_ALGORITHM_NN_TSP_H
26 #define PAGMO_ALGORITHM_NN_TSP_H
30 #include "../config.h"
31 #include "../serialization.h"
32 #include "../population.h"
33 #include "../problem/base_tsp.h"
36 namespace pagmo {
namespace algorithm {
48 nn_tsp(
int start_city = -1);
52 std::string get_name()
const;
55 friend class boost::serialization::access;
56 template <
class Archive>
57 void serialize(Archive &ar,
const unsigned int)
59 ar & boost::serialization::base_object<base>(*this);
60 ar &
const_cast<int &
>(m_start_city);
63 const int m_start_city;
70 #endif // PAGMO_ALGORITHM_NN_TSP_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
Nearest Neighbor Algorithm (NN)