Class LBFGS#
Defined in File lbfgs.hpp
Inheritance Relationships#
Base Type#
public pele::GradientOptimizer(Class GradientOptimizer)
Class Documentation#
-
class LBFGS : public pele::GradientOptimizer#
An implementation of the LBFGS optimization algorithm in c++.
This Implementation uses a backtracking linesearch.
Public Functions
- std::shared_ptr<pele::BasePotential> potential,
- const pele::Array<double> x0,
- double tol = 1e-4,
- int M = 4,
- bool save_trajectory = false,
- int iterations_before_save = 1,
- StopCriterionType stop_criterion = StopCriterionType::GRADIENT
Constructor.
-
inline virtual ~LBFGS()#
Destructor.
-
virtual void one_iteration()#
Do one iteration iteration of the optimization algorithm.
-
inline void set_H0(double H0)#
-
inline void set_max_f_rise(double max_f_rise)#
-
inline void set_use_relative_f(int use_relative_f)#
-
inline double get_H0() const#
-
inline Array<double> get_s() const#
The LBFGS memory, for restarting the optimizer at new coordinates without losing the curvature information (see set_state).
-
inline int get_k() const#