Changeset 13964
- Timestamp:
- 07/01/16 09:14:59 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithm.cs
r13402 r13964 284 284 [Storable] 285 285 private ComparisonTerminator<IntValue> generationsTerminator; 286 //[Storable]287 //private ComparisonTerminator<DoubleValue> selectionPressureTerminator;288 286 [Storable] 289 287 private ComparisonTerminator<IntValue> evaluationsTerminator; … … 314 312 currentSuccessRatioAnalyzer = cloner.Clone(original.currentSuccessRatioAnalyzer); 315 313 generationsTerminator = cloner.Clone(original.generationsTerminator); 316 //selectionPressureTerminator = cloner.Clone(original.selectionPressureTerminator);317 314 evaluationsTerminator = cloner.Clone(original.evaluationsTerminator); 318 315 qualityTerminator = cloner.Clone(original.qualityTerminator); … … 470 467 #region Create terminators 471 468 generationsTerminator = new ComparisonTerminator<IntValue>("Generations", ComparisonType.Less, new IntValue(1000)) { Name = "Generations" }; 472 //selectionPressureTerminator = new ComparisonTerminator<DoubleValue>("SelectionPressure", ComparisonType.Less, MaximumSelectionPressureParameter);473 469 evaluationsTerminator = new ComparisonTerminator<IntValue>("EvaluatedSolutions", ComparisonType.Less, new IntValue(int.MaxValue)) { Name = "Evaluations" }; 474 470 qualityTerminator = new SingleObjectiveQualityTerminator() { Name = "Quality" }; … … 722 718 Analyzer.Operators.Add(ageAnalyzer, ageAnalyzer.EnabledByDefault); 723 719 Analyzer.Operators.Add(ageDistributionAnalyzer, ageDistributionAnalyzer.EnabledByDefault); 724 Analyzer.Operators.Add(selectionPressureAnalyzer, false); // find way to make history "pretty"720 Analyzer.Operators.Add(selectionPressureAnalyzer, false); 725 721 selectionPressureAnalyzer.ValueParameter.Depth = 1; // Adding analyzer sets depth to 2 726 722 Analyzer.Operators.Add(currentSuccessRatioAnalyzer, false); … … 774 770 var newTerminators = new Dictionary<ITerminator, bool> { 775 771 {generationsTerminator, !Terminators.Operators.Contains(generationsTerminator) || Terminators.Operators.ItemChecked(generationsTerminator)}, 776 //{selectionPressureTerminator, !Terminators.Operators.Contains(selectionPressureTerminator) || Terminators.Operators.ItemChecked(selectionPressureTerminator)},777 772 {evaluationsTerminator, Terminators.Operators.Contains(evaluationsTerminator) && Terminators.Operators.ItemChecked(evaluationsTerminator)}, 778 773 {qualityTerminator, Terminators.Operators.Contains(qualityTerminator) && Terminators.Operators.ItemChecked(qualityTerminator) },
Note: See TracChangeset
for help on using the changeset viewer.