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

    r13988 r14068  
    3030  [StorableClass]
    3131  public class IHR4 : IHR {
    32 
    33 
    34     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     32    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    3533      List<double[]> res = new List<double[]>();
    3634      for (int i = 0; i <= 500; i++) {
     
    4139      return res;
    4240    }
    43     public override double BestKnownHypervolume(int objectives) {
    44       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));
    4544    }
    4645
    47     public override double[,] Bounds(int objectives) {
     46    protected override double[,] GetBounds(int objectives) {
    4847      return new double[,] { { -5, 5 } };
    4948    }
Note: See TracChangeset for help on using the changeset viewer.