Ejemplo n.º 1
0
 public QualityIndicator(Problem problem, String paretoFrontFile)
 {
     _problem = problem;
     _trueParetoFront = MetricsUtil.ReadNonDominatedSolutionSet(paretoFrontFile);
     _trueParetoFrontHypervolume = new Hypervolume().HypervolumeValue(
         _trueParetoFront.WriteObjectivesToMatrix(),
         _trueParetoFront.WriteObjectivesToMatrix(),
         _problem.NumberOfObjectives);
 }
Ejemplo n.º 2
0
 /**
   * Returns the generational distance of solution set
  * @param solutionSet Solution set
   * @return The value of the hypervolume indicator
   */
 public double GetGd(SolutionSet solutionSet)
 {
     return new GenerationalDistance().Compute(
         solutionSet.WriteObjectivesToMatrix(),
         _trueParetoFront.WriteObjectivesToMatrix(),
         _problem.NumberOfObjectives);
 }
Ejemplo n.º 3
0
 /**
  * Returns the spread of solution set
  * @param solutionSet Solution set
  * @return The value of the hypervolume indicator
  */
 public double GetSpread(SolutionSet solutionSet)
 {
     return new Spread().Compute(solutionSet.WriteObjectivesToMatrix(),
                                 _trueParetoFront.WriteObjectivesToMatrix(),
                                 _problem.NumberOfObjectives);
 }
Ejemplo n.º 4
0
 /**
  * Returns the hypervolume of solution set
  * @param solutionSet Solution set
  * @return The value of the hypervolume indicator
  */
 public double GetHypervolume(SolutionSet solutionSet)
 {
     return new Hypervolume().HypervolumeValue(solutionSet.WriteObjectivesToMatrix(),
                                               _trueParetoFront.WriteObjectivesToMatrix(),
                                               _problem.NumberOfObjectives);
 }