27 #include "../exceptions.h"
29 #include "../population.h"
31 #include "normalized.h"
33 namespace pagmo {
namespace problem {
52 m_normalization_center(p.get_dimension(),0),
53 m_normalization_scale(p.get_dimension(),0)
55 configure_new_bounds();
65 void normalized::configure_new_bounds()
70 m_normalization_center[i] = center;
71 m_normalization_scale[i] = spread/2;
81 retval[i] = (x[i] * m_normalization_scale[i]) + m_normalization_center[i];
110 std::ostringstream oss;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
void objfun_impl(fitness_vector &, const decision_vector &) const
base_ptr clone() const
Clone method.
decision_vector denormalize(const decision_vector &) const
Returns the de-normalized version of the decision variables.
normalized(const base &=ackley(1))
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.
void compute_constraints_impl(constraint_vector &, const decision_vector &) const
std::string get_name() const
Get problem's name.
const decision_vector & get_lb() const
Lower bounds getter.
std::string human_readable_extra() const
Extra information in human readable format.
void set_bounds(const decision_vector &, const decision_vector &)
Bounds setter from pagmo::decision_vector.
decision_vector::size_type size_type
Problem's size type: the same as pagmo::decision_vector's size type.