Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/15 23:24:01 (9 years ago)
Author:
abeham
Message:

#2521:

  • Adapted single-objective test function problem to new problem infrastructure
  • Added additional interfaces to RealVectorEncoding
  • Fixed IParticleUpdater interface (must implement IStochasticOperator if it contains a Random parameter)
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  
    3030  /// The Sum Squares function is defined as sum(i * x_i * x_i) for i = 1..n
    3131  /// </summary>
    32   [Item("SumSquaresEvaluator", "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.")]
    3333  [StorableClass]
    34   public class SumSquaresEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
    35     public override string FunctionName { get { return "SumSquares"; } }
     34  public class SumSquares : SingleObjectiveTestFunction {
    3635    /// <summary>
    3736    /// Returns false as the Sum Squares function is a minimization problem.
     
    6665
    6766    [StorableConstructor]
    68     protected SumSquaresEvaluator(bool deserializing) : base(deserializing) { }
    69     protected SumSquaresEvaluator(SumSquaresEvaluator original, Cloner cloner) : base(original, cloner) { }
    70     public SumSquaresEvaluator() : base() { }
     67    protected SumSquares(bool deserializing) : base(deserializing) { }
     68    protected SumSquares(SumSquares original, Cloner cloner) : base(original, cloner) { }
     69    public SumSquares() : base() { }
    7170
    7271    public override IDeepCloneable Clone(Cloner cloner) {
    73       return new SumSquaresEvaluator(this, cloner);
     72      return new SumSquares(this, cloner);
    7473    }
    7574
Note: See TracChangeset for help on using the changeset viewer.