Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/16 09:31:59 (8 years ago)
Author:
abeham
Message:

#2706:

  • Encodings.BinaryVector:
    • Added HammingSimilarityCalculator
  • Problems.Knapsack:
    • Made KnapsackSimilarityCalculator NonDiscoverable and Obsolete
    • Added HammingSimilarityCalculator to KnapsackProblem and removed NoSimilarityCalculator
  • Problems.Binary:
    • Added HammingSimilarityCalculator and QualitySimilarityCalculator to BinaryProblem
    • Added PopulationSimilarityAnalyzer to BinaryProblem
Location:
trunk/sources/HeuristicLab.Problems.Knapsack/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs

    r14185 r14412  
    251251      Operators.Add(new KnapsackPathRelinker());
    252252      Operators.Add(new KnapsackSimultaneousPathRelinker());
    253       Operators.Add(new KnapsackSimilarityCalculator());
     253      Operators.Add(new HammingSimilarityCalculator());
    254254      Operators.Add(new QualitySimilarityCalculator());
    255       Operators.Add(new NoSimilarityCalculator());
    256255
    257256      Operators.Add(new BestKnapsackSolutionAnalyzer());
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/SimilarityCalculators/KnapsackSimilarityCalculator.cs

    r14185 r14412  
    2525using HeuristicLab.Encodings.BinaryVectorEncoding;
    2626using HeuristicLab.Optimization.Operators;
     27using HeuristicLab.PluginInfrastructure;
    2728
    2829namespace HeuristicLab.Problems.Knapsack {
     
    3435  /// </remarks>
    3536  [Item("KnapsackSimilarityCalculator", "An operator that performs similarity calculation between two knapsack solutions. The operator calculates the similarity based on the number of elements the two solutions have in common.")]
    36   public sealed class KnapsackSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator {
     37  [NonDiscoverableType]
     38  [Obsolete("Please use the HammingSimilarityCalculator in the HeuristicLab.Encodings.BinaryVector plugin.")]
     39  internal sealed class KnapsackSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator {
    3740    protected override bool IsCommutative { get { return true; } }
    3841
Note: See TracChangeset for help on using the changeset viewer.