Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3322


Ignore:
Timestamp:
04/13/10 10:55:11 (14 years ago)
Author:
abeham
Message:

Added constructors and parameters in RastriginAdditiveMoveEvaluator and SphereAdditiveMoveEvaluator #934

Location:
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RastriginAdditiveMoveEvaluator.cs

    r3318 r3322  
    4747    }
    4848
     49    public RastriginAdditiveMoveEvaluator() {
     50      Parameters.Add(new ValueParameter<DoubleValue>("A", "The parameter A is a parameter of the objective function y = Sum((x_i)^2 + A * (1 - Cos(2pi*x_i))). Default is A = 10.", new DoubleValue(10)));
     51    }
     52
    4953    protected override double Evaluate(double quality, RealVector point, AdditiveMove move) {
    5054      RealVectorAdditiveMoveWrapper wrapper = new RealVectorAdditiveMoveWrapper(move, point);
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/SphereAdditiveMoveEvaluator.cs

    r3318 r3322  
    6060      get { return typeof(SphereEvaluator); }
    6161    }
     62
     63    public SphereAdditiveMoveEvaluator() {
     64      Parameters.Add(new ValueParameter<DoubleValue>("C", "The parameter C modifies the steepness of the objective function y = C * ||X||^Alpha. Default is C = 1.", new DoubleValue(1)));
     65      Parameters.Add(new ValueParameter<DoubleValue>("Alpha", "The parameter Alpha modifies the steepness of the objective function y = C * ||X||^Alpha. Default is Alpha = 2.", new DoubleValue(2)));
     66    }
     67
    6268    protected override double Evaluate(double quality, RealVector point, AdditiveMove move) {
    6369      RealVectorAdditiveMoveWrapper wrapper = new RealVectorAdditiveMoveWrapper(move, point);
Note: See TracChangeset for help on using the changeset viewer.