Changeset 3689 for trunk/sources/HeuristicLab.Algorithms.LocalSearch
- Timestamp:
- 05/07/10 02:08:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs
r3669 r3689 126 126 get { return (LocalSearchMainLoop)SolutionsCreator.Successor; } 127 127 } 128 [Storable] 128 129 private BestAverageWorstQualityAnalyzer moveQualityAnalyzer; 129 130 #endregion … … 167 168 lsMainLoop.AnalyzerParameter.ActualName = AnalyzerParameter.Name; 168 169 170 moveQualityAnalyzer = new BestAverageWorstQualityAnalyzer(); 171 ParameterizeAnalyzers(); 172 UpdateAnalyzers(); 173 169 174 Initialize(); 170 175 } … … 172 177 public override IDeepCloneable Clone(Cloner cloner) { 173 178 LocalSearch clone = (LocalSearch)base.Clone(cloner); 179 clone.moveQualityAnalyzer = (BestAverageWorstQualityAnalyzer)cloner.Clone(moveQualityAnalyzer); 174 180 clone.Initialize(); 175 181 return clone; … … 257 263 [StorableHook(HookType.AfterDeserialization)] 258 264 private void Initialize() { 259 InitializeAnalyzers();260 UpdateAnalyzers();261 265 if (Problem != null) { 262 266 Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); … … 267 271 MoveGeneratorParameter.ValueChanged += new EventHandler(MoveGeneratorParameter_ValueChanged); 268 272 MoveEvaluatorParameter.ValueChanged += new EventHandler(MoveEvaluatorParameter_ValueChanged); 269 }270 private void InitializeAnalyzers() {271 moveQualityAnalyzer = new BestAverageWorstQualityAnalyzer();272 ParameterizeAnalyzers();273 273 } 274 274 private void UpdateMoveGenerator() {
Note: See TracChangeset
for help on using the changeset viewer.