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.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs

    r7518 r7999  
    212212      ParameterizeStochasticOperator(Problem.SolutionCreator);
    213213      ParameterizeStochasticOperator(Problem.Evaluator);
    214       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     214      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    215215      ParameterizeSolutionsCreator();
    216216      ParameterizeMainLoop();
     
    237237      UpdateShakingOperators();
    238238      UpdateAnalyzers();
    239       foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op);
     239      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    240240      ParameterizeIterationBasedOperators();
    241241      base.Problem_OperatorsChanged(sender, e);
Note: See TracChangeset for help on using the changeset viewer.