Changeset 8351 for trunk/sources
- Timestamp:
- 07/27/12 19:09:13 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r8121 r8351 255 255 } 256 256 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 257 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);257 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 258 258 ParameterizeIterationBasedOperators(); 259 259 UpdateCrossovers(); -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs
r8121 r8351 236 236 } 237 237 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 238 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);238 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 239 239 // This may seem pointless, but some operators already have the eventhandler registered, others don't 240 240 // FIXME: Is there another way to solve this problem?
Note: See TracChangeset
for help on using the changeset viewer.