aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
#include <aligator/modelling/costs/cost-direct-sum.hpp>
Classes | |
struct | Data |
Public Types | |
using | Scalar = _Scalar |
using | BaseCost = CostAbstractTpl<Scalar> |
using | BaseData = CostDataAbstractTpl<Scalar> |
using | Manifold = ManifoldAbstractTpl<Scalar> |
using | PolyCost = xyz::polymorphic<BaseCost> |
Public Types inherited from aligator::CostAbstractTpl< _Scalar > | |
using | Scalar |
using | CostData |
using | Manifold |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
DirectSumCostTpl (const PolyCost &c1, const PolyCost &c2) | |
shared_ptr< BaseData > | createData () const override |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const override |
void | computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const override |
void | computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) 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 | |
xyz::polymorphic< BaseCost > | c1_ |
xyz::polymorphic< BaseCost > | c2_ |
Public Attributes inherited from aligator::CostAbstractTpl< _Scalar > | |
xyz::polymorphic< Manifold > | space |
State dimension. | |
int | nu |
Control dimension. | |
Definition at line 10 of file cost-direct-sum.hpp.
using aligator::DirectSumCostTpl< _Scalar >::Scalar = _Scalar |
Definition at line 11 of file cost-direct-sum.hpp.
using aligator::DirectSumCostTpl< _Scalar >::BaseCost = CostAbstractTpl<Scalar> |
Definition at line 13 of file cost-direct-sum.hpp.
using aligator::DirectSumCostTpl< _Scalar >::BaseData = CostDataAbstractTpl<Scalar> |
Definition at line 14 of file cost-direct-sum.hpp.
using aligator::DirectSumCostTpl< _Scalar >::Manifold = ManifoldAbstractTpl<Scalar> |
Definition at line 15 of file cost-direct-sum.hpp.
using aligator::DirectSumCostTpl< _Scalar >::PolyCost = xyz::polymorphic<BaseCost> |
Definition at line 16 of file cost-direct-sum.hpp.
|
inline |
Definition at line 20 of file cost-direct-sum.hpp.
aligator::DirectSumCostTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
overridevirtual |
Reimplemented from aligator::CostAbstractTpl< _Scalar >.
Definition at line 119 of file cost-direct-sum.hpp.
|
override |
Definition at line 53 of file cost-direct-sum.hpp.
|
override |
Definition at line 69 of file cost-direct-sum.hpp.
|
override |
Definition at line 91 of file cost-direct-sum.hpp.
xyz::polymorphic<BaseCost> aligator::DirectSumCostTpl< _Scalar >::c1_ |
Definition at line 25 of file cost-direct-sum.hpp.
xyz::polymorphic<BaseCost> aligator::DirectSumCostTpl< _Scalar >::c2_ |
Definition at line 25 of file cost-direct-sum.hpp.