Changeset 10643 for trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs
- Timestamp:
- 03/21/14 14:20:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs
r9592 r10643 96 96 get { return (LookupParameter<IntValue>)Parameters["EvaluatedSolutions"]; } 97 97 } 98 public IValueLookupParameter<BoolValue> FillPopulationWithParentsParameter { 99 get { return (IValueLookupParameter<BoolValue>)Parameters["FillPopulationWithParents"]; } 100 } 98 101 #endregion 99 102 … … 118 121 Parameters.Add(new ValueLookupParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)")); 119 122 } 123 if (!Parameters.ContainsKey("FillPopulationWithParents")) 124 Parameters.Add(new ValueLookupParameter<BoolValue>("FillPopulationWithParents", "True if the population should be filled with parent individual or false if worse children should be used when the maximum selection pressure is exceeded.")); 120 125 #endregion 121 126 } … … 144 149 Parameters.Add(new ValueLookupParameter<BoolValue>("OffspringSelectionBeforeMutation", "True if the offspring selection step should be applied before mutation, false if it should be applied after mutation.")); 145 150 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of times solutions have been evaluated.")); 151 Parameters.Add(new ValueLookupParameter<BoolValue>("FillPopulationWithParents", "True if the population should be filled with parent individual or false if worse children should be used when the maximum selection pressure is exceeded.")); 146 152 #endregion 147 153 … … 197 203 mainOperator.SelectorParameter.ActualName = SelectorParameter.Name; 198 204 mainOperator.SuccessRatioParameter.ActualName = SuccessRatioParameter.Name; 205 mainOperator.FillPopulationWithParentsParameter.ActualName = FillPopulationWithParentsParameter.Name; 199 206 200 207 generationsCounter.Increment = new IntValue(1);
Note: See TracChangeset
for help on using the changeset viewer.