MADNESS  0.10.1
Public Member Functions | List of all members
madness::MolecularOptimizationTargetInterface Struct Reference

#include <molecular_optimizer.h>

Inheritance diagram for madness::MolecularOptimizationTargetInterface:
Inheritance graph
[legend]
Collaboration diagram for madness::MolecularOptimizationTargetInterface:
Collaboration graph
[legend]

Public Member Functions

virtual Moleculemolecule ()
 return the molecule of the target More...
 
- Public Member Functions inherited from madness::OptimizationTargetInterface
virtual ~OptimizationTargetInterface ()
 
virtual Tensor< double > gradient (const Tensor< double > &x)
 Should return the derivative of the function. More...
 
virtual bool provides_gradient () const
 Override this to return true if the derivative is implemented. More...
 
double test_gradient (Tensor< double > &x, double value_precision, bool doprint=true)
 Numerical test of the derivative ... optionally prints to stdout, returns max abs error. More...
 
virtual double value (const Tensor< double > &x)=0
 Should return the value of the objective function. More...
 
virtual void value_and_gradient (const Tensor< double > &x, double &value, Tensor< double > &gradient)
 Reimplement if more efficient to evaluate both value and gradient in one call. More...
 

Member Function Documentation

◆ molecule()

virtual Molecule& madness::MolecularOptimizationTargetInterface::molecule ( )
inlinevirtual

return the molecule of the target

Reimplemented in madness::Znemo, and madness::Nemo.

References MADNESS_EXCEPTION.

Referenced by madness::NemoBase::construct_nuclear_correlation_factor().


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