Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 19:36:48 (14 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Problems.Knapsack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.Knapsack/3.3/Evaluators/KnapsackEvaluator.cs

    r4513 r4680  
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Common;
    2930
    3031namespace HeuristicLab.Problems.Knapsack {
     
    6869    }
    6970
     71    [StorableConstructor]
     72    protected KnapsackEvaluator(bool deserializing) : base(deserializing) { }
     73    protected KnapsackEvaluator(KnapsackEvaluator original, Cloner cloner) : base(original, cloner) { }
    7074    public KnapsackEvaluator()
    7175      : base() {
     
    7983      Parameters.Add(new LookupParameter<IntArray>("Values", "The values of the items."));
    8084      Parameters.Add(new LookupParameter<DoubleValue>("Penalty", "The penalty value for each unit of overweight."));
     85    }
     86
     87    public override IDeepCloneable Clone(Cloner cloner) {
     88      return new KnapsackEvaluator(this, cloner);
    8189    }
    8290
Note: See TracChangeset for help on using the changeset viewer.