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

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