Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 17:37:02 (13 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Encodings.PermutationEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveHardTabuCriterion.cs

    r4068 r4667  
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Common;
    2930
    3031namespace HeuristicLab.Encodings.PermutationEncoding {
     
    6566    }
    6667
     68    [StorableConstructor]
     69    protected InversionMoveHardTabuCriterion(bool deserializing) : base(deserializing) { }
     70    protected InversionMoveHardTabuCriterion(InversionMoveHardTabuCriterion original, Cloner cloner) : base(original, cloner) { }
    6771    public InversionMoveHardTabuCriterion()
    6872      : base() {
     
    7478      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, else if it is a minimization problem."));
    7579      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The quality of the current move."));
     80    }
     81
     82    public override IDeepCloneable Clone(Cloner cloner) {
     83      return new InversionMoveHardTabuCriterion(this, cloner);
    7684    }
    7785
Note: See TracChangeset for help on using the changeset viewer.