Changeset 13673 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ/DTLZ7.cs
- Timestamp:
- 03/09/16 14:05:49 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ/DTLZ7.cs
r13672 r13673 52 52 53 53 //calculate g(Xm) 54 double g = 0, length = 0;54 double g = 0, length = length = r.Length - objectives + 1; 55 55 for (int i = objectives; i < r.Length; i++) { 56 56 g += r[i]; 57 length += r[i] * r[i];58 57 } 59 length = Math.Sqrt(length);60 58 g = 1.0 + 9.0 / length * g; 61 59 if (length == 0) { g = 1; }
Note: See TracChangeset
for help on using the changeset viewer.