Ignore:
Timestamp:
11/25/15 23:24:01 (4 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/Ackley.cs

    r13393 r13403  
    3232  /// is highly multimodal. It has a single global minimum at the origin with value 0.
    3333  /// </summary
    34   [Item("AckleyEvaluator", "Evaluates the Ackley function on a given point. The optimum of this function is 0 at the origin. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")]
     34  [Item("Ackley", "Evaluates the Ackley function on a given point. The optimum of this function is 0 at the origin. It is implemented as described in Eiben, A.E. and Smith, J.E. 2003. Introduction to Evolutionary Computation. Natural Computing Series, Springer-Verlag Berlin Heidelberg.")]
    3535  [StorableClass]
    36   public class AckleyEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
    37     public override string FunctionName { get { return "Ackley"; } }
     36  public class Ackley : SingleObjectiveTestFunction {
    3837    /// <summary>
    3938    /// Returns false as the Ackley function is a minimization problem.
     
    6867
    6968    [StorableConstructor]
    70     protected AckleyEvaluator(bool deserializing) : base(deserializing) { }
    71     protected AckleyEvaluator(AckleyEvaluator original, Cloner cloner) : base(original, cloner) { }
    72     public AckleyEvaluator() : base() { }
     69    protected Ackley(bool deserializing) : base(deserializing) { }
     70    protected Ackley(Ackley original, Cloner cloner) : base(original, cloner) { }
     71    public Ackley() : base() { }
    7372
    7473    public override IDeepCloneable Clone(Cloner cloner) {
    75       return new AckleyEvaluator(this, cloner);
     74      return new Ackley(this, cloner);
    7675    }
    7776
Note: See TracChangeset for help on using the changeset viewer.