Changeset 3689 for trunk/sources/HeuristicLab.Algorithms.TabuSearch
- Timestamp:
- 05/07/10 02:08:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs
r3671 r3689 143 143 get { return (TabuSearchMainLoop)SolutionsCreator.Successor; } 144 144 } 145 [Storable] 145 146 private BestAverageWorstQualityAnalyzer moveQualityAnalyzer; 147 [Storable] 146 148 private TabuNeighborhoodAnalyzer tabuNeighborhoodAnalyzer; 147 149 #endregion … … 188 190 tsMainLoop.AnalyzerParameter.ActualName = AnalyzerParameter.Name; 189 191 192 moveQualityAnalyzer = new BestAverageWorstQualityAnalyzer(); 193 tabuNeighborhoodAnalyzer = new TabuNeighborhoodAnalyzer(); 194 ParameterizeAnalyzers(); 195 UpdateAnalyzers(); 196 190 197 Initialize(); 191 198 } … … 195 202 public override IDeepCloneable Clone(Cloner cloner) { 196 203 TabuSearch clone = (TabuSearch)base.Clone(cloner); 204 clone.moveQualityAnalyzer = (BestAverageWorstQualityAnalyzer)cloner.Clone(moveQualityAnalyzer); 205 clone.tabuNeighborhoodAnalyzer = (TabuNeighborhoodAnalyzer)cloner.Clone(tabuNeighborhoodAnalyzer); 197 206 clone.Initialize(); 198 207 return clone; … … 313 322 [StorableHook(HookType.AfterDeserialization)] 314 323 private void Initialize() { 315 InitializeAnalyzers();316 UpdateAnalyzers();317 324 if (Problem != null) { 318 325 Problem.Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); … … 325 332 TabuCheckerParameter.ValueChanged += new EventHandler(TabuCheckerParameter_ValueChanged); 326 333 SampleSizeParameter.NameChanged += new EventHandler(SampleSizeParameter_NameChanged); 327 }328 private void InitializeAnalyzers() {329 moveQualityAnalyzer = new BestAverageWorstQualityAnalyzer();330 tabuNeighborhoodAnalyzer = new TabuNeighborhoodAnalyzer();331 ParameterizeAnalyzers();332 334 } 333 335 private void UpdateMoveGenerator() {
Note: See TracChangeset
for help on using the changeset viewer.