Changeset 3315 for trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
- Timestamp:
- 04/12/10 23:39:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
r3170 r3315 28 28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <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. 33 31 /// </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.")] 35 33 [StorableClass] 36 34 public class BoothEvaluator : SingleObjectiveTestFunctionProblemEvaluator { … … 72 70 /// <returns>The result value of the Booth function at the given point.</returns> 73 71 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); 75 74 } 76 75
Note: See TracChangeset
for help on using the changeset viewer.