Changeset 16171 for branches/2943_MOBasicProblem_MOCMAES/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/TestFunctions/Misc/Fonseca.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/Misc/Fonseca.cs
r15583 r16171 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Encodings.RealVectorEncoding; 28 using HeuristicLab.Optimization; 27 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 30 … … 44 46 45 47 protected override double GetBestKnownHypervolume(int objectives) { 46 return Hypervolume .Calculate(GetOptimalParetoFront(objectives), GetReferencePoint(objectives), GetMaximization(objectives));48 return HypervolumeCalculator.CalculateHypervolume(GetOptimalParetoFront(objectives).ToArray(), GetReferencePoint(objectives), GetMaximization(objectives)); 47 49 } 48 50 … … 65 67 66 68 //objective1 67 for ( inti = 0; i < r.Length; i++) {68 doubled = r[i] - aux;69 for (var i = 0; i < r.Length; i++) { 70 var d = r[i] - aux; 69 71 f0 += d * d; 70 72 } … … 72 74 73 75 //objective2 74 doublef1 = 0.0;75 for ( inti = 0; i < r.Length; i++) {76 doubled = r[i] + aux;76 var f1 = 0.0; 77 for (var i = 0; i < r.Length; i++) { 78 var d = r[i] + aux; 77 79 f1 += d * d; 78 80 }
Note: See TracChangeset
for help on using the changeset viewer.