Changeset 5951
- Timestamp:
- 04/05/11 10:00:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicOptimizationAlgorithm.cs
r5809 r5951 51 51 Problem.SolutionCreatorChanged -= new EventHandler(Problem_SolutionCreatorChanged); 52 52 Problem.EvaluatorChanged -= new EventHandler(Problem_EvaluatorChanged); 53 base.DeregisterProblemEvents(); 53 54 } 54 55 protected override void RegisterProblemEvents() { 56 base.RegisterProblemEvents(); 55 57 Problem.SolutionCreatorChanged += new EventHandler(Problem_SolutionCreatorChanged); 56 58 Problem.EvaluatorChanged += new EventHandler(Problem_EvaluatorChanged); -
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicOptimizationEngineAlgorithm.cs
r5809 r5951 51 51 Problem.SolutionCreatorChanged -= new EventHandler(Problem_SolutionCreatorChanged); 52 52 Problem.EvaluatorChanged -= new EventHandler(Problem_EvaluatorChanged); 53 base.DeregisterProblemEvents(); 53 54 } 54 55 protected override void RegisterProblemEvents() { 56 base.RegisterProblemEvents(); 55 57 Problem.SolutionCreatorChanged += new EventHandler(Problem_SolutionCreatorChanged); 56 58 Problem.EvaluatorChanged += new EventHandler(Problem_EvaluatorChanged); -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r5809 r5951 240 240 ProblemSize.Value = Evaluator.MaximumProblemSize; 241 241 BestKnownQuality = new DoubleValue(Evaluator.BestKnownQuality); 242 Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); 242 243 Evaluator_QualityParameter_ActualNameChanged(null, EventArgs.Empty); 243 244 OnEvaluatorChanged(); … … 406 407 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 407 408 op.BoundsParameter.ActualName = BoundsParameter.Name; 408 op.ProblemSizeParameter.ActualName = ProblemSizeParameter.Name; 409 op.ProblemSizeParameter.ActualName = ProblemSizeParameter.Name; 409 410 } 410 411 foreach (IRealVectorParticleUpdater op in Operators.OfType<IRealVectorParticleUpdater>()) { 411 412 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 412 op.BoundsParameter.ActualName = BoundsParameter.Name; 413 op.BoundsParameter.ActualName = BoundsParameter.Name; 413 414 } 414 415 foreach (IRealVectorSwarmUpdater op in Operators.OfType<IRealVectorSwarmUpdater>()) { 415 416 op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 416 op.MaximizationParameter.ActualName = MaximizationParameter.Name; 417 op.MaximizationParameter.ActualName = MaximizationParameter.Name; 417 418 } 418 419 }
Note: See TracChangeset
for help on using the changeset viewer.