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

    r14067 r14068  
    2828  [StorableClass]
    2929  public abstract class ZDT : MultiObjectiveTestFunction {
    30 
    31     public override IEnumerable<double[]> OptimalParetoFront(int objectives) {
     30    protected override IEnumerable<double[]> GetOptimalParetoFront(int objectives) {
    3231      return PFStore.get(this.ItemName);
    3332    }
    3433
    35     public override double[,] Bounds(int objectives) {
     34    protected override double[,] GetBounds(int objectives) {
    3635      return new double[,] { { 0, 1 } };
    3736    }
    3837
    39     public override bool[] Maximization(int objectives) {
     38    protected override bool[] GetMaximization(int objectives) {
    4039      return new bool[objectives];
    4140    }
    4241
    43     public override double[] ReferencePoint(int objecitives) {
     42    protected override double[] GetReferencePoint(int objecitives) {
    4443      return new double[] { 11.0, 11.0 };
    4544    }
    4645
    47     public override double BestKnownHypervolume(int objectives) {
     46    protected override double GetBestKnownHypervolume(int objectives) {
    4847      return -1;
    4948    }
Note: See TracChangeset for help on using the changeset viewer.