6 #ifndef DISMEC_LINE_SEARCH_H
7 #define DISMEC_LINE_SEARCH_H
62 sLineSearchResult search(
const std::function<
double(
double)>& projected_objective,
double gTs,
double f_init)
const;
Base class for all objects that have adjustable hyper-parameters.
Backtracking line search using the armijo rule.
sLineSearchResult search(const std::function< double(double)> &projected_objective, double gTs, double f_init) const
double get_initial_step() const
void set_eta(double e)
sets the eta parameter. Throws std::invalid_argument if e is not in (0, 1)
void set_alpha(double a)
sets the alpha parameter. Throws std::invalid_argument if a is not in (0, 1)
void set_max_steps(long n)
sets the eta parameter. Throws std::invalid_argument if n is not positive
long get_max_steps() const
void set_initial_step(double s)
sets the initial step multiplied. Throws std::invalid_argument if s is not positive.
Result of a Line Search operation.
double Value
The function value at the accepted position.
double StepSize
The step size used to reach that position.