Changeset 8085 for branches/GP-MoveOperators/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm
- Timestamp:
- 06/21/12 18:02:33 (13 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 4 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.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r7511 r8085 408 408 ParameterizeStochasticOperator(Problem.SolutionCreator); 409 409 ParameterizeStochasticOperator(Problem.Evaluator); 410 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);410 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 411 411 ParameterizeSolutionsCreator(); 412 412 ParameterizeMainLoop(); … … 436 436 } 437 437 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 438 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);438 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 439 439 ParameterizeIterationBasedOperators(); 440 440 UpdateCrossovers(); -
branches/GP-MoveOperators/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r7609 r8085 316 316 ParameterizeStochasticOperator(Problem.SolutionCreator); 317 317 ParameterizeStochasticOperator(Problem.Evaluator); 318 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);318 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 319 319 ParameterizeSolutionsCreator(); 320 320 ParameterizMainLoop(); … … 344 344 } 345 345 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 346 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);346 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 347 347 ParameterizeIterationBasedOperators(); 348 348 UpdateCrossovers(); -
branches/GP-MoveOperators/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r7259 r8085 367 367 ParameterizeStochasticOperator(Problem.SolutionCreator); 368 368 ParameterizeStochasticOperator(Problem.Evaluator); 369 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);369 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 370 370 ParameterizeSolutionsCreator(); 371 371 ParameterizeMainLoop(); … … 395 395 } 396 396 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 397 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);397 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 398 398 ParameterizeIterationBasedOperators(); 399 399 UpdateCrossovers();
Note: See TracChangeset
for help on using the changeset viewer.