Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10826


Ignore:
Timestamp:
05/08/14 16:56:16 (11 years ago)
Author:
mkommend
Message:

#2181: Set fillPopulationWithParents to false if the parameter's actual value is null.

File:
1 edited

Legend:

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

    r10643 r10826  
    9999      double maxSelPress = MaximumSelectionPressureParameter.ActualValue.Value;
    100100      double successRatio = SuccessRatioParameter.ActualValue.Value;
    101       bool fillPopulationWithParents = FillPopulationWithParentsParameter.ActualValue.Value;
     101      bool fillPopulationWithParents = false;
     102      if (FillPopulationWithParentsParameter.ActualValue != null)
     103        fillPopulationWithParents = FillPopulationWithParentsParameter.ActualValue.Value;
    102104      IScope scope = ExecutionContext.Scope;
    103105      IScope parents = scope.SubScopes[0];
Note: See TracChangeset for help on using the changeset viewer.