Changeset 13515 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions
- Timestamp:
- 01/15/16 16:07:14 (8 years ago)
- 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 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ1", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ1", "Testfunction as defined as DTLZ1 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ1 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 75 [StorableConstructor] 68 76 protected DTLZ1(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ2.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ2", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ2", "Testfunction as defined as DTLZ2 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ2 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 75 [StorableConstructor] 68 76 protected DTLZ2(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ3.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ3", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ3", "Testfunction as defined as DTLZ3 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ3 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 75 [StorableConstructor] 68 76 protected DTLZ3(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ4.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ4", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ4", "Testfunction as defined as DTLZ4 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ4 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 75 [StorableConstructor] 68 76 protected DTLZ4(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ5.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ5", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ5", "Testfunction as defined as DTLZ5 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ5 : MultiObjectiveTestFunction { … … 65 59 } 66 60 61 public override RealVector[] OptimalParetoFront { 62 get { 63 throw new NotImplementedException(); 64 } 65 } 66 67 67 [StorableConstructor] 68 68 protected DTLZ5(bool deserializing) : base(deserializing) { } … … 94 94 //phi definition 95 95 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); }; 97 97 98 98 //calculating f0...fM-1 -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ6.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ6", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace 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")] 16 10 [StorableClass] 17 11 public class DTLZ6 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 75 [StorableConstructor] 68 76 protected DTLZ6(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ7.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; 8 4 using HeuristicLab.Data; 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 using HeuristicLab.Parameters;11 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 12 using HeuristicLab.Problems.MultiObjectiveTestFunction;13 7 14 namespace HeuristicLab.Problems. TestFunctions {15 [Item("DTLZ7", " http://repository.ias.ac.in/81671/ [30.11.15]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("DTLZ7", "Testfunction as defined as DTLZ7 in http://repository.ias.ac.in/81671/ [30.11.15]")] 16 10 [StorableClass] 17 11 public class DTLZ7 : MultiObjectiveTestFunction { … … 65 59 } 66 60 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 67 72 [StorableConstructor] 68 73 protected DTLZ7(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Evaluators.cs
r13448 r13515 7 7 8 8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions.Testfunctions { 9 10 /// <summary> 11 /// unused class 12 /// </summary> 9 13 class Evaluators { 10 14 -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Fonseca.cs
r13448 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("Fonseca", " from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("Fonseca", "Fonseca and Flemming function from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")] 15 10 [StorableClass] 16 11 public class Fonseca : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 69 [StorableConstructor] 64 70 protected Fonseca(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/Kursawe.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("Kursawe", " from // http://darwin.di.uminho.pt/jecoli/index.php/Multiobjective_example [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("Kursawe", "Kursawe function from // http://darwin.di.uminho.pt/jecoli/index.php/Multiobjective_example [30.11.2015]")] 15 10 [StorableClass] 16 11 public class Kursawe : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 69 [StorableConstructor] 64 70 protected Kursawe(bool deserializing) : base(deserializing) { } … … 75 81 //objective 1 76 82 double f0 = 0.0; 77 for (int i = 0; i < 2; i++) {83 for (int i = 0; i < r.Length-1; i++) { 78 84 f0 += -10 * Math.Exp(-0.2 * Math.Sqrt(r[i] * r[i] + r[i + 1] * r[i + 1])); 79 85 } 80 86 //objective2 81 87 double f1 = 0.0; 82 for (int i = 0; i < 3; i++) {88 for (int i = 0; i < r.Length; i++) { 83 89 f1 += Math.Pow(Math.Abs(r[i]), 0.8) + 5 * Math.Sin(Math.Pow(r[i], 3)); 84 90 } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/MultiObjectiveTestFunction.cs
r13451 r13515 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 29 namespace HeuristicLab.Problems. TestFunctions {29 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 30 30 /// <summary> 31 31 /// Base class for a test function evaluator. … … 77 77 public abstract int MaximumSolutionSize { get; } 78 78 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 79 96 [StorableConstructor] 80 97 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; 1 using HeuristicLab.Common; 7 2 using HeuristicLab.Core; 8 3 using HeuristicLab.Data; 9 4 using HeuristicLab.Encodings.RealVectorEncoding; 10 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 6 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("SchafferN1", " from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]7 namespace 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]")] 15 9 [StorableClass] 16 10 public class SchafferN1 : MultiObjectiveTestFunction { … … 61 55 } 62 56 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 63 68 [StorableConstructor] 64 69 protected SchafferN1(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/SchafferN2.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("SchafferN2", " from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]8 namespace 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]")] 15 10 [StorableClass] 16 11 public class SchafferN2 : MultiObjectiveTestFunction { … … 61 56 } 62 57 58 public override RealVector[] OptimalParetoFront { 59 get { 60 throw new NotImplementedException(); 61 } 62 } 63 63 64 [StorableConstructor] 64 65 protected SchafferN2(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT1.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("ZDT1", " //http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("ZDT1", "ZDT1 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")] 15 10 [StorableClass] 16 11 public class ZDT1 : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 72 [StorableConstructor] 64 73 protected ZDT1(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT2.cs
r13448 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("ZDT2", " //http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("ZDT2", "ZDT2 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")] 15 10 [StorableClass] 16 11 public class ZDT2 : MultiObjectiveTestFunction { … … 60 55 } 61 56 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 62 70 [StorableConstructor] 63 71 protected ZDT2(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT3.cs
r13448 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("ZDT3", " //http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("ZDT3", "ZDT3 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")] 15 10 [StorableClass] 16 11 public class ZDT3 : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 72 [StorableConstructor] 64 73 protected ZDT3(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT4.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("ZDT4", " //http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("ZDT4", "ZDT4 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")] 15 10 [StorableClass] 16 11 public class ZDT4 : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 72 [StorableConstructor] 64 73 protected ZDT4(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT6.cs
r13451 r13515 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using HeuristicLab.Common; 7 3 using HeuristicLab.Core; … … 9 5 using HeuristicLab.Encodings.RealVectorEncoding; 10 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 7 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("ZDT6", " //http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")]8 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 9 [Item("ZDT6", "ZDT6 function as defined in http://www.tik.ee.ethz.ch/sop/download/supplementary/testproblems/ [30.11.2015]")] 15 10 [StorableClass] 16 11 public class ZDT6 : MultiObjectiveTestFunction { … … 61 56 } 62 57 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 63 73 [StorableConstructor] 64 74 protected ZDT6(bool deserializing) : base(deserializing) { }
Note: See TracChangeset
for help on using the changeset viewer.