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

#include <aligator/core/results-base.hpp>

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

Public Types

using Scalar = _Scalar
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 ResultsBaseTpl ()
 
bool isInitialized () const
 
decltype(auto) getFeedforward (std::size_t i)
 Get column expression of the primal-dual feedforward gain.
 
decltype(auto) getFeedforward (std::size_t i) const
 Get column expression of the primal-dual feedforward gain.
 
decltype(auto) getFeedback (std::size_t i)
 Get expression of the primal-dual feedback gains.
 
decltype(auto) getFeedback (std::size_t i) const
 Get expression of the primal-dual feedback gains.
 
std::vector< MatrixXs > getCtrlFeedbacks () const
 
std::vector< VectorXs > getCtrlFeedforwards () const
 
void printBase (std::ostream &oss) const
 
virtual ~ResultsBaseTpl ()=default
 

Public Attributes

std::size_t num_iters = 0
 
bool conv = false
 
Scalar traj_cost_ = 0.
 
Scalar merit_value_ = 0.
 
Scalar prim_infeas = 0.
 Overall primal infeasibility measure/constraint violation.
 
Scalar dual_infeas = 0.
 Overall dual infeasibility measure.
 
std::vector< MatrixXs > gains_
 Riccati gains.
 
std::vector< VectorXs > xs
 States.
 
std::vector< VectorXs > us
 Controls.
 

Protected Attributes

bool m_isInitialized
 

Detailed Description

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

Definition at line 119 of file fwd.hpp.

Member Typedef Documentation

◆ Scalar

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

Definition at line 10 of file results-base.hpp.

Constructor & Destructor Documentation

◆ ResultsBaseTpl()

template<typename Scalar >
aligator::ResultsBaseTpl< Scalar >::ResultsBaseTpl ( )
inline

Definition at line 35 of file results-base.hpp.

◆ ~ResultsBaseTpl()

template<typename Scalar >
virtual aligator::ResultsBaseTpl< Scalar >::~ResultsBaseTpl ( )
virtualdefault

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

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

◆ isInitialized()

template<typename Scalar >
bool aligator::ResultsBaseTpl< Scalar >::isInitialized ( ) const
inline

Definition at line 36 of file results-base.hpp.

◆ getFeedforward() [1/2]

template<typename Scalar >
decltype(auto) aligator::ResultsBaseTpl< Scalar >::getFeedforward ( std::size_t i)
inline

Get column expression of the primal-dual feedforward gain.

Definition at line 39 of file results-base.hpp.

◆ getFeedforward() [2/2]

template<typename Scalar >
decltype(auto) aligator::ResultsBaseTpl< Scalar >::getFeedforward ( std::size_t i) const
inline

Get column expression of the primal-dual feedforward gain.

Definition at line 44 of file results-base.hpp.

◆ getFeedback() [1/2]

template<typename Scalar >
decltype(auto) aligator::ResultsBaseTpl< Scalar >::getFeedback ( std::size_t i)
inline

Get expression of the primal-dual feedback gains.

Definition at line 49 of file results-base.hpp.

◆ getFeedback() [2/2]

template<typename Scalar >
decltype(auto) aligator::ResultsBaseTpl< Scalar >::getFeedback ( std::size_t i) const
inline

Get expression of the primal-dual feedback gains.

Definition at line 54 of file results-base.hpp.

◆ getCtrlFeedbacks()

template<typename Scalar >
std::vector< MatrixXs > aligator::ResultsBaseTpl< Scalar >::getCtrlFeedbacks ( ) const
inline

Definition at line 58 of file results-base.hpp.

◆ getCtrlFeedforwards()

template<typename Scalar >
std::vector< VectorXs > aligator::ResultsBaseTpl< Scalar >::getCtrlFeedforwards ( ) const
inline

Definition at line 68 of file results-base.hpp.

◆ printBase()

template<typename Scalar >
void aligator::ResultsBaseTpl< Scalar >::printBase ( std::ostream & oss) const

Definition at line 88 of file results-base.hpp.

Member Data Documentation

◆ m_isInitialized

template<typename Scalar >
bool aligator::ResultsBaseTpl< Scalar >::m_isInitialized
protected

Definition at line 15 of file results-base.hpp.

◆ num_iters

template<typename Scalar >
std::size_t aligator::ResultsBaseTpl< Scalar >::num_iters = 0

Definition at line 18 of file results-base.hpp.

◆ conv

template<typename Scalar >
bool aligator::ResultsBaseTpl< Scalar >::conv = false

Definition at line 19 of file results-base.hpp.

◆ traj_cost_

template<typename Scalar >
Scalar aligator::ResultsBaseTpl< Scalar >::traj_cost_ = 0.

Definition at line 21 of file results-base.hpp.

◆ merit_value_

template<typename Scalar >
Scalar aligator::ResultsBaseTpl< Scalar >::merit_value_ = 0.

Definition at line 22 of file results-base.hpp.

◆ prim_infeas

template<typename Scalar >
Scalar aligator::ResultsBaseTpl< Scalar >::prim_infeas = 0.

Overall primal infeasibility measure/constraint violation.

Definition at line 24 of file results-base.hpp.

◆ dual_infeas

template<typename Scalar >
Scalar aligator::ResultsBaseTpl< Scalar >::dual_infeas = 0.

Overall dual infeasibility measure.

Definition at line 26 of file results-base.hpp.

◆ gains_

template<typename Scalar >
std::vector<MatrixXs> aligator::ResultsBaseTpl< Scalar >::gains_

Riccati gains.

Definition at line 29 of file results-base.hpp.

◆ xs

template<typename Scalar >
std::vector<VectorXs> aligator::ResultsBaseTpl< Scalar >::xs

States.

Definition at line 31 of file results-base.hpp.

◆ us

template<typename Scalar >
std::vector<VectorXs> aligator::ResultsBaseTpl< Scalar >::us

Controls.

Definition at line 33 of file results-base.hpp.


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