Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8482


Ignore:
Timestamp:
08/14/12 10:06:56 (12 years ago)
Author:
ascheibe
Message:

#1899 removed setting the checked state of certain analyzers in the samples unit test as this is already done correctly with the EnabledByDefault property of the analyzers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r8335 r8482  
    9797      ConfigureGeneticAlgorithmParameters<ProportionalSelector, OrderCrossover2, InversionManipulator>(
    9898        ga, 100, 1, 1000, 0.05);
    99 
    100       ga.Analyzer.Operators.SetItemCheckedState(ga.Analyzer.Operators
    101         .OfType<TSPAlleleFrequencyAnalyzer>()
    102         .Single(), false);
    103       ga.Analyzer.Operators.SetItemCheckedState(ga.Analyzer.Operators
    104         .OfType<TSPPopulationDiversityAnalyzer>()
    105         .Single(), false);
    10699      #endregion
    107100      return ga;
     
    555548        UnidirectionalRingMigrator, BestSelector, WorstReplacer>(
    556549        ga, 100, 1, 1000, 0.05, 5, 50, 0.25);
    557 
    558       ga.Analyzer.Operators.SetItemCheckedState(ga.Analyzer.Operators
    559         .OfType<TSPAlleleFrequencyAnalyzer>()
    560         .Single(), false);
    561       ga.Analyzer.Operators.SetItemCheckedState(ga.Analyzer.Operators
    562         .OfType<TSPPopulationDiversityAnalyzer>()
    563         .Single(), false);
    564550      #endregion
    565551      return ga;
     
    836822      ts.TabuTenure.Value = 60;
    837823
    838       ts.Analyzer.Operators.SetItemCheckedState(ts.Analyzer.Operators
    839         .OfType<TSPAlleleFrequencyAnalyzer>()
    840         .Single(), false);
    841       ts.Analyzer.Operators.SetItemCheckedState(ts.Analyzer.Operators
    842         .OfType<TSPPopulationDiversityAnalyzer>()
    843         .Single(), false);
    844824      #endregion
    845825      ts.Engine = new ParallelEngine();
     
    920900        .Single(), false);
    921901      vns.ShakingOperator = shakingOperator;
    922       vns.Analyzer.Operators.SetItemCheckedState(vns.Analyzer.Operators
    923         .OfType<TSPAlleleFrequencyAnalyzer>()
    924         .Single(), false);
    925       vns.Analyzer.Operators.SetItemCheckedState(vns.Analyzer.Operators
    926         .OfType<TSPPopulationDiversityAnalyzer>()
    927         .Single(), false);
    928902      #endregion
    929903      vns.Engine = new ParallelEngine();
Note: See TracChangeset for help on using the changeset viewer.