- Timestamp:
- 10/29/10 19:36:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.Knapsack/3.3/Evaluators/KnapsackEvaluator.cs
r4513 r4680 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Common; 29 30 30 31 namespace HeuristicLab.Problems.Knapsack { … … 68 69 } 69 70 71 [StorableConstructor] 72 protected KnapsackEvaluator(bool deserializing) : base(deserializing) { } 73 protected KnapsackEvaluator(KnapsackEvaluator original, Cloner cloner) : base(original, cloner) { } 70 74 public KnapsackEvaluator() 71 75 : base() { … … 79 83 Parameters.Add(new LookupParameter<IntArray>("Values", "The values of the items.")); 80 84 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); 81 89 } 82 90
Note: See TracChangeset
for help on using the changeset viewer.