25 #ifndef PAGMO_PROBLEM_MGA_INCIPIT_H
26 #define PAGMO_PROBLEM_MGA_INCIPIT_H
29 #include <keplerian_toolbox/planet/gtoc6.h>
30 #include <keplerian_toolbox/epoch.h>
32 #include "../config.h"
33 #include "../serialization.h"
38 namespace pagmo{
namespace problem {
53 mga_incipit(
const std::vector<kep_toolbox::planet::planet_ptr> = construct_default_sequence(),
54 const kep_toolbox::epoch t0_l = kep_toolbox::epoch(7305.0),
const kep_toolbox::epoch t0_u = kep_toolbox::epoch(11323.0),
55 const std::vector<std::vector<double> > tof = construct_default_tofs()
60 std::string get_name()
const;
61 std::string pretty(
const std::vector<double> &x)
const;
62 void set_tof(
const std::vector<std::vector<double> >&);
63 const std::vector<std::vector<double> >& get_tof()
const;
64 std::vector<kep_toolbox::planet::planet_ptr> get_sequence()
const;
67 std::string human_readable_extra()
const;
70 static const std::vector<kep_toolbox::planet::planet_ptr> construct_default_sequence() {
71 std::vector<kep_toolbox::planet::planet_ptr> retval;
72 retval.push_back(kep_toolbox::planet::gtoc6(
"io").clone());
73 retval.push_back(kep_toolbox::planet::gtoc6(
"io").clone());
74 retval.push_back(kep_toolbox::planet::gtoc6(
"europa").clone());
77 static const std::vector<std::vector<double> > construct_default_tofs() {
78 std::vector<std::vector<double> > retval;
79 std::vector<double> dumb(2);
80 dumb[0] = 100;dumb[1] = 200;
81 retval.push_back(dumb);
82 dumb[0] = 3;dumb[1] = 200;
83 retval.push_back(dumb);
84 dumb[0] = 4;dumb[1] = 100;
85 retval.push_back(dumb);
89 friend class boost::serialization::access;
90 template <
class Archive>
91 void serialize(Archive &ar,
const unsigned int)
93 ar & boost::serialization::base_object<base>(*this);
97 std::vector<kep_toolbox::planet::planet_ptr> m_seq;
98 std::vector<std::vector<double> > m_tof;
104 #endif // PAGMO_PROBLEM_MGA_INCIPIT_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.
The beginning of the GTOC6 Jupiter Capture Trajectory.