Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 20:26:45 (14 years ago)
Author:
swagner
Message:

Finished cloning refactoring of HeuristicLab.Problems.TestFunctions (#922)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs

    r4068 r4688  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    8384    }
    8485
     86    [StorableConstructor]
     87    protected RastriginEvaluator(bool deserializing) : base(deserializing) { }
     88    protected RastriginEvaluator(RastriginEvaluator original, Cloner cloner) : base(original, cloner) { }
    8589    /// <summary>
    8690    /// Initializes a new instance of the RastriginEvaluator with one parameter (<c>A</c>).
     
    8993      : base() {
    9094      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);
    9199    }
    92100
Note: See TracChangeset for help on using the changeset viewer.