Changeset 11511 for branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/OffspringSelectors
- Timestamp:
- 10/30/14 11:49:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/OffspringSelectors/StandardOffspringSelector.cs
r11510 r11511 31 31 [Item("StandardOffspringSelector", "Selects among the offspring population those that are designated successful and discards the unsuccessful offspring, except for some lucky losers. It expects the parent scopes to be below the first sub-scope, and offspring scopes to be below the second sub-scope separated again in two sub-scopes, the first with the failed offspring and the second with successful offspring.")] 32 32 [StorableClass] 33 public class StandardOffspringSelector : SingleSuccessorOperator, IOffspringSelector {33 public class StandardOffspringSelector : InstrumentedOperator, IOffspringSelector { 34 34 public ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { 35 35 get { return (ValueLookupParameter<DoubleValue>)Parameters["MaximumSelectionPressure"]; } … … 91 91 } 92 92 93 public override IOperation Apply() {93 public override IOperation InstrumentedApply() { 94 94 double maxSelPress = MaximumSelectionPressureParameter.ActualValue.Value; 95 95 double successRatio = SuccessRatioParameter.ActualValue.Value; … … 192 192 EnoughChildrenGeneratedParameter.ActualValue.Value = true; 193 193 } 194 return base. Apply();194 return base.InstrumentedApply(); 195 195 } 196 196 }
Note: See TracChangeset
for help on using the changeset viewer.