Changeset 3303 for trunk/sources/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 04/12/10 01:29:35 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3221 r3303 252 252 private void InitializeOperators() { 253 253 operators = new List<IOperator>(); 254 if (ApplicationManager.Manager != null)operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>());254 operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>()); 255 255 UpdateMoveEvaluators(); 256 256 ParameterizeOperators(); … … 265 265 } 266 266 private void UpdateMoveEvaluators() { 267 if (ApplicationManager.Manager != null) { 268 foreach (ISingleObjectiveTestFunctionMoveEvaluator op in Operators.OfType<ISingleObjectiveTestFunctionMoveEvaluator>().ToList()) 269 operators.Remove(op); 270 foreach (ISingleObjectiveTestFunctionMoveEvaluator op in ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunctionMoveEvaluator>()) 271 if (op.EvaluatorType == Evaluator.GetType()) { 272 operators.Add(op); 273 } 274 ParameterizeOperators(); 275 OnOperatorsChanged(); 276 } 267 foreach (ISingleObjectiveTestFunctionMoveEvaluator op in Operators.OfType<ISingleObjectiveTestFunctionMoveEvaluator>().ToList()) 268 operators.Remove(op); 269 foreach (ISingleObjectiveTestFunctionMoveEvaluator op in ApplicationManager.Manager.GetInstances<ISingleObjectiveTestFunctionMoveEvaluator>()) 270 if (op.EvaluatorType == Evaluator.GetType()) { 271 operators.Add(op); 272 } 273 ParameterizeOperators(); 274 OnOperatorsChanged(); 277 275 } 278 276 private void ParameterizeSolutionCreator() {
Note: See TracChangeset
for help on using the changeset viewer.