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

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