Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/12 09:56:36 (13 years ago)
Author:
abeham
Message:

#1691:

  • Set default operators for TSP to be OrderCrossover2, InversionManipulator, and StochasticInversionMultiMoveGenerator
  • Set default operators for QAP to be PartiallyMatchedCrossover, Swap2Manipulator, and ExhaustiveSwap2MoveGenerator
  • Added a TypeEqualityComparer to HeuristicLab.Common
File:
1 edited

Legend:

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

    r7558 r7626  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Drawing;
    2425using System.Linq;
     
    253254
    254255    private void InitializeOperators() {
    255       Operators.AddRange(ApplicationManager.Manager.GetInstances<IPermutationOperator>());
     256      var defaultOperators = new HashSet<IPermutationOperator>(new IPermutationOperator[] {
     257        new PartiallyMatchedCrossover(),
     258        new Swap2Manipulator(),
     259        new ExhaustiveSwap2MoveGenerator()
     260      });
     261      Operators.AddRange(defaultOperators);
     262      Operators.AddRange(ApplicationManager.Manager.GetInstances<IPermutationOperator>().Except(defaultOperators, new TypeEqualityComparer<IPermutationOperator>()));
    256263      Operators.RemoveAll(x => x is ISingleObjectiveMoveEvaluator);
    257264      Operators.AddRange(ApplicationManager.Manager.GetInstances<IQAPMoveEvaluator>());
Note: See TracChangeset for help on using the changeset viewer.