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

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

Inheritance diagram for aligator::QuadraticControlCostTpl< Scalar >:
[legend]
Collaboration diagram for aligator::QuadraticControlCostTpl< Scalar >:
[legend]

Public Types

using Base = QuadraticResidualCostTpl<Scalar>
 
using Manifold = ManifoldAbstractTpl<Scalar>
 
using Error = ControlErrorResidualTpl<Scalar>
 
- Public Types inherited from aligator::QuadraticResidualCostTpl< Scalar >
using Scalar
 
using Base
 
using CostData
 
using Data
 
using StageFunction
 
using Manifold
 
- Public Types inherited from aligator::CostAbstractTpl< Scalar >
using Scalar = _Scalar
 
using CostData = CostDataAbstractTpl<Scalar>
 
using Manifold = ManifoldAbstractTpl<Scalar>
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 QuadraticControlCostTpl (xyz::polymorphic< Manifold > space, Error resdl, const MatrixXs &weights)
 
 QuadraticControlCostTpl (xyz::polymorphic< Manifold > space, int nu, const ConstMatrixRef &weights)
 
 QuadraticControlCostTpl (xyz::polymorphic< Manifold > space, const ConstVectorRef &target, const ConstMatrixRef &weights)
 
void setTarget (const ConstVectorRef &target)
 
ConstVectorRef getTarget () const
 
- Public Member Functions inherited from aligator::QuadraticResidualCostTpl< Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 QuadraticResidualCostTpl (xyz::polymorphic< Manifold > space, xyz::polymorphic< StageFunction > function, const ConstMatrixRef &weights)
 
void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data_) const
 
void computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data_) const
 
void computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data_) const
 
shared_ptr< CostDatacreateData () const
 
Derived * getResidual ()
 Get a pointer to the underlying type of the residual, by attempting to cast.
 
const Derived * getResidual () const
 Get a pointer to the underlying type of the residual, by attempting to cast.
 
- Public Member Functions inherited from aligator::CostAbstractTpl< Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
int nx () const
 
int ndx () const
 
template<class U >
 CostAbstractTpl (U &&space, const int nu)
 
virtual ~CostAbstractTpl ()=default
 

Protected Member Functions

Errorresidual ()
 
const Errorresidual () const
 

Additional Inherited Members

- Public Attributes inherited from aligator::QuadraticResidualCostTpl< Scalar >
MatrixXs weights_
 
xyz::polymorphic< StageFunctionresidual_
 
bool gauss_newton
 
- Public Attributes inherited from aligator::CostAbstractTpl< Scalar >
xyz::polymorphic< Manifoldspace
 State dimension.
 
int nu
 Control dimension.
 

Detailed Description

template<typename Scalar>
struct aligator::QuadraticControlCostTpl< Scalar >

Definition at line 38 of file quad-state-cost.hpp.

Member Typedef Documentation

◆ Base

Definition at line 40 of file quad-state-cost.hpp.

◆ Manifold

template<typename Scalar >
using aligator::QuadraticControlCostTpl< Scalar >::Manifold = ManifoldAbstractTpl<Scalar>

Definition at line 41 of file quad-state-cost.hpp.

◆ Error

Definition at line 42 of file quad-state-cost.hpp.

Constructor & Destructor Documentation

◆ QuadraticControlCostTpl() [1/3]

template<typename Scalar >
aligator::QuadraticControlCostTpl< Scalar >::QuadraticControlCostTpl ( xyz::polymorphic< Manifold > space,
Error resdl,
const MatrixXs & weights )
inline

Definition at line 44 of file quad-state-cost.hpp.

◆ QuadraticControlCostTpl() [2/3]

template<typename Scalar >
aligator::QuadraticControlCostTpl< Scalar >::QuadraticControlCostTpl ( xyz::polymorphic< Manifold > space,
int nu,
const ConstMatrixRef & weights )
inline

Definition at line 48 of file quad-state-cost.hpp.

◆ QuadraticControlCostTpl() [3/3]

template<typename Scalar >
aligator::QuadraticControlCostTpl< Scalar >::QuadraticControlCostTpl ( xyz::polymorphic< Manifold > space,
const ConstVectorRef & target,
const ConstMatrixRef & weights )
inline

Definition at line 52 of file quad-state-cost.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename Scalar >
aligator::QuadraticControlCostTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ setTarget()

template<typename Scalar >
void aligator::QuadraticControlCostTpl< Scalar >::setTarget ( const ConstVectorRef & target)
inline

Definition at line 57 of file quad-state-cost.hpp.

◆ getTarget()

template<typename Scalar >
ConstVectorRef aligator::QuadraticControlCostTpl< Scalar >::getTarget ( ) const
inline

Definition at line 58 of file quad-state-cost.hpp.

◆ residual() [1/2]

template<typename Scalar >
Error & aligator::QuadraticControlCostTpl< Scalar >::residual ( )
inlineprotected

Definition at line 61 of file quad-state-cost.hpp.

◆ residual() [2/2]

template<typename Scalar >
const Error & aligator::QuadraticControlCostTpl< Scalar >::residual ( ) const
inlineprotected

Definition at line 62 of file quad-state-cost.hpp.


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