alpaqa
develop
Nonconvex constrained optimization
|
#include <alpaqa/problem/type-erased-problem.hpp>
Struct containing function pointers to all problem functions (like the objective and constraint functions, with their derivatives, and more).
Some default implementations are available. Internal struct, it is used by TypeErasedProblem.
Definition at line 24 of file type-erased-problem.hpp.
Public Types | |
using | Sparsity = alpaqa::Sparsity< config_t > |
using | Box = alpaqa::Box< config_t > |
template<class F > | |
using | optional_function_t = util::BasicVTable::optional_function_t< F, ProblemVTable > |
template<class F > | |
using | required_function_t = typename required_function< F >::type |
A required function includes a void pointer to self, in addition to the arguments of F . | |
Public Member Functions | |
template<class P > | |
ProblemVTable (std::in_place_t, P &p) | |
ProblemVTable ()=default | |
using Sparsity = alpaqa::Sparsity<config_t> |
Definition at line 26 of file type-erased-problem.hpp.
using Box = alpaqa::Box<config_t> |
Definition at line 27 of file type-erased-problem.hpp.
using optional_function_t = util::BasicVTable::optional_function_t<F, ProblemVTable> |
Definition at line 30 of file type-erased-problem.hpp.
|
inherited |
A required function includes a void pointer to self, in addition to the arguments of F
.
Definition at line 82 of file type-erasure.hpp.
Definition at line 150 of file type-erased-problem.hpp.
|
default |
|
static |
Definition at line 9 of file type-erased-problem.tpp.
|
static |
Definition at line 35 of file type-erased-problem.tpp.
|
static |
Definition at line 42 of file type-erased-problem.tpp.
|
static |
Definition at line 49 of file type-erased-problem.tpp.
|
static |
Definition at line 55 of file type-erased-problem.tpp.
|
static |
Definition at line 61 of file type-erased-problem.tpp.
|
static |
Definition at line 67 of file type-erased-problem.tpp.
|
static |
Definition at line 73 of file type-erased-problem.tpp.
|
static |
Definition at line 79 of file type-erased-problem.tpp.
|
static |
Definition at line 88 of file type-erased-problem.tpp.
|
static |
Definition at line 97 of file type-erased-problem.tpp.
|
static |
Definition at line 107 of file type-erased-problem.tpp.
|
static |
Definition at line 117 of file type-erased-problem.tpp.
|
static |
Definition at line 127 of file type-erased-problem.tpp.
|
static |
Definition at line 138 of file type-erased-problem.tpp.
|
static |
Definition at line 150 of file type-erased-problem.tpp.
|
static |
Definition at line 166 of file type-erased-problem.tpp.
|
static |
Definition at line 182 of file type-erased-problem.tpp.
|
static |
Definition at line 200 of file type-erased-problem.tpp.
|
static |
Definition at line 205 of file type-erased-problem.tpp.
Definition at line 210 of file type-erased-problem.tpp.
|
static |
Definition at line 213 of file type-erased-problem.tpp.
required_function_t<void(crvec z, rvec e) const> eval_proj_diff_g |
Definition at line 36 of file type-erased-problem.hpp.
Definition at line 38 of file type-erased-problem.hpp.
required_function_t<real_t(real_t γ, crvec x, crvec grad_ψ, rvec x̂, rvec p) const> eval_prox_grad_step |
Definition at line 40 of file type-erased-problem.hpp.
required_function_t<real_t(crvec x) const> eval_f |
Definition at line 42 of file type-erased-problem.hpp.
Definition at line 44 of file type-erased-problem.hpp.
Definition at line 46 of file type-erased-problem.hpp.
required_function_t<void(crvec x, crvec y, rvec grad_gxy) const> eval_grad_g_prod |
Definition at line 48 of file type-erased-problem.hpp.
optional_function_t<index_t(real_t γ, crvec x, crvec grad_ψ, rindexvec J) const> eval_inactive_indices_res_lna = default_eval_inactive_indices_res_lna |
Definition at line 50 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, rvec J_values) const> eval_jac_g = default_eval_jac_g |
Definition at line 54 of file type-erased-problem.hpp.
optional_function_t<Sparsity() const> get_jac_g_sparsity = default_get_jac_g_sparsity |
Definition at line 56 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, index_t i, rvec grad_gi) const> eval_grad_gi = default_eval_grad_gi |
Definition at line 58 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, real_t scale, crvec v, rvec Hv) const> eval_hess_L_prod = default_eval_hess_L_prod |
Definition at line 60 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, real_t scale, rvec H_values) const> eval_hess_L = default_eval_hess_L |
Definition at line 62 of file type-erased-problem.hpp.
optional_function_t<Sparsity() const> get_hess_L_sparsity = default_get_hess_L_sparsity |
Definition at line 64 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, crvec Σ, real_t scale, crvec v, rvec Hv) const> eval_hess_ψ_prod = default_eval_hess_ψ_prod |
Definition at line 66 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, crvec Σ, real_t scale, rvec H_values) const> eval_hess_ψ = default_eval_hess_ψ |
Definition at line 68 of file type-erased-problem.hpp.
optional_function_t<Sparsity() const> get_hess_ψ_sparsity = default_get_hess_ψ_sparsity |
Definition at line 70 of file type-erased-problem.hpp.
optional_function_t<real_t(crvec x, rvec grad_fx) const> eval_f_grad_f = default_eval_f_grad_f |
Definition at line 74 of file type-erased-problem.hpp.
optional_function_t<real_t(crvec x, rvec g) const> eval_f_g = default_eval_f_g |
Definition at line 76 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, rvec grad_f, rvec grad_gxy) const> eval_grad_f_grad_g_prod = default_eval_grad_f_grad_g_prod |
Definition at line 78 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, rvec grad_L, rvec work_n) const> eval_grad_L = default_eval_grad_L |
Definition at line 82 of file type-erased-problem.hpp.
optional_function_t<real_t(crvec x, crvec y, crvec Σ, rvec ŷ) const> eval_ψ = default_eval_ψ |
Definition at line 84 of file type-erased-problem.hpp.
optional_function_t<void(crvec x, crvec y, crvec Σ, rvec grad_ψ, rvec work_n, rvec work_m) const> eval_grad_ψ = default_eval_grad_ψ |
Definition at line 86 of file type-erased-problem.hpp.
optional_function_t<real_t(crvec x, crvec y, crvec Σ, rvec grad_ψ, rvec work_n, rvec work_m) const> eval_ψ_grad_ψ = default_eval_ψ_grad_ψ |
Definition at line 88 of file type-erased-problem.hpp.
optional_function_t<const Box &() const> get_box_C = default_get_box_C |
Definition at line 92 of file type-erased-problem.hpp.
optional_function_t<const Box &() const> get_box_D = default_get_box_D |
Definition at line 94 of file type-erased-problem.hpp.
optional_function_t<void() const> check = default_check |
Definition at line 98 of file type-erased-problem.hpp.
optional_function_t<std::string() const> get_name = default_get_name |
Definition at line 100 of file type-erased-problem.hpp.
length_t n |
Definition at line 147 of file type-erased-problem.hpp.
length_t m |
Definition at line 147 of file type-erased-problem.hpp.
|
inherited |
Copy-construct a new instance into storage.
Definition at line 90 of file type-erasure.hpp.
|
inherited |
Move-construct a new instance into storage.
Definition at line 92 of file type-erasure.hpp.
|
inherited |
Destruct the given instance.
Definition at line 94 of file type-erasure.hpp.
The original type of the stored object.
Definition at line 96 of file type-erasure.hpp.