Free cookie consent management tool by TermsFeed Policy Generator

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

Updated selection of MoveEvaluators for the Knapsack problem (#917)

File:
1 edited

Legend:

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

    r3125 r3127  
    299299      operators = new List<IBinaryVectorOperator>();
    300300      if (ApplicationManager.Manager != null) {
    301         operators.AddRange(ApplicationManager.Manager.GetInstances<IBinaryVectorOperator>());
     301        foreach (IBinaryVectorOperator op in ApplicationManager.Manager.GetInstances<IBinaryVectorOperator>()) {
     302          if (!(op is ISingleObjectiveMoveEvaluator) || (op is IKnapsackMoveEvaluator)) {
     303            operators.Add(op);
     304          }
     305        }
    302306        ParameterizeOperators();
    303307      }
Note: See TracChangeset for help on using the changeset viewer.