Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7524 for trunk


Ignore:
Timestamp:
02/27/12 13:00:14 (13 years ago)
Author:
mkommend
Message:

#1691: Corrected parameterization of crossovers in IslandGeneticAlgorithm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs

    r7511 r7524  
    499499      ICrossover defaultCrossover = Problem.Operators.OfType<ICrossover>().FirstOrDefault();
    500500      CrossoverParameter.ValidValues.Clear();
    501       foreach (ICrossover crossover in Problem.Operators.OfType<ICrossover>().OrderBy(x => x.Name))
     501      foreach (ICrossover crossover in Problem.Operators.OfType<ICrossover>().OrderBy(x => x.Name)) {
     502        ParameterizeStochasticOperatorForIsland(crossover);
    502503        CrossoverParameter.ValidValues.Add(crossover);
     504      }
    503505      if (oldCrossover != null) {
    504506        ICrossover crossover = CrossoverParameter.ValidValues.FirstOrDefault(x => x.GetType() == oldCrossover.GetType());
Note: See TracChangeset for help on using the changeset viewer.