Changeset 13403 for branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Functions/Sphere.cs
- Timestamp:
- 11/25/15 23:24:01 (8 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Functions
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Functions/Sphere.cs
r13393 r13403 33 33 /// It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52. 34 34 /// </summary> 35 [Item("Sphere Evaluator", "Evaluates the Sphere function y = C * ||X||^Alpha on a given point. The optimum of this function is 0 at the origin. It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52.")]35 [Item("Sphere", "Evaluates the Sphere function y = C * ||X||^Alpha on a given point. The optimum of this function is 0 at the origin. It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52.")] 36 36 [StorableClass] 37 public class SphereEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 38 public override string FunctionName { get { return "Sphere"; } } 37 public class Sphere : SingleObjectiveTestFunction { 39 38 /// <summary> 40 39 /// Returns false as the Sphere function is a minimization problem. … … 69 68 70 69 public override IDeepCloneable Clone(Cloner cloner) { 71 return new Sphere Evaluator(this, cloner);70 return new Sphere(this, cloner); 72 71 } 73 72 … … 104 103 105 104 [StorableConstructor] 106 protected Sphere Evaluator(bool deserializing) : base(deserializing) { }107 protected Sphere Evaluator(SphereEvaluatororiginal, Cloner cloner) : base(original, cloner) { }105 protected Sphere(bool deserializing) : base(deserializing) { } 106 protected Sphere(Sphere original, Cloner cloner) : base(original, cloner) { } 108 107 /// <summary> 109 108 /// Initializes a new instance of the SphereEvaluator with two parameters (<c>C</c> and <c>Alpha</c>). 110 109 /// </summary> 111 public Sphere Evaluator()110 public Sphere() 112 111 : base() { 113 112 Parameters.Add(new ValueParameter<DoubleValue>("C", "The parameter C modifies the steepness of the objective function y = C * ||X||^Alpha. Default is C = 1.", new DoubleValue(1)));
Note: See TracChangeset
for help on using the changeset viewer.