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

Location:
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions
Files:
18 edited

Legend:

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

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ1", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ1", "Testfunction as defined as DTLZ1 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ1 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
     67    public override RealVector ReferencePoint {
     68      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     69    }
     70
     71    public override double BestKnownHypervolume {
     72      get { return 120 + 7.0 / 8; }
     73    }
     74
    6775    [StorableConstructor]
    6876    protected DTLZ1(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ2.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ2", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ2", "Testfunction as defined as DTLZ2 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ2 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
     67    public override RealVector ReferencePoint {
     68      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     69    }
     70
     71    public override double BestKnownHypervolume {
     72      get { return 121.0 - 1.0 / 4.0 *Math.PI; }
     73    }
     74
    6775    [StorableConstructor]
    6876    protected DTLZ2(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ3.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ3", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ3", "Testfunction as defined as DTLZ3 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ3 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
     67    public override RealVector ReferencePoint {
     68      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     69    }
     70
     71    public override double BestKnownHypervolume {
     72      get { return 121.0 - 1.0 / 4.0 * Math.PI; }
     73    }
     74
    6775    [StorableConstructor]
    6876    protected DTLZ3(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ4.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ4", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ4", "Testfunction as defined as DTLZ4 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ4 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
     67    public override RealVector ReferencePoint {
     68      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     69    }
     70
     71    public override double BestKnownHypervolume {
     72      get { return 121.0 - 1.0 / 4.0 * Math.PI; }
     73    }
     74
    6775    [StorableConstructor]
    6876    protected DTLZ4(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ5.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ5", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ5", "Testfunction as defined as DTLZ5 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ5 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
    6767    [StorableConstructor]
    6868    protected DTLZ5(bool deserializing) : base(deserializing) { }
     
    9494      //phi definition
    9595      Func<double, double> phi;
    96       phi = (double x) => { return Math.PI / (4 * 1 + g) * (1 + 2 * g * x); };
     96      phi = (double x) => { return Math.PI / (4 * (1 + g)) * (1 + 2 * g * x); };
    9797
    9898      //calculating f0...fM-1
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ6.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ6", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ6", "Testfunction as defined as DTLZ6 in http://repository.ias.ac.in/81671/ [30.11.15] NOTE: The website http://people.ee.ethz.ch/~sop/download/supplementary/testproblems/dtlz7/index.php [16.12.2015] lables this function as DTLZ7")]
    1610  [StorableClass]
    1711  public class DTLZ6 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66    public override RealVector ReferencePoint {
     67      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     68    }
     69
     70    public override double BestKnownHypervolume {
     71      get { return 116.1138716447221; }
     72    }
     73
     74
    6775    [StorableConstructor]
    6876    protected DTLZ6(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ7.cs

    r13451 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;
    84using HeuristicLab.Data;
    95using HeuristicLab.Encodings.RealVectorEncoding;
    10 using HeuristicLab.Parameters;
    116using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    12 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    137
    14 namespace HeuristicLab.Problems.TestFunctions {
    15   [Item("DTLZ7", " http://repository.ias.ac.in/81671/ [30.11.15]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("DTLZ7", "Testfunction as defined as DTLZ7 in http://repository.ias.ac.in/81671/ [30.11.15]")]
    1610  [StorableClass]
    1711  public class DTLZ7 : MultiObjectiveTestFunction {
     
    6559    }
    6660
     61    public override RealVector[] OptimalParetoFront {
     62      get {
     63        throw new NotImplementedException();
     64      }
     65    }
     66
     67    public override RealVector ReferencePoint {
     68      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     69    }
     70
     71
    6772    [StorableConstructor]
    6873    protected DTLZ7(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Evaluators.cs

    r13448 r13515  
    77
    88namespace HeuristicLab.Problems.MultiObjectiveTestFunctions.Testfunctions {
     9
     10  /// <summary>
     11  /// unused class
     12  /// </summary>
    913  class Evaluators {
    1014
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Fonseca.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("Fonseca", "from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("Fonseca", "Fonseca and Flemming function from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
    1510  [StorableClass]
    1611  public class Fonseca : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        return PFReader.getFromFile("Fonseca");
     61      }
     62    }
     63    public override double BestKnownHypervolume {
     64      get {
     65        return new Hypervolume(base.ReferencePoint,Maximization).GetHypervolume(OptimalParetoFront) ;
     66      }
     67    }
     68
    6369    [StorableConstructor]
    6470    protected Fonseca(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Kursawe.cs

    r13451 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("Kursawe", "from // http://darwin.di.uminho.pt/jecoli/index.php/Multiobjective_example [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("Kursawe", "Kursawe function from // http://darwin.di.uminho.pt/jecoli/index.php/Multiobjective_example [30.11.2015]")]
    1510  [StorableClass]
    1611  public class Kursawe : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        return PFReader.getFromFile("Kursawe");
     61      }
     62    }
     63    public override double BestKnownHypervolume {
     64      get {
     65        return new Hypervolume(base.ReferencePoint, Maximization).GetHypervolume(OptimalParetoFront);
     66      }
     67    }
     68
    6369    [StorableConstructor]
    6470    protected Kursawe(bool deserializing) : base(deserializing) { }
     
    7581      //objective 1
    7682      double f0 = 0.0;
    77       for (int i = 0; i < 2; i++) {
     83      for (int i = 0; i < r.Length-1; i++) {
    7884        f0 += -10 * Math.Exp(-0.2 * Math.Sqrt(r[i] * r[i] + r[i + 1] * r[i + 1]));
    7985      }
    8086      //objective2
    8187      double f1 = 0.0;
    82       for (int i = 0; i < 3; i++) {
     88      for (int i = 0; i < r.Length; i++) {
    8389        f1 += Math.Pow(Math.Abs(r[i]), 0.8) + 5 * Math.Sin(Math.Pow(r[i], 3));
    8490      }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/MultiObjectiveTestFunction.cs

    r13451 r13515  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.TestFunctions {
     29namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
    3030  /// <summary>
    3131  /// Base class for a test function evaluator.
     
    7777    public abstract int MaximumSolutionSize { get; }
    7878
     79    /// <summary>
     80    /// retrieves the optimal pareto front (if known from a file)
     81    /// </summary>
     82    public abstract RealVector[] OptimalParetoFront { get; }
     83
     84    public virtual RealVector ReferencePoint {
     85      get {
     86        return new RealVector(new double[]{ 11,11});
     87      }
     88    }
     89
     90    public virtual double BestKnownHypervolume {
     91      get {
     92        return 0;
     93      }
     94    }
     95
    7996    [StorableConstructor]
    8097    protected MultiObjectiveTestFunction(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/SchafferN1.cs

    r13448 r13515  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
    5 using System.Threading.Tasks;
    6 using HeuristicLab.Common;
     1using HeuristicLab.Common;
    72using HeuristicLab.Core;
    83using HeuristicLab.Data;
    94using HeuristicLab.Encodings.RealVectorEncoding;
    105using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    11 using HeuristicLab.Problems.MultiObjectiveTestFunction;
    126
    13 namespace HeuristicLab.Problems.TestFunctions {
    14   [Item("SchafferN1", "from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
     7namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     8  [Item("SchafferN1", "Schaffer function N.1 for mulitobjective optimization from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
    159  [StorableClass]
    1610  public class SchafferN1 : MultiObjectiveTestFunction {
     
    6155    }
    6256
     57    public override RealVector[] OptimalParetoFront {
     58      get {
     59        return PFReader.getFromFile("SchafferN1");
     60      }
     61    }
     62    public override double BestKnownHypervolume {
     63      get {
     64        return new Hypervolume(base.ReferencePoint, Maximization).GetHypervolume(OptimalParetoFront);
     65      }
     66    }
     67
    6368    [StorableConstructor]
    6469    protected SchafferN1(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/SchafferN2.cs

    r13451 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("SchafferN2", "from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("SchafferN2", "Schaffer function N.2 for mulitobjective optimization from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]
    1510  [StorableClass]
    1611  public class SchafferN2 : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        throw new NotImplementedException();
     61      }
     62    }
     63
    6364    [StorableConstructor]
    6465    protected SchafferN2(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT1.cs

    r13451 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("ZDT1", "//http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("ZDT1", "ZDT1 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
    1510  [StorableClass]
    1611  public class ZDT1 : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        throw new NotImplementedException();
     61      }
     62    }
     63
     64    public override RealVector ReferencePoint {
     65      get { return new RealVector(new double[]{ 11.0, 11.0}); }
     66    }
     67
     68    public override double BestKnownHypervolume {
     69      get { return 120 + 2.0 / 3; }
     70    }
     71
    6372    [StorableConstructor]
    6473    protected ZDT1(bool deserializing) : base(deserializing) { }
  • 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) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT3.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("ZDT3", "//http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("ZDT3", "ZDT3 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
    1510  [StorableClass]
    1611  public class ZDT3 : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        throw new NotImplementedException();
     61      }
     62    }
     63
     64    public override RealVector ReferencePoint {
     65      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     66    }
     67
     68    public override double BestKnownHypervolume {
     69      get { return 128.77811613069076060; }
     70    }
     71
    6372    [StorableConstructor]
    6473    protected ZDT3(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT4.cs

    r13451 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("ZDT4", "//http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("ZDT4", "ZDT4 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
    1510  [StorableClass]
    1611  public class ZDT4 : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        throw new NotImplementedException();
     61      }
     62    }
     63
     64    public override RealVector ReferencePoint {
     65      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     66    }
     67
     68    public override double BestKnownHypervolume {
     69      get { return 120+2.0/3; }
     70    }
     71
    6372    [StorableConstructor]
    6473    protected ZDT4(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT6.cs

    r13451 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("ZDT6", "//http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
     8namespace HeuristicLab.Problems.MultiObjectiveTestFunctions {
     9  [Item("ZDT6", "ZDT6 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]
    1510  [StorableClass]
    1611  public class ZDT6 : MultiObjectiveTestFunction {
     
    6156    }
    6257
     58    public override RealVector[] OptimalParetoFront {
     59      get {
     60        throw new NotImplementedException();
     61      }
     62    }
     63
     64    public override RealVector ReferencePoint {
     65      get { return new RealVector(new double[] { 11.0, 11.0 }); }
     66    }
     67
     68
     69    public override double BestKnownHypervolume {
     70      get{ return 119.51857519692037009; }
     71    }
     72
    6373    [StorableConstructor]
    6474    protected ZDT6(bool deserializing) : base(deserializing) { }
Note: See TracChangeset for help on using the changeset viewer.