numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Quadratic function with vibration for test of optimization. More...
#include <num_prob_collect/opt/vibrated_quadratic_function.h>
Public Types | |
using | hessian_type = double |
Type of Hessian. | |
using | value_type = double |
Type of function values. | |
using | variable_type = double |
Type of variables. | |
Public Member Functions | |
void | evaluate_on (double variable) |
Evaluate function value on variable. | |
auto | gradient () const -> const double & |
Get gradient. | |
auto | hessian () const -> const double & |
Get Hessian. | |
auto | value () const -> const double & |
Get function value. | |
Private Attributes | |
double | coeff_ {0.25} |
Coefficient. | |
double | grad_ {} |
Gradient. | |
double | hessian_ {} |
Hessian. | |
double | value_ {0.0} |
Function value. | |
Quadratic function with vibration for test of optimization.
Definition at line 29 of file vibrated_quadratic_function.h.
Type of Hessian.
Definition at line 36 of file vibrated_quadratic_function.h.
Type of function values.
Definition at line 34 of file vibrated_quadratic_function.h.
Type of variables.
Definition at line 32 of file vibrated_quadratic_function.h.
|
inline |
Evaluate function value on variable.
[in] | variable | Variable. |
Definition at line 43 of file vibrated_quadratic_function.h.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
Get function value.
Definition at line 55 of file vibrated_quadratic_function.h.
|
private |
Coefficient.
Definition at line 73 of file vibrated_quadratic_function.h.
|
private |
Gradient.
Definition at line 79 of file vibrated_quadratic_function.h.
|
private |
Hessian.
Definition at line 82 of file vibrated_quadratic_function.h.
|
private |
Function value.
Definition at line 76 of file vibrated_quadratic_function.h.