#include <alpaqa/inner/panoc-ocp.hpp>
Definition at line 150 of file panoc-ocp.hpp.
Public Types | |
| using | Problem = alpaqa::TypeErasedControlProblem<config_t> |
| using | Params = PANOCOCPParams<config_t> |
| using | Stats = PANOCOCPStats<config_t> |
| using | ProgressInfo = PANOCOCPProgressInfo<config_t> |
| using | SolveOptions = InnerSolveOptions<config_t> |
Public Member Functions | |
| PANOCOCPSolver (const Params ¶ms) | |
| Stats | operator() (const Problem &problem, const SolveOptions &opts, rvec u, rvec y, crvec μ, rvec err_z) |
| template<class P> | |
| Stats | operator() (const P &problem, const SolveOptions &opts, rvec u, rvec y, crvec μ, rvec e) |
| template<class P> | |
| Stats | operator() (const P &problem, const SolveOptions &opts, rvec u) |
| PANOCOCPSolver & | set_progress_callback (std::function< void(const ProgressInfo &)> cb) |
| Specify a callable that is invoked with some intermediate results on each iteration of the algorithm. | |
| std::string | get_name () const |
| void | stop () |
| const Params & | get_params () const |
Public Attributes | |
| std::ostream * | os = &std::cout |
Private Types | |
| using | Helpers = detail::PANOCHelpers<config_t> |
Private Attributes | |
| Params | params |
| guanaqo::AtomicStopSignal | stop_signal |
| std::function< void(const ProgressInfo &)> | progress_cb |
| using Problem = alpaqa::TypeErasedControlProblem<config_t> |
Definition at line 154 of file panoc-ocp.hpp.
| using Params = PANOCOCPParams<config_t> |
Definition at line 155 of file panoc-ocp.hpp.
| using Stats = PANOCOCPStats<config_t> |
Definition at line 156 of file panoc-ocp.hpp.
| using ProgressInfo = PANOCOCPProgressInfo<config_t> |
Definition at line 157 of file panoc-ocp.hpp.
| using SolveOptions = InnerSolveOptions<config_t> |
Definition at line 158 of file panoc-ocp.hpp.
|
private |
Definition at line 202 of file panoc-ocp.hpp.
|
inline |
Definition at line 160 of file panoc-ocp.hpp.
| auto operator() | ( | const Problem & | problem, |
| const SolveOptions & | opts, | ||
| rvec | u, | ||
| rvec | y, | ||
| crvec | μ, | ||
| rvec | err_z ) |
[in] Time elapsed since the start of the algorithm
[in] The current iteration number
[in] Tolerance of the current iterate
[in] The number of successive iterations no progress was made
Iterate, updates xu, ψ, grad_ψ, have_jacobians, L
[in] Finite difference step size relative to x
[in] Minimum absolute finite difference step size
[in] Minimum allowed Lipschitz estimate.
[in] Maximum allowed Lipschitz estimate.
Workspace with the same dimensions as xu, with x_init
Workspace with the same dimensions as grad_ψ
| [in] | problem | Problem description |
| [in] | opts | Solve options |
| [in,out] | u | Decision variable \( u \) |
| [in,out] | y | Lagrange multipliers \( y \) |
| [in] | μ | Penalty factors \( \mu \) |
| [out] | err_z | Slack variable error \( c(x) - \Pi_D(c(x) + \mu^{-1} y) \) |
Definition at line 46 of file panoc-ocp.tpp.
|
inline |
|
inline |
Specify a callable that is invoked with some intermediate results on each iteration of the algorithm.
Definition at line 187 of file panoc-ocp.hpp.
| std::string get_name | ( | ) | const |
Definition at line 41 of file panoc-ocp.tpp.
|
inline |
Definition at line 194 of file panoc-ocp.hpp.
|
inline |
Definition at line 196 of file panoc-ocp.hpp.
|
private |
Definition at line 199 of file panoc-ocp.hpp.
|
private |
Definition at line 200 of file panoc-ocp.hpp.
|
private |
Definition at line 201 of file panoc-ocp.hpp.
| std::ostream* os = &std::cout |
Definition at line 205 of file panoc-ocp.hpp.