Changeset 14128 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceManipulator.cs
- Timestamp:
- 07/20/16 14:02:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceManipulator.cs
r14046 r14128 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Encodings.PermutationEncoding; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 using HeuristicLab.Problems.BinPacking; … … 30 31 [Item("PackingSequenceManipulator", "An operator which manipulates a PackingSequence representation.")] 31 32 [StorableClass] 32 public abstract class PackingSequenceManipulator : PackingSolutionManipulator , IPackingSequenceOperator {33 public abstract class PackingSequenceManipulator : PackingSolutionManipulator<Permutation>, IPackingSequenceOperator { 33 34 [StorableConstructor] 34 35 protected PackingSequenceManipulator(bool deserializing) : base(deserializing) { } … … 39 40 } 40 41 41 protected abstract void Manipulate(IRandom random, P ackingSequenceEncodingindividual);42 protected abstract void Manipulate(IRandom random, Permutation individual); 42 43 43 44 public override IOperation Apply() { 44 var solution = EncodedSolutionParameter.ActualValue as PackingSequenceEncoding;45 var solution = EncodedSolutionParameter.ActualValue; 45 46 if (solution == null) throw new InvalidOperationException("PackingSolutionEncoding was not found or is not of type PackingSequenceEncoding."); 46 47 Manipulate(RandomParameter.ActualValue, solution);
Note: See TracChangeset
for help on using the changeset viewer.