Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 15:20:28 (14 years ago)
Author:
abeham
Message:

#976

  • fixed a bug in the OffspringSelector when counting the selection pressure
File:
1 edited

Legend:

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

    r3744 r3769  
    114114      // implement the ActualValue fetch here - otherwise the parent scope would also be included, given that there may be 1000 or more parents, this is quite unnecessary
    115115      string tname = SuccessfulOffspringParameter.TranslatedName;
    116       double tmpSelPress = selectionPressure.Value, tmpSelPressInc = 1.0 / offspringSize;
     116      double tmpSelPress = selectionPressure.Value, tmpSelPressInc = 1.0 / populationSize;
    117117      for (int i = 0; i < offspringSize; i++) {
    118118        // fetch value
Note: See TracChangeset for help on using the changeset viewer.