DirectTrajectoryOptimization
v0.3
|
This base class provides functionality for numerical differentiation of vector functions. More...
#include <NumDiffDerivativesBase.hpp>
Public Member Functions | |
virtual void | fx (const Eigen::VectorXd &, Eigen::VectorXd &)=0 |
Overload this method in the derived class to obtain numerical approximation of the gradient. | |
virtual void | initialize_num_diff ()=0 |
Overload this method to define the local pointers. More... | |
Public Attributes | |
std::shared_ptr< FunctionOperator > | numdifoperator |
std::shared_ptr < Eigen::NumericalDiff < FunctionOperator > > | numDiff |
This base class provides functionality for numerical differentiation of vector functions.
derived classes need to overload the function that requires to be differentiated
|
pure virtual |
Overload this method to define the local pointers.
numdifoperator and numDiff need to be defined in this method
Implemented in DirectTrajectoryOptimization::BaseClass::GenericConstraintsBase.
std::shared_ptr<Eigen::NumericalDiff<FunctionOperator> > DirectTrajectoryOptimization::BaseClass::NumDiffDerivativesBase::numDiff |
pointer to Eigen Based NumDiff constructor
Referenced by DirectTrajectoryOptimization::BaseClass::GenericConstraintsBase::EvalFxJacobian(), and DirectTrajectoryOptimization::BaseClass::GenericConstraintsBase::initialize_num_diff().
std::shared_ptr<FunctionOperator> DirectTrajectoryOptimization::BaseClass::NumDiffDerivativesBase::numdifoperator |
pointer to the derived class functor
Referenced by DirectTrajectoryOptimization::BaseClass::GenericConstraintsBase::initialize_num_diff().