- Timestamp:
- 12/05/16 12:27:19 (8 years ago)
- Location:
- branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3/SimilarityCalculators/TSPSimilarityCalculator.cs
r14185 r14453 25 25 using HeuristicLab.Encodings.PermutationEncoding; 26 26 using HeuristicLab.Optimization.Operators; 27 using HeuristicLab.PluginInfrastructure; 27 28 28 29 namespace HeuristicLab.Problems.TravelingSalesman { … … 34 35 /// </remarks> 35 36 [Item("TSPSimilarityCalculator", "An operator that performs similarity calculation between two traveling salesman solutions. The operator calculates the similarity based on the number of edges the two solutions have in common.")] 36 public sealed class TSPSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 37 [Obsolete("Please use the HammingSimilarityCalculator in the Encodings.PermutationEncoding plugin.")] 38 [NonDiscoverableType] 39 internal sealed class TSPSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 37 40 protected override bool IsCommutative { get { return true; } } 38 41 -
branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r14185 r14453 233 233 Operators.Add(new TSPPathRelinker()); 234 234 Operators.Add(new TSPSimultaneousPathRelinker()); 235 Operators.Add(new TSPSimilarityCalculator());235 Operators.Add(new HammingSimilarityCalculator()); 236 236 Operators.Add(new QualitySimilarityCalculator()); 237 Operators.Add(new NoSimilarityCalculator());238 237 239 238 Operators.Add(new BestTSPSolutionAnalyzer());
Note: See TracChangeset
for help on using the changeset viewer.