#include <alpaqa/inner/directions/panoc-ocp/ocp-vars.hpp>
template<Config Conf>
struct alpaqa::OCPEvaluator< Conf >
Definition at line 160 of file ocp-vars.hpp.
|
| OCPEvaluator (const Problem &problem) |
length_t | N () const |
real_t | forward (rvec storage, const Box &D, const Box &D_N, crvec μ, crvec y) const |
void | forward_simulate (rvec storage) const |
void | forward_simulate (crvec u, rvec x) const |
void | backward (rvec storage, rvec g, const auto &qr, const auto &q_N, const Box &D, const Box &D_N, crvec μ, crvec y) const |
void | Qk (crvec storage, crvec y, crvec μ, const Box &D, const Box &D_N, index_t k, rmat out) const |
auto | Q (crvec storage, crvec y, crvec μ, const Box &D, const Box &D_N) const |
void | Rk (crvec storage, index_t k, crindexvec mask, rmat out) |
auto | R (crvec storage) |
void | Sk (crvec storage, index_t k, crindexvec mask, rmat out) |
auto | S (crvec storage) |
void | Rk_prod (crvec storage, index_t k, crindexvec mask_J, crindexvec mask_K, crvec v, rvec out) const |
auto | R_prod (crvec storage) const |
void | Sk_prod (crvec storage, index_t k, crindexvec mask_K, crvec v, rvec out) const |
auto | S_prod (crvec storage) const |
◆ OCPVars
◆ Problem
◆ Box
◆ OCPEvaluator()
◆ N()
◆ forward()
- Precondition
- x0 and u initialized
- Postcondition
- x, h and c updated
- Returns
- \( V(u) =
\sum_{k=0}^{N-1} \ell(h_k(x_k, u_k)) + V_f(h_N(x_N)) \)
Definition at line 181 of file ocp-vars.hpp.
◆ forward_simulate() [1/2]
template<Config Conf>
void forward_simulate |
( |
rvec | storage | ) |
const |
|
inline |
- Precondition
- x0 and u initialized
- Postcondition
- x updated
Definition at line 229 of file ocp-vars.hpp.
◆ forward_simulate() [2/2]
template<Config Conf>
void forward_simulate |
( |
crvec | u, |
|
|
rvec | x ) const |
|
inline |
- Precondition
- x0 and u initialized
Definition at line 253 of file ocp-vars.hpp.
◆ backward()
template<Config Conf>
void backward |
( |
rvec | storage, |
|
|
rvec | g, |
|
|
const auto & | qr, |
|
|
const auto & | q_N, |
|
|
const Box & | D, |
|
|
const Box & | D_N, |
|
|
crvec | μ, |
|
|
crvec | y ) const |
|
inline |
- Precondition
- x, u, h and c initialized (i.e. forward was called)
Definition at line 263 of file ocp-vars.hpp.
◆ Qk()
◆ Q()
◆ Rk()
- Postcondition
- initialize work_R
Definition at line 371 of file ocp-vars.hpp.
◆ R()
◆ Sk()
- Postcondition
- initialize work_S
Definition at line 387 of file ocp-vars.hpp.
◆ S()
◆ Rk_prod()
- Precondition
- initialized work_R
Definition at line 403 of file ocp-vars.hpp.
◆ R_prod()
template<Config Conf>
auto R_prod |
( |
crvec | storage | ) |
const |
|
inline |
◆ Sk_prod()
- Precondition
- initialized work_S
Definition at line 424 of file ocp-vars.hpp.
◆ S_prod()
template<Config Conf>
auto S_prod |
( |
crvec | storage | ) |
const |
|
inline |
◆ problem
◆ vars
◆ work_x
template<Config Conf>
vec work_x {vars.nc() > 0 || vars.nc_N() ? vars.nx() : 0} |
|
mutable |
◆ work_λ
◆ work_c
template<Config Conf>
vec work_c {std::max(vars.nc(), vars.nc_N())} |
|
mutable |
◆ work_R
◆ work_S
The documentation for this struct was generated from the following file:
- src/alpaqa/include/alpaqa/inner/directions/panoc-ocp/ocp-vars.hpp