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/PackingSequenceOrderCrossover.cs

    r14046 r14128  
    3030  [Item("PackingSequence OX", "An operator which crosses two PackingSequence representations using the OX-strategy.")]
    3131  [StorableClass]
    32   public class PackingSequenceOrderCrossover : PackingSequenceCrossover, IPackingSequenceOperator {
     32  public class PackingSequenceOrderCrossover : PackingSequenceCrossover {
    3333
    3434    [StorableConstructor]
     
    4242    }
    4343
    44     public override PackingSequenceEncoding Cross(IRandom random, PackingSequenceEncoding parent1, PackingSequenceEncoding parent2) {
    45       PackingSequenceEncoding result = new PackingSequenceEncoding();
    46       result.PackingSequence = OrderCrossover.Apply(random, parent1.PackingSequence, parent2.PackingSequence);
    47       return result;
     44    public override Permutation Cross(IRandom random, Permutation parent1, Permutation parent2) {
     45      return OrderCrossover.Apply(random, parent1, parent2);
    4846    }
    4947  }
Note: See TracChangeset for help on using the changeset viewer.