Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/10 02:13:37 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893).

File:
1 edited

Legend:

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

    r3303 r3304  
    304304      foreach (ISelector selector in Selectors.OrderBy(x => x.Name))
    305305        SelectorParameter.ValidValues.Add(selector);
     306
     307      ISelector proportionalSelector = SelectorParameter.ValidValues.FirstOrDefault(x => x.GetType().Name.Equals("ProportionalSelector"));
     308      if (proportionalSelector != null) SelectorParameter.Value = proportionalSelector;
     309
    306310      if (oldSelector != null) {
    307311        ISelector selector = SelectorParameter.ValidValues.FirstOrDefault(x => x.GetType() == oldSelector.GetType());
Note: See TracChangeset for help on using the changeset viewer.