Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3126


Ignore:
Timestamp:
03/19/10 16:40:12 (15 years ago)
Author:
svonolfe
Message:

Updated selection of MoveEvaluators for the OneMax problem (#916)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.OneMax/3.3/Onemax.cs

    r3121 r3126  
    228228      operators = new List<IBinaryVectorOperator>();
    229229      if (ApplicationManager.Manager != null) {
    230         operators.AddRange(ApplicationManager.Manager.GetInstances<IBinaryVectorOperator>());
     230        foreach(IBinaryVectorOperator op in ApplicationManager.Manager.GetInstances<IBinaryVectorOperator>()) {
     231          if (!(op is ISingleObjectiveMoveEvaluator) || (op is IOneMaxMoveEvaluator)) {
     232            operators.Add(op);
     233          }
     234        }
    231235        ParameterizeOperators();
    232236      }
Note: See TracChangeset for help on using the changeset viewer.