11#include <guanaqo/atomic-stop-signal.hpp>
24template <Config Conf = DefaultConfig>
33 std::chrono::nanoseconds
max_time = std::chrono::minutes(5);
54 10 * std::numeric_limits<real_t>::epsilon();
61template <Config Conf = DefaultConfig>
76template <Config Conf = DefaultConfig>
107template <Config Conf>
135 if (problem.get_num_constraints() != 0)
136 throw std::invalid_argument(
"Missing arguments y, Σ, e");
137 mvec y{
nullptr, 0}, Σ{
nullptr, 0}, e{
nullptr, 0};
163 std::ostream *
os = &std::cout;
166template <
class InnerSolverStats>
169template <Config Conf>
189template <Config Conf>
std::string get_name() const
FISTAParams< config_t > Params
FISTASolver & 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.
Stats operator()(const P &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec e)
std::function< void(const ProgressInfo &)> progress_cb
Stats operator()(const Problem &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec err_z)
InnerSolveOptions< config_t > SolveOptions
const Params & get_params() const
FISTAProgressInfo< config_t > ProgressInfo
guanaqo::AtomicStopSignal stop_signal
FISTAStats< config_t > Stats
detail::PANOCHelpers< config_t > Helpers
Stats operator()(const P &problem, const SolveOptions &opts, rvec x)
FISTASolver(const Params ¶ms)
TypeErasedProblem< config_t > Problem
The main polymorphic minimization problem interface.
#define USING_ALPAQA_CONFIG(Conf)
#define ALPAQA_IF_QUADF(...)
#define ALPAQA_IF_LONGD(...)
#define ALPAQA_IF_FLOAT(...)
#define ALPAQA_EXPORT_EXTERN_TEMPLATE(...)
LipschitzEstimateParams< config_t > Lipschitz
bool disable_acceleration
std::chrono::nanoseconds max_time
real_t quadratic_upperbound_tolerance_factor
Tuning parameters for the FISTA algorithm.
Parameters for the estimation of the Lipschitz constant of the gradient of the smooth term of the cos...
unsigned stepsize_backtracks
@ ApproxKKT
Find an ε-approximate KKT point in the ∞-norm:
SolverStatus
Exit status of a numerical solver such as ALM or PANOC.
std::chrono::nanoseconds time_progress_callback
std::chrono::nanoseconds elapsed_time
typename Conf::real_t real_t
InnerStatsAccumulator< FISTAStats< Conf > > & operator+=(InnerStatsAccumulator< FISTAStats< Conf > > &acc, const FISTAStats< Conf > &s)
typename Conf::crvec crvec
const FISTAParams< config_t > * params
const TypeErasedProblem< config_t > * problem
FISTAProgressInfo & operator=(const FISTAProgressInfo &)=delete