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/Levy.cs

    r13393 r13403  
    3131  /// The Levy function is implemented as described on http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2056.htm, last accessed April 12th, 2010.
    3232  /// </summary>
    33   [Item("LevyEvaluator", "Evaluates the Levy function on a given point. The optimum of this function is 0 at (1,1,...,1). It is implemented as described on http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2056.htm, last accessed April 12th, 2010.")]
     33  [Item("Levy", "Evaluates the Levy function on a given point. The optimum of this function is 0 at (1,1,...,1). It is implemented as described on http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2056.htm, last accessed April 12th, 2010.")]
    3434  [StorableClass]
    35   public class LevyEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
    36     public override string FunctionName { get { return "Levy"; } }
     35  public class Levy : SingleObjectiveTestFunction {
    3736    /// <summary>
    3837    /// Returns false as the Levy function is a minimization problem.
     
    6766
    6867    [StorableConstructor]
    69     protected LevyEvaluator(bool deserializing) : base(deserializing) { }
    70     protected LevyEvaluator(LevyEvaluator original, Cloner cloner) : base(original, cloner) { }
    71     public LevyEvaluator() : base() { }
     68    protected Levy(bool deserializing) : base(deserializing) { }
     69    protected Levy(Levy original, Cloner cloner) : base(original, cloner) { }
     70    public Levy() : base() { }
    7271
    7372    public override IDeepCloneable Clone(Cloner cloner) {
    74       return new LevyEvaluator(this, cloner);
     73      return new Levy(this, cloner);
    7574    }
    7675
Note: See TracChangeset for help on using the changeset viewer.