Commit d3dee123 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Fix for cmaes

parent 0fb13c04
......@@ -115,8 +115,6 @@ namespace limbo {
CMAParameters<> cmaparams(x0, sigma);
_set_common_params(cmaparams, dim);
// used by restart I think
cmaparams.set_x0(-1.0, 1.0);
// the optimization itself
CMASolutions cmasols = cmaes<>(f_cmaes, cmaparams);
......@@ -143,8 +141,6 @@ namespace limbo {
// -1 for automatically decided lambda, 0 is for random seeding of the internal generator.
CMAParameters<GenoPheno<pwqBoundStrategy>> cmaparams(dim, &x0.front(), sigma, -1, 0, gp);
_set_common_params(cmaparams, dim);
// used by restart I think
cmaparams.set_x0(0, 1.0);
// the optimization itself
CMASolutions cmasols = cmaes<GenoPheno<pwqBoundStrategy>>(f_cmaes, cmaparams);
......
......@@ -122,7 +122,7 @@ namespace limbo {
/// - we use a C++11 random number generator
Eigen::VectorXd random_vector_unbounded(int size)
{
static rgen_gauss_t rgen(0.0, 100.0);
static rgen_gauss_t rgen(0.0, 10.0);
Eigen::VectorXd res(size);
for (int i = 0; i < size; ++i)
res[i] = rgen.rand();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment