aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Represents unary functions of the form \(f(x)\), with no control (or next-state) arguments. More...
#include <aligator/core/unary-function.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = StageFunctionTpl<Scalar> |
using | Data = StageFunctionDataTpl<Scalar> |
Public Types inherited from aligator::StageFunctionTpl< _Scalar > | |
using | Scalar |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
virtual void | evaluate (const ConstVectorRef &x, Data &data) const =0 |
virtual void | computeJacobians (const ConstVectorRef &x, Data &data) const =0 |
virtual void | computeVectorHessianProducts (const ConstVectorRef &, const ConstVectorRef &, Data &) const |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override |
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override |
void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &lbda, Data &data) const override |
Public Member Functions inherited from aligator::StageFunctionTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
StageFunctionTpl (const int ndx, const int nu, const int nr) | |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0 |
Evaluate the function. | |
virtual void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0 |
Compute Jacobians of this function. | |
virtual void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &lbda, Data &data) const |
Compute the vector-hessian products of this function. | |
virtual | ~StageFunctionTpl ()=default |
virtual shared_ptr< Data > | createData () const |
Instantiate a Data object. | |
Additional Inherited Members | |
Public Attributes inherited from aligator::StageFunctionTpl< _Scalar > | |
const int | ndx1 |
Current state dimension. | |
const int | nu |
Control dimension. | |
const int | nr |
Function codimension. | |
Represents unary functions of the form \(f(x)\), with no control (or next-state) arguments.
using aligator::UnaryFunctionTpl< Scalar >::Scalar = _Scalar |
Definition at line 13 of file unary-function.hpp.
using aligator::UnaryFunctionTpl< Scalar >::Base = StageFunctionTpl<Scalar> |
Definition at line 15 of file unary-function.hpp.
using aligator::UnaryFunctionTpl< Scalar >::Data = StageFunctionDataTpl<Scalar> |
Definition at line 16 of file unary-function.hpp.
aligator::UnaryFunctionTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
pure virtual |
Implemented in aligator::AngularMomentumResidualTpl< _Scalar >, aligator::CenterOfMassTranslationResidualTpl< _Scalar >, aligator::CenterOfMassVelocityResidualTpl< _Scalar >, aligator::CentroidalCoMResidualTpl< _Scalar >, aligator::CentroidalWrapperResidualTpl< _Scalar >, aligator::DCMPositionResidualTpl< _Scalar >, aligator::FrameTranslationResidualTpl< _Scalar >, aligator::FrameVelocityResidualTpl< _Scalar >, aligator::FunctionSliceXprTpl< Scalar, UnaryFunctionTpl< Scalar > >, aligator::LinearMomentumResidualTpl< _Scalar >, and aligator::python::PyUnaryFunction< UFunction >.
|
pure virtual |
Implemented in aligator::AngularMomentumResidualTpl< _Scalar >, aligator::CenterOfMassTranslationResidualTpl< _Scalar >, aligator::CenterOfMassVelocityResidualTpl< _Scalar >, aligator::CentroidalCoMResidualTpl< _Scalar >, aligator::CentroidalWrapperResidualTpl< _Scalar >, aligator::DCMPositionResidualTpl< _Scalar >, aligator::FrameTranslationResidualTpl< _Scalar >, aligator::FrameVelocityResidualTpl< _Scalar >, aligator::FunctionSliceXprTpl< Scalar, UnaryFunctionTpl< Scalar > >, aligator::LinearMomentumResidualTpl< _Scalar >, and aligator::python::PyUnaryFunction< UFunction >.
|
inlinevirtual |
Reimplemented in aligator::FunctionSliceXprTpl< Scalar, UnaryFunctionTpl< Scalar > >, and aligator::python::PyUnaryFunction< UFunction >.
Definition at line 22 of file unary-function.hpp.
|
inlineoverride |
Definition at line 26 of file unary-function.hpp.
|
inlineoverride |
Definition at line 31 of file unary-function.hpp.
|
inlineoverride |
Definition at line 36 of file unary-function.hpp.