libcmaes
A C++11 library for stochastic optimization with CMA-ES
 All Classes Namespaces Functions Variables Typedefs
Public Member Functions | Friends | List of all members
libcmaes::GenoPheno< TBoundStrategy, TScalingStrategy > Class Template Reference

Public Member Functions

 GenoPheno (TransFunc &genof, TransFunc &phenof)
 
 GenoPheno (const double *lbounds, const double *ubounds, const int &dim)
 
 GenoPheno (TransFunc &genof, TransFunc &phenof, const double *lbounds, const double *ubounds, const int &dim)
 
 GenoPheno (const dVec &scaling, const dVec &shift, const double *lbounds=nullptr, const double *ubounds=nullptr)
 this is a dummy constructor to accomodate an easy to use linear scaling with pwq bounds from a given scaling vector. Outside the library, the proper way to re-specialize for other custom scaling classes would be to inherit GenoPheno and specialize constructors within the new class. More...
 
dMat pheno (const dMat &candidates) const
 
dMat geno (const dMat &candidates) const
 
dVec pheno (const dVec &candidate) const
 
dVec geno (const dVec &candidate) const
 
TBoundStrategy get_boundstrategy () const
 
TBoundStrategy & get_boundstrategy_ref ()
 
TScalingStrategy get_scalingstrategy () const
 
void remove_dimensions (const std::vector< int > &k)
 
template<>
dMat pheno (const dMat &candidates) const
 
template<>
dVec pheno (const dVec &candidate) const
 
template<>
dVec geno (const dVec &candidate) const
 
template<>
dVec pheno (const dVec &candidate) const
 
template<>
dVec geno (const dVec &candidate) const
 
template<>
dMat pheno (const dMat &candidates) const
 
template<>
 GenoPheno (const dVec &scaling, const dVec &shift, const double *lbounds, const double *ubounds)
 
template<>
 GenoPheno (const dVec &scaling, const dVec &shift, const double *lbounds, const double *ubounds)
 

Friends

class CMASolutions
 

Constructor & Destructor Documentation

template<class TBoundStrategy = NoBoundStrategy, class TScalingStrategy = NoScalingStrategy>
libcmaes::GenoPheno< TBoundStrategy, TScalingStrategy >::GenoPheno ( const dVec &  scaling,
const dVec &  shift,
const double *  lbounds = nullptr,
const double *  ubounds = nullptr 
)
inline

this is a dummy constructor to accomodate an easy to use linear scaling with pwq bounds from a given scaling vector. Outside the library, the proper way to re-specialize for other custom scaling classes would be to inherit GenoPheno and specialize constructors within the new class.

Parameters
scalingvector for linear scaling of input parameters.

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