Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/24/10 21:15:04 (15 years ago)
Author:
abeham
Message:

Added 3-opt move and evaluators for the TSP
Added 2-opt move evaluators for TSP Geo and Euclidean
#889

File:
1 edited

Legend:

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

    r3187 r3209  
    252252    private void InitializeOperators() {
    253253      operators = new List<IOperator>();
    254       if (ApplicationManager.Manager != null) {
    255         foreach (IRealVectorOperator op in ApplicationManager.Manager.GetInstances<IRealVectorOperator>())
    256           operators.Add(op);
    257         UpdateMoveEvaluators();
    258         ParameterizeOperators();
    259       }
     254      if (ApplicationManager.Manager != null) operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>());
     255      UpdateMoveEvaluators();
     256      ParameterizeOperators();
    260257      InitializeMoveGenerators();
    261258    }
Note: See TracChangeset for help on using the changeset viewer.