#include <alpaqa/inner/wolfe.hpp>
Unconstrained solver with Wolfe line search.
Public Types | |
using | Problem = TypeErasedProblem< config_t > |
using | Params = WolfeParams< config_t > |
using | Direction = DirectionT |
using | Stats = WolfeStats< config_t > |
using | ProgressInfo = WolfeProgressInfo< config_t > |
using | SolveOptions = InnerSolveOptions< config_t > |
Public Member Functions | |
WolfeSolver (const Params ¶ms) | |
WolfeSolver (const Params ¶ms, Direction &&direction) | |
WolfeSolver (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) |
WolfeSolver & | 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 = WolfeParams<config_t> |
using Direction = DirectionT |
using Stats = WolfeStats<config_t> |
using ProgressInfo = WolfeProgressInfo<config_t> |
using SolveOptions = InnerSolveOptions<config_t> |
|
private |
|
inline |
|
inline |
|
inline |
Stats operator() | ( | const Problem & | problem, |
const SolveOptions & | opts, | ||
rvec | x, | ||
rvec | y, | ||
crvec | Σ, | ||
rvec | err_z | ||
) |
|
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 |