Changeset 3379 for trunk/sources/HeuristicLab.Optimization.Operators
- Timestamp:
- 04/17/10 03:05:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization.Operators/3.3/OffspringSelector.cs ¶
r3378 r3379 38 38 } 39 39 public ValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { 40 get { return (ValueLookupParameter<DoubleValue>)Parameters["Maxim iumSelectionPressure"]; }40 get { return (ValueLookupParameter<DoubleValue>)Parameters["MaximumSelectionPressure"]; } 41 41 } 42 42 public ValueLookupParameter<DoubleValue> SuccessRatioParameter { … … 49 49 get { return (LookupParameter<DoubleValue>)Parameters["CurrentSuccessRatio"]; } 50 50 } 51 public S ubScopesLookupParameter<BoolValue> SuccessfulOffspringParameter {52 get { return (S ubScopesLookupParameter<BoolValue>)Parameters["SuccessfulOffspring"]; }51 public SelectedSubScopesLookupParameter<BoolValue> SuccessfulOffspringParameter { 52 get { return (SelectedSubScopesLookupParameter<BoolValue>)Parameters["SuccessfulOffspring"]; } 53 53 } 54 54 public LookupParameter<ItemList<IScope>> WinnersParameter { … … 74 74 Parameters.Add(new ValueLookupParameter<DoubleValue>("SelectionPressure", "The amount of selection pressure currently necessary to fulfill the success ratio.")); 75 75 Parameters.Add(new ValueLookupParameter<DoubleValue>("CurrentSuccessRatio", "The current success ratio indicates how much of the successful offspring have already been generated.")); 76 Parameters.Add(new S ubScopesLookupParameter<BoolValue>("SuccessfulOffspring", "True if the offspring was successful, otherwise false."));76 Parameters.Add(new SelectedSubScopesLookupParameter<BoolValue>("SuccessfulOffspring", "True if the offspring was successful, otherwise false.")); 77 77 Parameters.Add(new LookupParameter<ItemList<IScope>>("Winners", "Temporary store of the successful offspring.")); 78 78 Parameters.Add(new LookupParameter<ItemList<IScope>>("LuckyLosers", "Temporary store of the lucky losers.")); … … 145 145 scope.SubScopes.Remove(parents); 146 146 scope.SubScopes.Remove(children); 147 for (int i = 0; i < parents.SubScopes.Count; i++)148 scope.SubScopes.Add(parents.SubScopes[ i]);147 while(parents.SubScopes.Count > 0) 148 scope.SubScopes.Add(parents.SubScopes[0]); 149 149 150 150 IOperator moreOffspring = OffspringCreatorParameter.ActualValue as IOperator;
Note: See TracChangeset
for help on using the changeset viewer.