Free cookie consent management tool by TermsFeed Policy Generator

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

    r13393 r13403  
    3333  /// Here it is implemented as described (without the modifications) in Locatelli, M. 2003. A note on the Griewank test function. Journal of Global Optimization 25, pp. 169-174, Springer.
    3434  /// </summary>
    35   [Item("GriewankEvaluator", "Evaluates the Griewank function on a given point. The optimum of this function is 0 at the origin. It is introduced by Griewank A.O. 1981 and implemented as described (without the modifications) in Locatelli, M. 2003. A note on the Griewank test function. Journal of Global Optimization 25, pp. 169-174, Springer.")]
     35  [Item("Griewank", "Evaluates the Griewank function on a given point. The optimum of this function is 0 at the origin. It is introduced by Griewank A.O. 1981 and implemented as described (without the modifications) in Locatelli, M. 2003. A note on the Griewank test function. Journal of Global Optimization 25, pp. 169-174, Springer.")]
    3636  [StorableClass]
    37   public class GriewankEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
    38     public override string FunctionName { get { return "Griewank"; } }
     37  public class Griewank : SingleObjectiveTestFunction {
    3938    /// <summary>
    4039    /// Returns false as the Griewank function is a minimization problem.
     
    6968
    7069    [StorableConstructor]
    71     protected GriewankEvaluator(bool deserializing) : base(deserializing) { }
    72     protected GriewankEvaluator(GriewankEvaluator original, Cloner cloner) : base(original, cloner) { }
    73     public GriewankEvaluator() : base() { }
     70    protected Griewank(bool deserializing) : base(deserializing) { }
     71    protected Griewank(Griewank original, Cloner cloner) : base(original, cloner) { }
     72    public Griewank() : base() { }
    7473
    7574    public override IDeepCloneable Clone(Cloner cloner) {
    76       return new GriewankEvaluator(this, cloner);
     75      return new Griewank(this, cloner);
    7776    }
    7877
Note: See TracChangeset for help on using the changeset viewer.