Changeset 4688 for branches/CloningRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
- Timestamp:
- 10/29/10 20:26:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
r4068 r4688 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 83 84 } 84 85 86 [StorableConstructor] 87 protected RastriginEvaluator(bool deserializing) : base(deserializing) { } 88 protected RastriginEvaluator(RastriginEvaluator original, Cloner cloner) : base(original, cloner) { } 85 89 /// <summary> 86 90 /// Initializes a new instance of the RastriginEvaluator with one parameter (<c>A</c>). … … 89 93 : base() { 90 94 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))); 95 } 96 97 public override IDeepCloneable Clone(Cloner cloner) { 98 return new RastriginEvaluator(this, cloner); 91 99 } 92 100
Note: See TracChangeset
for help on using the changeset viewer.