Changeset 13403 for branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Functions/SumSquares.cs
- Timestamp:
- 11/25/15 23:24:01 (9 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/SumSquares.cs
r13393 r13403 30 30 /// The Sum Squares function is defined as sum(i * x_i * x_i) for i = 1..n 31 31 /// </summary> 32 [Item("SumSquares Evaluator", "Evaluates the sum squares function on a given point. The optimum of this function is 0 at the origin. The Sum Squares function is defined as sum(i * x_i * x_i) for i = 1..n.")]32 [Item("SumSquares", "Evaluates the sum squares function on a given point. The optimum of this function is 0 at the origin. The Sum Squares function is defined as sum(i * x_i * x_i) for i = 1..n.")] 33 33 [StorableClass] 34 public class SumSquaresEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 35 public override string FunctionName { get { return "SumSquares"; } } 34 public class SumSquares : SingleObjectiveTestFunction { 36 35 /// <summary> 37 36 /// Returns false as the Sum Squares function is a minimization problem. … … 66 65 67 66 [StorableConstructor] 68 protected SumSquares Evaluator(bool deserializing) : base(deserializing) { }69 protected SumSquares Evaluator(SumSquaresEvaluatororiginal, Cloner cloner) : base(original, cloner) { }70 public SumSquares Evaluator() : base() { }67 protected SumSquares(bool deserializing) : base(deserializing) { } 68 protected SumSquares(SumSquares original, Cloner cloner) : base(original, cloner) { } 69 public SumSquares() : base() { } 71 70 72 71 public override IDeepCloneable Clone(Cloner cloner) { 73 return new SumSquares Evaluator(this, cloner);72 return new SumSquares(this, cloner); 74 73 } 75 74
Note: See TracChangeset
for help on using the changeset viewer.