|
| std::string | Optimist::LineSearch::name (const Method method) |
| | Get the name of a line search strategy.
|
| template<typename Scalar> |
| Scalar | Optimist::LineSearch::armijo_bound (const Scalar phi_0, const Scalar dphi_0, const Scalar alpha, const Settings< Scalar > &s, const Scalar c) |
| template<typename Scalar> |
| Scalar | Optimist::LineSearch::cubic_minimizer (const Scalar a, const Scalar phi_a, const Scalar dphi_a, const Scalar b, const Scalar phi_b, const Scalar dphi_b) |
| template<typename Scalar, typename Phi> |
| bool | Optimist::LineSearch::armijo (Phi &&phi, const Scalar phi_0, const Scalar dphi_0, Scalar &alpha, Scalar &phi_alpha, const Settings< Scalar > &s=Settings< Scalar >()) |
| | Backtracking line search enforcing the Armijo condition \( \phi(\alpha) \leq \phi(0) + c_1\alpha\phi'(0) \), with safeguarded quadratic interpolation of the trial steps.
|
| template<typename Scalar, typename Phi> |
| bool | Optimist::LineSearch::goldstein (Phi &&phi, const Scalar phi_0, const Scalar dphi_0, Scalar &alpha, Scalar &phi_alpha, const Settings< Scalar > &s=Settings< Scalar >()) |
| | Line search enforcing the Goldstein conditions \( \phi(0) + (1-c)\alpha\phi'(0) \leq \phi(\alpha) \leq \phi(0) +
c\alpha\phi'(0) \), by expansion and bisection. Only function values are used.
|
| template<typename Scalar, typename Phi> |
| bool | Optimist::LineSearch::strong_wolfe (Phi &&phi, const Scalar phi_0, const Scalar dphi_0, Scalar &alpha, Scalar &phi_alpha, Scalar &dphi_alpha, const Settings< Scalar > &s=Settings< Scalar >()) |
| | Line search enforcing the strong Wolfe conditions \( \phi(\alpha) \leq \phi(0) + c_1\alpha\phi'(0) \) and \( |\phi'(\alpha)| \leq c_2|\phi'(0)| \) (Nocedal and Wright, Algorithms 3.5 and 3.6), with cubic interpolation in the zoom phase.
|
| template<typename Scalar> |
| void | Optimist::LineSearch::more_thuente_step (Scalar &stx, Scalar &fx, Scalar &dx, Scalar &sty, Scalar &fy, Scalar &dy, Scalar &stp, const Scalar fp, const Scalar dp, bool &brackt, const Scalar stpmin, const Scalar stpmax, const Scalar noise=0) |
| | Safeguarded step of the Moré-Thuente line search (MINPACK-2 dcstep). Computes a new trial step from the interval endpoints \((s_x, f_x, d_x) \), \( (s_y, f_y, d_y) \) and the current trial \((s_p, f_p, d_p) \), and updates the interval that contains a step satisfying the strong Wolfe conditions.
|
| template<typename Scalar, typename Phi> |
| bool | Optimist::LineSearch::more_thuente (Phi &&phi, const Scalar phi_0, const Scalar dphi_0, Scalar &alpha, Scalar &phi_alpha, Scalar &dphi_alpha, const Settings< Scalar > &s=Settings< Scalar >()) |
| | Line search of Moré and Thuente (1994), as implemented in MINPACK-2 (dcsrch). It finds a step satisfying the strong Wolfe conditions by safeguarded cubic and quadratic interpolation, working on the auxiliary function \( \psi(\alpha) = \phi(\alpha) - \phi(0) -
c_1\alpha\phi'(0) \) until an interval with a suitable step is found.
|
| template<typename Scalar, typename Phi> |
| bool | Optimist::LineSearch::search (const Method method, Phi &&phi, const Scalar phi_0, const Scalar dphi_0, Scalar &alpha, Scalar &phi_alpha, Scalar &dphi_alpha, const Settings< Scalar > &s) |
| | Run the selected line search.
|