Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/13/12 17:14:53 (12 years ago)
Author:
ascheibe
Message:

#1864

  • switched IOperators collection to IItems
  • adapted algorithms and problems
  • added AfterDeserialization hooks for problem, external evaluation problem and user-defined problem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs

    r7511 r7999  
    244244      ParameterizeStochasticOperator(Problem.SolutionCreator);
    245245      ParameterizeStochasticOperator(Problem.Evaluator);
    246       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     246      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    247247      ParameterizeSolutionsCreator();
    248248      ParameterizeRankAndCrowdingSorter();
     
    273273    }
    274274    protected override void Problem_OperatorsChanged(object sender, EventArgs e) {
    275       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     275      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    276276      ParameterizeIterationBasedOperators();
    277277      UpdateCrossovers();
Note: See TracChangeset for help on using the changeset viewer.