Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 16:32:31 (14 years ago)
Author:
mkommend
Message:

adapted MultiCrossover and MultiManipulators for all encodings to be filled and check in ctors (ticket #979)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs

    r3659 r3674  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Encodings.PermutationEncoding {
     
    5657      Parameters.Add(new LookupParameter<Permutation>("Child", "The child permutation resulting from the crossover."));
    5758      ChildParameter.ActualName = "Permutation";
     59
     60      foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IPermutationCrossover))) {
     61        if (!typeof(MultiOperator<IPermutationCrossover>).IsAssignableFrom(type))
     62          Operators.Add((IPermutationCrossover)Activator.CreateInstance(type), true);
     63      }
    5864    }
    5965
Note: See TracChangeset for help on using the changeset viewer.