Sleipnir C++ API
Loading...
Searching...
No Matches
slp::NewtonMatrixCallbacks Struct Reference

#include <sleipnir/optimization/solver/newton.hpp>

Public Attributes

std::function< double(const Eigen::VectorXd &x)> f
 
std::function< Eigen::SparseVector< double >(const Eigen::VectorXd &x)> g
 
std::function< Eigen::SparseMatrix< double >(const Eigen::VectorXd &x)> H
 

Detailed Description

Matrix callbacks for the Newton's method solver.

Member Data Documentation

◆ f

std::function<double(const Eigen::VectorXd& x)> slp::NewtonMatrixCallbacks::f

Cost function value f(x) getter.

Variable Rows Columns
x num_decision_variables 1
f(x) 1 1

◆ g

std::function<Eigen::SparseVector<double>(const Eigen::VectorXd& x)> slp::NewtonMatrixCallbacks::g

Cost function gradient ∇f(x) getter.

Variable Rows Columns
x num_decision_variables 1
∇f(x) num_decision_variables 1

◆ H

std::function<Eigen::SparseMatrix<double>(const Eigen::VectorXd& x)> slp::NewtonMatrixCallbacks::H

Lagrangian Hessian ∇ₓₓ²L(x) getter.

L(xₖ) = f(xₖ)

Variable Rows Columns
x num_decision_variables 1
∇ₓₓ²L(x) num_decision_variables num_decision_variables

The documentation for this struct was generated from the following file: