Free cookie consent management tool by TermsFeed Policy Generator

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
File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.