Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/14/17 14:01:11 (7 years ago)
Author:
pfleck
Message:

#2592 merged to stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/Analyzers/ScatterPlotAnalyzer.cs

    r14111 r15244  
    3737    }
    3838
    39     public IResultParameter<ScatterPlotContent> ScatterPlotResultParameter {
    40       get { return (IResultParameter<ScatterPlotContent>)Parameters["Scatterplot"]; }
     39    public IResultParameter<ParetoFrontScatterPlot> ScatterPlotResultParameter {
     40      get { return (IResultParameter<ParetoFrontScatterPlot>)Parameters["Scatterplot"]; }
    4141    }
    4242
     
    5151    public ScatterPlotAnalyzer() {
    5252      Parameters.Add(new ScopeTreeLookupParameter<RealVector>("Individuals", "The individual solutions to the problem"));
    53       Parameters.Add(new ResultParameter<ScatterPlotContent>("Scatterplot", "The scatterplot for the current and optimal (if known front)"));
     53      Parameters.Add(new ResultParameter<ParetoFrontScatterPlot>("Scatterplot", "The scatterplot for the current and optimal (if known front)"));
    5454
    5555    }
     
    5757    public override IOperation Apply() {
    5858      var qualities = QualitiesParameter.ActualValue;
     59      var individuals = IndividualsParameter.ActualValue;
    5960      var testFunction = TestFunctionParameter.ActualValue;
    6061      int objectives = qualities[0].Length;
    61       var individuals = IndividualsParameter.ActualValue;
     62      int problemSize = individuals[0].Length;
    6263
    6364      double[][] optimalFront = new double[0][];
     
    6869      var solutionClones = individuals.Select(s => s.ToArray()).ToArray();
    6970
    70       ScatterPlotResultParameter.ActualValue = new ScatterPlotContent(qualityClones, solutionClones, optimalFront, objectives);
     71      ScatterPlotResultParameter.ActualValue = new ParetoFrontScatterPlot(qualityClones, solutionClones, optimalFront, objectives, problemSize);
    7172
    7273      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.