7#include <alpaqa/lbfgsb-adapter-export.h>
20 unsigned max_iter = 1000;
21 std::chrono::nanoseconds max_time = std::chrono::minutes(5);
24 unsigned print_interval = 0;
25 int print_precision = std::numeric_limits<real_t>::max_digits10 / 2;
33 std::chrono::nanoseconds elapsed_time{};
34 unsigned iterations = 0;
36 unsigned lbfgs_rejected = 0;
52 Stats operator()(
const Problem &problem,
53 const SolveOptions &opts,
62 return operator()(Problem::template make<P>(problem), opts, u, y, Σ, e);
65 std::string get_name()
const;
67 void stop() { stop_signal.stop(); }
76 std::ostream *os = &std::cout;
83template <
class InnerSolverStats>
91 std::chrono::nanoseconds elapsed_time{};
93 unsigned iterations = 0;
98 unsigned lbfgs_rejected = 0;
Stats operator()(const P &problem, const SolveOptions &opts, rvec u, rvec y, crvec Σ, rvec e)
LBFGSBSolver(const Params ¶ms)
AtomicStopSignal stop_signal
const Params & get_params() const
#define USING_ALPAQA_CONFIG(Conf)
std::chrono::nanoseconds elapsed_time
InnerStatsAccumulator< PANOCOCPStats< Conf > > & operator+=(InnerStatsAccumulator< PANOCOCPStats< Conf > > &acc, const PANOCOCPStats< Conf > &s)
SolverStatus
Exit status of a numerical solver such as ALM or PANOC.
typename Conf::real_t real_t
typename Conf::crvec crvec