Changeset 13673 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ/DTLZ3.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/DTLZ3.cs
r13672 r13673 51 51 52 52 //calculate g(Xm) 53 double sum = 0, length = 0; 54 for (int i = objectives; i < r.Length; i++) { 53 double sum = 0; 54 int length = r.Length - objectives + 1; 55 for (int i = r.Length-length; i < r.Length; i++) { 55 56 double d = r[i] - 0.5; 56 57 sum += d * d - Math.Cos(20 * Math.PI * d); 57 length += r[i] * r[i];58 58 59 } 59 length = Math.Sqrt(length);60 60 double g = 100 * (length + sum); 61 61
Note: See TracChangeset
for help on using the changeset viewer.