Changeset 1183
- Timestamp:
- 01/28/09 10:03:56 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.TestFunctions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.TestFunctions/BealeEvaluator.cs
r291 r1183 24 24 using System.Text; 25 25 26 namespace HeuristicLab.TestFunctions { 26 namespace HeuristicLab.TestFunctions { 27 27 public class BealeEvaluator : TestFunctionEvaluatorBase { 28 28 public override string Description { … … 35 35 } 36 36 37 public static double Appl ay(double[] point) {37 public static double Apply(double[] point) { 38 38 return Math.Pow(1.5 - point[0] * (1 - point[1]), 2) + Math.Pow(2.25 - point[0] * (1 - (point[1] * point[1])), 2) + Math.Pow((2.625 - point[0] * (1 - (point[1] * point[1] * point[1]))), 2); 39 39 } 40 40 41 41 protected override double EvaluateFunction(double[] point) { 42 return Appl ay(point);42 return Apply(point); 43 43 } 44 44 } -
trunk/sources/HeuristicLab.TestFunctions/BoothEvaluator.cs
r291 r1183 27 27 public class BoothEvaluator : TestFunctionEvaluatorBase { 28 28 public override string Description { 29 get { return 30 @"Booth Function 29 get { 30 return 31 @"Booth Function 31 32 32 33 Domain: [-10.0 , 10.0]^2 33 34 Optimum: 0.0 at (1.0, 3.0)"; 34 35 } 35 36 } 36 37 37 p rivatedouble Apply(double[] point) {38 public static double Apply(double[] point) { 38 39 return Math.Pow(point[0] + 2 * point[1] - 7, 2) + Math.Pow(2 * point[0] + point[1] - 5, 2); 39 40 }
Note: See TracChangeset
for help on using the changeset viewer.