autogenu-jupyter
An automatic code generator and the continuation/GMRES (C/GMRES) based numerical solvers for nonlinear MPC
Loading...
Searching...
No Matches
cgmres::Logger Class Reference

Logger for MPC. More...

#include <logger.hpp>

Public Member Functions

 Logger (const std::string &log_name)
 Constructor. More...
 
 ~Logger ()
 Destructor. More...
 
template<typename StateVectorType , typename ControlInputVectorType >
void save (const Scalar t, const MatrixBase< StateVectorType > &x, const MatrixBase< ControlInputVectorType > &u, const double opterr)
 Save datas. More...
 
void save (const TimingProfile &timing_profile) const
 Save the timing profile. More...
 

Detailed Description

Logger for MPC.

Constructor & Destructor Documentation

◆ Logger()

cgmres::Logger::Logger ( const std::string &  log_name)
inlineexplicit

Constructor.

Parameters
[in]log_nameName of the log.

◆ ~Logger()

cgmres::Logger::~Logger ( )
inline

Destructor.

Member Function Documentation

◆ save() [1/2]

template<typename StateVectorType , typename ControlInputVectorType >
void cgmres::Logger::save ( const Scalar  t,
const MatrixBase< StateVectorType > &  x,
const MatrixBase< ControlInputVectorType > &  u,
const double  opterr 
)
inline

Save datas.

Parameters
[in]tTime.
[in]xState.
[in]uControl input.
[in]opterrOptimality error.

◆ save() [2/2]

void cgmres::Logger::save ( const TimingProfile timing_profile) const
inline

Save the timing profile.

Parameters
[in]timing_profileTiming profile.

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