Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/31/10 14:24:12 (14 years ago)
Author:
svonolfe
Message:

Sorted Operators alphabetically, disabled LS operators by default (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/Manipulators/MultiVRPSolutionManipulator.cs

    r4346 r4347  
    9494      Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer."));
    9595
    96       foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPManipulator))) {
    97         if (!typeof(MultiOperator<IVRPManipulator>).IsAssignableFrom(type))
    98           Operators.Add((IVRPManipulator)Activator.CreateInstance(type), true);
     96      foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IVRPManipulator)).OrderBy(op => op.Name)) {
     97        if (!typeof(MultiOperator<IVRPManipulator>).IsAssignableFrom(type)) {
     98          IVRPManipulator op = (IVRPManipulator)Activator.CreateInstance(type);
     99          bool operatorChecked = true;
     100          if(op is HeuristicLab.Problems.VehicleRouting.Encodings.Potvin.PotvinLocalSearchManipulator ||
     101            op is HeuristicLab.Problems.VehicleRouting.Encodings.Prins.PrinsLSManipulator)
     102            operatorChecked = false;
     103          Operators.Add(op, operatorChecked);
     104        }
    99105      }
    100106    }
Note: See TracChangeset for help on using the changeset viewer.