Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/14 16:47:51 (10 years ago)
Author:
mkommend
Message:

#2172: Added parameter to configure if parents should be used instead of lucky losers to fill the actual generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithmMainLoop.cs

    r9592 r10639  
    2020#endregion
    2121
     22using System.Linq;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     
    2829using HeuristicLab.Parameters;
    2930using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HeuristicLab.Selection;
    3032
    3133namespace HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm {
     
    265267      mainOperator.SelectorParameter.ActualName = SelectorParameter.Name;
    266268      mainOperator.SuccessRatioParameter.ActualName = SuccessRatioParameter.Name;
     269      foreach (var offspringSelector in mainOperator.OperatorGraph.Operators.OfType<OffspringSelector>())
     270        offspringSelector.FillPopulationWithParents = true;
    267271
    268272      islandAnalyzer2.Name = "Island Analyzer (placeholder)";
Note: See TracChangeset for help on using the changeset viewer.