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

    r14067 r14068  
    3030  [StorableClass]
    3131  public class SchafferN2 : MultiObjectiveTestFunction {
    32 
    33     public override double[,] Bounds(int objectives) {
     32    protected override double[,] GetBounds(int objectives) {
    3433      return new double[,] { { -5, 10 } };
    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 double[] ReferencePoint(int objecitves) {
     40    protected override double[] GetReferencePoint(int objecitves) {
    4241      return new double[] { 100, 100 };
    4342    }
    4443
    4544
    46     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     45    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    4746      throw new NotImplementedException();
    4847    }
Note: See TracChangeset for help on using the changeset viewer.