Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    6869    }
    6970
     71    [StorableConstructor]
     72    protected RosenbrockEvaluator(bool deserializing) : base(deserializing) { }
     73    protected RosenbrockEvaluator(RosenbrockEvaluator original, Cloner cloner) : base(original, cloner) { }
     74    public RosenbrockEvaluator() : base() { }
     75
     76    public override IDeepCloneable Clone(Cloner cloner) {
     77      return new RosenbrockEvaluator(this, cloner);
     78    }
     79
    7080    public override RealVector GetBestKnownSolution(int dimension) {
    7181      if (dimension < 2) throw new ArgumentException(Name + ": This function is not defined for 1 dimension.");
Note: See TracChangeset for help on using the changeset viewer.