We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e4afff commit f57aaaeCopy full SHA for f57aaae
src/cmaparameters.cc
@@ -132,7 +132,7 @@ namespace libcmaes
132
void CMAParameters<TGenoPheno>::set_tpa(const int &b)
133
{
134
this->_tpa = b;
135
- if (this->_tpa > 0)
+ if (this->_tpa == 2)
136
_dsigma = 4 - 3.6 / std::sqrt(Parameters<TGenoPheno>::_dim);
137
else if (!this->_vd)
138
_dsigma = 1.0+_csigma+2.0*std::max(0.0,sqrt((_muw-1)/(Parameters<TGenoPheno>::_dim+1))-1); // default
0 commit comments