Changeset 3616 for trunk/sources/HeuristicLab.Algorithms.TabuSearch
- Timestamp:
- 05/05/10 00:48:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs
r3376 r3616 223 223 base.Problem_EvaluatorChanged(sender, e); 224 224 } 225 protected override void Problem_VisualizerChanged(object sender, EventArgs e) {226 ParameterizeStochasticOperator(Problem.Visualizer);227 ParameterizeMainLoop();228 if (Problem.Visualizer != null) Problem.Visualizer.VisualizationParameter.ActualNameChanged += new EventHandler(Visualizer_VisualizationParameter_ActualNameChanged);229 base.Problem_VisualizerChanged(sender, e);230 }231 225 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 232 226 foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op); … … 281 275 ParameterizeMainLoop(); 282 276 } 283 private void Visualizer_VisualizationParameter_ActualNameChanged(object sender, EventArgs e) {284 ParameterizeMainLoop();285 }286 277 private void SampleSizeParameter_NameChanged(object sender, EventArgs e) { 287 278 ParameterizeMoveGenerators(); … … 297 288 op.MoveQualityParameter.ActualNameChanged += new EventHandler(MoveEvaluator_MoveQualityParameter_ActualNameChanged); 298 289 } 299 if (Problem.Visualizer != null) Problem.Visualizer.VisualizationParameter.ActualNameChanged += new EventHandler(Visualizer_VisualizationParameter_ActualNameChanged);300 290 } 301 291 MoveGeneratorParameter.ValueChanged += new EventHandler(MoveGeneratorParameter_ValueChanged); … … 377 367 if (TabuChecker != null) 378 368 MainLoop.MoveTabuParameter.ActualName = TabuChecker.MoveTabuParameter.ActualName; 379 MainLoop.VisualizerParameter.ActualName = Problem.VisualizerParameter.Name;380 if (Problem.Visualizer != null)381 MainLoop.VisualizationParameter.ActualName = Problem.Visualizer.VisualizationParameter.ActualName;382 369 } 383 370 private void ParameterizeStochasticOperator(IOperator op) {
Note: See TracChangeset
for help on using the changeset viewer.