25 #ifndef PAGMO_GTOC5_SELF_FLYBY_H
26 #define PAGMO_GTOC5_SELF_FLYBY_H
31 #include "../config.h"
32 #include "../serialization.h"
34 #include <keplerian_toolbox/keplerian_toolbox.h>
37 namespace pagmo {
namespace problem {
49 gtoc5_self_flyby(
int = 5,
int = 1,
const double & = 57023,
const double & mass = 4000,
const double & = 1E-5);
51 std::string get_name()
const;
57 void set_sparsity(
int &, std::vector<int> &, std::vector<int> &)
const;
59 friend class boost::serialization::access;
60 template <
class Archive>
61 void serialize(Archive &ar,
const unsigned int)
63 ar & boost::serialization::base_object<base>(*this);
65 ar &
const_cast<kep_toolbox::planet::gtoc5 &
>(m_ast);
66 ar &
const_cast<double &
>(m_mjd);
67 ar &
const_cast<double &
>(m_initial_mass);
71 const kep_toolbox::planet::gtoc5 m_ast;
73 const double m_initial_mass;
74 mutable kep_toolbox::sims_flanagan::leg m_leg;
81 #endif // PAGMO_GTOC5_SELF_FLYBY_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.