Ignore:
Timestamp:
07/20/16 14:02:36 (5 years ago)
Author:
gkronber
Message:

#1966: refactoring of bin packing implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequencePartiallyMatchedCrossover.cs

    r14046 r14128  
    3131  [Item("PackingSequence PMX", "An operator which crosses two PackingSequence representations using the OX-strategy.")]
    3232  [StorableClass]
    33   public class PackingSequencePartiallyMatchedCrossover : PackingSequenceCrossover, IPackingSequenceOperator {
     33  public class PackingSequencePartiallyMatchedCrossover : PackingSequenceCrossover {
    3434
    3535    [StorableConstructor]
     
    4343    }
    4444
    45     public override PackingSequenceEncoding Cross(IRandom random, PackingSequenceEncoding parent1, PackingSequenceEncoding parent2) {
    46       PackingSequenceEncoding result = new PackingSequenceEncoding();
    47       result.PackingSequence = PartiallyMatchedCrossover.Apply(random, parent1.PackingSequence, parent2.PackingSequence);
    48       return result;
     45    public override Permutation Cross(IRandom random, Permutation parent1, Permutation parent2) {
     46      return PartiallyMatchedCrossover.Apply(random, parent1, parent2);
    4947    }
    5048  }
Note: See TracChangeset for help on using the changeset viewer.