Changeset 10795
- Timestamp:
- 04/29/14 09:06:36 (11 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 10794
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TestFunctions merged: 10794
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/BestSingleObjectiveTestFunctionSolutionAnalyzer.cs
r9456 r10795 138 138 if (solution == null) { 139 139 ResultCollection results = ResultsParameter.ActualValue; 140 solution = new SingleObjectiveTestFunctionSolution(realVectors[i], qualities[i], EvaluatorParameter.ActualValue); 141 solution.Population = realVectors[i].Length == 2 ? realVectors : null; 140 solution = new SingleObjectiveTestFunctionSolution((RealVector)realVectors[i].Clone(), 141 (DoubleValue)qualities[i].Clone(), 142 EvaluatorParameter.ActualValue); 143 solution.Population = realVectors[i].Length == 2 144 ? new ItemArray<RealVector>(realVectors.Select(x => x.Clone()).Cast<RealVector>()) 145 : null; 142 146 solution.BestKnownRealVector = BestKnownSolutionParameter.ActualValue; 143 147 solution.Bounds = BoundsParameter.ActualValue; … … 147 151 if (max && qualities[i].Value > solution.BestQuality.Value 148 152 || !max && qualities[i].Value < solution.BestQuality.Value) { 149 solution.BestRealVector = realVectors[i];150 solution.BestQuality = qualities[i];153 solution.BestRealVector = (RealVector)realVectors[i].Clone(); 154 solution.BestQuality = (DoubleValue)qualities[i].Clone(); 151 155 } 152 solution.Population = realVectors[i].Length == 2 ? realVectors : null; 156 solution.Population = realVectors[i].Length == 2 157 ? new ItemArray<RealVector>(realVectors.Select(x => x.Clone()).Cast<RealVector>()) 158 : null; 153 159 } 154 160
Note: See TracChangeset
for help on using the changeset viewer.