pagmo::
rastrigin
¶The Rastrigin problem.
This is a scalable box-constrained continuous single-objective problem. The objective function is the generalised n-dimensional Rastrigin function:
Gradients (dense) are also provided as:
Public Functions
rastrigin
(unsigned int dim = 1u)¶Constructor from dimension.
fitness
(const vector_double &x) const¶Fitness.
get_bounds
() const¶Problem bounds.
gradient
(const vector_double &x) const¶Gradients (dense)
hessians
(const vector_double &x) const¶Hessians (sparse) only the diagonal elements are non zero.
hessians_sparsity
() const¶Hessian sparsity.
get_name
() const¶Problem name.
best_known
() const¶Optimal solution.
serialize
(Archive &ar)¶Serialization.
Public Members
m_dim
¶Problem dimensions.