numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of functions of single-variate optimization problems with multiple local optima. More...
#include <num_prob_collect/opt/single_variate_multi_optima_function.h>
Public Types | |
using | value_type = double |
Type of function values. | |
using | variable_type = double |
Type of variables. | |
Public Member Functions | |
single_variate_multi_optima_function (Eigen::ArrayXd optimal_variables, Eigen::ArrayXd optimal_values, Eigen::ArrayXd coefficients) | |
Constructor. | |
auto | coefficients () const noexcept -> const Eigen::ArrayXd & |
Get the coefficients for optima. | |
void | evaluate_on (double variable) noexcept |
Evaluate function value on variable. | |
auto | optimal_values () const noexcept -> const Eigen::ArrayXd & |
Get the optimal values. | |
auto | optimal_variables () const noexcept -> const Eigen::ArrayXd & |
Get the optimal variables. | |
auto | value () const noexcept -> const double & |
Get function value. | |
Private Attributes | |
Eigen::ArrayXd | coefficients_ |
Coefficients for optima. | |
Eigen::ArrayXd | optimal_values_ |
Optimal values. | |
Eigen::ArrayXd | optimal_variables_ |
Optimal variables. | |
double | value_ {0.0} |
Function value. | |
Class of functions of single-variate optimization problems with multiple local optima.
Definition at line 38 of file single_variate_multi_optima_function.h.
Type of function values.
Definition at line 43 of file single_variate_multi_optima_function.h.
Type of variables.
Definition at line 41 of file single_variate_multi_optima_function.h.
|
inline |
Constructor.
[in] | optimal_variables | Optimal variables. |
[in] | optimal_values | Optimal values. |
[in] | coefficients | Coefficients for optima. |
Definition at line 52 of file single_variate_multi_optima_function.h.
|
inlinenodiscardnoexcept |
Get the coefficients for optima.
Definition at line 103 of file single_variate_multi_optima_function.h.
|
inlinenoexcept |
Evaluate function value on variable.
[in] | variable | Variable. |
Definition at line 63 of file single_variate_multi_optima_function.h.
|
inlinenodiscardnoexcept |
Get the optimal values.
Definition at line 93 of file single_variate_multi_optima_function.h.
|
inlinenodiscardnoexcept |
Get the optimal variables.
Definition at line 83 of file single_variate_multi_optima_function.h.
|
inlinenodiscardnoexcept |
Get function value.
Definition at line 74 of file single_variate_multi_optima_function.h.
|
private |
Coefficients for optima.
Definition at line 115 of file single_variate_multi_optima_function.h.
|
private |
Optimal values.
Definition at line 112 of file single_variate_multi_optima_function.h.
|
private |
Optimal variables.
Definition at line 109 of file single_variate_multi_optima_function.h.
|
private |
Function value.
Definition at line 118 of file single_variate_multi_optima_function.h.