Skip to content

Commit

Permalink
vdcma random complementary vector initialization with seed, fixes CMA…
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Benazera committed Jan 23, 2015
1 parent 74c8eb1 commit f803e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmasolutions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace libcmaes

if (static_cast<CMAParameters<TGenoPheno>&>(p)._vd)
{
Eigen::EigenMultivariateNormal<double> esolver(false,static_cast<uint64_t>(time(nullptr)));
Eigen::EigenMultivariateNormal<double> esolver(false,static_cast<uint64_t>(p._seed));
esolver.set_covar(_sepcov);
_v = esolver.samples_ind(1) / std::sqrt(p._dim);
}
Expand Down

0 comments on commit f803e66

Please sign in to comment.