Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/10 18:53:14 (14 years ago)
Author:
abeham
Message:

Changed handling of strategy parameters and renamed operators in realvector #890, #932, #934

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs

    r3376 r3450  
    7272    /// <returns>The result value of the Ackley function at the given point.</returns>
    7373    public static double Apply(RealVector point) {
    74       double result = 20 + Math.E;
     74      double result;
    7575      double val;
    7676
     
    8080      val /= point.Length;
    8181      val = -0.2 * Math.Sqrt(val);
    82       result -= 20 * Math.Exp(val);
     82      result = 20 - 20 * Math.Exp(val);
    8383
    8484      val = 0;
     
    8686        val += Math.Cos(2 * Math.PI * point[i]);
    8787      val /= point.Length;
    88       result -= Math.Exp(val);
     88      result += Math.E - Math.Exp(val);
    8989      return (result);
    9090    }
Note: See TracChangeset for help on using the changeset viewer.