- Timestamp:
- 06/21/12 18:02:33 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 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.TabuSearch/3.3/TabuSearch.cs
r7516 r8085 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.