Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/20 16:21:55 (4 years ago)
Author:
abeham
Message:

#2521:

  • Moving solution creator parameter from problems to algorithms (breaking wiring in some HeuristicOptimizationProblems)
  • Disallowing evaluator or encoding changes in encoding-specific base problems (to avoid confusion in derived problems whether this needs to be handled or not)
  • Added private set to ReferenceParameter property (serialization)
Location:
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ALPS/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs

    r17226 r17695  
    444444    protected override void OnProblemChanged() {
    445445      base.OnProblemChanged();
    446       ParameterizeStochasticOperator(Problem.SolutionCreator);
     446      ParameterizeStochasticOperator(SolutionCreator);
    447447      foreach (var @operator in Problem.Operators.OfType<IOperator>())
    448448        ParameterizeStochasticOperator(@operator);
     
    476476    }
    477477
    478     protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {
    479       base.Problem_SolutionCreatorChanged(sender, e);
    480       ParameterizeStochasticOperator(Problem.SolutionCreator);
     478    protected override void SolutionCreatorOnChanged() {
     479      base.SolutionCreatorOnChanged();
     480      ParameterizeStochasticOperator(SolutionCreator);
    481481
    482482      Problem.Evaluator.QualityParameter.ActualNameChanged += Evaluator_QualityParameter_ActualNameChanged;
     
    580580    private void ParameterizeSolutionsCreator() {
    581581      SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
    582       SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;
     582      SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name;
    583583    }
    584584    private void ParameterizeMainLoop() {
  • branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithm.cs

    r17226 r17695  
    507507    protected override void OnProblemChanged() {
    508508      base.OnProblemChanged();
    509       ParameterizeStochasticOperator(Problem.SolutionCreator);
     509      ParameterizeStochasticOperator(SolutionCreator);
    510510      foreach (var @operator in Problem.Operators.OfType<IOperator>())
    511511        ParameterizeStochasticOperator(@operator);
     
    539539    }
    540540
    541     protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {
    542       base.Problem_SolutionCreatorChanged(sender, e);
    543       ParameterizeStochasticOperator(Problem.SolutionCreator);
     541    protected override void SolutionCreatorOnChanged() {
     542      base.SolutionCreatorOnChanged();
     543      ParameterizeStochasticOperator(SolutionCreator);
    544544
    545545      Problem.Evaluator.QualityParameter.ActualNameChanged += Evaluator_QualityParameter_ActualNameChanged;
     
    628628    private void ParameterizeSolutionsCreator() {
    629629      SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
    630       SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;
     630      SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name;
    631631    }
    632632    private void ParameterizeMainLoop() {
Note: See TracChangeset for help on using the changeset viewer.