27 #include "../exceptions.h"
29 #include "../population.h"
32 namespace pagmo {
namespace problem {
55 pagmo_throw(value_error,
"The size of the provided units vector does not match the fitness dimension of the provided problem");
73 for (fitness_vector::size_type i=0; i< f.size();++i) {
74 retval[i] *= m_units[i];
93 for (fitness_vector::size_type i=0; i< f.size();++i) {
117 std::ostringstream oss;
119 oss <<
"\n\tScaled units vector: " << m_units << std::endl;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
scaled(const base &=ackley(1), const fitness_vector &units=std::vector< double >(1))
fitness_vector descale(const fitness_vector &) const
base_ptr clone() const
Clone method.
std::string get_name() const
Get problem's name.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.
const fitness_vector & get_units() const
void compute_constraints_impl(constraint_vector &, const decision_vector &) const
Implementation of the constraints computation.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
f_size_type get_f_dimension() const
Return fitness dimension.
std::string human_readable_extra() const
Extra human readable info for the problem.