Changeset 107
- Timestamp:
- 03/28/08 11:38:43 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.TestFunctions
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.TestFunctions/AckleyEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 20 + Math.E; 42 42 double val; … … 57 57 return (result); 58 58 } 59 60 protected override double EvaluateFunction(double[] point) { 61 return Apply(point); 62 } 59 63 } 60 64 } -
trunk/sources/HeuristicLab.TestFunctions/GriewangkEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 0; 42 42 double val = 0; … … 53 53 return (result); 54 54 } 55 56 protected override double EvaluateFunction(double[] point) { 57 return Apply(point); 58 } 55 59 } 56 60 } -
trunk/sources/HeuristicLab.TestFunctions/RastriginEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 10 * point.Length; 42 42 for (int i = 0; i < point.Length; i++) { … … 46 46 return (result); 47 47 } 48 49 protected override double EvaluateFunction(double[] point) { 50 return Apply(point); 51 } 48 52 } 49 53 } -
trunk/sources/HeuristicLab.TestFunctions/RosenbrockEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 0; 42 42 for (int i = 0; i < point.Length - 1; i++) { … … 46 46 return result; 47 47 } 48 49 protected override double EvaluateFunction(double[] point) { 50 return Apply(point); 51 } 48 52 } 49 53 } -
trunk/sources/HeuristicLab.TestFunctions/SchwefelEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 418.982887272433 * point.Length; 42 42 for (int i = 0; i < point.Length; i++) … … 44 44 return (result); 45 45 } 46 47 protected override double EvaluateFunction(double[] point) { 48 return Apply(point); 49 } 46 50 } 47 51 } -
trunk/sources/HeuristicLab.TestFunctions/SphereEvaluator.cs
r2 r107 38 38 } 39 39 40 p rotected override double EvaluateFunction(double[] point) {40 public static double Apply(double[] point) { 41 41 double result = 0; 42 42 for (int i = 0; i < point.Length; i++) … … 44 44 return result; 45 45 } 46 47 protected override double EvaluateFunction(double[] point) { 48 return Apply(point); 49 } 46 50 } 47 51 }
Note: See TracChangeset
for help on using the changeset viewer.