Skip to content

Commit

Permalink
added missing setter of x0min, x0max from STL vectors, ref #89
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Benazera committed Jan 21, 2015
1 parent fbb2031 commit 3967181
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ namespace libcmaes
_x0max(i) = x0max[i];
}
}

/**
* \brief sets bounds on initial objective function parameter values.
* Initial value is sampled uniformly within these bounds.
* @param x0min vector of initial lower bounds.
* @param x0max vector of initial upper bounds.
*/
void set_x0(const std::vector<double> &x0min, const std::vector<double> &x0max)
{
set_x0(&x0min[0],&x0max[0]);
}

/**
* \brief sets bounds on initial objective function parameter values.
Expand Down

0 comments on commit 3967181

Please sign in to comment.