Skip to content

Commit

Permalink
default candidate fvalue is now NaN until an objective function value…
Browse files Browse the repository at this point in the history
… is computed, ref #110
  • Loading branch information
Emmanuel Benazera committed Feb 17, 2015
1 parent d4e2a4a commit 107b0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/candidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace libcmaes
* \brief empty constructor.
*/
Candidate():
_fvalue(0.0) {}
_fvalue(std::numeric_limits<double>::quiet_NaN()) {}

/**
* \brief constructor.
Expand Down

0 comments on commit 107b0b3

Please sign in to comment.