- Timestamp:
- 03/15/12 09:11:17 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs
r7460 r7615 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.