Changeset 8086 for branches/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3
- Timestamp:
- 06/22/12 11:11:38 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- 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/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r7511 r8086 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/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r7609 r8086 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/ScatterSearch (trunk integration)/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r7259 r8086 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.