Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/25/16 15:10:19 (8 years ago)
Author:
bwerth
Message:

#2592 first unfinished implementation similiar to Shark – Machine Learning 3.1

File:
1 edited

Legend:

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

    r12012 r13793  
    2020#endregion
    2121
     22using System;
     23using System.Linq;
    2224using HeuristicLab.Common;
    2325using HeuristicLab.Core;
     
    2830using HeuristicLab.Parameters;
    2931using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    30 using System;
    31 using System.Linq;
    3232
    3333namespace HeuristicLab.Algorithms.CMAEvolutionStrategy {
     
    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)
     128        sp.CCov = 2.0 / ((N + 1.41) * (N + 1.41) * sp.MuCov)
     129             + (1 - (1.0 / sp.MuCov)) * Math.Min(1, (2 * sp.MuEff - 1) / (sp.MuEff + (N + 2) * (N + 2)));
    129130      if (sp.CCovSep == 0) sp.CCovSep = Math.Min(1, sp.CCov * (N + 1.5) / 3);
    130131      #endregion
     
    269270        tred2(N, B, diagD, offdiag);
    270271        tql2(N, diagD, offdiag, B);
    271       } catch { result = false; }
     272      }
     273      catch { result = false; }
    272274
    273275      return result;
Note: See TracChangeset for help on using the changeset viewer.