aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::ConstantCostTpl< _Scalar > Struct Template Reference

Constant cost. More...

#include <aligator/modelling/costs/constant-cost.hpp>

Inheritance diagram for aligator::ConstantCostTpl< _Scalar >:
[legend]
Collaboration diagram for aligator::ConstantCostTpl< _Scalar >:
[legend]

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< CostDatacreateData () 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< Manifoldspace
 State dimension.
 
int nu
 Control dimension.
 

Detailed Description

template<typename _Scalar>
struct aligator::ConstantCostTpl< _Scalar >

Constant cost.

Definition at line 8 of file constant-cost.hpp.

Member Typedef Documentation

◆ Scalar

template<typename _Scalar >
using aligator::ConstantCostTpl< _Scalar >::Scalar = _Scalar

Definition at line 9 of file constant-cost.hpp.

◆ Base

template<typename _Scalar >
using aligator::ConstantCostTpl< _Scalar >::Base = CostAbstractTpl<Scalar>

Definition at line 11 of file constant-cost.hpp.

◆ CostData

template<typename _Scalar >
using aligator::ConstantCostTpl< _Scalar >::CostData = CostDataAbstractTpl<Scalar>

Definition at line 12 of file constant-cost.hpp.

◆ Manifold

template<typename _Scalar >
using aligator::ConstantCostTpl< _Scalar >::Manifold = ManifoldAbstractTpl<Scalar>

Definition at line 13 of file constant-cost.hpp.

Constructor & Destructor Documentation

◆ ConstantCostTpl()

template<typename _Scalar >
aligator::ConstantCostTpl< _Scalar >::ConstantCostTpl ( xyz::polymorphic< Manifold > space,
const int nu,
const Scalar value )
inline

Definition at line 16 of file constant-cost.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename _Scalar >
aligator::ConstantCostTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ evaluate()

template<typename _Scalar >
void aligator::ConstantCostTpl< _Scalar >::evaluate ( const ConstVectorRef & ,
const ConstVectorRef & ,
CostData & data ) const
inlineoverride

Definition at line 19 of file constant-cost.hpp.

◆ computeGradients()

template<typename _Scalar >
void aligator::ConstantCostTpl< _Scalar >::computeGradients ( const ConstVectorRef & ,
const ConstVectorRef & ,
CostData &  ) const
inlineoverride

Definition at line 24 of file constant-cost.hpp.

◆ computeHessians()

template<typename _Scalar >
void aligator::ConstantCostTpl< _Scalar >::computeHessians ( const ConstVectorRef & ,
const ConstVectorRef & ,
CostData &  ) const
inlineoverride

Definition at line 27 of file constant-cost.hpp.

◆ createData()

template<typename _Scalar >
shared_ptr< CostData > aligator::ConstantCostTpl< _Scalar >::createData ( ) const
inlineoverridevirtual

Reimplemented from aligator::CostAbstractTpl< _Scalar >.

Definition at line 30 of file constant-cost.hpp.

Member Data Documentation

◆ value_

template<typename _Scalar >
Scalar aligator::ConstantCostTpl< _Scalar >::value_

Definition at line 15 of file constant-cost.hpp.


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