- Timestamp:
- 06/14/12 09:32:01 (12 years ago)
- Location:
- branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms/LocalAnalysis.cs
r7128 r8002 150 150 ParameterizeStochasticOperator(Problem.SolutionCreator); 151 151 ParameterizeStochasticOperator(Problem.Evaluator); 152 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);152 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 153 153 ParameterizeSolutionsCreator(); 154 154 ParameterizeMainLoop(); … … 177 177 } 178 178 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); 180 180 UpdateMutators(); 181 181 UpdateSelectors(); -
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Algorithms/RepeatedLocalAnalysis.cs
r7128 r8002 185 185 ParameterizeStochasticOperator(Problem.SolutionCreator); 186 186 ParameterizeStochasticOperator(Problem.Evaluator); 187 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);187 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 188 188 ParameterizeSolutionsCreator(); 189 189 ParameterizeMainLoop(); … … 212 212 } 213 213 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); 215 215 UpdateMutators(); 216 216 UpdateSelectors();
Note: See TracChangeset
for help on using the changeset viewer.