28 #include "../AstroToolbox/mga.h"
30 namespace pagmo {
namespace problem {
39 const double lb[8] = {3000,14,14,14,14,100,366,300};
40 const double ub[8] = {10000,2000,2000,2000,2000,9000,9000,9000};
44 problem.type = asteroid_impact;
45 problem.mass = 1500.0;
47 problem.DVlaunch = 2.5;
49 int sequence_[8] = {3,2,3,2,3,5,6,10};
50 std::vector<int> sequence(8);
51 problem.sequence.insert(problem.sequence.begin(), sequence_, sequence_+8);
53 const int rev_[8] = {0,0,0,0,0,0,1,0};
54 std::vector<int> rev(8);
55 problem.rev_flag.insert(problem.rev_flag.begin(), rev_, rev_+8);
57 problem.asteroid.keplerian[0] = 2.5897261;
58 problem.asteroid.keplerian[1] = 0.2734625;
59 problem.asteroid.keplerian[2] = 6.40734;
60 problem.asteroid.keplerian[3] = 128.34711;
61 problem.asteroid.keplerian[4] = 264.78691;
62 problem.asteroid.keplerian[5] = 320.479555;
63 problem.asteroid.epoch = 53600;
75 MGA(x,problem,rp,Delta_V,f[0]);
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
base_ptr clone() const
Clone method.
std::string get_name() const
Get problem's name.
std::vector< double > fitness_vector
Fitness vector type.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
void set_bounds(const decision_vector &, const decision_vector &)
Bounds setter from pagmo::decision_vector.
gtoc_1()
Problem Constructor.