Changeset 16171 for branches/2943_MOBasicProblem_MOCMAES/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/IHR/IHR.cs
- Timestamp:
- 09/21/18 09:18:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2943_MOBasicProblem_MOCMAES/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/IHR/IHR.cs
r15583 r16171 20 20 #endregion 21 21 using System; 22 using System.Linq; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Encodings.RealVectorEncoding; 25 using HeuristicLab.Optimization; 24 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 … … 36 38 37 39 protected override double[] GetReferencePoint(int objectives) { 38 double[]rp = new double[objectives];39 for ( inti = 0; i < objectives; i++) {40 var rp = new double[objectives]; 41 for (var i = 0; i < objectives; i++) { 40 42 rp[i] = 11; 41 43 } … … 58 60 protected abstract double G(RealVector y); 59 61 62 protected override double GetBestKnownHypervolume(int objectives) { 63 return HypervolumeCalculator.CalculateHypervolume(GetOptimalParetoFront(objectives).ToArray(), GetReferencePoint(objectives), GetMaximization(objectives)); 64 } 60 65 61 66 protected double H(double x, RealVector r) {
Note: See TracChangeset
for help on using the changeset viewer.