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

    r14067 r14068  
    3030  [StorableClass]
    3131  public class ELLI : MultiObjectiveTestFunction {
    32 
    33     public override double[,] Bounds(int objectives) {
     32    protected override double[,] GetBounds(int objectives) {
    3433      return new double[,] { { -10, 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[] { 11, 11 };
    4342    }
    4443
    45     public override IEnumerable<double[]> OptimalParetoFront(int objecitves) {
     44    protected override IEnumerable<double[]> GetOptimalParetoFront(int objecitves) {
    4645      List<double[]> res = new List<double[]>();
    4746      for (int i = 0; i <= 500; i++) {
     
    5453    }
    5554
    56     public override double BestKnownHypervolume(int objectives) {
    57       return Hypervolume.Calculate(OptimalParetoFront(objectives), ReferencePoint(objectives), Maximization(objectives));
     55    protected override double GetBestKnownHypervolume(int objectives) {
     56      return Hypervolume.Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));
    5857    }
    5958
Note: See TracChangeset for help on using the changeset viewer.