MADNESS 0.10.1
MySteepestDescent Class Reference
Inheritance diagram for MySteepestDescent:
Collaboration diagram for MySteepestDescent:

Public Member Functions

 MySteepestDescent (const std::shared_ptr< OptimizationTargetInterface > &target, double tol=1e-6, double value_precision=1e-12, double gradient_precision=1e-12)
virtual ~MySteepestDescent ()
bool check_positive (tensorT &x)
bool converged () const
double gradient_norm () const
bool optimize (Tensor< double > &x)
double value () const
Public Member Functions inherited from madness::OptimizerInterface
virtual ~OptimizerInterface ()

Private Attributes

double f
double gnorm
std::shared_ptr< OptimizationTargetInterface > target
const double tol

Constructor & Destructor Documentation

◆ MySteepestDescent()

MySteepestDescent::MySteepestDescent ( const std::shared_ptr< OptimizationTargetInterface > & target,
double tol = 1e-6,
double value_precision = 1e-12,
double gradient_precision = 1e-12 )
inline

References e(), gnorm, target, and tol.

◆ ~MySteepestDescent()

virtual MySteepestDescent::~MySteepestDescent ( )
inlinevirtual

Member Function Documentation

◆ check_positive()

bool MySteepestDescent::check_positive ( tensorT & x)
inline

◆ converged()

bool MySteepestDescent::converged ( ) const
inlinevirtual

Implements madness::OptimizerInterface.

References gnorm, and tol.

Referenced by optimize().

◆ gradient_norm()

double MySteepestDescent::gradient_norm ( ) const
inlinevirtual

Implements madness::OptimizerInterface.

References gnorm.

◆ optimize()

bool MySteepestDescent::optimize ( Tensor< double > & x)
inlinevirtual

◆ value()

double MySteepestDescent::value ( ) const
inlinevirtual

Implements madness::OptimizerInterface.

References f.

Member Data Documentation

◆ f

double MySteepestDescent::f
private

Referenced by optimize(), and value().

◆ gnorm

double MySteepestDescent::gnorm
private

◆ target

std::shared_ptr<OptimizationTargetInterface> MySteepestDescent::target
private

Referenced by MySteepestDescent(), and optimize().

◆ tol

const double MySteepestDescent::tol
private

Referenced by MySteepestDescent(), and converged().


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