- Timestamp:
- 06/22/12 11:11:38 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 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.TabuSearch/3.3/TabuSearch.cs
r7516 r8086 230 230 ParameterizeStochasticOperator(Problem.SolutionCreator); 231 231 ParameterizeStochasticOperator(Problem.Evaluator); 232 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);232 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 233 233 foreach (ISingleObjectiveMoveEvaluator op in Problem.Operators.OfType<ISingleObjectiveMoveEvaluator>()) { 234 234 op.MoveQualityParameter.ActualNameChanged += new EventHandler(MoveEvaluator_MoveQualityParameter_ActualNameChanged); … … 270 270 } 271 271 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 272 foreach (IOperator op in Problem.Operators ) ParameterizeStochasticOperator(op);272 foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op); 273 273 // This may seem pointless, but some operators already have the eventhandler registered, others don't 274 274 // FIXME: Is there another way to solve this problem?
Note: See TracChangeset
for help on using the changeset viewer.