numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Shekel function in 4 dimensions. More...
#include <num_prob_collect/opt/shekel_function.h>
Public Types | |
using | value_type = double |
Type of function values. | |
using | variable_type = Eigen::Vector4d |
Type of variables. | |
Public Member Functions | |
shekel_function (int m) | |
Constructor. | |
void | evaluate_on (const Eigen::Vector4d &x) |
Evaluate function value on variable. | |
auto | value () const -> const double & |
Get function value. | |
Private Attributes | |
Eigen::Matrix< double, 10, 1 > | beta_ {} |
Offset in the function. | |
Eigen::Matrix< double, 4, 10 > | c_ {} |
Centers in the function. | |
int | m_ |
Number of terms. | |
double | value_ {} |
Function value. | |
Class of Shekel function in 4 dimensions.
This function has m local minimum and the global one at (4, 4, 4, 4). Search region is [0, 10] for each dimension.
Reference: https://www.sfu.ca/~ssurjano/shekel.html
Definition at line 34 of file shekel_function.h.
using num_prob_collect::opt::shekel_function::value_type = double |
Type of function values.
Definition at line 40 of file shekel_function.h.
using num_prob_collect::opt::shekel_function::variable_type = Eigen::Vector4d |
Type of variables.
Definition at line 37 of file shekel_function.h.
|
inlineexplicit |
|
inline |
Evaluate function value on variable.
[in] | x | Variable. |
Definition at line 65 of file shekel_function.h.
|
inlinenodiscard |
|
private |
Offset in the function.
Definition at line 84 of file shekel_function.h.
|
private |
Centers in the function.
Definition at line 87 of file shekel_function.h.
|
private |
Number of terms.
Definition at line 81 of file shekel_function.h.
|
private |
Function value.
Definition at line 90 of file shekel_function.h.