Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10141


Ignore:
Timestamp:
11/20/13 10:44:12 (11 years ago)
Author:
ascheibe
Message:

#1886

  • renamed MenuItem for the HiveRunCollectionModifier
  • deactivated calculation of complete convex hull for permutations
Location:
branches/HeuristicLab.Analysis.AlgorithmBehavior
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/RunCollectionModifiers/PermutationConvexHullModifier.cs

    r10139 r10141  
    6161        nrOfPointsTable.Rows.Add(dtNrPointsRow);
    6262
    63         List<double[]> curHull = null;
    6463        var sols = solutionCache.GetSolutionsFromGeneration(i);
    65         int dim = sols.First().Length;
     64        int dim;
     65        double[][] dm;
     66        double[][] popPoints;
    6667        while (sols.Count != 0) {
    67           double[][] dm = CalculateDistanceMatrixFromPermutations(sols);
     68          dm = CalculateDistanceMatrixFromPermutations(sols);
    6869
     70          dim = sols.First().Length;
    6971          if (dim > dm.Length)
    7072            dim = dm.Length - 1;
    7173
    72           double[][] popPoints = DistanceMatrixToPoints.MetricMDS(dm, dim);
     74          popPoints = DistanceMatrixToPoints.MetricMDS(dm, dim);
    7375
    7476          var convexHull = LPHull.Calculate(popPoints);
     
    7779          dtNrPointsRow.Values.Add(convexHull.Count);
    7880
    79           if (curHull == null) {
    80             curHull = convexHull;
    81           } else {
    82             var newPHull = curHull.Union(convexHull).ToArray();
    83             curHull = LPHull.Calculate(newPHull);
    84           }
    85 
    8681          sols = solutionCache.GetSolutionsFromGeneration(++i);
    8782        }
    88         overallVolumn.Value = ConvexHullMeasures.CalculateVolume(curHull);
    8983
    90         run.Results.Add("Overall volumn: ", overallVolumn);
     84        //calculate convex hull for all individuals
     85        /* dm = CalculateDistanceMatrixFromPermutations(solutionCache.Keys().ToList());
     86         dim = solutionCache.Keys().First().Length;
     87         if (dim > dm.Length)
     88           dim = dm.Length - 1;
     89         popPoints = DistanceMatrixToPoints.MetricMDS(dm, dim);
     90
     91         List<double[]> allPoints = LPHull.Calculate(popPoints);
     92         overallVolumn.Value = ConvexHullMeasures.CalculateVolume(allPoints);*/
     93
     94        //run.Results.Add("Overall volumn: ", overallVolumn);
    9195        run.Results.Add("Convex hull volumn", volDataTable);
    9296        run.Results.Add("Convex nr. of points", nrOfPointsTable);
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching.Views/3.3/HeuristicLab.Analysis.SolutionCaching.Views-3.3.csproj

    r10129 r10141  
    144144  </ItemGroup>
    145145  <ItemGroup>
    146     <Compile Include="CreateRunCollectionModifierTasksMenuItem.cs" />
     146    <Compile Include="ModifyRunCollectionMenuItem.cs" />
    147147    <Compile Include="RunCollectionModifierExecutableView.cs">
    148148      <SubType>UserControl</SubType>
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching.Views/3.3/ModifyRunCollectionMenuItem.cs

    r10136 r10141  
    2727
    2828namespace HeuristicLab.Analysis.SolutionCaching.Views {
    29   internal class CreateRunCollectionModifierTasksMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
     29  internal class ModifyRunCollectionMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
    3030    public override string Name {
    31       get { return "&Configure RunCollectionModiefiers for Hive"; }
     31      get { return "&Modify RunCollection"; }
    3232    }
    3333    public override IEnumerable<string> Structure {
Note: See TracChangeset for help on using the changeset viewer.