Changeset 4601 for branches/NSGA2
- Timestamp:
- 10/16/10 16:24:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NSGA2/HeuristicLab.Algorithms.NSGA2/3.3/BasicMultiObjectiveQualityAnalyzer.cs
r4086 r4601 55 55 ItemArray<DoubleArray> qualities = QualitiesParameter.ActualValue; 56 56 ResultCollection results = ResultsParameter.ActualValue; 57 58 bool populationLevel = RankParameter.Depth == 1; 57 59 58 60 int objectives = qualities[0].Length; 59 61 int frontSize = ranks.Count(x => x.Value == 0); 62 ItemArray<IScope> paretoArchive = null; 63 if (populationLevel) paretoArchive = new ItemArray<IScope>(frontSize); 60 64 61 65 DoubleMatrix front = new DoubleMatrix(frontSize, objectives); … … 65 69 for (int k = 0; k < objectives; k++) 66 70 front[counter, k] = qualities[i][k]; 71 if (populationLevel) { 72 paretoArchive[counter] = (IScope)ExecutionContext.Scope.SubScopes[i].Clone(); 73 } 67 74 counter++; 68 75 } … … 73 80 else results.Add(new Result("Pareto Front", front)); 74 81 82 if (populationLevel) { 83 if (results.ContainsKey("Pareto Archive")) 84 results["Pareto Archive"].Value = paretoArchive; 85 else results.Add(new Result("Pareto Archive", paretoArchive)); 86 } 75 87 return base.Apply(); 76 88 }
Note: See TracChangeset
for help on using the changeset viewer.