- Timestamp:
- 03/28/12 15:47:26 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure
- Property svn:ignore
-
old new 3 3 *.resharper 4 4 *.suo 5 *.user 5 6 *.vsp 6 7 Doxygen 8 FxCopResults.txt 7 9 Google.ProtocolBuffers-0.9.1.dll 8 10 HeuristicLab 3.3.5.1.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs
r7270 r7669 157 157 : base(original, cloner) { 158 158 paretoFrontAnalyzer = (RankBasedParetoFrontAnalyzer)cloner.Clone(original.paretoFrontAnalyzer); 159 A ttachEventHandlers();159 AfterDeserialization(); 160 160 } 161 161 public NSGA2() { … … 229 229 UpdateAnalyzers(); 230 230 231 A ttachEventHandlers();231 AfterDeserialization(); 232 232 } 233 233 … … 310 310 #region Helpers 311 311 [StorableHook(HookType.AfterDeserialization)] 312 private void A ttachEventHandlers() {312 private void AfterDeserialization() { 313 313 PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged); 314 314 PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged); … … 365 365 private void UpdateCrossovers() { 366 366 ICrossover oldCrossover = CrossoverParameter.Value; 367 ICrossover defaultCrossover = Problem.Operators.OfType<ICrossover>().FirstOrDefault(); 367 368 CrossoverParameter.ValidValues.Clear(); 368 369 foreach (ICrossover crossover in Problem.Operators.OfType<ICrossover>().OrderBy(x => x.Name)) … … 371 372 ICrossover crossover = CrossoverParameter.ValidValues.FirstOrDefault(x => x.GetType() == oldCrossover.GetType()); 372 373 if (crossover != null) CrossoverParameter.Value = crossover; 373 } 374 else oldCrossover = null; 375 } 376 if (oldCrossover == null && defaultCrossover != null) 377 CrossoverParameter.Value = defaultCrossover; 374 378 } 375 379 private void UpdateMutators() {
Note: See TracChangeset
for help on using the changeset viewer.