rastrigin_function.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "pass_bits/problem.hpp"
4 
5 namespace pass
6 {
31 //
32 // D ⎛ ⎞
33 // 10 * D + ∑ ⎜p(i)² - 10 * cos(2π * p(i))⎟
34 // i=1⎝ ⎠
35 //
37 {
38 public:
43  explicit rastrigin_function(const arma::uword dimension);
44 
45  double evaluate(const arma::vec &agent) const override;
46 };
47 } // namespace pass
Definition: problem.hpp:20
rastrigin_function(const arma::uword dimension)
Definition: rastrigin_function.cpp:3
arma::uword dimension() const noexcept
Definition: problem.cpp:10
double evaluate(const arma::vec &agent) const override
Definition: rastrigin_function.cpp:6
Definition: adaptive_parameter_search.hpp:5
Definition: rastrigin_function.hpp:36