autogenu-jupyter
An automatic code generator and the continuation/GMRES (C/GMRES) based numerical solvers for nonlinear MPC
Loading...
Searching...
No Matches
cgmres::detail::SingleShootingNLP< OCP, N > Class Template Reference

#include <single_shooting_nlp.hpp>

Public Member Functions

 SingleShootingNLP (const OCP &ocp, const Horizon &horizon)
 
 SingleShootingNLP ()=default
 
 ~SingleShootingNLP ()=default
 
template<typename VectorType >
void eval_fonc_hu (const Scalar t, const MatrixBase< VectorType > &x, const Vector< dim > &solution, Vector< dim > &fonc_hu)
 
void retrive_dummy (Vector< dim > &solution, Vector< dim > &fonc_hu, const Scalar min_dummy)
 
void retrive_mu (Vector< dim > &solution, Vector< dim > &fonc_hu)
 
void synchronize_ocp ()
 
const OCP & ocp () const
 
const Horizonhorizon () const
 
const std::array< Vector< nx >, N+1 > & x () const
 
const std::array< Vector< nx >, N+1 > & lmd () const
 

Static Public Attributes

static constexpr int nx = OCP::nx
 
static constexpr int nu = OCP::nu
 
static constexpr int nc = OCP::nc
 
static constexpr int nuc = nu + nc
 
static constexpr int nub = OCP::nub
 
static constexpr int dim = nuc * N + 2 * N * nub
 

Constructor & Destructor Documentation

◆ SingleShootingNLP() [1/2]

template<class OCP , int N>
cgmres::detail::SingleShootingNLP< OCP, N >::SingleShootingNLP ( const OCP &  ocp,
const Horizon horizon 
)
inline

◆ SingleShootingNLP() [2/2]

template<class OCP , int N>
cgmres::detail::SingleShootingNLP< OCP, N >::SingleShootingNLP ( )
default

◆ ~SingleShootingNLP()

template<class OCP , int N>
cgmres::detail::SingleShootingNLP< OCP, N >::~SingleShootingNLP ( )
default

Member Function Documentation

◆ eval_fonc_hu()

template<class OCP , int N>
template<typename VectorType >
void cgmres::detail::SingleShootingNLP< OCP, N >::eval_fonc_hu ( const Scalar  t,
const MatrixBase< VectorType > &  x,
const Vector< dim > &  solution,
Vector< dim > &  fonc_hu 
)
inline

◆ horizon()

template<class OCP , int N>
const Horizon & cgmres::detail::SingleShootingNLP< OCP, N >::horizon ( ) const
inline

◆ lmd()

template<class OCP , int N>
const std::array< Vector< nx >, N+1 > & cgmres::detail::SingleShootingNLP< OCP, N >::lmd ( ) const
inline

◆ ocp()

template<class OCP , int N>
const OCP & cgmres::detail::SingleShootingNLP< OCP, N >::ocp ( ) const
inline

◆ retrive_dummy()

template<class OCP , int N>
void cgmres::detail::SingleShootingNLP< OCP, N >::retrive_dummy ( Vector< dim > &  solution,
Vector< dim > &  fonc_hu,
const Scalar  min_dummy 
)
inline

◆ retrive_mu()

template<class OCP , int N>
void cgmres::detail::SingleShootingNLP< OCP, N >::retrive_mu ( Vector< dim > &  solution,
Vector< dim > &  fonc_hu 
)
inline

◆ synchronize_ocp()

template<class OCP , int N>
void cgmres::detail::SingleShootingNLP< OCP, N >::synchronize_ocp ( )
inline

◆ x()

template<class OCP , int N>
const std::array< Vector< nx >, N+1 > & cgmres::detail::SingleShootingNLP< OCP, N >::x ( ) const
inline

Member Data Documentation

◆ dim

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::dim = nuc * N + 2 * N * nub
staticconstexpr

◆ nc

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::nc = OCP::nc
staticconstexpr

◆ nu

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::nu = OCP::nu
staticconstexpr

◆ nub

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::nub = OCP::nub
staticconstexpr

◆ nuc

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::nuc = nu + nc
staticconstexpr

◆ nx

template<class OCP , int N>
constexpr int cgmres::detail::SingleShootingNLP< OCP, N >::nx = OCP::nx
staticconstexpr

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