Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/10 23:39:40 (14 years ago)
Author:
abeham
Message:

Documented some of the test functions with literature references.
Renamed Griewangk function as it is actually called Griewank function.
Schwefel is hard to find, used self-citation as Potter and DeJong's description from 1994 seems wrong
Levy is almost impossible to find and defined only for 2 variables, the implementation looks fishy (there was also a bug)
Booth, and Matyas are also just from a single website
Still missing is Zakharov and SumSquares
#934

File:
1 edited

Legend:

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

    r3170 r3315  
    2828namespace HeuristicLab.Problems.TestFunctions {
    2929  /// <summary>
    30   /// Booth Function<br/>
    31   /// Domain:  [-10.0 , 10.0]^2<br/>
    32   /// Optimum: 0.0 at (1.0, 3.0)
     30  /// The Booth function is implemented as described on http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page816.htm, last accessed April 12th, 2010.
    3331  /// </summary>
    34   [Item("BoothEvaluator", "Evaluates the Booth function on a given point. The optimum of this function is 0 at (1,3).")]
     32  [Item("BoothEvaluator", "Evaluates the Booth function on a given point. The optimum of this function is 0 at (1,3). It is implemented as described on http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page816.htm, last accessed April 12th, 2010.")]
    3533  [StorableClass]
    3634  public class BoothEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     
    7270    /// <returns>The result value of the Booth function at the given point.</returns>
    7371    public static double Apply(RealVector point) {
    74       return Math.Pow(point[0] + 2 * point[1] - 7, 2) + Math.Pow(2 * point[0] + point[1] - 5, 2);
     72      return (point[0] + 2 * point[1] - 7) * (point[0] + 2 * point[1] - 7)
     73        + (2 * point[0] + point[1] - 5) * (2 * point[0] + point[1] - 5);
    7574    }
    7675
Note: See TracChangeset for help on using the changeset viewer.