#include <alpaqa/inner/panoc-ocp.hpp>
Definition at line 132 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 |
AtomicStopSignal | stop_signal |
std::function< void(const ProgressInfo &)> | progress_cb |
using Problem = alpaqa::TypeErasedControlProblem<config_t> |
Definition at line 136 of file panoc-ocp.hpp.
using Params = PANOCOCPParams<config_t> |
Definition at line 137 of file panoc-ocp.hpp.
using Stats = PANOCOCPStats<config_t> |
Definition at line 138 of file panoc-ocp.hpp.
using ProgressInfo = PANOCOCPProgressInfo<config_t> |
Definition at line 139 of file panoc-ocp.hpp.
using SolveOptions = InnerSolveOptions<config_t> |
Definition at line 140 of file panoc-ocp.hpp.
|
private |
Definition at line 184 of file panoc-ocp.hpp.
|
inline |
Definition at line 142 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 169 of file panoc-ocp.hpp.
std::string get_name |
Definition at line 41 of file panoc-ocp.tpp.
|
inline |
|
inline |
Definition at line 178 of file panoc-ocp.hpp.
|
private |
Definition at line 181 of file panoc-ocp.hpp.
|
private |
Definition at line 182 of file panoc-ocp.hpp.
|
private |
Definition at line 183 of file panoc-ocp.hpp.
std::ostream* os = &std::cout |
Definition at line 187 of file panoc-ocp.hpp.