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.

Location:
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Misc
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Misc/Kursawe.cs

    r14067 r14068  
    3030  [StorableClass]
    3131  public class Kursawe : MultiObjectiveTestFunction {
    32 
    33     public override double[,] Bounds(int objectives) {
     32    protected override double[,] GetBounds(int objectives) {
    3433      return new double[,] { { -5, 5 } };
    3534    }
    3635
    37     public override bool[] Maximization(int objecitves) {
     36    protected override bool[] GetMaximization(int objecitves) {
    3837      return new bool[2];
    3938    }
    4039
    41     public override IEnumerable<double[]> OptimalParetoFront(int objecitves) {
     40    protected override IEnumerable<double[]> GetOptimalParetoFront(int objecitves) {
    4241      return PFStore.get(this.ItemName);
    4342    }
    44     public override double BestKnownHypervolume(int objectives) {
    45       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
     43
     44    protected override double GetBestKnownHypervolume(int objectives) {
     45      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    4646    }
    47     public override double[] ReferencePoint(int objectives) {
     47
     48    protected override double[] GetReferencePoint(int objectives) {
    4849      return new double[] { 11, 11 };
    4950    }
Note: See TracChangeset for help on using the changeset viewer.