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/IHR6.cs

    r13988 r14068  
    3030  [StorableClass]
    3131  public class IHR6 : 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++) {
     
    4039      return res;
    4140    }
    42     public override double BestKnownHypervolume(int objectives) {
    43       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
     41
     42    protected override double GetBestKnownHypervolume(int objectives) {
     43      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    4444    }
    4545
Note: See TracChangeset for help on using the changeset viewer.