numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Rosenbrock function in 3 dimensions. More...
#include <num_prob_collect/opt/rosenbrock_function.h>
Public Types | |
using | value_type = double |
Type of function values. | |
using | variable_type = Eigen::Vector3d |
Type of variables. | |
Public Member Functions | |
void | evaluate_on (const Eigen::Vector3d &x) |
Evaluate function value on variable. | |
auto | gradient () const -> const Eigen::Vector3d & |
Get gradient. | |
auto | value () const -> const double & |
Get function value. | |
Private Attributes | |
Eigen::Vector3d | grad_ {} |
Gradient. | |
double | value_ {} |
Function value. | |
Class of Rosenbrock function in 3 dimensions.
This function has no local minimum except for the global one at (1, 1, 1).
Reference: http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2537.htm
Definition at line 35 of file rosenbrock_function.h.
using num_prob_collect::opt::rosenbrock_function::value_type = double |
Type of function values.
Definition at line 41 of file rosenbrock_function.h.
using num_prob_collect::opt::rosenbrock_function::variable_type = Eigen::Vector3d |
Type of variables.
Definition at line 38 of file rosenbrock_function.h.
|
inline |
Evaluate function value on variable.
[in] | x | Variable. |
Definition at line 48 of file rosenbrock_function.h.
|
inlinenodiscard |
|
inlinenodiscard |
|
private |
Gradient.
Definition at line 83 of file rosenbrock_function.h.
|
private |
Function value.
Definition at line 80 of file rosenbrock_function.h.