griewank_function.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "pass_bits/problem.hpp"
4 
5 namespace pass
6 {
25 //
26 // D D
27 // Σ (p(i)² / 4000) - ∏ cos(p(i)/√(i)) + 1
28 // i=1 i=1
29 
30 class griewank_function : public problem
31 {
32 public:
37  explicit griewank_function(const arma::uword dimension);
38 
39  double evaluate(const arma::vec &agent) const override;
40 };
41 } // namespace pass
Definition: griewank_function.hpp:30
Definition: problem.hpp:20
arma::uword dimension() const noexcept
Definition: problem.cpp:10
Definition: adaptive_parameter_search.hpp:5
double evaluate(const arma::vec &agent) const override
Definition: griewank_function.cpp:6
griewank_function(const arma::uword dimension)
Definition: griewank_function.cpp:3