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

    r14067 r14068  
    3030  [StorableClass]
    3131  public class SchafferN1 : MultiObjectiveTestFunction {
    32 
    33     public override double[,] Bounds(int objectives) {
     32    protected override double[,] GetBounds(int objectives) {
    3433      return new double[,] { { -1e5, 1e5 } };
    3534    }
    3635
    37     public override bool[] Maximization(int objecitves) {
     36    protected override bool[] GetMaximization(int objectives) {
    3837      return new bool[2];
    3938    }
    4039
    41     public override double[] ReferencePoint(int objecitves) {
     40    protected override double[] GetReferencePoint(int objectives) {
    4241      return new double[] { 1e5, 1e5 };
    4342    }
    4443
    4544
    46     public override IEnumerable<double[]> OptimalParetoFront(int objecitves) {
     45    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    4746      return PFStore.get("Schaffer");
    4847    }
    49     public override double BestKnownHypervolume(int objectives) {
    50       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
    5148
     49    protected override double GetBestKnownHypervolume(int objectives) {
     50      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    5251    }
    5352
Note: See TracChangeset for help on using the changeset viewer.