Changeset 3658 for trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing
- Timestamp:
- 05/05/10 23:27:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealing.cs
r3626 r3658 81 81 get { return (ValueParameter<DoubleValue>)Parameters["EndTemperature"]; } 82 82 } 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"]; } 85 85 } 86 86 #endregion … … 123 123 set { EndTemperatureParameter.Value = value; } 124 124 } 125 public MultiAnalyzer <ISolutionAnalyzer>Analyzer {125 public MultiAnalyzer Analyzer { 126 126 get { return AnalyzerParameter.Value; } 127 127 set { AnalyzerParameter.Value = value; } … … 158 158 Parameters.Add(new ValueParameter<DoubleValue>("StartTemperature", "The initial temperature.", new DoubleValue(100))); 159 159 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())); 161 161 162 162 RandomCreator randomCreator = new RandomCreator(); … … 401 401 Analyzer.Operators.Add(qualityAnalyzer); 402 402 if (Problem != null) { 403 foreach (I SolutionAnalyzer analyzer in Problem.Operators.OfType<ISolutionAnalyzer>().OrderBy(x => x.Name))403 foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>().OrderBy(x => x.Name)) 404 404 Analyzer.Operators.Add(analyzer); 405 405 }
Note: See TracChangeset
for help on using the changeset viewer.