25 #ifndef PAGMO_ALGORITHM_SNOPT_H
26 #define PAGMO_ALGORITHM_SNOPT_H
28 #include "../config.h"
29 #include "../problem/base.h"
30 #include "../serialization.h"
34 namespace pagmo {
namespace algorithm {
71 snopt(
const int major = 100,
const double feas=1e-10,
const double opt = 1e-4);
74 void file_output(
const bool);
75 std::string get_name()
const;
79 struct preallocated_memory{
83 template <
class Archive>
84 void serialize(Archive &ar,
const unsigned int)
92 std::string human_readable_extra()
const;
95 friend class boost::serialization::access;
96 template <
class Archive>
97 void serialize(Archive &ar,
const unsigned int)
99 ar & boost::serialization::base_object<base>(*this);
100 ar &
const_cast<int &
>(m_major);
101 ar &
const_cast<double &
>(m_feas);
102 ar &
const_cast<double &
>(m_opt);
111 mutable preallocated_memory di_comodo;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base algorithm.
std::vector< double > decision_vector
Decision vector type.
Wrapper for the SNOPT solver.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.