Changeset 12109 for branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Algorithms.ScatterSearch
- Timestamp:
- 03/03/15 14:00:38 (10 years ago)
- Location:
- branches/HeuristicLab.DatasetRefactor/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DatasetRefactor/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12106-12108
- Property svn:mergeinfo changed
-
branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs
r12105 r12109 163 163 #region Backwards compatible code, remove with 3.4 164 164 if (Parameters.ContainsKey("SimilarityCalculator")) { 165 #pragma warning disable 0618 165 166 var oldParameter = (IConstrainedValueParameter<ISingleObjectiveSolutionSimilarityCalculator>)Parameters["SimilarityCalculator"]; 167 #pragma warning restore 0618 166 168 Parameters.Remove(oldParameter); 167 169 var newParameter = new ConstrainedValueParameter<ISolutionSimilarityCalculator>("SimilarityCalculator", "The operator used to calculate the similarity between two solutions.", new ItemSet<ISolutionSimilarityCalculator>(oldParameter.ValidValues)); … … 408 410 SimilarityCalculatorParameter.ValidValues.Add(similarityCalculator); 409 411 412 if (!SimilarityCalculatorParameter.ValidValues.Any()) { 413 SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { QualityVariableName = Problem.Evaluator.QualityParameter.ActualName }); 414 SimilarityCalculatorParameter.ValidValues.Add(new NoSimilarityCalculator()); 415 } 416 410 417 if (oldSimilarityCalculator != null) { 411 418 ISolutionSimilarityCalculator similarityCalculator = SimilarityCalculatorParameter.ValidValues.FirstOrDefault(x => x.GetType() == oldSimilarityCalculator.GetType());
Note: See TracChangeset
for help on using the changeset viewer.