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

    r14067 r14068  
    3131  [StorableClass]
    3232  public class Fonseca : MultiObjectiveTestFunction {
    33 
    34     public override double[,] Bounds(int objectives) {
     33    protected override double[,] GetBounds(int objectives) {
    3534      return new double[,] { { -4, 4 } };
    3635    }
    3736
    38     public override bool[] Maximization(int objecitves) {
     37    protected override bool[] GetMaximization(int objecitves) {
    3938      return new bool[2];
    4039    }
    4140
    42     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     41    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    4342      return PFStore.get(this.ItemName);
    4443    }
    45     public override double BestKnownHypervolume(int objectives) {
    46       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
     44
     45    protected override double GetBestKnownHypervolume(int objectives) {
     46      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    4747    }
    4848
    49     public override double[] ReferencePoint(int objectives) {
     49    protected override double[] GetReferencePoint(int objectives) {
    5050      return new double[] { 11, 11 };
    5151    }
Note: See TracChangeset for help on using the changeset viewer.