aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Constant cost. More...
#include <aligator/modelling/costs/constant-cost.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = CostAbstractTpl<Scalar> |
using | CostData = CostDataAbstractTpl<Scalar> |
using | Manifold = ManifoldAbstractTpl<Scalar> |
Public Types inherited from aligator::CostAbstractTpl< _Scalar > | |
using | Scalar |
using | CostData |
using | Manifold |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
ConstantCostTpl (xyz::polymorphic< Manifold > space, const int nu, const Scalar value) | |
void | evaluate (const ConstVectorRef &, const ConstVectorRef &, CostData &data) const override |
void | computeGradients (const ConstVectorRef &, const ConstVectorRef &, CostData &) const override |
void | computeHessians (const ConstVectorRef &, const ConstVectorRef &, CostData &) const override |
shared_ptr< CostData > | createData () const override |
Public Member Functions inherited from aligator::CostAbstractTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
int | nx () const |
int | ndx () const |
CostAbstractTpl (U &&space, const int nu) | |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Evaluate the cost function. | |
virtual void | computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Compute the cost gradients \((\ell_x, \ell_u)\). | |
virtual void | computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Compute the cost Hessians \((\ell_{ij})_{i,j \in \{x,u\}}\). | |
virtual | ~CostAbstractTpl ()=default |
Public Attributes | |
Scalar | value_ |
Public Attributes inherited from aligator::CostAbstractTpl< _Scalar > | |
xyz::polymorphic< Manifold > | space |
State dimension. | |
int | nu |
Control dimension. | |
Constant cost.
Definition at line 8 of file constant-cost.hpp.
using aligator::ConstantCostTpl< _Scalar >::Scalar = _Scalar |
Definition at line 9 of file constant-cost.hpp.
using aligator::ConstantCostTpl< _Scalar >::Base = CostAbstractTpl<Scalar> |
Definition at line 11 of file constant-cost.hpp.
using aligator::ConstantCostTpl< _Scalar >::CostData = CostDataAbstractTpl<Scalar> |
Definition at line 12 of file constant-cost.hpp.
using aligator::ConstantCostTpl< _Scalar >::Manifold = ManifoldAbstractTpl<Scalar> |
Definition at line 13 of file constant-cost.hpp.
|
inline |
Definition at line 16 of file constant-cost.hpp.
aligator::ConstantCostTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inlineoverride |
Definition at line 19 of file constant-cost.hpp.
|
inlineoverride |
Definition at line 24 of file constant-cost.hpp.
|
inlineoverride |
Definition at line 27 of file constant-cost.hpp.
|
inlineoverridevirtual |
Reimplemented from aligator::CostAbstractTpl< _Scalar >.
Definition at line 30 of file constant-cost.hpp.
Scalar aligator::ConstantCostTpl< _Scalar >::value_ |
Definition at line 15 of file constant-cost.hpp.