Skip to content

Commit

Permalink
use trick to deactivate median value stopping criteria which is foole…
Browse files Browse the repository at this point in the history
…d by ranks provided by the surrogate instead of proper objective function values, ref CMA-ES#57
  • Loading branch information
Emmanuel Benazera committed Oct 7, 2014
1 parent e18b10d commit 490c2b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions surrogatestrategy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ namespace libcmaes

// update function value history, as needed.
eostrat<TGenoPheno>::_solutions.update_best_candidates();
eostrat<TGenoPheno>::_solutions._bfvalues.clear(); // XXX: hack to deactivate median fvalues check, that fails due to ranks replacing true fvalues.

// CMA-ES update, depends on the selected 'flavor'.
TCovarianceUpdate::update(eostrat<TGenoPheno>::_parameters,this->_esolver,eostrat<TGenoPheno>::_solutions);
Expand Down

0 comments on commit 490c2b0

Please sign in to comment.