13 #ifndef QMCPLUSPLUS_OPTIMIZABLEOBJECT_H 14 #define QMCPLUSPLUS_OPTIMIZABLEOBJECT_H 106 throw std::logic_error(
"BUG!! Only named OptimizableObject object can be added to UniqueOptObjRefs!");
helper functions for EinsplineSetBuilder
OptimizableObject & operator[](size_t i) const
virtual void reportStatus(std::ostream &os)
print the state, e.g., optimizables
virtual void writeVariationalParameters(hdf_archive &hout)
Write the variational parameters for this object to the VP HDF file.
virtual void checkInVariablesExclusive(opt_variables_type &active)=0
check in variational parameters to the global list of parameters used by the optimizer.
const std::string & getName() const
class to handle a set of variables that can be modified during optimizations
OptimizableObject(const std::string &name)
const std::string name_
Name of the optimizable object.
std::vector< std::reference_wrapper< T > > RefVector
bool is_optimized_
If true, this object is actively modified during WFOpt.
void setOptimization(bool state)
virtual void readVariationalParameters(hdf_archive &hin)
Read the variational parameters for this object from the VP HDF file.
void push_back(OptimizableObject &obj)
virtual void resetParametersExclusive(const opt_variables_type &active)=0
reset the parameters during optimizations.