- Timestamp:
- 04/20/10 18:53:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r3376 r3450 72 72 /// <returns>The result value of the Ackley function at the given point.</returns> 73 73 public static double Apply(RealVector point) { 74 double result = 20 + Math.E;74 double result; 75 75 double val; 76 76 … … 80 80 val /= point.Length; 81 81 val = -0.2 * Math.Sqrt(val); 82 result -=20 * Math.Exp(val);82 result = 20 - 20 * Math.Exp(val); 83 83 84 84 val = 0; … … 86 86 val += Math.Cos(2 * Math.PI * point[i]); 87 87 val /= point.Length; 88 result -=Math.Exp(val);88 result += Math.E - Math.Exp(val); 89 89 return (result); 90 90 }
Note: See TracChangeset
for help on using the changeset viewer.