Changeset 13451 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT1.cs
- Timestamp:
- 12/11/15 15:19:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT1.cs
r13448 r13451 76 76 for (int i = 1; i < r.Length; i++) g += r[i]; 77 77 g = 1.0 + 9.0 * g / (r.Length - 1); 78 return new double[] { r[0], g * (1.0 - Math.Sqrt(r[0] / g)) }; 78 double f1 = g * (1.0 - Math.Sqrt(r[0] / g)); 79 return new double[] { r[0], f1}; 79 80 } 80 81 }
Note: See TracChangeset
for help on using the changeset viewer.