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.

File:
1 edited

Legend:

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

    r14067 r14068  
    2828  [StorableClass]
    2929  public abstract class IHR : MultiObjectiveTestFunction {
    30 
    31     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     30    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    3231      if (objectives == 2) return PFStore.get(this.ItemName + ".2D");
    3332      return null;
    3433    }
    3534
    36     public override double[,] Bounds(int objectives) {
     35    protected override double[,] GetBounds(int objectives) {
    3736      return new double[,] { { -1, 1 } };
    3837    }
    3938
    40     public override bool[] Maximization(int objectives) {
     39    protected override bool[] GetMaximization(int objectives) {
    4140      return new bool[objectives];
    4241    }
    4342
    44     public override double[] ReferencePoint(int objectives) {
     43    protected override double[] GetReferencePoint(int objectives) {
    4544      double[] rp = new double[objectives];
    4645      for (int i = 0; i < objectives; i++) {
Note: See TracChangeset for help on using the changeset viewer.