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)
File:
1 edited

Legend:

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

    r17226 r17695  
    2222using System;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Analysis;
    2526using HeuristicLab.Common;
     
    3031using HeuristicLab.Optimization.Operators;
    3132using HeuristicLab.Parameters;
    32 using HEAL.Attic;
    3333using HeuristicLab.PluginInfrastructure;
    3434using HeuristicLab.Random;
     
    309309    #region Events
    310310    protected override void OnProblemChanged() {
    311       ParameterizeStochasticOperator(Problem.SolutionCreator);
     311      ParameterizeStochasticOperator(SolutionCreator);
    312312      ParameterizeStochasticOperator(Problem.Evaluator);
    313313      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
     
    325325    }
    326326
    327     protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) {
    328       ParameterizeStochasticOperator(Problem.SolutionCreator);
     327    protected override void SolutionCreatorOnChanged() {
     328      ParameterizeStochasticOperator(SolutionCreator);
    329329      ParameterizeSolutionsCreator();
    330       base.Problem_SolutionCreatorChanged(sender, e);
     330      base.SolutionCreatorOnChanged();
    331331    }
    332332    protected override void Problem_EvaluatorChanged(object sender, EventArgs e) {
     
    398398    private void ParameterizeSolutionsCreator() {
    399399      SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
    400       SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;
     400      SolutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name;
    401401    }
    402402    private void ParameterizeRAPGAMainLoop() {
Note: See TracChangeset for help on using the changeset viewer.