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

    r13393 r13403  
    3232  /// It is implemented as generalized Rosenbrock function as for example given in Shang, Y.-W. and Qiu, Y.-H. 2006. A Note on the Extended Rosenbrock Function. Evolutionary Computation 14, pp. 119-126, MIT Press.
    3333  /// </summary>
    34   [Item("RosenbrockEvaluator", @"The Rosenbrock function features a flat valley in which the global optimum is located.
     34  [Item("Rosenbrock", @"The Rosenbrock function features a flat valley in which the global optimum is located.
    3535For 2 and 3 dimensions the single minimum of this function is 0 at (1,1,...,1), for 4 to 30 dimensions there is an additional local minimum close to (-1,1,...,1).
    3636It is unknown how many local minima there are for dimensions greater than 30.
    3737It is implemented as generalized Rosenbrock function for which the 2 dimensional function is a special case, as for example given in Shang, Y.-W. and Qiu, Y.-H. 2006. A Note on the Extended Rosenbrock Function. Evolutionary Computation 14, pp. 119-126, MIT Press.")]
    3838  [StorableClass]
    39   public class RosenbrockEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
    40     public override string FunctionName { get { return "Rosenbrock"; } }
     39  public class Rosenbrock : SingleObjectiveTestFunction {
    4140    /// <summary>
    4241    /// Returns false as the Rosenbrock function is a minimization problem.
     
    7170
    7271    [StorableConstructor]
    73     protected RosenbrockEvaluator(bool deserializing) : base(deserializing) { }
    74     protected RosenbrockEvaluator(RosenbrockEvaluator original, Cloner cloner) : base(original, cloner) { }
    75     public RosenbrockEvaluator() : base() { }
     72    protected Rosenbrock(bool deserializing) : base(deserializing) { }
     73    protected Rosenbrock(Rosenbrock original, Cloner cloner) : base(original, cloner) { }
     74    public Rosenbrock() : base() { }
    7675
    7776    public override IDeepCloneable Clone(Cloner cloner) {
    78       return new RosenbrockEvaluator(this, cloner);
     77      return new Rosenbrock(this, cloner);
    7978    }
    8079
Note: See TracChangeset for help on using the changeset viewer.