Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/14 11:06:38 (10 years ago)
Author:
pfleck
Message:

#2269 Implemented LayerUpdator.

  • Added First/LastSubScopeProcessor.
  • Added two Calculators because ExpressionCalculator does not support required features yet.
  • Added some wiring.
  • Small bugfixes and refactorings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/MatingPoolCreator.cs

    r11583 r11586  
    2020#endregion
    2121
    22 using System.Linq;
    2322using HeuristicLab.Common;
    2423using HeuristicLab.Core;
     
    4645      var subPopulations = ExecutionContext.Scope.SubScopes;
    4746
    48       for (int i = subPopulations.Count - 1; i >= 0; i++) {
     47      for (int i = subPopulations.Count - 1; i > 0; i++) {
    4948        var currentSubPopulation = subPopulations[i].SubScopes;
    50         var prevSubPopulation = i > 0 ? subPopulations[i - 1].SubScopes : Enumerable.Empty<IScope>();
     49        var prevSubPopulation = subPopulations[i - 1].SubScopes;
    5150
    52         foreach (var individual in prevSubPopulation) {
     51        foreach (var individual in prevSubPopulation)
    5352          currentSubPopulation.Add(individual);
    54         }
    5553      }
     54
    5655      return base.Apply();
    5756    }
Note: See TracChangeset for help on using the changeset viewer.