ROL
Public Member Functions | Private Attributes | List of all members
ROL::Brents< Real > Class Template Reference

Implements a Brent's method line search. More...

#include <ROL_Brents.hpp>

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

Public Member Functions

virtual ~Brents ()
 
 Brents (Teuchos::ParameterList &parlist)
 
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 (Teuchos::ParameterList &parlist)
 
void setData (Real &eps)
 
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 updateIterate (Vector< Real > &xnew, const Vector< Real > &x, const Vector< Real > &s, Real alpha, BoundConstraint< Real > &con)
 
bool useLocalMinimizer ()
 
bool takeNoStep ()
 
void setMaxitUpdate (Real &alpha, Real &fnew, const Real &fold)
 

Private Attributes

Real tol_
 
Teuchos::RCP< Vector< Real > > xnew_
 
Teuchos::RCP< LineSearch< Real > > btls_
 

Detailed Description

template<class Real>
class ROL::Brents< Real >

Implements a Brent's method line search.

Definition at line 57 of file ROL_Brents.hpp.

Constructor & Destructor Documentation

template<class Real >
virtual ROL::Brents< Real >::~Brents ( )
inlinevirtual

Definition at line 65 of file ROL_Brents.hpp.

template<class Real >
ROL::Brents< Real >::Brents ( Teuchos::ParameterList &  parlist)
inline

Definition at line 68 of file ROL_Brents.hpp.

Member Function Documentation

template<class Real >
void ROL::Brents< Real >::initialize ( const Vector< Real > &  x,
const Vector< Real > &  s,
const Vector< Real > &  g,
Objective< Real > &  obj,
BoundConstraint< Real > &  con 
)
inlinevirtual

Reimplemented from ROL::LineSearch< Real >.

Definition at line 73 of file ROL_Brents.hpp.

References ROL::Vector< Real >::clone(), and ROL::LineSearch< Real >::initialize().

template<class Real >
void ROL::Brents< 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,
BoundConstraint< Real > &  con 
)
inlinevirtual

Member Data Documentation

template<class Real >
Real ROL::Brents< Real >::tol_
private

Definition at line 59 of file ROL_Brents.hpp.

template<class Real >
Teuchos::RCP<Vector<Real> > ROL::Brents< Real >::xnew_
private

Definition at line 60 of file ROL_Brents.hpp.

template<class Real >
Teuchos::RCP<LineSearch<Real> > ROL::Brents< Real >::btls_
private

Definition at line 61 of file ROL_Brents.hpp.


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