25 #ifndef PAGMO_ALGORITHM_BASE_GSL_H
26 #define PAGMO_ALGORITHM_BASE_GSL_H
28 #include <boost/thread/mutex.hpp>
29 #include <gsl/gsl_vector.h>
31 #include "../gsl_init.h"
32 #include "../problem/base.h"
33 #include "../serialization.h"
37 namespace pagmo {
namespace algorithm {
75 friend class boost::serialization::access;
76 template <
class Archive>
77 void serialize(Archive &ar,
const unsigned int)
79 ar & boost::serialization::base_object<base>(*this);
81 static const gsl_init &get_init();
82 static boost::mutex m_mutex;
std::vector< double > decision_vector
Decision vector type.
double step_size
Initial step size for the computation of the gradient.
base_gsl()
Default constructor.
Base class for GSL algorithms.
fitness_vector f
Fitness vector.
std::vector< double > fitness_vector
Fitness vector type.
static double objfun_wrapper(const gsl_vector *, void *)
Objective function wrapper.
Structure to feed parameters to the wrappers for the objective function and its derivative.
decision_vector x
Decision vector.
problem::base const * p
Pointer to the problem.