#include <alpaqa/inner/pantr.hpp>
PANTR solver for ALM.
Public Types | |
using | Problem = TypeErasedProblem< config_t > |
using | Params = PANTRParams< config_t > |
using | Direction = DirectionT |
using | Stats = PANTRStats< config_t > |
using | ProgressInfo = PANTRProgressInfo< config_t > |
using | SolveOptions = InnerSolveOptions< config_t > |
Public Member Functions | |
PANTRSolver (const Params ¶ms) | |
PANTRSolver (const Params ¶ms, Direction &&direction) | |
PANTRSolver (const Params ¶ms, const Direction &direction) | |
Stats | operator() (const Problem &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec err_z) |
template<class P > | |
Stats | operator() (const P &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec e) |
template<class P > | |
Stats | operator() (const P &problem, const SolveOptions &opts, rvec x) |
PANTRSolver & | 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 | |
Direction | direction |
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 = TypeErasedProblem<config_t> |
using Params = PANTRParams<config_t> |
using Direction = DirectionT |
using Stats = PANTRStats<config_t> |
using ProgressInfo = PANTRProgressInfo<config_t> |
using SolveOptions = InnerSolveOptions<config_t> |
|
private |
|
inline |
|
inline |
|
inline |
auto operator() | ( | const Problem & | problem, |
const SolveOptions & | opts, | ||
rvec | x, | ||
rvec | y, | ||
crvec | Σ, | ||
rvec | err_z | ||
) |
[in] | problem | Problem description |
[in] | opts | Solve options |
[in,out] | x | Decision variable \( x \) |
[in,out] | y | Lagrange multipliers \( y \) |
[in] | Σ | Constraint weights \( \Sigma \) |
[out] | err_z | Slack variable error \( g(x) - \Pi_D(g(x) + \Sigma^{-1} y) \) |
Definition at line 25 of file pantr.tpp.
|
inline |
|
inline |
Specify a callable that is invoked with some intermediate results on each iteration of the algorithm.
std::string get_name | ( | ) | const |
|
inline |
|
inline |
|
private |
|
private |
|
private |
Direction direction |
std::ostream* os = &std::cout |