#include <alpaqa/lbfgsb/lbfgsb-adapter.hpp>
L-BFGS-B solver for ALM.
Definition at line 62 of file lbfgsb-adapter.hpp.
Public Types | |
using | Problem = TypeErasedProblem< config_t > |
using | Params = LBFGSBParams |
using | Stats = LBFGSBStats |
using | ProgressInfo = LBFGSBProgressInfo |
using | SolveOptions = InnerSolveOptions< config_t > |
Public Member Functions | |
LBFGSBSolver (const Params ¶ms) | |
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 u, rvec y, crvec Σ, rvec e) |
LBFGSBSolver & | 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 Attributes | |
Params | params |
AtomicStopSignal | stop_signal |
std::function< void(const ProgressInfo &)> | progress_cb |
using Problem = TypeErasedProblem<config_t> |
Definition at line 66 of file lbfgsb-adapter.hpp.
Definition at line 67 of file lbfgsb-adapter.hpp.
Definition at line 68 of file lbfgsb-adapter.hpp.
Definition at line 69 of file lbfgsb-adapter.hpp.
using SolveOptions = InnerSolveOptions<config_t> |
Definition at line 70 of file lbfgsb-adapter.hpp.
|
inline |
Definition at line 72 of file lbfgsb-adapter.hpp.
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 18 of file lbfgsb-adapter.cpp.
|
inline |
Definition at line 82 of file lbfgsb-adapter.hpp.
|
inline |
Specify a callable that is invoked with some intermediate results on each iteration of the algorithm.
Definition at line 91 of file lbfgsb-adapter.hpp.
std::string get_name | ( | ) | const |
Definition at line 17 of file lbfgsb-adapter.cpp.
|
inline |
Definition at line 98 of file lbfgsb-adapter.hpp.
Definition at line 100 of file lbfgsb-adapter.hpp.
|
private |
Definition at line 103 of file lbfgsb-adapter.hpp.
|
private |
Definition at line 104 of file lbfgsb-adapter.hpp.
|
private |
Definition at line 105 of file lbfgsb-adapter.hpp.
std::ostream* os = &std::cout |
Definition at line 108 of file lbfgsb-adapter.hpp.