ROL
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::LineSearch_U< Real > Class Template Referenceabstract

Provides interface for and implements line searches. More...

#include <ROL_LineSearch_U.hpp>

+ Inheritance diagram for ROL::LineSearch_U< Real >:

Public Member Functions

virtual ~LineSearch_U ()
 
 LineSearch_U (ParameterList &parlist)
 
virtual void initialize (const Vector< Real > &x, const Vector< Real > &g)
 
virtual 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)=0
 
void setMaxitUpdate (Real &alpha, Real &fnew, const Real &fold)
 

Protected Member Functions

virtual bool status (const ELineSearchU 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)
 
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)
 
void setNextInitialAlpha (Real alpha)
 
bool useLocalMinimizer ()
 
bool takeNoStep ()
 

Private Member Functions

Real dirDeriv (const Vector< Real > &x, const Vector< Real > &s, const Real alpha, const Real fnew, Objective< Real > &obj)
 

Private Attributes

ECurvatureConditionU econd_
 
EDescentU edesc_
 
bool useralpha_
 
bool usePrevAlpha_
 
Real alpha0_
 
Real alpha0bnd_
 
int maxit_
 
Real c1_
 
Real c2_
 
Real c3_
 
Real eps_
 
Real fmin_
 
Real alphaMin_
 
bool acceptMin_
 
bool itcond_
 
bool FDdirDeriv_
 
Ptr< Vector< Real > > xtst_
 

Detailed Description

template<typename Real>
class ROL::LineSearch_U< Real >

Provides interface for and implements line searches.

Definition at line 61 of file ROL_LineSearch_U.hpp.

Constructor & Destructor Documentation

◆ ~LineSearch_U()

template<typename Real >
virtual ROL::LineSearch_U< Real >::~LineSearch_U ( )
inlinevirtual

Definition at line 112 of file ROL_LineSearch_U.hpp.

◆ LineSearch_U()

template<typename Real >
ROL::LineSearch_U< Real >::LineSearch_U ( ParameterList & parlist)
inline

Member Function Documentation

◆ dirDeriv()

template<typename Real >
Real ROL::LineSearch_U< Real >::dirDeriv ( const Vector< Real > & x,
const Vector< Real > & s,
const Real alpha,
const Real fnew,
Objective< Real > & obj )
inlineprivate

◆ initialize()

template<typename Real >
virtual void ROL::LineSearch_U< Real >::initialize ( const Vector< Real > & x,
const Vector< Real > & g )
inlinevirtual

◆ run()

template<typename Real >
virtual void ROL::LineSearch_U< Real >::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 )
pure virtual

◆ setMaxitUpdate()

template<typename Real >
void ROL::LineSearch_U< Real >::setMaxitUpdate ( Real & alpha,
Real & fnew,
const Real & fold )
inline

◆ status()

template<typename Real >
virtual bool ROL::LineSearch_U< Real >::status ( const ELineSearchU 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 )
inlineprotectedvirtual

◆ getInitialAlpha()

template<typename Real >
virtual Real ROL::LineSearch_U< 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 )
inlineprotectedvirtual

◆ setNextInitialAlpha()

template<typename Real >
void ROL::LineSearch_U< Real >::setNextInitialAlpha ( Real alpha)
inlineprotected

◆ useLocalMinimizer()

template<typename Real >
bool ROL::LineSearch_U< Real >::useLocalMinimizer ( )
inlineprotected

◆ takeNoStep()

template<typename Real >
bool ROL::LineSearch_U< Real >::takeNoStep ( )
inlineprotected

Member Data Documentation

◆ econd_

template<typename Real >
ECurvatureConditionU ROL::LineSearch_U< Real >::econd_
private

◆ edesc_

template<typename Real >
EDescentU ROL::LineSearch_U< Real >::edesc_
private

◆ useralpha_

template<typename Real >
bool ROL::LineSearch_U< Real >::useralpha_
private

◆ usePrevAlpha_

template<typename Real >
bool ROL::LineSearch_U< Real >::usePrevAlpha_
private

◆ alpha0_

template<typename Real >
Real ROL::LineSearch_U< Real >::alpha0_
private

◆ alpha0bnd_

template<typename Real >
Real ROL::LineSearch_U< Real >::alpha0bnd_
private

◆ maxit_

template<typename Real >
int ROL::LineSearch_U< Real >::maxit_
private

◆ c1_

template<typename Real >
Real ROL::LineSearch_U< Real >::c1_
private

◆ c2_

template<typename Real >
Real ROL::LineSearch_U< Real >::c2_
private

◆ c3_

template<typename Real >
Real ROL::LineSearch_U< Real >::c3_
private

◆ eps_

template<typename Real >
Real ROL::LineSearch_U< Real >::eps_
private

Definition at line 75 of file ROL_LineSearch_U.hpp.

◆ fmin_

template<typename Real >
Real ROL::LineSearch_U< Real >::fmin_
private

◆ alphaMin_

template<typename Real >
Real ROL::LineSearch_U< Real >::alphaMin_
private

◆ acceptMin_

template<typename Real >
bool ROL::LineSearch_U< Real >::acceptMin_
private

◆ itcond_

template<typename Real >
bool ROL::LineSearch_U< Real >::itcond_
private

◆ FDdirDeriv_

template<typename Real >
bool ROL::LineSearch_U< Real >::FDdirDeriv_
private

◆ xtst_

template<typename Real >
Ptr<Vector<Real> > ROL::LineSearch_U< Real >::xtst_
private

The documentation for this class was generated from the following file: