- Timestamp:
- 11/06/15 11:47:44 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs
r13124 r13127 98 98 get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters["Age"]; } 99 99 } 100 public IValueLookupParameter<IntValue> AgeGapParameter { 101 get { return (IValueLookupParameter<IntValue>)Parameters["AgeGap"]; } 102 } 100 103 public IValueLookupParameter<DoubleValue> AgeInheritanceParameter { 101 104 get { return (IValueLookupParameter<DoubleValue>)Parameters["AgeInheritance"]; } … … 110 113 public IValueLookupParameter<BoolValue> ReduceToPopulationSizeParameter { 111 114 get { return (IValueLookupParameter<BoolValue>)Parameters["ReduceToPopulationSize"]; } 115 } 116 117 public IValueLookupParameter<IOperator> TerminatorParameter { 118 get { return (IValueLookupParameter<IOperator>)Parameters["Terminator"]; } 112 119 } 113 120 #endregion … … 147 154 148 155 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Age", "The age of individuals.")); 156 Parameters.Add(new ValueLookupParameter<IntValue>("AgeGap", "The frequency of reseeding the lowest layer and scaling factor for the age-limits for the layers.")); 149 157 Parameters.Add(new ValueLookupParameter<DoubleValue>("AgeInheritance", "A weight that determines the age of a child after crossover based on the older (1.0) and younger (0.0) parent.")); 150 158 Parameters.Add(new ValueLookupParameter<IntArray>("AgeLimits", "The maximum ages for the Layers.")); 151 159 152 160 Parameters.Add(new ValueLookupParameter<IntValue>("MatingPoolRange", "The range of sub - populations used for creating a mating pool. (1 = current + previous sub-population)")); 153 Parameters.Add(new ValueLookupParameter<BoolValue>("ReduceToPopulationSize", "Reduce the LayerPopulationSize after elder migration to PopulationSize")); 161 Parameters.Add(new ValueLookupParameter<BoolValue>("ReduceToPopulationSize", "Reduce the CurrentPopulationSize after elder migration to PopulationSize")); 162 163 Parameters.Add(new ValueLookupParameter<IOperator>("Terminator", "The termination criteria that defines if the algorithm should continue or stop")); 154 164 155 165 … … 183 193 initLayerAnalyzerProcessor.Successor = initAnalyzerPlaceholder; 184 194 185 layerVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Layer EvaluatedSolutions"));195 layerVariableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Layer", new IntValue(0))); 186 196 layerVariableCreator.CollectedValues.Add(new ValueParameter<ResultCollection>("LayerResults")); 187 197 layerVariableCreator.Successor = initLayerAnalyzerPlaceholder; … … 253 263 analyzerPlaceholder.Successor = termination; 254 264 265 termination.TerminatorParameter.ActualName = TerminatorParameter.Name; 255 266 termination.ContinueBranch = matingPoolCreator; 256 267 } … … 273 284 selectorProsessor.Operator = eldersSelector; 274 285 selectorProsessor.Successor = shiftToRightMigrator; 286 287 eldersSelector.AgeParameter.ActualName = AgeParameter.Name; 288 eldersSelector.AgeLimitsParameter.ActualName = AgeLimitsParameter.Name; 289 eldersSelector.NumberOfLayersParameter.ActualName = NumberOfLayersParameter.Name; 290 eldersSelector.LayerParameter.ActualName = "Layer"; 291 eldersSelector.Successor = null; 275 292 276 293 shiftToRightMigrator.ClockwiseMigrationParameter.Value = new BoolValue(true); … … 391 408 reseeder.OperatorGraph.InitialOperator = reseedingController; 392 409 410 reseedingController.GenerationsParameter.ActualName = "Generations"; 411 reseedingController.AgeGapParameter.ActualName = AgeGapParameter.Name; 393 412 reseedingController.FirstLayerOperator = removeIndividuals; 413 reseedingController.Successor = null; 394 414 395 415 removeIndividuals.Successor = createIndividuals;
Note: See TracChangeset
for help on using the changeset viewer.