Changeset 12113
- Timestamp:
- 03/04/15 09:29:58 (10 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3/RAPGA.cs
r12106 r12113 510 510 SimilarityCalculatorParameter.ValidValues.Add(similarityCalculator); 511 511 512 if (!SimilarityCalculatorParameter.ValidValues.Any()) { 513 SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { QualityVariableName = Problem.Evaluator.QualityParameter.ActualName }); 512 if (!SimilarityCalculatorParameter.ValidValues.OfType<QualitySimilarityCalculator>().Any()) 513 SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { 514 QualityVariableName = Problem.Evaluator.QualityParameter.ActualName 515 }); 516 if (!SimilarityCalculatorParameter.ValidValues.OfType<NoSimilarityCalculator>().Any()) 514 517 SimilarityCalculatorParameter.ValidValues.Add(new NoSimilarityCalculator()); 515 }516 518 517 519 if (oldSimilarityCalculator != null) { -
trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs
r12106 r12113 410 410 SimilarityCalculatorParameter.ValidValues.Add(similarityCalculator); 411 411 412 if (!SimilarityCalculatorParameter.ValidValues.Any()) { 413 SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { QualityVariableName = Problem.Evaluator.QualityParameter.ActualName }); 412 if (!SimilarityCalculatorParameter.ValidValues.OfType<QualitySimilarityCalculator>().Any()) 413 SimilarityCalculatorParameter.ValidValues.Add(new QualitySimilarityCalculator { 414 QualityVariableName = Problem.Evaluator.QualityParameter.ActualName 415 }); 416 if (!SimilarityCalculatorParameter.ValidValues.OfType<NoSimilarityCalculator>().Any()) 414 417 SimilarityCalculatorParameter.ValidValues.Add(new NoSimilarityCalculator()); 415 }416 418 417 419 if (oldSimilarityCalculator != null) {
Note: See TracChangeset
for help on using the changeset viewer.