ROL
|
Implements line search methods that attempt to minimize the scalar function \(\phi(t) := f(x+ts)\). More...
#include <ROL_ScalarMinimizationLineSearch.hpp>
Classes | |
class | LineSearchStatusTest |
class | Phi |
Public Member Functions | |
ScalarMinimizationLineSearch (ROL::ParameterList &parlist, const ROL::Ptr< ScalarMinimization< Real > > &sm=ROL::nullPtr, const ROL::Ptr< Bracketing< Real > > &br=ROL::nullPtr, const ROL::Ptr< ScalarFunction< Real > > &sf=ROL::nullPtr) | |
void | initialize (const Vector< Real > &x, const Vector< Real > &s, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &con) |
void | run (Real &alpha, Real &fval, int &ls_neval, int &ls_ngrad, const Real &gs, const Vector< Real > &s, const Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &con) |
Public Member Functions inherited from ROL::LineSearch< Real > | |
virtual | ~LineSearch () |
LineSearch (ROL::ParameterList &parlist) | |
void | setData (Real &eps, const Vector< Real > &g) |
void | setMaxitUpdate (Real &alpha, Real &fnew, const Real &fold) |
Private Attributes | |
ROL::Ptr< Vector< Real > > | xnew_ |
ROL::Ptr< Vector< Real > > | g_ |
ROL::Ptr< ScalarMinimization < Real > > | sm_ |
ROL::Ptr< Bracketing< Real > > | br_ |
ROL::Ptr< ScalarFunction< Real > > | sf_ |
ECurvatureCondition | econd_ |
Real | c1_ |
Real | c2_ |
Real | c3_ |
int | max_nfval_ |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::LineSearch< Real > | |
virtual bool | status (const ELineSearch type, int &ls_neval, int &ls_ngrad, const Real alpha, const Real fold, const Real sgold, const Real fnew, const Vector< Real > &x, const Vector< Real > &s, Objective< Real > &obj, BoundConstraint< Real > &con) |
virtual Real | getInitialAlpha (int &ls_neval, int &ls_ngrad, const Real fval, const Real gs, const Vector< Real > &x, const Vector< Real > &s, Objective< Real > &obj, BoundConstraint< Real > &con) |
void | setNextInitialAlpha (Real alpha) |
void | updateIterate (Vector< Real > &xnew, const Vector< Real > &x, const Vector< Real > &s, Real alpha, BoundConstraint< Real > &con) |
bool | useLocalMinimizer () |
bool | takeNoStep () |
Implements line search methods that attempt to minimize the scalar function \(\phi(t) := f(x+ts)\).
Definition at line 28 of file ROL_ScalarMinimizationLineSearch.hpp.
|
inline |
Definition at line 141 of file ROL_ScalarMinimizationLineSearch.hpp.
References ROL::ScalarMinimizationLineSearch< Real >::br_, ROL::ScalarMinimizationLineSearch< Real >::c1_, ROL::ScalarMinimizationLineSearch< Real >::c2_, ROL::ScalarMinimizationLineSearch< Real >::c3_, ROL::DESCENT_NONLINEARCG, ROL::ScalarMinimizationLineSearch< Real >::econd_, ROL::ScalarMinimizationLineSearch< Real >::max_nfval_, ROL::ScalarMinimizationLineSearch< Real >::sf_, ROL::ScalarMinimizationLineSearch< Real >::sm_, ROL::StringToECurvatureCondition(), ROL::StringToEDescent(), and zero.
|
inlinevirtual |
Reimplemented from ROL::LineSearch< Real >.
Definition at line 209 of file ROL_ScalarMinimizationLineSearch.hpp.
References ROL::Vector< Real >::clone(), ROL::ScalarMinimizationLineSearch< Real >::g_, ROL::LineSearch< Real >::initialize(), and ROL::ScalarMinimizationLineSearch< Real >::xnew_.
|
inlinevirtual |
Implements ROL::LineSearch< Real >.
Definition at line 217 of file ROL_ScalarMinimizationLineSearch.hpp.
References ROL::ScalarMinimizationLineSearch< Real >::br_, ROL::ScalarMinimizationLineSearch< Real >::c1_, ROL::ScalarMinimizationLineSearch< Real >::c2_, ROL::ScalarMinimizationLineSearch< Real >::c3_, ROL::ScalarMinimizationLineSearch< Real >::econd_, ROL::ScalarMinimizationLineSearch< Real >::g_, ROL::LineSearch< Real >::getInitialAlpha(), ROL::ScalarMinimizationLineSearch< Real >::max_nfval_, ROL::LineSearch< Real >::setNextInitialAlpha(), ROL::ScalarMinimizationLineSearch< Real >::sf_, ROL::ScalarMinimizationLineSearch< Real >::sm_, and ROL::ScalarMinimizationLineSearch< Real >::xnew_.
|
private |
Definition at line 30 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::initialize(), and ROL::ScalarMinimizationLineSearch< Real >::run().
|
private |
Definition at line 31 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::initialize(), and ROL::ScalarMinimizationLineSearch< Real >::run().
|
private |
Definition at line 32 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 33 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 34 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 36 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 37 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 38 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 39 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().
|
private |
Definition at line 40 of file ROL_ScalarMinimizationLineSearch.hpp.
Referenced by ROL::ScalarMinimizationLineSearch< Real >::run(), and ROL::ScalarMinimizationLineSearch< Real >::ScalarMinimizationLineSearch().