Changeset 9563 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceCrossover.cs
- Timestamp:
- 06/02/13 04:26:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceCrossover.cs
r9348 r9563 29 29 [Item("PackingSequenceCrossover", "An operator which crosses two PackingSequence representations.")] 30 30 [StorableClass] 31 public class PackingSequenceCrossover : PackingSolutionCrossover, IPackingSequenceOperator {31 public abstract class PackingSequenceCrossover : PackingSolutionCrossover, IPackingSequenceOperator { 32 32 33 33 [StorableConstructor] … … 39 39 ChildParameter.ActualName = "PackingSequence"; 40 40 } 41 public override IDeepCloneable Clone(Cloner cloner) {42 return new PackingSequenceCrossover(this, cloner);43 }44 41 45 public PackingSequenceEncoding Cross(IRandom random, PackingSequenceEncoding parent1, PackingSequenceEncoding parent2) { 46 PackingSequenceEncoding result = new PackingSequenceEncoding(); 47 result.PackingSequence = CosaCrossover.Apply(random, parent1.PackingSequence, parent2.PackingSequence); 48 return result; 49 } 42 public abstract PackingSequenceEncoding Cross(IRandom random, PackingSequenceEncoding parent1, PackingSequenceEncoding parent2); 50 43 51 44 public override IOperation Apply() {
Note: See TracChangeset
for help on using the changeset viewer.