- Timestamp:
- 06/21/12 18:02:33 (13 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r7509 r8085 227 227 ParameterizeStochasticOperator(Problem.SolutionCreator); 228 228 ParameterizeStochasticOperator(Problem.Evaluator); 229 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);229 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 230 230 ParameterizeSolutionsCreator(); 231 231 ParameterizeGeneticAlgorithmMainLoop(); -
branches/GP-MoveOperators/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r7524 r8085 326 326 ParameterizeStochasticOperator(Problem.SolutionCreator); 327 327 ParameterizeStochasticOperator(Problem.Evaluator); 328 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);328 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 329 329 ParameterizeSolutionsCreator(); 330 330 ParameterizeMainLoop(); … … 354 354 } 355 355 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 356 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);356 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 357 357 ParameterizeIterationBasedOperators(); 358 358 UpdateCrossovers();
Note: See TracChangeset
for help on using the changeset viewer.