Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 23:27:50 (15 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • removed specific analyzer interfaces
  • adapted MultiAnalyzer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealing.cs

    r3626 r3658  
    8181      get { return (ValueParameter<DoubleValue>)Parameters["EndTemperature"]; }
    8282    }
    83     private ValueParameter<MultiAnalyzer<ISolutionAnalyzer>> AnalyzerParameter {
    84       get { return (ValueParameter<MultiAnalyzer<ISolutionAnalyzer>>)Parameters["Analyzer"]; }
     83    private ValueParameter<MultiAnalyzer> AnalyzerParameter {
     84      get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; }
    8585    }
    8686    #endregion
     
    123123      set { EndTemperatureParameter.Value = value; }
    124124    }
    125     public MultiAnalyzer<ISolutionAnalyzer> Analyzer {
     125    public MultiAnalyzer Analyzer {
    126126      get { return AnalyzerParameter.Value; }
    127127      set { AnalyzerParameter.Value = value; }
     
    158158      Parameters.Add(new ValueParameter<DoubleValue>("StartTemperature", "The initial temperature.", new DoubleValue(100)));
    159159      Parameters.Add(new ValueParameter<DoubleValue>("EndTemperature", "The final temperature which should be reached when iterations reaches maximum iterations.", new DoubleValue(1e-6)));
    160       Parameters.Add(new ValueParameter<MultiAnalyzer<ISolutionAnalyzer>>("Analyzer", "The operator used to analyze each generation.", new MultiAnalyzer<ISolutionAnalyzer>()));
     160      Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze each generation.", new MultiAnalyzer()));
    161161     
    162162      RandomCreator randomCreator = new RandomCreator();
     
    401401      Analyzer.Operators.Add(qualityAnalyzer);
    402402      if (Problem != null) {
    403         foreach (ISolutionAnalyzer analyzer in Problem.Operators.OfType<ISolutionAnalyzer>().OrderBy(x => x.Name))
     403        foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>().OrderBy(x => x.Name))
    404404          Analyzer.Operators.Add(analyzer);
    405405      }
Note: See TracChangeset for help on using the changeset viewer.