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

    r14067 r14068  
    1919 */
    2020#endregion
     21
    2122using System.Collections.Generic;
    2223using HeuristicLab.Common;
     
    2728  [StorableClass]
    2829  public abstract class DTLZ : MultiObjectiveTestFunction {
    29 
    30     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     30    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    3131      if (objectives == 2) return PFStore.get(this.ItemName + ".2D");
    3232      return null;
    3333    }
    3434
    35     public override double[,] Bounds(int objectives) {
     35    protected override double[,] GetBounds(int objectives) {
    3636      return new double[,] { { 0, 1 } };
    3737    }
    3838
    39     public override bool[] Maximization(int objectives) {
     39    protected override bool[] GetMaximization(int objectives) {
    4040      return new bool[objectives];
    4141    }
    4242
    43     public override double[] ReferencePoint(int objectives) {
     43    protected override double[] GetReferencePoint(int objectives) {
    4444      double[] rp = new double[objectives];
    4545      for (int i = 0; i < objectives; i++) {
Note: See TracChangeset for help on using the changeset viewer.