numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of multi-variate quadratic functions with random coefficients and optimal variables. More...
#include <num_prob_collect/opt/random_multi_quadratic_function.h>
Public Types | |
using | hessian_type = Eigen::MatrixXd |
Type of Hessian. | |
using | value_type = double |
Type of function values. | |
using | variable_type = Eigen::VectorXd |
Type of variables. | |
Public Member Functions | |
random_multi_quadratic_function (Eigen::VectorXd optimal_variable, Eigen::VectorXd coefficients) | |
Constructor. | |
auto | coefficients () const noexcept -> const Eigen::VectorXd & |
Get the coefficients. | |
void | evaluate_on (const Eigen::VectorXd &variable) noexcept |
Evaluate function value on variable. | |
auto | gradient () const noexcept -> const Eigen::VectorXd & |
Get gradient. | |
auto | hessian () const noexcept -> const Eigen::MatrixXd & |
Get Hessian. | |
auto | optimal_variable () const noexcept -> const Eigen::VectorXd & |
Get the optimal variable. | |
auto | value () const noexcept -> const double & |
Get function value. | |
Private Attributes | |
Eigen::VectorXd | coefficients_ |
Coefficients. | |
Eigen::VectorXd | diff_ {} |
Buffer of difference. | |
Eigen::VectorXd | grad_ {} |
Gradient. | |
Eigen::MatrixXd | hessian_ {} |
Hessian. | |
Eigen::VectorXd | optimal_variable_ |
Optimal variable. | |
double | value_ {0.0} |
Function value. | |
Class of multi-variate quadratic functions with random coefficients and optimal variables.
Definition at line 34 of file random_multi_quadratic_function.h.
using num_prob_collect::opt::random_multi_quadratic_function::hessian_type = Eigen::MatrixXd |
Type of Hessian.
Definition at line 41 of file random_multi_quadratic_function.h.
Type of function values.
Definition at line 39 of file random_multi_quadratic_function.h.
using num_prob_collect::opt::random_multi_quadratic_function::variable_type = Eigen::VectorXd |
Type of variables.
Definition at line 37 of file random_multi_quadratic_function.h.
|
inline |
Constructor.
[in] | optimal_variable | Optimal variable. |
[in] | coefficients | Coefficients. |
Definition at line 49 of file random_multi_quadratic_function.h.
|
inlinenodiscardnoexcept |
Get the coefficients.
Definition at line 111 of file random_multi_quadratic_function.h.
|
inlinenoexcept |
Evaluate function value on variable.
[in] | variable | Variable. |
Definition at line 62 of file random_multi_quadratic_function.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get the optimal variable.
Definition at line 101 of file random_multi_quadratic_function.h.
|
inlinenodiscardnoexcept |
Get function value.
Definition at line 74 of file random_multi_quadratic_function.h.
|
private |
Coefficients.
Definition at line 120 of file random_multi_quadratic_function.h.
|
private |
Buffer of difference.
Definition at line 123 of file random_multi_quadratic_function.h.
|
private |
Gradient.
Definition at line 129 of file random_multi_quadratic_function.h.
|
private |
Hessian.
Definition at line 132 of file random_multi_quadratic_function.h.
|
private |
Optimal variable.
Definition at line 117 of file random_multi_quadratic_function.h.
|
private |
Function value.
Definition at line 126 of file random_multi_quadratic_function.h.