Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 14:22:32 (13 years ago)
Author:
jkarder
Message:

#1331:

  • added path relinking and problem specific operators (KnapsackPathRelinker, TravelingSalesmanPathRelinker) for it
  • adjusted event handling
  • minor code improvements
Location:
branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack/BinaryVectorDiversityCalculator.cs

    r7744 r7756  
    3131  [Item("BinaryVectorDiversityCalculator", "An operator that performs diversity calculation between bool-valued vectors.")]
    3232  [StorableClass]
    33   public sealed class BinaryVectorDiversityCalculator : HeuristicLab.Algorithms.ScatterSearch.DiversityCalculator {
     33  public sealed class BinaryVectorDiversityCalculator : DiversityCalculator {
    3434    [StorableConstructor]
    3535    private BinaryVectorDiversityCalculator(bool deserializing) : base(deserializing) { }
  • branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack/KnapsackImprovementOperator.cs

    r7744 r7756  
    3939  [StorableClass]
    4040  public sealed class KnapsackImprovementOperator : SingleSuccessorOperator, ILocalImprovementOperator, IScatterSearchTargetProcessor {
    41 
    4241    #region Problem properties
    4342    public Type ProblemType {
  • branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack/NBinaryVectorCrossover.cs

    r7744 r7756  
    6464      #region Create parameters
    6565      Parameters.Add(new ScopeParameter("CurrentScope"));
    66       Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators."));
    67       Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("Parents", "The parent vectors which should be crossed."));
     66      Parameters.Add(new LookupParameter<IRandom>("Random"));
     67      Parameters.Add(new ScopeTreeLookupParameter<BinaryVector>("Parents"));
    6868      #endregion
    6969      ParentsParameter.ActualName = "BinaryVector";
  • branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/Knapsack/NChildCrossover.cs

    r7744 r7756  
    7878
    7979    protected override ItemArray<BinaryVector> Cross(IRandom random, ItemArray<BinaryVector> parents) {
    80       if (parents.Length != 2) throw new ArgumentException("ERROR in NChildCrossover: The number of parents is not equal to 2");
     80      if (parents.Length != 2) throw new ArgumentException("NChildCrossover: The number of parents is not equal to 2.");
    8181
    8282      if (NParameter.ActualValue == null) throw new InvalidOperationException("NChildCrossover: Parameter " + NParameter.ActualName + " could not be found.");
Note: See TracChangeset for help on using the changeset viewer.