45 constexpr double two = 2.0;
48 Eigen::MatrixXd::Identity(variable.size(), variable.size());
56 [[nodiscard]]
auto value() const -> const
double& {
return value_; }
Quadratic function for test of optimization.
auto gradient() const -> const Eigen::VectorXd &
Get gradient.
auto value() const -> const double &
Get function value.
void evaluate_on(const Eigen::VectorXd &variable)
Evaluate function value on variable.
Eigen::MatrixXd hessian_
Hessian.
double coeff_
Coefficient.
Eigen::MatrixXd hessian_type
Type of Hessian.
Eigen::VectorXd variable_type
Type of variables.
Eigen::VectorXd grad_
Gradient.
auto hessian() const -> const Eigen::MatrixXd &
Get Hessian.
double value_type
Type of function values.
double value_
Function value.
Namespace of Eigen library.
Namespace of optimization problems.