Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/15 23:24:01 (8 years ago)
Author:
abeham
Message:

#2521:

  • Adapted single-objective test function problem to new problem infrastructure
  • Added additional interfaces to RealVectorEncoding
  • Fixed IParticleUpdater interface (must implement IStochasticOperator if it contains a Random parameter)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions.Views/3.3/SingleObjectiveTestFunctionSolutionView.cs

    r12012 r13403  
    146146          pictureBox.Refresh();
    147147          DoubleMatrix bounds = Content.Bounds;
    148           if (bounds == null) bounds = Content.Evaluator.Bounds;
     148          if (bounds == null) bounds = Content.TestFunction.Bounds;
    149149          double xMin = bounds[0, 0], xMax = bounds[0, 1], yMin = bounds[1 % bounds.Rows, 0], yMax = bounds[1 % bounds.Rows, 1];
    150150          double xStep = backgroundImage.Width / (xMax - xMin), yStep = backgroundImage.Height / (yMax - yMin);
     
    174174      backgroundImage = new Bitmap(pictureBox.Width, pictureBox.Height);
    175175      DoubleMatrix bounds = Content.Bounds;
    176       if (bounds == null) bounds = Content.Evaluator.Bounds;
     176      if (bounds == null) bounds = Content.TestFunction.Bounds;
    177177      double xMin = bounds[0, 0], xMax = bounds[0, 1], yMin = bounds[1 % bounds.Rows, 0], yMax = bounds[1 % bounds.Rows, 1];
    178178      double xStep = (xMax - xMin) / backgroundImage.Width, yStep = (yMax - yMin) / backgroundImage.Height;
     
    181181      for (int i = 0; i < backgroundImage.Width; i++)
    182182        for (int j = 0; j < backgroundImage.Height; j++) {
    183           points[j, i] = Content.Evaluator.Evaluate2D(xMin + i * xStep, yMin + j * yStep);
     183          points[j, i] = Content.TestFunction.Evaluate2D(xMin + i * xStep, yMin + j * yStep);
    184184          if (points[j, i] < minPoint) minPoint = points[j, i];
    185185          if (points[j, i] > maxPoint) maxPoint = points[j, i];
Note: See TracChangeset for help on using the changeset viewer.