Changeset 9298


Ignore:
Timestamp:
03/07/13 16:46:01 (7 years ago)
Author:
abeham
Message:

#1961: fixed bug introduced in last commit regarding initialization of cCov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAOperators/CMAUpdater.cs

    r9297 r9298  
    125125      if (sp.CC == 0) sp.CC = 4.0 / (N + 4);
    126126      if (sp.MuCov == 0) sp.MuCov = sp.MuEff;
    127       if (sp.CCov == 0) sp.CCov = 2.0 / ((N + 1.41) * (N + 1.41) * sp.MuCov
    128                              + (1 - (1.0 / sp.MuCov)) * Math.Min(1, (2 * sp.MuEff - 1) / (sp.MuEff + (N + 2) * (N + 2))));
     127      if (sp.CCov == 0) sp.CCov = 2.0 / ((N + 1.41) * (N + 1.41) * sp.MuCov)
     128                             + (1 - (1.0 / sp.MuCov)) * Math.Min(1, (2 * sp.MuEff - 1) / (sp.MuEff + (N + 2) * (N + 2)));
    129129      if (sp.CCovSep == 0) sp.CCovSep = Math.Min(1, sp.CCov * (N + 1.5) / 3);
    130130      #endregion
Note: See TracChangeset for help on using the changeset viewer.