Changeset 3318 for trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
- Timestamp:
- 04/13/10 09:47:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
r3170 r3318 28 28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 /// Zakharov Function<br/> 31 /// Domain: [-5.0 , 10.0]^n<br/> 32 /// Optimum: 0.0 at (0.0, 0.0, ..., 0.0) 30 /// The Zakharov function is implemented as described in Hedar, A. & Fukushima, M. 2004. Heuristic pattern search and its hybridization with simulated annealing for nonlinear global optimization. Optimization Methods and Software 19, pp. 291-308, Taylor & Francis. 33 31 /// </summary> 34 [Item("ZakharovEvaluator", "Evaluates the Zakharov function on a given point. The optimum of this function is 0 at the origin. ")]32 [Item("ZakharovEvaluator", "Evaluates the Zakharov function on a given point. The optimum of this function is 0 at the origin. It is implemented as described in Hedar, A. & Fukushima, M. 2004. Heuristic pattern search and its hybridization with simulated annealing for nonlinear global optimization. Optimization Methods and Software 19, pp. 291-308, Taylor & Francis.")] 35 33 [StorableClass] 36 34 public class ZakharovEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 35 /// <summary> 38 /// Returns false as the Ackleyfunction is a minimization problem.36 /// Returns false as the Zakharov function is a minimization problem. 39 37 /// </summary> 40 38 public override bool Maximization { … … 77 75 78 76 for (int i = 0; i < length; i++) { 79 s1 = s1 +point[i] * point[i];80 s2 = s2 +0.5 * i * point[i];77 s1 += point[i] * point[i]; 78 s2 += 0.5 * i * point[i]; 81 79 } 82 return s1 + s2 * s2 + s2 * s2 * s2 * s2;80 return s1 + (s2 * s2) + (s2 * s2 * s2 * s2); 83 81 } 84 82
Note: See TracChangeset
for help on using the changeset viewer.