Changeset 9031 for trunk/sources/HeuristicLab.Optimization.Operators
- Timestamp:
- 12/12/12 09:34:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Operators/3.3/SingleObjectiveSolutionSimilarityCalculator.cs
r9030 r9031 53 53 double q1 = ((DoubleValue)x.Variables[QualityVariableName].Value).Value; 54 54 double q2 = ((DoubleValue)y.Variables[QualityVariableName].Value).Value; 55 return q1.IsAlmost(q2) ||CalculateSolutionSimilarity(x, y).IsAlmost(1.0);55 return q1.IsAlmost(q2) && CalculateSolutionSimilarity(x, y).IsAlmost(1.0); 56 56 } 57 57
Note: See TracChangeset
for help on using the changeset viewer.