Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/12 09:32:01 (13 years ago)
Author:
ascheibe
Message:

#1696 adapted FLA to changes of r7999

Location:
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms/LocalAnalysis.cs

    r7128 r8002  
    150150      ParameterizeStochasticOperator(Problem.SolutionCreator);
    151151      ParameterizeStochasticOperator(Problem.Evaluator);
    152       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     152      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    153153      ParameterizeSolutionsCreator();
    154154      ParameterizeMainLoop();
     
    177177    }
    178178    protected override void Problem_OperatorsChanged(object sender, EventArgs e) {
    179       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     179      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    180180      UpdateMutators();
    181181      UpdateSelectors();
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms/RepeatedLocalAnalysis.cs

    r7128 r8002  
    185185      ParameterizeStochasticOperator(Problem.SolutionCreator);
    186186      ParameterizeStochasticOperator(Problem.Evaluator);
    187       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     187      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    188188      ParameterizeSolutionsCreator();
    189189      ParameterizeMainLoop();
     
    212212    }
    213213    protected override void Problem_OperatorsChanged(object sender, EventArgs e) {
    214       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     214      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    215215      UpdateMutators();
    216216      UpdateSelectors();
Note: See TracChangeset for help on using the changeset viewer.