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