Changeset 17695 for branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm
- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r17226 r17695 447 447 #region Events 448 448 protected override void OnProblemChanged() { 449 ParameterizeStochasticOperator( Problem.SolutionCreator);449 ParameterizeStochasticOperator(SolutionCreator); 450 450 ParameterizeStochasticOperator(Problem.Evaluator); 451 451 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); … … 462 462 } 463 463 464 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {465 ParameterizeStochasticOperator( Problem.SolutionCreator);464 protected override void SolutionCreatorOnChanged() { 465 ParameterizeStochasticOperator(SolutionCreator); 466 466 ParameterizeSolutionsCreator(); 467 base. Problem_SolutionCreatorChanged(sender, e);467 base.SolutionCreatorOnChanged(); 468 468 } 469 469 protected override void Problem_EvaluatorChanged(object sender, EventArgs e) { … … 544 544 private void ParameterizeSolutionsCreator() { 545 545 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 546 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;546 SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name; 547 547 } 548 548 private void ParameterizeMainLoop() { -
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r17226 r17695 350 350 #region Events 351 351 protected override void OnProblemChanged() { 352 ParameterizeStochasticOperator( Problem.SolutionCreator);352 ParameterizeStochasticOperator(SolutionCreator); 353 353 ParameterizeStochasticOperator(Problem.Evaluator); 354 354 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); … … 365 365 } 366 366 367 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {368 ParameterizeStochasticOperator( Problem.SolutionCreator);367 protected override void SolutionCreatorOnChanged() { 368 ParameterizeStochasticOperator(SolutionCreator); 369 369 ParameterizeSolutionsCreator(); 370 base. Problem_SolutionCreatorChanged(sender, e);370 base.SolutionCreatorOnChanged(); 371 371 } 372 372 protected override void Problem_EvaluatorChanged(object sender, EventArgs e) { … … 420 420 private void ParameterizeSolutionsCreator() { 421 421 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 422 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;422 SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name; 423 423 } 424 424 private void ParameterizMainLoop() { -
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r17226 r17695 401 401 #region Events 402 402 protected override void OnProblemChanged() { 403 ParameterizeStochasticOperator( Problem.SolutionCreator);403 ParameterizeStochasticOperator(SolutionCreator); 404 404 ParameterizeStochasticOperator(Problem.Evaluator); 405 405 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); … … 416 416 } 417 417 418 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {419 ParameterizeStochasticOperator( Problem.SolutionCreator);418 protected override void SolutionCreatorOnChanged() { 419 ParameterizeStochasticOperator(SolutionCreator); 420 420 ParameterizeSolutionsCreator(); 421 base. Problem_SolutionCreatorChanged(sender, e);421 base.SolutionCreatorOnChanged(); 422 422 } 423 423 protected override void Problem_EvaluatorChanged(object sender, EventArgs e) { … … 492 492 private void ParameterizeSolutionsCreator() { 493 493 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 494 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;494 SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name; 495 495 } 496 496 private void ParameterizeMainLoop() {
Note: See TracChangeset
for help on using the changeset viewer.