- Timestamp:
- 10/30/15 17:10:35 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r13046 r13095 114 114 get { return (IValueParameter<IntValue>)Parameters["MatingPoolRange"]; } 115 115 } 116 private IValueParameter<BoolValue> ContinuousReseedingParameter { 117 get { return (IValueParameter<BoolValue>)Parameters["ContinuousReseeding"]; } 118 } 116 119 117 120 private IValueParameter<MultiTerminator> TerminatorParameter { … … 195 198 get { return MatingPoolRangeParameter.Value; } 196 199 set { MatingPoolRangeParameter.Value = value; } 200 } 201 public BoolValue ContinuousReseeding { 202 get { return ContinuousReseedingParameter.Value; } 203 set { ContinuousReseedingParameter.Value = value; } 197 204 } 198 205 … … 296 303 297 304 Parameters.Add(new ValueParameter<IntValue>("MatingPoolRange", "The range of layers used for creating a mating pool. (1 = current + previous layer)", new IntValue(1)) { Hidden = true }); 305 Parameters.Add(new ValueParameter<BoolValue>("ContinuousReseeding", "Instead of replacing the lowest layer every AgeGap generations replace 1/AgeGap individuals every generation", new BoolValue(false)) { Hidden = true }); 298 306 299 307 Parameters.Add(new ValueParameter<MultiTerminator>("Terminator", "The termination criteria which sould be checked.", new MultiTerminator())); … … 546 554 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 547 555 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name; 548 MainLoop.LayerUpdator.SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;549 MainLoop.LayerUpdator.SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;550 556 } 551 557 private void ParameterizeMainLoop() { … … 555 561 MainLoop.MainOperator.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name; 556 562 MainLoop.MainOperator.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName; 557 MainLoop.LayerUpdator.SolutionsCreator.NumberOfSolutionsParameter.ActualName = PopulationSizeParameter.Name;558 563 } 559 564 private void ParameterizeAnalyzers() { … … 614 619 int numberOfLayers = NumberOfLayers.Value; 615 620 AgeLimits = scheme.CalculateAgeLimits(ageGap, numberOfLayers); 621 AgeLimits[AgeLimits.Length - 1] = int.MaxValue; // last layer infinite age limit 616 622 } 617 623
Note: See TracChangeset
for help on using the changeset viewer.