Changeset 17225 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/Misc/CIGTAB.cs
- Timestamp:
- 08/29/19 13:53:26 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/Misc/CIGTAB.cs
r16723 r17225 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Encodings.RealVectorEncoding; 26 using HeuristicLab.Optimization; 26 27 using HEAL.Attic; 27 28 … … 31 32 public class CIGTAB : MultiObjectiveTestFunction { 32 33 protected override double[,] GetBounds(int objectives) { 33 return new double[,] { { -10, 10 }};34 return new double[,] {{-10, 10}}; 34 35 } 35 36 … … 39 40 40 41 protected override double[] GetReferencePoint(int objecitves) { 41 return new double[] { 11, 11};42 return new double[] {11, 11}; 42 43 } 43 44 44 protected override I Enumerable<double[]> GetOptimalParetoFront(int objecitves) {45 protected override IList<double[]> GetOptimalParetoFront(int objecitves) { 45 46 List<double[]> res = new List<double[]>(); 46 47 for (int i = 0; i <= 500; i++) { … … 54 55 55 56 protected override double GetBestKnownHypervolume(int objectives) { 56 return Hypervolume .Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));57 return HypervolumeCalculator.CalculateHypervolume(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives)); 57 58 } 58 59 … … 89 90 double f1 = 1 / (a * a * r.Length) * sum; 90 91 91 return new double[] { f0, f1};92 return new double[] {f0, f1}; 92 93 } 93 94 }
Note: See TracChangeset
for help on using the changeset viewer.