Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/16 16:07:14 (8 years ago)
Author:
bwerth
Message:

#1087 minor bugfixes and added unittests

File:
1 edited

Legend:

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

    r13448 r13515  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
    5 using System.Threading.Tasks;
    62using HeuristicLab.Common;
    73using HeuristicLab.Core;
     
    95using HeuristicLab.Encodings.RealVectorEncoding;
    106using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    11 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    127
    13 namespace HeuristicLab.Problems.TestFunctions {
    14   [Item("ZDT2", "//http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("ZDT2", "ZDT2 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
    1510  [StorableClass]
    1611  public class ZDT2 : MultiObjectiveTestFunction {
     
    6055    }
    6156
     57    public override RealVector[] OptimalParetoFront {
     58      get {
     59        throw new NotImplementedException();
     60      }
     61    }
     62    public override RealVector ReferencePoint {
     63      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     64    }
     65
     66    public override double BestKnownHypervolume {
     67      get { return 120+1.0/3; }
     68    }
     69
    6270    [StorableConstructor]
    6371    protected ZDT2(bool deserializing) : base(deserializing) { }
Note: See TracChangeset for help on using the changeset viewer.