Changeset 14030 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Analyzers/ScatterPlotAnalyzer.cs
- Timestamp:
- 07/08/16 15:30:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Analyzers/ScatterPlotAnalyzer.cs
r13725 r14030 42 42 } 43 43 44 45 44 public ScatterPlotAnalyzer() { } 46 47 48 49 50 51 45 52 46 public override void Analyze(Individual[] individuals, double[][] qualities, ResultCollection results) { … … 55 49 double[][] opf = new double[0][]; 56 50 var optmialFront = TestFunctionParameter.ActualValue.OptimalParetoFront(objectives); 57 if (optmialFront != null) {58 opf = optmialFront.Select(s => s.ToArray()).ToArray();59 }60 51 61 62 var qualityClones = qualities.Select(s => s.ToArray()).ToArray(); //fast Clone of jagged arrays52 if (optmialFront != null) opf = optmialFront.Select(s => s.ToArray()).ToArray(); 53 var qualityClones = qualities.Select(s => s.ToArray()).ToArray(); 63 54 var solutionClones = individuals.Select(s => s.RealVector().ToArray()).ToArray(); 64 55 65 56 if (!results.ContainsKey("Scatterplot")) { 66 57 results.Add(new Result("Scatterplot", typeof(IMOFrontModel))); 67 68 } else {69 //((MOSolution)results["Scatterplot"].Value).Qualities = qualityClones;70 //((MOSolution)results["Scatterplot"].Value).Solutions = solutionClones;71 72 //These two only when the TestFunction changed??73 //((MOSolution)results["Scatterplot"].Value).ParetoFront = opf;74 //((MOSolution)results["Scatterplot"].Value).Objectives = objectives;75 58 } 76 59
Note: See TracChangeset
for help on using the changeset viewer.