- Timestamp:
- 07/12/17 21:02:01 (7 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14412,14475-14476,14659-14660,14663,14912,15050,15067,15069,15079,15162,15166,15172-15173
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.QuadraticAssignment
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.QuadraticAssignment merged: 15069,15166
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.QuadraticAssignment/3.3/Analyzers/QAPPopulationDiversityAnalyzer.cs
r14186 r15217 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Analysis; 23 24 using HeuristicLab.Common; … … 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.PluginInfrastructure; 29 31 30 32 namespace HeuristicLab.Problems.QuadraticAssignment { … … 34 36 [Item("QAPPopulationDiversityAnalyzer", "An operator for analyzing the diversity of solutions of Quadratic Assignment Problems regarding their structural identity (number of equal facilty->location assignments).")] 35 37 [StorableClass] 38 [Obsolete("Use the PopulationSimilarityAnalyzer in the HeuristicLab.Analysis plugin instead.")] 39 [NonDiscoverableType] 36 40 #pragma warning disable 0612 37 publicsealed class QAPPopulationDiversityAnalyzer : PopulationDiversityAnalyzer<Permutation> {41 internal sealed class QAPPopulationDiversityAnalyzer : PopulationDiversityAnalyzer<Permutation> { 38 42 #pragma warning restore 0612 39 43 public IValueParameter<BoolValue> UsePhenotypeSimilarityParameter { … … 85 89 if (phenotypeSimilarity) 86 90 similarities[i, j] = QAPPermutationProximityCalculator.CalculatePhenotypeSimilarity(solutions[i], solutions[j], weights, distances); 87 else similarities[i, j] = QAPPermutationProximityCalculator.CalculateGenotypeSimilarity(solutions[i], solutions[j]);91 else similarities[i, j] = HammingSimilarityCalculator.CalculateSimilarity(solutions[i], solutions[j]); 88 92 similarities[j, i] = similarities[i, j]; 89 93 }
Note: See TracChangeset
for help on using the changeset viewer.