7#include <alpaqa/lbfgsb-adapter-export.h>
22 unsigned max_iter = 1000;
23 std::chrono::nanoseconds max_time = std::chrono::minutes(5);
26 unsigned print_interval = 0;
27 int print_precision = std::numeric_limits<real_t>::max_digits10 / 2;
35 std::chrono::nanoseconds elapsed_time{};
36 unsigned iterations = 0;
38 unsigned lbfgs_rejected = 0;
54 Stats operator()(
const Problem &problem,
55 const SolveOptions &opts,
64 return operator()(
Problem{&problem}, opts, u, y, Σ, e);
67 std::string get_name()
const;
69 void stop() { stop_signal.stop(); }
78 std::ostream *os = &std::cout;
85template <
class InnerSolverStats>
93 std::chrono::nanoseconds elapsed_time{};
95 unsigned iterations = 0;
100 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)
Tuning parameters for the L-BFGS-B solver LBFGSBSolver.
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
unsigned iterations
Total number of inner PANOC iterations.
Double-precision double configuration.