25 #ifndef PAGMO_SAMPLE_RETURN_H
26 #define PAGMO_SAMPLE_RETURN_H
29 #include <keplerian_toolbox/planet/mpcorb.h>
30 #include <keplerian_toolbox/planet/base.h>
32 #include "../config.h"
33 #include "../serialization.h"
35 #include "../AstroToolbox/mga_dsm.h"
38 namespace pagmo{
namespace problem {
53 sample_return(const ::kep_toolbox::planet::base &asteroid = ::kep_toolbox::planet::mpcorb(),
const double &Tmax = 600);
55 std::string pretty(
const std::vector<double> &x)
const;
56 std::vector<double> get_delta_v(
const std::vector<double> &x)
const;
57 std::string get_name()
const;
60 void set_sparsity(
int &, std::vector<int> &, std::vector<int> &)
const;
62 friend class boost::serialization::access;
63 template <
class Archive>
64 void serialize(Archive &ar,
const unsigned int)
66 ar & boost::serialization::base_object<base>(*this);
72 ar &
const_cast<double &
>(m_Tmax);
74 ::kep_toolbox::planet::planet_ptr m_target;
75 mutable mgadsmproblem m_leg1;
76 mutable mgadsmproblem m_leg2;
77 mutable std::vector<double> x_leg1;
78 mutable std::vector<double> x_leg2;
86 #endif // PAGMO_SAMPLE_RETURN_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
Human mission to asteroids.
std::vector< double > fitness_vector
Fitness vector type.