numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Powell function in 4 dimensions. More...
#include <num_prob_collect/opt/powell4_function.h>
Public Types | |
using | value_type = double |
Type of function values. | |
using | variable_type = Eigen::Vector4d |
Type of variables. | |
Public Member Functions | |
void | evaluate_on (const Eigen::Vector4d &x) |
Evaluate function value on variable. | |
auto | gradient () const -> const Eigen::Vector4d & |
Get gradient. | |
auto | value () const -> const double & |
Get function value. | |
Private Attributes | |
Eigen::Vector4d | grad_ {} |
Gradient. | |
double | value_ {} |
Function value. | |
Class of Powell function in 4 dimensions.
This function has no local minimum except for the global one at (0, 0, 0, 0). Search region is [-4, 5] for each dimension.
Reference: http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2720.htm
Definition at line 36 of file powell4_function.h.
using num_prob_collect::opt::powell4_function::value_type = double |
Type of function values.
Definition at line 42 of file powell4_function.h.
using num_prob_collect::opt::powell4_function::variable_type = Eigen::Vector4d |
Type of variables.
Definition at line 39 of file powell4_function.h.
|
inline |
Evaluate function value on variable.
[in] | x | Variable. |
Definition at line 49 of file powell4_function.h.
|
inlinenodiscard |
|
inlinenodiscard |
|
private |
Gradient.
Definition at line 86 of file powell4_function.h.
|
private |
Function value.
Definition at line 83 of file powell4_function.h.