MADNESS 0.10.1
|
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 |
![]() | |
virtual | ~OptimizerInterface () |
Private Attributes | |
double | f |
double | gnorm |
std::shared_ptr< OptimizationTargetInterface > | target |
const double | tol |
|
inline |
References target.
|
inlinevirtual |
References e(), madness::Tensor< T >::end(), and madness::Tensor< T >::unary_iterator().
Referenced by optimize().
|
inlinevirtual |
|
inlinevirtual |
Implements madness::OptimizerInterface.
References gnorm.
Implements madness::OptimizerInterface.
References check_positive(), converged(), f, madness::g, madness::Tensor< T >::gaxpy(), gnorm, madness::nonlinear_vector_solver(), madness::Tensor< T >::normf(), print(), and target.
|
inlinevirtual |
Implements madness::OptimizerInterface.
References f.
|
private |
Referenced by optimize(), and value().
|
private |
Referenced by converged(), gradient_norm(), and optimize().
|
private |
Referenced by MySteepestDescent(), and optimize().
|
private |
Referenced by converged().