19 #ifndef QMCPLUSPLUS_OPTIMIZABLEFUNCTORBASE_H 20 #define QMCPLUSPLUS_OPTIMIZABLEFUNCTORBASE_H 84 virtual void reset() = 0;
103 virtual bool put(xmlNodePtr cur) = 0;
134 void print(OptimizableFunctorBase& func, std::ostream& os,
double extent = -1.0);
void getIndex(const opt_variables_type &active)
Declaration of OptimizableObject.
helper functions for EinsplineSetBuilder
void print(OptimizableFunctorBase &func, std::ostream &os, double extent)
evaluates a functor (value and derivative) and dumps the quantities to output
OptimizableFunctorBase(const std::string &name="")
default constructor
virtual bool evaluateDerivatives(real_type r, std::vector< real_type > &derivs)
virtual real_type f(real_type r)=0
evaluate the value at r
virtual ~OptimizableFunctorBase()=default
virtual destrutor
virtual void checkInVariablesExclusive(opt_variables_type &active)=0
check in variational parameters to the global list of parameters used by the optimizer.
Declaration of OhmmsElementBase and define xml-related macros.
virtual void reset()=0
reset function
class to handle a set of variables that can be modified during optimizations
OHMMS_PRECISION real_type
virtual bool put(xmlNodePtr cur)=0
process xmlnode and registers variables to optimize
virtual bool evaluateDerivatives(real_type r, std::vector< qmcplusplus::TinyVector< real_type, 3 >> &derivs)
real_type cutoff_radius
maximum cutoff
Base class for any functor with optimizable parameters.
virtual OptimizableFunctorBase * makeClone() const =0
create a clone of this object
virtual void checkOutVariables(const opt_variables_type &active)=0
check out variational optimizable variables
virtual void setCusp(real_type cusp)
empty virtual function to help builder classes
virtual void setGridManager(bool willmanage)
qmcplusplus::QMCTraits::RealType real_type
virtual real_type df(real_type r)=0
evaluate the first derivative
virtual void setPeriodic(bool periodic)
empty virtual function to help builder classes
std::string extractCoefficientsID(xmlNodePtr cur)
return the id of the first coefficients. If not found, return an emtpy string
virtual void setDensity(real_type n)
empty virtual function to help builder classes
optimize::VariableSet::real_type real_type
typedef for real values
int getIndex(const std::string &vname) const
return the Index vaule for the named parameter
virtual void resetParametersExclusive(const opt_variables_type &active)=0
reset the parameters during optimizations.
opt_variables_type myVars
set of variables to be optimized