Changeset 17225 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/Misc/SchafferN1.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/SchafferN1.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 SchafferN1 : MultiObjectiveTestFunction { 32 33 protected override double[,] GetBounds(int objectives) { 33 return new double[,] { { -1e5, 1e5 }};34 return new double[,] {{-1e5, 1e5}}; 34 35 } 35 36 … … 39 40 40 41 protected override double[] GetReferencePoint(int objectives) { 41 return new double[] { 1e5, 1e5};42 return new double[] {1e5, 1e5}; 42 43 } 43 44 44 45 45 protected override I Enumerable<double[]> GetOptimalParetoFront(int objectives) {46 protected override IList<double[]> GetOptimalParetoFront(int objectives) { 46 47 return ParetoFrontStore.GetParetoFront("Misc.ParetoFronts." + "SchafferN1"); 47 48 } 48 49 49 50 protected override double GetBestKnownHypervolume(int objectives) { 50 return Hypervolume .Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));51 return HypervolumeCalculator.CalculateHypervolume(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives)); 51 52 } 52 53 … … 72 73 f1 *= f1; 73 74 74 return new double[] { f0, f1};75 return new double[] {f0, f1}; 75 76 } 76 77 }
Note: See TracChangeset
for help on using the changeset viewer.