- Timestamp:
- 04/25/16 15:10:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Algorithms.CMAEvolutionStrategy/sources/3.3/CMAOperators/CMAUpdater.cs
r12012 r13793 20 20 #endregion 21 21 22 using System; 23 using System.Linq; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.Core; … … 28 30 using HeuristicLab.Parameters; 29 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using System;31 using System.Linq;32 32 33 33 namespace HeuristicLab.Algorithms.CMAEvolutionStrategy { … … 125 125 if (sp.CC == 0) sp.CC = 4.0 / (N + 4); 126 126 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))); 129 130 if (sp.CCovSep == 0) sp.CCovSep = Math.Min(1, sp.CCov * (N + 1.5) / 3); 130 131 #endregion … … 269 270 tred2(N, B, diagD, offdiag); 270 271 tql2(N, diagD, offdiag, B); 271 } catch { result = false; } 272 } 273 catch { result = false; } 272 274 273 275 return result;
Note: See TracChangeset
for help on using the changeset viewer.