Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/10 16:34:44 (15 years ago)
Author:
abeham
Message:

updated SASEGASA #839
changed DataTableValuesCollector to plot IEnumerable<DoubleValue>
removed IMigrator from SASEGASAReunificator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Selection/3.3/OffspringSelector.cs

    r3479 r3489  
    113113      winners.AddRange(offspring);
    114114      offspring = children.SubScopes[0].SubScopes; // the losers
     115      losersCount += offspring.Count;
    115116      while (offspring.Count > 0 && ((1 - successRatio) * populationSize > luckyLosers.Count ||
    116117            selectionPressure.Value >= maxSelPress)) {
    117118        luckyLosers.Add(offspring[0]);
    118         losersCount++;
    119119        offspring.RemoveAt(0);
    120120      }
    121       losersCount += offspring.Count;
    122       children.SubScopes.Clear();
    123121
    124122      // calculate actual selection pressure and success ratio
     
    140138      } else {
    141139        // enough children generated
     140        children.SubScopes.Clear();
    142141        while (children.SubScopes.Count < populationSize) {
    143142          if (winners.Count > 0) {
Note: See TracChangeset for help on using the changeset viewer.