44 #ifndef SHARK_ALGORITHMS_DIRECTSEARCH_CMSA_H 45 #define SHARK_ALGORITHMS_DIRECTSEARCH_CMSA_H 67 struct LightChromosome {
79 ,m_userSetLambda(false)
90 template<
typename Container,
typename Extractor>
91 RealVector
cog(
const Container & container,
const Extractor & e ) {
93 RealVector result( m_numberOfVariables, 0. );
95 for( std::size_t j = 0; j < container.size(); j++ )
96 result += 1./m_mu * e( container[j] );
118 const boost::optional< RealMatrix > & initialCovarianceMatrix = boost::optional< RealMatrix >()
128 m_initSigma = initSigma;
139 m_userSetLambda =
true;
142 std::size_t
mu()
const {
162 std::vector<SearchPointType>
const& points,
163 std::vector<ResultType>
const& functionValues,
169 std::size_t m_numberOfVariables;
171 std::size_t m_lambda;
174 bool m_userSetLambda;