Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/14/16 14:33:15 (8 years ago)
Author:
mkommend
Message:

#1087: Added checks for min and max objectives to testfunctions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/IHR/IHR2.cs

    r13988 r14068  
    3030  [StorableClass]
    3131  public class IHR2 : IHR {
    32 
    33     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     32    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    3433      List<double[]> res = new List<double[]>();
    3534      for (int i = 0; i <= 500; i++) {
     
    4140      return res;
    4241    }
    43     public override double BestKnownHypervolume(int objectives) {
    44       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
     42
     43    protected override double GetBestKnownHypervolume(int objectives) {
     44      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    4545    }
    4646
Note: See TracChangeset for help on using the changeset viewer.