- Timestamp:
- 07/01/14 10:53:46 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:mergeinfo changed
/trunk/sources merged: 11008,11012-11014,11019,11024-11027,11031,11034-11035,11048,11050-11052,11056-11058,11060
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Problems.ParameterOptimization/3.3/BestSolutionAnalyzer.cs
r10937 r11064 108 108 } 109 109 110 if (max && bestQuality > BestQualityParameter.ActualValue.Value 111 || !max && bestQuality < BestQualityParameter.ActualValue.Value) { 112 BestQualityParameter.ActualValue.Value = bestQuality; 113 if (results.ContainsKey(BestSolutionResultName)) { 114 var bestSolution = (DoubleArray)results[BestSolutionResultName].Value; 115 bestSolution.ElementNames = ParameterNamesParameter.ActualValue; 116 for (int i = 0; i < bestParameterVector.Length; i++) 117 bestSolution[i] = bestParameterVector[i]; 118 } 119 } else if (!results.ContainsKey(BestSolutionResultName)) { 110 if (!results.ContainsKey(BestSolutionResultName)) { 120 111 results.Add(new Result(BestSolutionResultName, new DoubleArray(bestParameterVector.ToArray()))); 121 112 var bestSolution = (DoubleArray)results[BestSolutionResultName].Value; 122 113 bestSolution.ElementNames = ParameterNamesParameter.ActualValue; 114 BestQualityParameter.ActualValue.Value = bestQuality; 115 } else if (max && bestQuality > BestQualityParameter.ActualValue.Value 116 || !max && bestQuality < BestQualityParameter.ActualValue.Value) { 117 var bestSolution = (DoubleArray)results[BestSolutionResultName].Value; 118 bestSolution.ElementNames = ParameterNamesParameter.ActualValue; 119 for (int i = 0; i < bestParameterVector.Length; i++) 120 bestSolution[i] = bestParameterVector[i]; 121 BestQualityParameter.ActualValue.Value = bestQuality; 123 122 } 123 124 124 //update best known quality 125 125 if (bestKnownQuality == null || max && bestQuality > bestKnownQuality.Value
Note: See TracChangeset
for help on using the changeset viewer.