Changeset 12996
- Timestamp:
- 10/09/15 15:37:58 (9 years ago)
- Location:
- branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r12994 r12996 238 238 [Storable] 239 239 private BestAverageWorstQualityAnalyzer layerQualityAnalyzer; 240 [Storable] 241 private OldestAverageYoungestAgeAnalyzer ageAnalyzer; 242 [Storable] 243 private OldestAverageYoungestAgeAnalyzer layerAgeAnalyzer; 244 [Storable] 245 private AgeDistributionAnalyzer ageDistributionAnalyzer; 246 [Storable] 247 private AgeDistributionAnalyzer layerAgeDistributionAnalyzer; 240 248 #endregion 241 249 … … 251 259 #endregion 252 260 261 #region Constructors 253 262 [StorableConstructor] 254 263 private AlpsGeneticAlgorithm(bool deserializing) … … 262 271 qualityAnalyzer = cloner.Clone(original.qualityAnalyzer); 263 272 layerQualityAnalyzer = cloner.Clone(original.layerQualityAnalyzer); 273 ageAnalyzer = cloner.Clone(original.ageAnalyzer); 274 layerAgeAnalyzer = cloner.Clone(original.layerAgeAnalyzer); 275 ageDistributionAnalyzer = cloner.Clone(original.ageDistributionAnalyzer); 276 layerAgeDistributionAnalyzer = cloner.Clone(original.layerAgeDistributionAnalyzer); 264 277 generationsTerminator = cloner.Clone(original.generationsTerminator); 265 278 evaluationsTerminator = cloner.Clone(original.evaluationsTerminator); … … 377 390 qualityAnalyzer = new BestAverageWorstQualityAnalyzer(); 378 391 layerQualityAnalyzer = new BestAverageWorstQualityAnalyzer(); 392 ageAnalyzer = new OldestAverageYoungestAgeAnalyzer(); 393 layerAgeAnalyzer = new OldestAverageYoungestAgeAnalyzer(); 394 ageDistributionAnalyzer = new AgeDistributionAnalyzer(); 395 layerAgeDistributionAnalyzer = new AgeDistributionAnalyzer(); 379 396 #endregion 380 397 … … 400 417 Initialize(); 401 418 } 419 #endregion 402 420 403 421 #region Events … … 569 587 qualityAnalyzer.ResultsParameter.Hidden = true; 570 588 qualityAnalyzer.QualityParameter.Depth = 2; 571 layerQualityAnalyzer.ResultsParameter.ActualName = " Results";589 layerQualityAnalyzer.ResultsParameter.ActualName = "LayerResults"; 572 590 layerQualityAnalyzer.ResultsParameter.Hidden = true; 573 591 layerQualityAnalyzer.QualityParameter.Depth = 1; … … 659 677 660 678 Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault); 661 LayerAnalyzer.Operators.Add(layerQualityAnalyzer, layerQualityAnalyzer.EnabledByDefault); 679 Analyzer.Operators.Add(ageAnalyzer, ageAnalyzer.EnabledByDefault); 680 Analyzer.Operators.Add(ageDistributionAnalyzer, ageDistributionAnalyzer.EnabledByDefault); 681 LayerAnalyzer.Operators.Add(layerQualityAnalyzer, false); 682 LayerAnalyzer.Operators.Add(layerAgeAnalyzer, false); 683 LayerAnalyzer.Operators.Add(layerAgeDistributionAnalyzer, false); 662 684 663 685 if (Problem != null) { 664 686 foreach (var analyzer in Problem.Operators.OfType<IAnalyzer>()) { 665 687 Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault); 688 LayerAnalyzer.Operators.Add((IAnalyzer)analyzer.Clone(), false); 666 689 } 667 690 } -
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/Analyzers/OldestAverageYoungestAgeAnalyzer.cs
r12048 r12996 58 58 #region Properties 59 59 public bool EnabledByDefault { 60 get { return true; }60 get { return false; } 61 61 } 62 62 private OldestAverageYoungestAgeCalculator OldestAverageYoungestAgeCalculator { -
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/HeuristicLab.Algorithms.ALPS-3.3.csproj
r12993 r12996 133 133 <ItemGroup> 134 134 <Compile Include="AgeInheritance.cs" /> 135 <Compile Include="Analyzers\EvaluatedSolutionsHistoryAnalyzer.cs" />136 135 <Compile Include="Analyzers\OldestAverageYoungestAgeAnalyzer.cs" /> 137 136 <Compile Include="Analyzers\AgeDistributionAnalyzer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.