Changeset 18086 for branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.MultiObjectiveLocalSearch
- Timestamp:
- 11/19/21 16:07:45 (2 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.MultiObjectiveLocalSearch
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.MultiObjectiveLocalSearch/3.3/GSEMO.cs
r17836 r18086 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2021 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 1 22 2 using System; 23 3 using System.Linq; … … 344 324 #region Events 345 325 protected override void OnProblemChanged() { 346 ParameterizeStochasticOperator(Problem.SolutionCreator);347 326 ParameterizeStochasticOperator(Problem.Evaluator); 348 327 foreach (var op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); … … 357 336 } 358 337 359 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {360 ParameterizeStochasticOperator(Problem.SolutionCreator);361 ParameterizeSolutionsCreator();362 base.Problem_SolutionCreatorChanged(sender, e);363 }364 338 protected override void Problem_EvaluatorChanged(object sender, EventArgs e) { 365 339 ParameterizeStochasticOperator(Problem.Evaluator); … … 385 359 private void ParameterizeSolutionsCreator() { 386 360 solutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 387 solutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;361 solutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name; 388 362 } 389 363 private void ParameterizeStochasticOperator(IOperator op) {
Note: See TracChangeset
for help on using the changeset viewer.