Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/13 17:24:46 (11 years ago)
Author:
ascheibe
Message:

#1886

  • removed old caching code
  • adapted convex hull view and some other minor improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.cs

    r10007 r10026  
    2222using System;
    2323using System.Linq;
    24 using System.Windows.Forms;
     24using HeuristicLab.Analysis.SolutionCaching.PermutationEncoding;
    2525using HeuristicLab.Core.Views;
    2626using HeuristicLab.Encodings.PermutationEncoding;
    2727using HeuristicLab.MainForm;
    28 using HeuristicLab.MainForm.WindowsForms;
    2928
    3029namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views {
    3130  [View("ConvexHull View")]
    32   [Content(typeof(PermutationSolutionDictionary), false)]
     31  [Content(typeof(PermutationSolutionCache), false)]
    3332  public partial class ConvexHullView : ItemView {
    3433    public ConvexHullView() {
     
    3635    }
    3736
    38     public new PermutationSolutionDictionary Content {
    39       get { return (PermutationSolutionDictionary)base.Content; }
     37    public new PermutationSolutionCache Content {
     38      get { return (PermutationSolutionCache)base.Content; }
    4039      set { base.Content = value; }
    4140    }
     
    5150        var sols = Content.GetSolutionsFromGeneration(i);
    5251
    53         var input = sols.Select(x => ConvertPermutationToVertex(x.GetPermutation())).ToArray();
     52        var input = sols.Select(x => ConvertPermutationToVertex(x)).ToArray();
    5453        var convexHull = HyperHull.CalculateUsingSMO(input);
    5554        resultsTextBox.Text += "Nr. of Points in Generation " + i + ": " + convexHull.Count + Environment.NewLine;
Note: See TracChangeset for help on using the changeset viewer.