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

#include <aligator/modelling/linear-function-composition.hpp>

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

Public Types

using Scalar = _Scalar
 
using Impl = detail::linear_func_composition_impl<StageFunctionTpl<Scalar>>
 
using Base = typename Impl::FunType
 
using Data = typename Impl::Data
 
using BaseData = StageFunctionDataTpl<Scalar>
 
- Public Types inherited from aligator::detail::linear_func_composition_impl< StageFunctionTpl< _Scalar > >
using FunType
 
using Scalar
 
using BaseData
 
- Public Types inherited from aligator::StageFunctionTpl< _Scalar >
using Scalar
 
using Data
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const override
 
void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const override
 
shared_ptr< BaseDatacreateData () const
 Instantiate a Data object.
 
- Public Member Functions inherited from aligator::detail::linear_func_composition_impl< StageFunctionTpl< _Scalar > >
 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 linear_func_composition_impl (xyz::polymorphic< FunType > func, const ConstMatrixRef A, const ConstVectorRef b)
 
 linear_func_composition_impl (xyz::polymorphic< FunType > func, const ConstMatrixRef A)
 
- 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
 

Public Attributes

MatrixXs A
 
VectorXs b
 
xyz::polymorphic< FunTypefunc
 
- Public Attributes inherited from aligator::detail::linear_func_composition_impl< StageFunctionTpl< _Scalar > >
xyz::polymorphic< FunTypefunc
 
MatrixXs A
 
VectorXs b
 
- Public Attributes inherited from aligator::StageFunctionTpl< _Scalar >
const int ndx1
 Current state dimension.
 
const int nu
 Control dimension.
 
const int nr
 Function codimension.
 

Detailed Description

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

Definition at line 53 of file linear-function-composition.hpp.

Member Typedef Documentation

◆ Scalar

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

Definition at line 55 of file linear-function-composition.hpp.

◆ Impl

Definition at line 57 of file linear-function-composition.hpp.

◆ Base

template<typename _Scalar >
using aligator::LinearFunctionCompositionTpl< _Scalar >::Base = typename Impl::FunType

Definition at line 58 of file linear-function-composition.hpp.

◆ Data

template<typename _Scalar >
using aligator::LinearFunctionCompositionTpl< _Scalar >::Data = typename Impl::Data

Definition at line 59 of file linear-function-composition.hpp.

◆ BaseData

template<typename _Scalar >
using aligator::LinearFunctionCompositionTpl< _Scalar >::BaseData = StageFunctionDataTpl<Scalar>

Definition at line 60 of file linear-function-composition.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

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

◆ evaluate()

template<typename _Scalar >
void aligator::LinearFunctionCompositionTpl< _Scalar >::evaluate ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const
override

◆ computeJacobians()

template<typename _Scalar >
void aligator::LinearFunctionCompositionTpl< _Scalar >::computeJacobians ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const
override

◆ createData()

template<typename _Scalar >
shared_ptr< BaseData > aligator::detail::linear_func_composition_impl< _FunType >::createData ( ) const
inlinevirtual

Instantiate a Data object.

Reimplemented from aligator::detail::linear_func_composition_impl< StageFunctionTpl< _Scalar > >.

Definition at line 46 of file linear-function-composition.hpp.

Member Data Documentation

◆ A

template<typename _Scalar >
MatrixXs aligator::detail::linear_func_composition_impl< _FunType >::A

Definition at line 18 of file linear-function-composition.hpp.

◆ b

template<typename _Scalar >
VectorXs aligator::detail::linear_func_composition_impl< _FunType >::b

Definition at line 19 of file linear-function-composition.hpp.

◆ func

template<typename _Scalar >
xyz::polymorphic<FunType> aligator::detail::linear_func_composition_impl< _FunType >::func

Definition at line 17 of file linear-function-composition.hpp.


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